Person.ts 549 B

1234567891011121314151617181920212223242526
  1. import { Str, Uid, Attr } from 'pinia-orm/dist/decorators'
  2. import ApiModel from '~/models/ApiModel'
  3. /**
  4. * AP2i Model : Person
  5. *
  6. * @see https://gitlab.2iopenservice.com/opentalent/ap2i/-/blob/develop/src/Entity/Person/Person.php
  7. */
  8. export default class Person extends ApiModel {
  9. static entity = 'people'
  10. @Uid()
  11. declare id: number | string | null
  12. @Attr(null)
  13. declare accessId: number | null
  14. @Str(null)
  15. declare username: string | null
  16. @Str(null)
  17. declare name: string | null
  18. @Str(null)
  19. declare givenName: string | null
  20. }