achievement.entity.ts 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { Column, Entity } from 'typeorm';
  2. import { BaseModel } from '../../frame/BaseModel';
  3. @Entity('achievement')
  4. export class Achievement extends BaseModel {
  5. @Column({ type: 'integer', nullable: true, comment: '平台用户id' })
  6. user: number;
  7. @Column({ type: 'character varying', nullable: true, comment: '专利号' })
  8. patent: string;
  9. @Column({ type: 'character varying', nullable: true, comment: '名称' })
  10. name: string;
  11. @Column({ type: 'character varying', nullable: true, comment: '属性' })
  12. attribute: string;
  13. @Column({ type: 'character varying', nullable: true, comment: '出让方式' })
  14. sell: string;
  15. @Column({ type: 'character varying', nullable: true, comment: '成熟度' })
  16. mature: string;
  17. @Column({ type: 'character varying', nullable: true, comment: '行业领域' })
  18. field: string;
  19. @Column({ type: 'character varying', nullable: true, comment: '技术分类' })
  20. technology: string;
  21. @Column({ type: 'jsonb', nullable: true, comment: '成果地区' })
  22. area: Array<any>;
  23. @Column({ type: 'timestamp without time zone', comment: '发布时间' })
  24. time: Date;
  25. @Column({ type: 'character varying', nullable: true, comment: '参考价格' })
  26. money: string;
  27. @Column({ type: 'text', nullable: true, comment: '简介' })
  28. brief: string;
  29. @Column({ type: 'jsonb', nullable: true, comment: '附件' })
  30. file: Array<any>;
  31. @Column({ type: 'character varying', nullable: true, comment: '成果状态', default: '0' })
  32. achievement_status: string;
  33. @Column({ type: 'character varying', nullable: true, comment: '是否公开', default: '1' })
  34. is_use: string;
  35. @Column({ type: 'character varying', nullable: true, comment: '状态', default: '0' })
  36. status: string;
  37. }