Person.ts 454 B

1234567891011121314151617181920
  1. import ApiModel from "~/models/ApiModel";
  2. import {Str, Uid, Attr} from "pinia-orm/dist/decorators";
  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. }