import {Str, HasOne, Model, Uid} from '@vuex-orm/core'
import { AddressPostal } from '~/models/Core/AddressPostal'

export class OrganizationAddressPostal extends Model {
  static entity = 'organization_address_postals'

  @Uid()
  id!: number | string | null

  @HasOne(() => AddressPostal, 'organizationAddressPostalId')
  addressPostal!: AddressPostal | null

  @Str('ADDRESS_HEAD_OFFICE', { nullable: false })
  type!: string
}
