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

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

    @column()
    public name: string

    @column()
    public deviceNum: number

    @column()
    public recordNum: number

    @column()
    public scanNum: number

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

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