import { Str, Uid } from 'pinia-orm/dist/decorators'
import ApiModel from '~/models/ApiModel'

/**
 * Motif d'absence ou de retard
 *
 * @see https://gitlab.2iopenservice.com/opentalent/ap2i/-/blob/develop/src/Entity/Booking/AttendanceBookingReason.php
 */
export default class AttendanceBookingReason extends ApiModel {
  static entity = 'attendance_booking_reasons'

  @Uid()
  declare id: number | string

  @Str(null)
  declare reason: string | null
}
