OrganizationAddressPostal.ts 396 B

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