mirror of
https://github.com/Fluffy-Bean/TastyBites.git
synced 2024-12-29 10:56:15 +00:00
18 lines
339 B
SQL
18 lines
339 B
SQL
|
|
-- +migrate Up
|
|
CREATE TABLE IF NOT EXISTS Item (
|
|
item_uuid TEXT NOT NULL PRIMARY KEY,
|
|
name TEXT NOT NULL,
|
|
price INTEGER NOT NULL,
|
|
description TEXT
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS Images (
|
|
image_uuid TEXT NOT NULL PRIMARY KEY,
|
|
show BOOLEAN NOT NULL,
|
|
item_uuid TEXT NOT NULL
|
|
);
|
|
|
|
-- +migrate Down
|
|
DROP TABLE Item;
|