cake-order-tracker/store/migrations/3.sql
bronkuu 9aafbb94ec tags and special cakes: models, migrations, store layer
Add Tag, SpecialCake, Cake.Tags, Order.SpecialCakes types.
Add migrations for tag, cake_tag, special_cake, special_cake_tag tables.
Add store methods: GetTags, GetCakeTags, SaveCakeTags, CreateTag,
GetSpecialCakes, GetSpecialCakeTags, SaveSpecialCakes, saveSpecialCakeTags.
Load tags in GetCake/GetCakes, cascade tag saves in SaveCake.
Remove debug log calls from ParsePrice.
2026-06-15 18:49:21 +02:00

10 lines
354 B
SQL

create table special_cake (
id integer primary key autoincrement,
customer_order integer not null references customer_order(id) on delete cascade,
name text not null,
price integer not null,
size text not null default '',
shape text not null default '',
flavour text not null default '',
notes text not null default ''
);