match.entity.ts 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. import { Entity, Column } from 'typeorm';
  2. import { BaseModel } from '../../frame/BaseModel';
  3. @Entity('match')
  4. export class Match extends BaseModel {
  5. @Column({ type: 'integer', nullable: true, comment: '平台用户id' })
  6. user: number;
  7. @Column({ type: 'character varying', nullable: true, comment: '名称' })
  8. name: string;
  9. @Column({ type: 'character varying', nullable: true, comment: '类型' })
  10. type: string;
  11. @Column({ type: 'character varying', nullable: true, comment: '组织单位' })
  12. work: string;
  13. @Column({ type: 'character varying', nullable: true, comment: '行业' })
  14. industry: string;
  15. @Column({ type: 'character varying', nullable: true, comment: '类别' })
  16. form: string;
  17. @Column({ type: 'jsonb', nullable: true, comment: '有效期' })
  18. time: Array<any>;
  19. @Column({ type: 'character varying', nullable: true, comment: '奖金' })
  20. money: string;
  21. @Column({ type: 'jsonb', nullable: true, comment: '赛事规则', default: {} })
  22. rules: object;
  23. @Column({ type: 'text', nullable: true, comment: '简介' })
  24. brief: string;
  25. @Column({ type: 'jsonb', nullable: true, comment: '封面' })
  26. file: Array<any>;
  27. @Column({ type: 'character varying', nullable: true, comment: '赛事状态', default: '0' })
  28. match_status: string;
  29. @Column({ type: 'character varying', nullable: true, comment: '是否公开', default: '1' })
  30. is_use: string;
  31. @Column({ type: 'character varying', nullable: true, comment: '状态', default: '0' })
  32. status: string;
  33. }