master
2022-04-07 58389be5d3c1bbf4e47976f7ea09977be8bb84c5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { EntityModel } from '@midwayjs/orm';
import { BaseEntity } from '@cool-midway/core';
import { Column } from 'typeorm';
 
/**
 * 角色部门
 */
@EntityModel('t_sys_role_department')
export class BaseSysRoleDepartmentEntity extends BaseEntity {
  @Column({ comment: '角色ID', type: 'bigint' })
  roleId: number;
 
  @Column({ comment: '部门ID', type: 'bigint' })
  departmentId: number;
}