mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-27 10:00:27 +01:00
22
app/Models/Profile.ts
Normal file
22
app/Models/Profile.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import {DateTime} from 'luxon'
|
||||
import {BaseModel, column} from '@ioc:Adonis/Lucid/Orm'
|
||||
|
||||
export default class Profile extends BaseModel {
|
||||
@column({ isPrimary: true })
|
||||
public id: number
|
||||
|
||||
@column()
|
||||
public age: number
|
||||
|
||||
@column()
|
||||
public hiringStatus: string
|
||||
|
||||
@column()
|
||||
public hiringColor: string
|
||||
|
||||
@column.dateTime({ autoCreate: true })
|
||||
public createdAt: DateTime
|
||||
|
||||
@column.dateTime({ autoCreate: true, autoUpdate: true })
|
||||
public updatedAt: DateTime
|
||||
}
|
||||
Reference in New Issue
Block a user