File.ts 366 B

1234567891011121314151617181920212223242526
  1. import {Str, Model, Uid, Num} from '@vuex-orm/core'
  2. export class File extends Model {
  3. static entity = 'files'
  4. @Uid()
  5. id!: number | string | null
  6. @Str('')
  7. name!: string
  8. @Str('')
  9. imgFieldName!: string
  10. @Str('')
  11. visibility!: string
  12. @Str('')
  13. config!: string
  14. @Str('')
  15. folder!: string
  16. @Num(null, { nullable: true })
  17. ownerId!: number
  18. }