Add API to manage recipe tags

This commit is contained in:
Greg Burri 2025-01-03 23:32:54 +01:00
parent 754d5ec9e3
commit f8333651fd
6 changed files with 244 additions and 9 deletions

View file

@ -82,12 +82,11 @@ CREATE TABLE [RecipeTag] (
CREATE TABLE [Tag] (
[id] INTEGER PRIMARY KEY,
[name] TEXT NOT NULL,
[name] TEXT NOT NULL
-- https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes
[lang] TEXT NOT NULL DEFAULT 'en'
) STRICT;
CREATE UNIQUE INDEX [Tag_name_lang_index] ON [Tag] ([name], [lang]);
CREATE UNIQUE INDEX [Tag_name_lang_index] ON [Tag]([name]);
CREATE TABLE [Group] (
[id] INTEGER PRIMARY KEY,