mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-08-07 21:01:14 +00:00
managers relation is fixed (3x)
This commit is contained in:
@@ -27,6 +27,9 @@ class User(id: EntityID<Int>) : IntEntity(id) {
|
||||
var liveAlertChannel by Users.liveAlertChannel
|
||||
var liveAlertMessage by Users.liveAlertMessage
|
||||
|
||||
val managers by User.via(UserManagers.manager, UserManagers.user)
|
||||
val subordinate by User.via(UserManagers.user, UserManagers.manager)
|
||||
// 유저가 가진 매니저들
|
||||
val managers by User.via(UserManagers.user, UserManagers.manager)
|
||||
|
||||
// 매니저가 관리하는 유저들
|
||||
val subordinates by User.via(UserManagers.manager, UserManagers.user)
|
||||
}
|
Reference in New Issue
Block a user