incubator.entity.ts 1.0 KB

123456789101112131415161718192021222324
  1. import { Column, Entity } from 'typeorm';
  2. import { BaseModel } from '../../frame/BaseModel';
  3. //孵化基地
  4. @Entity('incubator')
  5. export class Incubator 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. person: string;
  12. @Column({ type: 'character varying', nullable: true, comment: '负责人电话' })
  13. person_phone: string;
  14. @Column({ type: 'character varying', nullable: true, comment: '地址' })
  15. address: string;
  16. @Column({ type: 'text', nullable: true, comment: '简介' })
  17. brief: string;
  18. @Column({ type: 'character varying', nullable: true, comment: '是否公开' })
  19. is_show: string;
  20. @Column({ type: 'character varying', nullable: true, comment: '是否和平台合作标识' })
  21. cooperate: string;
  22. @Column({ type: 'character varying', nullable: true, comment: '状态', default: '0' })
  23. status: string;
  24. }