Get Product API working fine
This commit is contained in:
12
migrations/2020-11-29-201720_create_order_details/up.sql
Normal file
12
migrations/2020-11-29-201720_create_order_details/up.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
create table if not exists order_details
|
||||
(
|
||||
orderid integer not null
|
||||
constraint fk_order_details_orders
|
||||
references orders (orderid),
|
||||
productid integer not null
|
||||
constraint fk_order_details_products
|
||||
references products(productid),
|
||||
constraint pk_order_details
|
||||
primary key (orderid, productid),
|
||||
quantity integer not null
|
||||
);
|
||||
Reference in New Issue
Block a user