Skip to content

Commit

Permalink
create cart and kpoint schema
Browse files Browse the repository at this point in the history
  • Loading branch information
naruepracht-s committed Mar 23, 2024
1 parent 72cf25e commit 5676c14
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kbazaar/src/main/resources/sql/schema/cart.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CREATE TABLE IF NOT EXISTS cart (
id SERIAL PRIMARY KEY,
shopperId INT NOT NULL REFERENCES shopper(id),
productId INT NOT NULL REFERENCES product(id),
quantity INT NOT NULL
);
5 changes: 5 additions & 0 deletions kbazaar/src/main/resources/sql/schema/kpoint.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CREATE TABLE IF NOT EXISTS kpoint (
id SERIAL PRIMARY KEY,
shopperId INT NOT NULL REFERENCES shopper(id),
point INT NOT NULL
);

0 comments on commit 5676c14

Please sign in to comment.