TastyBites/database/migrations/20240506163617-init_tables.sql

18 lines
339 B
MySQL
Raw Normal View History

-- +migrate Up
CREATE TABLE IF NOT EXISTS Item (
2024-05-06 18:30:23 +00:00
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;