import { DateTime } from 'luxon'
import { BaseModel, column } from '@ioc:Adonis/Lucid/Orm'

export default class InfoDevice extends BaseModel {
  public static table = 'info_devices'

  @column({ isPrimary: true })
  public id_info: number

  @column()
  public PID: string

  @column()
  public SN: string

  @column()
  public VID: string

  @column()
  public RAM: string

  @column()
  public flash: string

  @column()
  public extraItem: string

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

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

}
