/*
 * @Author: YKH
 * @Date: 2022-04-06 08:21:27
 * @LastEditTime: 2022-04-08 14:18:31
 * @Description: 
 * @FilePath: \cool-admin\cool-admin-midway-master\src\app\modules\shuyou\entity\file_list.ts
 */

import { EntityModel } from '@midwayjs/orm';
import { BaseEntity } from 'midwayjs-cool-core';
import { Column, Index } from 'typeorm';

/**
 * 文件列表
 */

@EntityModel('shuyou_file_list')
export class ShuyouFileListEntity extends BaseEntity {

  @Index()
  @Column({ comment: '任务id', length: 50 })
  task_id: string;

  @Column({ comment: '文件名称', length: 100 })
  fileName: string;

  @Column({ comment: '文件版本', default: 0 })
  fileVersion: number;

  @Column({ comment: '七牛云文件地址', length: 255 })
  qiniuAddress: string;

  @Column({ comment: '七牛云key,方便删除文件', length: 255 })
  qiniuKey: string;

  @Column({ comment: '七牛云hash', length: 100 })
  qiniuHash: string;

  @Column({ comment: '文件类型', default: 0, type: 'tinyint' })
  type: number;
  //文件类型
  /** 
  {
    value: "0",
    label: "游戏.apk"
  },
  {
    value: "1",
    label: "小精灵.apk"
  },
  {
    value: "2",
    label: "Tar包更新.tar"
  },
  {
    value: "3",
    label: "Bat.bat"
  },
  {
    value: "4",
    label: "shell脚本.sh"
  },
  {
    value: "5",
    label: "exe文件.exe"
  },
  {
    value: "6",
    label: "PC精灵.exe"
  },
  {
    value: "7",
    label: "小绵羊.apk"
  },
  {
    value: "8",
    label: "多开王.exe"
  },
  {
    value: "9",
    label: "雷电镜像.ldbk"
  },
  {
    value: "10",
    label: "夜神镜像.npbk"
  },
  {
    value: "11",
    label: "易脚本.dll"
  },
  {
    value: "12",
    label: "钛备份文件.*"
  }
*/

}
