Cycle.ts 572 B

12345678910111213141516171819202122232425
  1. import { Num, Str, Uid } from 'pinia-orm/dist/decorators'
  2. import ApiModel from '~/models/ApiModel'
  3. import { Assert } from '~/models/decorators'
  4. /**
  5. * AP2i Model: Cycle
  6. *
  7. * @see https://gitlab.2iopenservice.com/opentalent/ap2i/-/blob/develop/src/Entity/Education/Cycle.php
  8. */
  9. export default class Cycle extends ApiModel {
  10. static entity = 'cycles'
  11. @Uid()
  12. declare id: number | string | null
  13. @Str(null)
  14. @Assert({ nullable: false, max: 255 })
  15. declare label: string | null
  16. @Str(null)
  17. declare cycleEnum: string | null
  18. @Num(0)
  19. declare order: number
  20. }