chore: src/modules/base/entity/sys/user_role.ts
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { BaseEntity } from '../base';
|
||||
import { Column, Entity } from 'typeorm';
|
||||
|
||||
/**
|
||||
* 用户角色
|
||||
*/
|
||||
@Entity('base_sys_user_role')
|
||||
export class BaseSysUserRoleEntity extends BaseEntity {
|
||||
@Column({ comment: '用户ID' })
|
||||
userId: number;
|
||||
|
||||
@Column({ comment: '角色ID' })
|
||||
roleId: number;
|
||||
}
|
||||
Reference in New Issue
Block a user