state.entity.ts 1007 B

1234567891011121314151617181920212223
  1. import { Column, Entity } from 'typeorm';
  2. import { BaseModel } from '../../frame/BaseModel';
  3. @Entity('state')
  4. export class State extends BaseModel {
  5. @Column({ type: 'integer', nullable: true, 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. type: string;
  15. @Column({ type: 'character varying', nullable: true, comment: '地址' })
  16. address: string;
  17. @Column({ type: 'text', nullable: true, comment: '简介' })
  18. brief: string;
  19. @Column({ type: 'character varying', nullable: true, comment: '是否公开' })
  20. is_show: string;
  21. @Column({ type: 'character varying', nullable: true, comment: '状态' })
  22. status: string;
  23. }