NetworkOrganization.ts 622 B

123456789101112131415161718192021222324
  1. import {Network} from "~/models/Network/Network";
  2. import ApiModel from "~/models/ApiModel";
  3. import {HasOne, Str, Uid} from "pinia-orm/dist/decorators";
  4. /**
  5. * AP2i Model : NetworkOrganization
  6. *
  7. * @see https://gitlab.2iopenservice.com/opentalent/ap2i/-/blob/develop/src/Entity/Network/NetworkOrganization.php
  8. */
  9. export class NetworkOrganization extends ApiModel {
  10. static entity = 'network_organizations'
  11. @Uid()
  12. declare id: number | string | null
  13. @HasOne(() => Network, 'networkOrganizationId')
  14. declare network: Network | null
  15. @Str('')
  16. declare startDate: string
  17. @Str('')
  18. declare category: string
  19. }