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.
This commit is contained in:
bronkuu 2026-06-15 18:49:21 +02:00
parent 06231cc490
commit 9aafbb94ec
8 changed files with 297 additions and 23 deletions

10
store/migrations/3.sql Normal file
View file

@ -0,0 +1,10 @@
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 ''
);