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

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

    @column()
    public deviceId: string

    @column()
    public record: string

    @column()
    public content: string

    @column()
    public detail: string

    @column()
    public channel: string

    @column()
    public img: string

    @column()
    public favorite: boolean

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

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