lots of layout; server not really running yet

This commit is contained in:
Mikayla Dobson
2022-11-17 18:08:31 -06:00
parent 798da777a9
commit 628d0dc04b
11 changed files with 2086 additions and 71 deletions

35
server/schemas/index.ts Normal file
View File

@@ -0,0 +1,35 @@
export interface IUser {
firstname: string
lastname: string
handle: string
email: string
password: string
}
export interface IRecipe {
name: string
description?: string
preptime: string
ingredients: IIngredient[]
removed: boolean
}
export interface IIngredient {
name: string
description?: string
active: boolean
}
export interface ICollection {
name: string
owner: IUser
active: boolean
default: boolean
}
export interface IGroceryList {
owner: IUser
listname: string
recipes?: IRecipe[]
active: boolean
}