working on basic table creation

This commit is contained in:
Jadowyne Ulve 2024-09-24 20:24:10 -05:00
parent 3d0c7a7765
commit ffed29d187

20
sql/create_table.sql Normal file
View 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),
)