recipes: add shared "to try" list for external recipes

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 f7d2d993e3
commit e2e3cc4adf
6 changed files with 680 additions and 1 deletions
+18
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);