aboutsummaryrefslogtreecommitdiffstats
path: root/app/Models/Recipe.ts
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/Recipe.ts')
-rw-r--r--app/Models/Recipe.ts16
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 @@
1import { DateTime } from 'luxon' 1import { DateTime } from 'luxon';
2import { BaseModel, column } from '@adonisjs/lucid/orm' 2import { BaseModel, column } from '@adonisjs/lucid/orm';
3 3
4export default class Recipe extends BaseModel { 4export 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}