Subdomain.ts 492 B

1234567891011121314151617181920
  1. import { Bool, Str, Uid } from 'pinia-orm/dist/decorators'
  2. import ApiModel from '~/models/ApiModel'
  3. /**
  4. * AP2i Model : Subdomain
  5. *
  6. * @see https://gitlab.2iopenservice.com/opentalent/ap2i/-/blob/develop/src/Entity/Organization/Subdomain.php
  7. */
  8. export default class Subdomain extends ApiModel {
  9. static entity = 'subdomains'
  10. @Uid()
  11. declare id: number | string | null
  12. @Str(null)
  13. declare subdomain: string | null
  14. @Bool(false, { notNullable: true })
  15. declare active: boolean
  16. }