import { isBtcAddress } from 'class-validator';
import { IncrementIdEntity } from 'src/common/entities/increment-id.entity';
import { Entity, Column } from 'typeorm';
@Entity()
export class ManualsManage extends IncrementIdEntity {
  @Column()
  name: string;

  @Column({ type: 'longtext' })
  explain: string;

  @Column()
  compile: string;

  @Column()
  publish: string;

  // 封面
  @Column()
  cover: string;
  // 是否置顶
  @Column()
  stick: boolean;
  // 可以编辑的角色列表
  @Column()
  canEditor: string;

  @Column()
  // 可以查看的角色列表
  canView: string;

  @Column()
  password: string;

  @Column({ default: 0 })
  classify: number;
}
