This commit is contained in:
Greg Burri 2025-03-18 19:55:52 +01:00
parent 7230ca607d
commit 8dcaac35b7
2 changed files with 301 additions and 298 deletions

View file

@ -52,12 +52,14 @@ As root:
# Useful URLs
* Rust patterns : https://github.com/rust-unofficial/patterns
* Rust patterns: https://github.com/rust-unofficial/patterns
* Rust cheat Sheet: https://cheats.rs/
* HTML Validation Service: https://validator.w3.org/
* Site analysis: https://pagespeed.web.dev/
* Open-Source UI: https://uiverse.io/
# Useful tools
Benchmarking: https://crates.io/crates/oha
HTTP benchmarking and stress tool: https://crates.io/crates/oha
HTTP API tool: https://www.usebruno.com/
GUI Database client: https://dbeaver.io/

View file

@ -184,13 +184,14 @@ CREATE TABLE [ShoppingEntry] (
[id] INTEGER PRIMARY KEY,
[user_id] INTEGER NOT NULL,
-- The linked ingredient can be deleted or a custom entry can be manually added.
-- In both cases [name], [quantity_value] and [quantity_unit] are used to display
-- In both cases [name], [quantity_value], [quantity_unit] and [Servings] are used to display
-- the entry instead of [Ingredient] data.
[ingredient_id] INTEGER,
[recipe_scheduled_id] INTEGER, -- Can be null when manually added.
[is_checked] INTEGER NOT NULL DEFAULT FALSE,
-- The following four fields contain data only if [recipe_scheduled_id] is NULL.
[name] TEXT NOT NULL DEFAULT '',
[quantity_value] REAL,
[quantity_unit] TEXT NOT NULL DEFAULT '',