Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update schema.sql #36

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions starter/cloudstorage/src/main/resources/schema.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CREATE TABLE IF NOT EXISTS USERS (
userid INT PRIMARY KEY auto_increment,
userid serial PRIMARY KEY,
username VARCHAR(20) UNIQUE,
salt VARCHAR,
password VARCHAR,
Expand All @@ -8,15 +8,15 @@ CREATE TABLE IF NOT EXISTS USERS (
);

CREATE TABLE IF NOT EXISTS NOTES (
noteid INT PRIMARY KEY auto_increment,
noteid serial PRIMARY KEY,
notetitle VARCHAR(20),
notedescription VARCHAR (1000),
userid INT,
foreign key (userid) references USERS(userid)
);

CREATE TABLE IF NOT EXISTS FILES (
fileId INT PRIMARY KEY auto_increment,
fileId serial PRIMARY KEY,
filename VARCHAR,
contenttype VARCHAR,
filesize VARCHAR,
Expand All @@ -26,7 +26,7 @@ CREATE TABLE IF NOT EXISTS FILES (
);

CREATE TABLE IF NOT EXISTS CREDENTIALS (
credentialid INT PRIMARY KEY auto_increment,
credentialid serial PRIMARY KEY,
url VARCHAR(100),
username VARCHAR (30),
key VARCHAR,
Expand Down
Loading