mirror of
https://github.com/arthur-pbty/portfolio2023.git
synced 2026-06-03 23:36:21 +02:00
14 lines
361 B
Plaintext
14 lines
361 B
Plaintext
import { DateTime } from 'luxon'
|
|
import { BaseModel, column } from '@ioc:Adonis/Lucid/Orm'
|
|
|
|
export default class {{ filename }} extends BaseModel {
|
|
@column({ isPrimary: true })
|
|
public id: number
|
|
|
|
@column.dateTime({ autoCreate: true })
|
|
public createdAt: DateTime
|
|
|
|
@column.dateTime({ autoCreate: true, autoUpdate: true })
|
|
public updatedAt: DateTime
|
|
}
|