supply.entity.ts 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { Entity, Column } from 'typeorm';
  2. import { BaseModel } from '../../frame/BaseModel';
  3. // 供给
  4. @Entity('supply', { comment: '供给数据' })
  5. export class Supply 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. field: string;
  16. @Column({ type: 'character varying', nullable: true, comment: '需求紧急度' })
  17. urgent: string;
  18. @Column({ type: 'character varying', nullable: true, comment: '合作方式' })
  19. method: string;
  20. @Column({ type: 'character varying', nullable: true, comment: '开始时间' })
  21. start_time: string;
  22. @Column({ type: 'character varying', nullable: true, comment: '结束时间' })
  23. end_time: string;
  24. @Column({ type: 'character varying', nullable: true, comment: '价格' })
  25. money: string;
  26. @Column({ type: 'jsonb', nullable: true, comment: '供给地区', default: [] })
  27. area: Array<any>;
  28. @Column({ type: 'text', nullable: true, comment: '简介' })
  29. brief: string;
  30. @Column({ type: 'character varying', nullable: true, comment: '需求状态', default: '0' })
  31. demand_status: string;
  32. @Column({ type: 'character varying', nullable: true, comment: '是否公开', default: '0' })
  33. is_use: string;
  34. @Column({ type: 'character varying', nullable: true, comment: '状态' })
  35. status: string;
  36. @Column({ type: 'character varying', nullable: true, comment: '所属产业' })
  37. industry: string;
  38. @Column({ type: 'character varying', nullable: true, comment: '项目来源' })
  39. source: string;
  40. }