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

export class ContactPoint extends Model {
  static entity = 'contact_points'

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

  @Str('PRINCIPAL', { nullable: false })
  contactType!: string

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

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

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

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

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

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

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

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

  @Attr([])
  organization!: []
}
