recipes: add shared "to try" list for external recipes
Some checks failed
CI / update (push) Failing after 20s

Household-shared list of external recipes to try, with name, multiple
links, and optional notes. Includes add/edit/delete with confirmation.
Linked from the favorites page via a styled pill button.
This commit is contained in:
2026-02-18 21:01:16 +01:00
parent 7ba0995bf8
commit b90a42b1aa
6 changed files with 680 additions and 1 deletions

18
src/models/ToTryRecipe.ts Normal file
View File

@@ -0,0 +1,18 @@
import mongoose from 'mongoose';
const ToTryRecipeSchema = new mongoose.Schema(
{
name: { type: String, required: true, trim: true },
links: [
{
url: { type: String, required: true },
label: { type: String, default: '' }
}
],
notes: { type: String, default: '' },
addedBy: { type: String, required: true }
},
{ timestamps: true }
);
export const ToTryRecipe = mongoose.model('ToTryRecipe', ToTryRecipeSchema);