import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity("system_menue")
export class SystemMenue {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ comment: "菜单名", default: "" })
  name: string;

  @Column({ comment: "创建时间", default: "" })
  createDate: string;

  @Column({ comment: "更新时间", default: "" })
  updateDate: string;

  @Column({ comment: "路径名", default: "" })
  path: string;

  @Column({ comment: "父级ID", default: 0 })
  parentId: number;

  @Column({ comment: "图标", default: "" })
  icon: string;

  @Column({ comment: "是否显示", default: true })
  show: boolean;
}
