import AppBaseModel from 'App/Models/AppBaseModel'
import { column } from '@ioc:Adonis/Lucid/Orm'
import { DateTime } from 'luxon'

export default class FilesRecord extends AppBaseModel {
    @column({ isPrimary: true })
    public id: number

    @column()
    public deviceId: string

    @column()
    public fileUrl: string

    @column.dateTime({ autoCreate: true })
    public createdAt: DateTime

    @column.dateTime({ autoCreate: true, autoUpdate: true })
    public updatedAt: DateTime
}
