design.entity.ts 879 B

12345678910111213141516171819202122
  1. import { Entity, Column } from 'typeorm';
  2. import { BaseModel } from '../../frame/BaseModel';
  3. @Entity('design')
  4. export class Design extends BaseModel {
  5. @Column({ type: 'character varying', nullable: true, comment: '标题' })
  6. zhTitle: string;
  7. @Column({ type: 'character varying', nullable: true, comment: '英文标题' })
  8. zhEnglish: string;
  9. @Column({ type: 'text', nullable: true, comment: '简介' })
  10. zhBrief: string;
  11. @Column({ type: 'text', nullable: true, comment: '使用协议' })
  12. agreement: string;
  13. @Column({ type: 'text', nullable: true, comment: '关于我们' })
  14. brief: string;
  15. @Column({ type: 'jsonb', nullable: true, comment: 'logo' })
  16. logoUrl: Array<any>;
  17. @Column({ type: 'jsonb', nullable: true, comment: '视频' })
  18. videoUrl: Array<any>;
  19. @Column({ type: 'jsonb', nullable: true, comment: '网站底部信息' })
  20. footInfo: object;
  21. }