TastyBites/database/migrations/20240506163617-init_tables.sql
2024-05-06 19:30:23 +01:00

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;