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

export default class Product extends BaseModel {
  @column({ isPrimary: true })
  public id_pro: number

  @column()
  public PID: string

  @column()
  public SN: string

  @column()
  public VID: string

  @column()
  public line: string

  @column()
  public file: string

  @column()
  public warehouse: string

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