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

export default class LogReport extends BaseModel {

  public static table = 'log_reports'

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

  @column()
  public detected_content: string

  @column()
  public line: number

  @column()
  public id_file: number

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

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