updates to db seed, ts definitions

This commit is contained in:
Mikayla Dobson
2022-11-19 10:55:44 -06:00
parent e9060dcdb8
commit 811158ec61
6 changed files with 84 additions and 10 deletions

View File

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