project.entity.ts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import { Entity, Column } from 'typeorm';
  2. import { BaseModel } from '../../frame/BaseModel';
  3. //项目
  4. @Entity('project')
  5. export class Project 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. time: string;
  14. @Column({ type: 'character varying', nullable: true, comment: '行业分类' })
  15. type: string;
  16. @Column({ type: 'character varying', nullable: true, comment: '成熟度' })
  17. maturity: string;
  18. @Column({ type: 'character varying', nullable: true, comment: '技术类型' })
  19. skill: string;
  20. @Column({ type: 'character varying', nullable: true, comment: '领域' })
  21. field: string;
  22. @Column({ type: 'character varying', nullable: true, comment: '合作类型' })
  23. cooperate: string;
  24. @Column({ type: 'jsonb', nullable: true, comment: '项目地区' })
  25. area: Array<any>;
  26. @Column({ type: 'text', nullable: true, comment: '简介' })
  27. brief: string;
  28. @Column({ type: 'character varying', nullable: true, comment: '是否公开' })
  29. is_use: string;
  30. @Column({ type: 'character varying', nullable: true, comment: '状态' })
  31. status: string;
  32. @Column({ type: 'character varying', nullable: true, comment: '项目主体' })
  33. main: string;
  34. @Column({ type: 'character varying', nullable: true, comment: '项目进展' })
  35. progress: string;
  36. @Column({ type: 'character varying', nullable: true, comment: '跟踪支持单位' })
  37. track_unit: string;
  38. @Column({ type: 'character varying', nullable: true, comment: '项目来源' })
  39. source: string;
  40. @Column({ type: 'character varying', nullable: true, comment: '产业分类' })
  41. industry: string;
  42. }