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.
10 lines
354 B
SQL
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 ''
|
|
);
|