working on basic table creation
This commit is contained in:
parent
3d0c7a7765
commit
ffed29d187
20
sql/create_table.sql
Normal file
20
sql/create_table.sql
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
CREATE TABLE brand(
|
||||||
|
id SERIAL PRIMARY KEY,
|
||||||
|
brand_name VARCHAR(255),
|
||||||
|
brand_website TEXT
|
||||||
|
;)
|
||||||
|
|
||||||
|
CREATE TABLE item_info(
|
||||||
|
id SERIAL PRIMARY KEY,
|
||||||
|
item_description TEXT,
|
||||||
|
item_cost FLOAT,
|
||||||
|
item_packaging VARCHAR(255),
|
||||||
|
item_safety_stock FLOAT,
|
||||||
|
;)
|
||||||
|
|
||||||
|
CREATE TABLE item(
|
||||||
|
id SERIAL PRIMARY KEY,
|
||||||
|
item_name VARCHAR(255),
|
||||||
|
brand_id INTEGER REFRENCES brand (id),
|
||||||
|
item_info INTEGER REFRENCES item_info (id),
|
||||||
|
)
|
||||||
Loading…
x
Reference in New Issue
Block a user