Person.ts 289 B

1234567891011121314151617
  1. import {Model, Attr, Str} from '@vuex-orm/core'
  2. export class Person extends Model{
  3. static entity = 'people'
  4. @Attr(null)
  5. id!: number | null
  6. @Attr(null)
  7. accessId!: number | null
  8. @Str('', {nullable: false})
  9. name!: string
  10. @Str('', {nullable: true})
  11. givenName!: string
  12. }