diff options
Diffstat (limited to 'app/Models/Recipe.ts')
-rw-r--r-- | app/Models/Recipe.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/app/Models/Recipe.ts b/app/Models/Recipe.ts index bca6e76..84497d4 100644 --- a/app/Models/Recipe.ts +++ b/app/Models/Recipe.ts | |||
@@ -1,23 +1,23 @@ | |||
1 | import { DateTime } from 'luxon' | 1 | import { DateTime } from 'luxon'; |
2 | import { BaseModel, column } from '@adonisjs/lucid/orm' | 2 | import { BaseModel, column } from '@adonisjs/lucid/orm'; |
3 | 3 | ||
4 | export default class Recipe extends BaseModel { | 4 | export default class Recipe extends BaseModel { |
5 | @column({ isPrimary: true }) | 5 | @column({ isPrimary: true }) |
6 | public id: number | 6 | public id: number; |
7 | 7 | ||
8 | @column() | 8 | @column() |
9 | public name: string | 9 | public name: string; |
10 | 10 | ||
11 | @column() | 11 | @column() |
12 | public recipeId: string | 12 | public recipeId: string; |
13 | 13 | ||
14 | // TODO: Type the data object. | 14 | // TODO: Type the data object. |
15 | @column() | 15 | @column() |
16 | public data: object | 16 | public data: object; |
17 | 17 | ||
18 | @column.dateTime({ autoCreate: true }) | 18 | @column.dateTime({ autoCreate: true }) |
19 | public createdAt: DateTime | 19 | public createdAt: DateTime; |
20 | 20 | ||
21 | @column.dateTime({ autoCreate: true, autoUpdate: true }) | 21 | @column.dateTime({ autoCreate: true, autoUpdate: true }) |
22 | public updatedAt: DateTime | 22 | public updatedAt: DateTime; |
23 | } | 23 | } |