chore(model): Cascade for CompanyId on users
This commit is contained in:
parent
7359eadae2
commit
e188670478
@ -86,7 +86,7 @@ UserGroupMember
|
|||||||
deriving Generic
|
deriving Generic
|
||||||
UserCompany
|
UserCompany
|
||||||
user UserId
|
user UserId
|
||||||
company CompanyId
|
company CompanyId OnDeleteCascade OnUpdateCascade
|
||||||
supervisor Bool -- is this user a company supervisor?
|
supervisor Bool -- is this user a company supervisor?
|
||||||
UniqueUserCompany user -- only one company per user is currently allowed
|
UniqueUserCompany user -- only one company per user is currently allowed
|
||||||
deriving Generic
|
deriving Generic
|
||||||
|
|||||||
Reference in New Issue
Block a user