create table tag (
    id integer primary key autoincrement,
    name text not null unique
);

create table cake_tag (
    cake integer not null references cake(id) on delete cascade,
    tag integer not null references tag(id) on delete cascade,
    primary key (cake, tag)
);
