OrganizationAddressPostal.ts 432 B

123456789101112131415
  1. import {Str, HasOne, Model, Uid} from '@vuex-orm/core'
  2. import { AddressPostal } from '~/models/Core/AddressPostal'
  3. export class OrganizationAddressPostal extends Model {
  4. static entity = 'organization_address_postals'
  5. @Uid()
  6. id!: number | string | null
  7. @HasOne(() => AddressPostal, 'organizationAddressPostalId')
  8. addressPostal!: AddressPostal | null
  9. @Str('ADDRESS_HEAD_OFFICE', { nullable: false })
  10. type!: string
  11. }