| 123456789101112131415161718192021222324252627282930313233343536 |
- import {Attr, Str, HasOne, Num, Model} from '@vuex-orm/core'
- import {Country} from "~/models/Core/Country";
- export class AddressPostal extends Model{
- static entity = 'address_postals'
- @Attr(null)
- id!: number | null
- @HasOne(() => Country, 'id')
- addressCountry!: Country | null
- @Str('', {nullable: true})
- addressCity!: string
- @Str('', {nullable: true})
- addressOwner!: string
- @Str('', {nullable: true})
- postalCode!: string
- @Str('', {nullable: true})
- streetAddress!: string
- @Str('', {nullable: true})
- streetAddressSecond!: string
- @Str('', {nullable: true})
- streetAddressThird!: string
- @Num(0, {nullable: true})
- latitude!: number
- @Num(0, {nullable: true})
- longitude!: number
- }
|