import { IncrementIdEntity } from 'src/common/entities/increment-id.entity';
import { Column, Entity } from 'typeorm';

@Entity()
export class Feature extends IncrementIdEntity {
  @Column({ comment: '功能名' })
  name: string;

  @Column({ comment: '功能类型: 1/页面 2/功能权限' })
  type: number;

  @Column({ name: 'role_id', comment: '所属角色' })
  roleId: number;
}
