File.ts 414 B

1234567891011121314151617181920212223242526272829
  1. import {Str, Model, Uid, Num} from 'pinia-orm'
  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. @Str('')
  19. status!: 'PENDING' | 'READY' | 'ERROR'
  20. }