diff options
author | 2024-02-10 18:37:40 -0700 | |
---|---|---|
committer | 2024-02-13 06:59:44 +0530 | |
commit | e1c47572a6235fd8fd20af888ac3a11c7ae1369d (patch) | |
tree | 2dccff36a441916d7014037cef3f7ce84a790cad /app/Models/Recipe.ts | |
parent | refactor: project maintenance (diff) | |
download | ferdium-server-e1c47572a6235fd8fd20af888ac3a11c7ae1369d.tar.gz ferdium-server-e1c47572a6235fd8fd20af888ac3a11c7ae1369d.tar.zst ferdium-server-e1c47572a6235fd8fd20af888ac3a11c7ae1369d.zip |
updates
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 | } |