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

export class File extends Model {
  static entity = 'files'

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

  @Str('')
  name!: string

  @Str('')
  imgFieldName!: string

  @Str('')
  visibility!: string

  @Str('')
  config!: string

  @Str('')
  folder!: string

  @Num(null, { nullable: true })
  ownerId!: number
}
