add auth sync by menu
This commit is contained in:
parent
79a0d847ce
commit
2f525bae95
2 changed files with 49 additions and 14 deletions
|
|
@ -1,12 +1,4 @@
|
|||
import {
|
||||
Entity,
|
||||
Column,
|
||||
OneToMany,
|
||||
CreateDateColumn,
|
||||
UpdateDateColumn,
|
||||
PrimaryColumn,
|
||||
} from "typeorm";
|
||||
import { AuthRoleAttr } from "./AuthRoleAttr";
|
||||
import { Entity, Column, CreateDateColumn, UpdateDateColumn, PrimaryColumn } from "typeorm";
|
||||
|
||||
@Entity("authSys")
|
||||
export class AuthSys {
|
||||
|
|
@ -16,6 +8,36 @@ export class AuthSys {
|
|||
})
|
||||
id: string;
|
||||
|
||||
@Column({
|
||||
comment: "Id ของเมนูหลักถ้าเป็นเมนูหลักจะเป็นค่า null",
|
||||
nullable: true,
|
||||
default: null,
|
||||
length: 255,
|
||||
})
|
||||
parentId!: string;
|
||||
|
||||
@Column({
|
||||
comment: "ชื่อ icon",
|
||||
nullable: true,
|
||||
default: null,
|
||||
length: 100,
|
||||
})
|
||||
icon!: string;
|
||||
|
||||
@Column({
|
||||
comment: "path url ของระบบ",
|
||||
nullable: true,
|
||||
default: null,
|
||||
length: 255,
|
||||
})
|
||||
path!: string;
|
||||
|
||||
@Column({
|
||||
comment: "ลำดับการแสดงผล",
|
||||
default: 0,
|
||||
})
|
||||
order: number;
|
||||
|
||||
@CreateDateColumn({ comment: "สร้างข้อมูลเมื่อ" })
|
||||
createdAt!: Date;
|
||||
|
||||
|
|
@ -66,6 +88,9 @@ export class CreateAuthSys {
|
|||
@PrimaryColumn()
|
||||
id: string;
|
||||
|
||||
@Column()
|
||||
parentId: string;
|
||||
|
||||
@Column()
|
||||
sysName: string;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue