match.entity.ts 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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: '标签', default: [] })
  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. match_type: string;
  16. @Column({ type: 'character varying', nullable: true, comment: '赛事规模' })
  17. scale: string;
  18. @Column({ type: 'character varying', nullable: true, comment: '路由' })
  19. href: string;
  20. @Column({ type: 'character varying', nullable: true, comment: '组织单位' })
  21. work: string;
  22. @Column({ type: 'character varying', nullable: true, comment: '地点' })
  23. address: string;
  24. @Column({ type: 'character varying', nullable: true, comment: '所属产业' })
  25. industry: string;
  26. @Column({ type: 'character varying', nullable: true, comment: '类别' })
  27. form: string;
  28. @Column({ type: 'character varying', nullable: true, comment: '开始时间' })
  29. start_time: string;
  30. @Column({ type: 'character varying', nullable: true, comment: '结束时间' })
  31. end_time: string;
  32. @Column({ type: 'character varying', nullable: true, comment: '奖金' })
  33. money: string;
  34. @Column({ type: 'jsonb', nullable: true, comment: '赛事规则', default: {} })
  35. rules: object;
  36. @Column({ type: 'text', nullable: true, comment: '简介' })
  37. brief: string;
  38. @Column({ type: 'jsonb', nullable: true, comment: '封面', default: [] })
  39. file: Array<any>;
  40. @Column({ type: 'jsonb', nullable: true, comment: '视频', default: [] })
  41. video: Array<any>;
  42. @Column({ type: 'character varying', nullable: true, comment: '赛事状态', default: '0' })
  43. match_status: string;
  44. @Column({ type: 'character varying', nullable: true, comment: '是否公开', default: '0' })
  45. is_use: string;
  46. @Column({ type: 'character varying', nullable: true, comment: '是否在首页显示', default: '1' })
  47. is_show: string;
  48. @Column({ type: 'integer', nullable: true, comment: '显示顺序' })
  49. order_num: number;
  50. @Column({ type: 'character varying', nullable: true, comment: '状态', default: '0' })
  51. status: string;
  52. }