NetworkOrganization.ts 382 B

123456789101112131415161718
  1. import {Str, Model, Uid, HasOne} from '@vuex-orm/core'
  2. import {Network} from "~/models/Network/Network";
  3. export class NetworkOrganization extends Model {
  4. static entity = 'network_organizations'
  5. @Uid()
  6. id!: number | string | null
  7. @HasOne(() => Network, 'networkOrganizationId')
  8. network!: Network | null
  9. @Str('')
  10. startDate!: string
  11. @Str('')
  12. category!: string
  13. }