import { BaseEntity } from '@cool-midway/core';
import { Column, Index, Entity } from 'typeorm';

/**
 * 图集
 */
@Entity('map_atlas')
export class BaseSysAtlasEntity extends BaseEntity {
  @Index()
  @Column({ comment: '图集名称', length: 50 })
  atlasName: string;

  @Column({ comment: '图集类型', length: 10 })
  atlasType: string;

  @Column({ comment: '图集Id' })
  atlasId: string;

  @Column({ comment: '图层Id', nullable: true })
  layerId: number;

  // @Column({ comment: '是否默认加载', nullable: true, length: 1 })
  isInit: string;

  // @Column({ comment: '是否默认展开', nullable: true, length: 1 })
  isExpand: string;

  // @Column({ comment: '是否隐藏本节点', nullable: true, length: 1 })
  isHide: string;

  // @Column({ comment: '是否隐藏子节点', nullable: true, length: 1 })
  isHideChild: string;

  // @Column({ comment: '是否进行框选', nullable: true })
  isCheck: number;

  @Column({ comment: '透明度', nullable: true, type: 'decimal' })
  opacity: number;

  @Column({ comment: '排序', default: 0 })
  orderNum: number;

  @Column({ comment: '树节点', length: 10 })
  treeNode: string;
}
