match.entity.ts 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. href: string;
  18. @Column({ type: 'character varying', nullable: true, comment: '组织单位' })
  19. work: string;
  20. @Column({ type: 'character varying', nullable: true, comment: '地点' })
  21. address: string;
  22. @Column({ type: 'character varying', nullable: true, comment: '所属产业' })
  23. industry: string;
  24. @Column({ type: 'character varying', nullable: true, comment: '类别' })
  25. form: string;
  26. @Column({ type: 'character varying', nullable: true, comment: '开始时间' })
  27. start_time: string;
  28. @Column({ type: 'character varying', nullable: true, comment: '结束时间' })
  29. end_time: string;
  30. @Column({ type: 'character varying', nullable: true, comment: '奖金' })
  31. money: string;
  32. @Column({ type: 'jsonb', nullable: true, comment: '赛事规则', default: {} })
  33. rules: object;
  34. @Column({ type: 'text', nullable: true, comment: '简介' })
  35. brief: string;
  36. @Column({ type: 'jsonb', nullable: true, comment: '封面', default: [] })
  37. file: Array<any>;
  38. @Column({ type: 'character varying', nullable: true, comment: '赛事状态', default: '0' })
  39. match_status: string;
  40. @Column({ type: 'character varying', nullable: true, comment: '是否公开', default: '0' })
  41. is_use: string;
  42. @Column({ type: 'character varying', nullable: true, comment: '状态', default: '0' })
  43. status: string;
  44. }