diff options
author | 2024-02-10 18:19:14 -0700 | |
---|---|---|
committer | 2024-02-13 06:59:44 +0530 | |
commit | 7584d2d7a7110aef0331ebfa178b2295842c59fa (patch) | |
tree | 900cd71237e6231b57936fcce77ff229cd459041 /app/Models/Recipe.ts | |
parent | upgrade recipes submodule (diff) | |
download | ferdium-server-7584d2d7a7110aef0331ebfa178b2295842c59fa.tar.gz ferdium-server-7584d2d7a7110aef0331ebfa178b2295842c59fa.tar.zst ferdium-server-7584d2d7a7110aef0331ebfa178b2295842c59fa.zip |
refactor: project maintenance
- work in progress
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 fce5f3d..bca6e76 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 '@ioc:Adonis/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 | } |