match.entity.ts 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { Entity, Column } from 'typeorm';
  2. import { BaseModel } from '../../frame/BaseModel';
  3. //赛事
  4. @Entity('match')
  5. export class Match extends BaseModel {
  6. @Column({ type: 'integer', nullable: true, comment: '平台用户id' })
  7. user: number;
  8. @Column({ type: 'jsonb', nullable: true, comment: '标签' })
  9. tags: Array<any>;
  10. @Column({ type: 'character varying', nullable: true, comment: '名称' })
  11. name: string;
  12. @Column({ type: 'character varying', nullable: true, comment: '类型' })
  13. type: string;
  14. @Column({ type: 'character varying', nullable: true, comment: '组织单位' })
  15. work: string;
  16. @Column({ type: 'character varying', nullable: true, comment: '地点' })
  17. address: string;
  18. @Column({ type: 'character varying', nullable: true, comment: '所属产业' })
  19. industry: string;
  20. @Column({ type: 'character varying', nullable: true, comment: '类别' })
  21. form: string;
  22. @Column({ type: 'character varying', nullable: true, comment: '开始时间' })
  23. start_time: string;
  24. @Column({ type: 'character varying', nullable: true, comment: '结束时间' })
  25. end_time: string;
  26. @Column({ type: 'character varying', nullable: true, comment: '奖金' })
  27. money: string;
  28. @Column({ type: 'jsonb', nullable: true, comment: '赛事规则', default: {} })
  29. rules: object;
  30. @Column({ type: 'text', nullable: true, comment: '简介' })
  31. brief: string;
  32. @Column({ type: 'jsonb', nullable: true, comment: '封面' })
  33. file: Array<any>;
  34. @Column({ type: 'character varying', nullable: true, comment: '赛事状态', default: '0' })
  35. match_status: string;
  36. @Column({ type: 'character varying', nullable: true, comment: '是否公开', default: '1' })
  37. is_use: string;
  38. @Column({ type: 'character varying', nullable: true, comment: '状态', default: '0' })
  39. status: string;
  40. }