design.entity.ts 1.1 KB

1234567891011121314151617181920212223242526
  1. import { Entity, Column } from 'typeorm';
  2. import { BaseModel } from '../../frame/BaseModel';
  3. // 平台设置
  4. @Entity('design')
  5. export class Design extends BaseModel {
  6. @Column({ type: 'character varying', nullable: true, comment: '标题' })
  7. zhTitle: string;
  8. @Column({ type: 'character varying', nullable: true, comment: '英文标题' })
  9. zhEnglish: string;
  10. @Column({ type: 'text', nullable: true, comment: '简介' })
  11. zhBrief: string;
  12. @Column({ type: 'text', nullable: true, comment: '使用协议' })
  13. agreement: string;
  14. @Column({ type: 'text', nullable: true, comment: '关于我们' })
  15. brief: string;
  16. @Column({ type: 'jsonb', nullable: true, comment: 'logo' })
  17. logoUrl: Array<any>;
  18. @Column({ type: 'jsonb', nullable: true, comment: '轮播图' })
  19. carouselUrl: Array<any>;
  20. @Column({ type: 'jsonb', nullable: true, comment: '合作伙伴' })
  21. friend: Array<any>;
  22. @Column({ type: 'jsonb', nullable: true, comment: '友情连接' })
  23. friendship: Array<any>;
  24. @Column({ type: 'jsonb', nullable: true, comment: '网站底部信息' })
  25. footInfo: object;
  26. }