demand.entity.ts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import { Entity, Column } from 'typeorm';
  2. import { BaseModel } from '../../frame/BaseModel';
  3. // 需求
  4. @Entity('demand')
  5. export class Demand 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. 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: '需求地区' })
  27. area: Array<any>;
  28. @Column({ type: 'character varying', 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: '1' })
  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. company: string;
  40. @Column({ type: 'character varying', nullable: true, comment: '企业简况' })
  41. company_brief: string;
  42. @Column({ type: 'character varying', nullable: true, comment: '联系人' })
  43. contacts: string;
  44. @Column({ type: 'character varying', nullable: true, comment: '联系电话' })
  45. tel: string;
  46. @Column({ type: 'character varying', nullable: true, comment: '年份' })
  47. year: string;
  48. @Column({ type: 'character varying', nullable: true, comment: '月份' })
  49. month: string;
  50. @Column({ type: 'character varying', nullable: true, comment: '技术需求名称' })
  51. tec_name: string;
  52. @Column({ type: 'character varying', nullable: true, comment: '待解决问题' })
  53. question: string;
  54. }