OrganizationContactPoint.ts 450 B

12345678910111213141516
  1. import { Attr, Str, HasOne, Model } from '@vuex-orm/core'
  2. import { AddressPostal } from '~/models/Core/AddressPostal'
  3. import { ContactPoint } from '~/models/Core/ContactPoint'
  4. export class OrganizationAddressPostal extends Model {
  5. static entity = 'organization_contact_points'
  6. @Attr(null)
  7. id!: number | null
  8. @HasOne(() => ContactPoint, 'id')
  9. contactPoint!: ContactPoint | null
  10. @Str('PRINCIPAL', { nullable: false })
  11. type!: string
  12. }