project.entity.ts 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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: 'character varying', nullable: true, comment: '名称' })
  9. name: string;
  10. @Column({ type: 'character varying', nullable: true, comment: '发布时间' })
  11. time: string;
  12. @Column({ type: 'character varying', nullable: true, comment: '行业分类' })
  13. type: string;
  14. @Column({ type: 'character varying', nullable: true, comment: '成熟度' })
  15. maturity: string;
  16. @Column({ type: 'character varying', nullable: true, comment: '技术类型' })
  17. skill: string;
  18. @Column({ type: 'character varying', nullable: true, comment: '领域' })
  19. field: string;
  20. @Column({ type: 'character varying', nullable: true, comment: '合作类型' })
  21. cooperate: string;
  22. @Column({ type: 'jsonb', nullable: true, comment: '项目地区' })
  23. area: Array<any>;
  24. @Column({ type: 'text', nullable: true, comment: '简介' })
  25. brief: string;
  26. @Column({ type: 'character varying', nullable: true, comment: '是否公开' })
  27. is_use: string;
  28. @Column({ type: 'character varying', nullable: true, comment: '状态' })
  29. status: string;
  30. @Column({ type: 'character varying', nullable: true, comment: '项目主体' })
  31. main: string;
  32. @Column({ type: 'character varying', nullable: true, comment: '项目进展' })
  33. progress: string;
  34. @Column({ type: 'character varying', nullable: true, comment: '跟踪支持单位' })
  35. track_unit: string;
  36. @Column({ type: 'character varying', nullable: true, comment: '项目来源' })
  37. source: string;
  38. @Column({ type: 'character varying', nullable: true, comment: '产业分类' })
  39. industry: string;
  40. }