Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 131ca8f

Browse files
updated schema
1 parent 8706708 commit 131ca8f

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

‎src/main/resources/data.sql

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,12 @@ INSERT INTO book (id_book, title, author, release_date, isbn, id_category, image
2828

2929
INSERT INTO book (id_book, title, author, release_date, isbn, id_category, images) VALUES
3030
(5, 'Conscious', 'Annaka Harris', '2021年09月17日', '947354211', 2, 'https://images-na.ssl-images-amazon.com/images/I/91Oy00Se3YL.jpg');
31+
32+
INSERT INTO "user" (id_user, username, email, password, picture) VALUES
33+
(1, 'vittorioexp', 'vittorioexp@fakeemail.it', '123456789A', 'https://images.unsplash.com/photo-1508138221679-760a23a2285b');
34+
35+
INSERT INTO "user" (id_user, username, email, password, picture) VALUES
36+
(2, 'samuperti', 'samuperti@fakeemail.it', 'ssssssssqqqA', 'https://images.unsplash.com/photo-1508138221679-760a23a2285b');
37+
38+
INSERT INTO "user" (id_user, username, email, password, picture) VALUES
39+
(3, 'adamsmith', 'adamsmith@adamsmith.it', 'adamsmithadamsmith', 'https://images.unsplash.com/photo-1508138221679-760a23a2285b');

‎src/main/resources/schema.sql

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,13 @@ CREATE TABLE book(
1212
id_category INT NOT NULL,
1313
FOREIGN KEY (id_category) REFERENCES category (id_category),
1414
images VARCHAR(100)
15+
);
16+
17+
CREATE TABLE user(
18+
id_user SERIAL PRIMARY KEY,
19+
username VARCHAR(100) NOT NULL,
20+
email VARCHAR(100) NOT NULL,
21+
password VARCHAR(100) NOT NULL,
22+
isbn VARCHAR(20),
23+
picture VARCHAR(100)
1524
);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /