import {Attr, Str, Num, Model, Uid} from '@vuex-orm/core'

export class AddressPostal extends Model {
  static entity = 'address_postals'

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

  @Str('', { nullable: true })
  '@id'!: string

  @Attr(null)
  organizationAddressPostalId!: number | null

  @Str(null, { nullable: true })
  addressCountry!: string|null

  @Str(null, { nullable: true })
  addressCity!: string|null

  @Str(null, { nullable: true })
  addressOwner!: string|null

  @Str(null, { nullable: true })
  postalCode!: string|null

  @Str(null, { nullable: true })
  streetAddress!: string|null

  @Str(null, { nullable: true })
  streetAddressSecond!: string|null

  @Str(null, { nullable: true })
  streetAddressThird!: string|null

  @Num(0, { nullable: true })
  latitude!: number

  @Num(0, { nullable: true })
  longitude!: number
}
