recipes: add shared "to try" list for external recipes
Some checks failed
CI / update (push) Failing after 20s
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:
18
src/models/ToTryRecipe.ts
Normal file
18
src/models/ToTryRecipe.ts
Normal 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);
|
||||
Reference in New Issue
Block a user