incubator.entity.ts 921 B

123456789101112131415161718192021
  1. import { Column, Entity } from 'typeorm';
  2. import { BaseModel } from '../../frame/BaseModel';
  3. @Entity('incubator')
  4. export class Incubator extends BaseModel {
  5. @Column({ type: 'integer', comment: '平台用户id' })
  6. user: number;
  7. @Column({ type: 'character varying', nullable: true, comment: '名称' })
  8. name: string;
  9. @Column({ type: 'character varying', nullable: true, comment: '负责人姓名' })
  10. person: string;
  11. @Column({ type: 'character varying', nullable: true, comment: '负责人电话' })
  12. person_phone: string;
  13. @Column({ type: 'character varying', nullable: true, comment: '地址' })
  14. address: string;
  15. @Column({ type: 'text', nullable: true, comment: '简介' })
  16. brief: string;
  17. @Column({ type: 'character varying', nullable: true, comment: '是否公开' })
  18. is_show: string;
  19. @Column({ type: 'character varying', nullable: true, comment: '状态', default: '0' })
  20. status: string;
  21. }