updates to db seed, ts definitions
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user