Skip to content

Commit ffa7a6c

Browse files
authored
Merge pull request #200 from refactor-group/check_org_id_for_org_admins
Check org id for org admins
2 parents 6aa0f80 + 9eaabde commit ffa7a6c

21 files changed

+828
-264
lines changed

docs/db/refactor_platform_rs.dbml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,6 @@ Table refactor_platform.user_roles {
4949
updated_at timestamptz [not null, default: `now()`, note: 'The last date and time fields were changed']
5050
}
5151

52-
Table refactor_platform.organizations_users {
53-
id uuid [primary key, unique, not null, default: `gen_random_uuid()`]
54-
organization_id uuid [not null, note: 'The organization joined to the user']
55-
user_id uuid [not null, note: 'The user joined to the organization']
56-
created_at timestamptz [not null, default: `now()`]
57-
updated_at timestamptz [not null, default: `now()`, note: 'The last date and time fields were changed']
58-
59-
Indexes {
60-
(organization_id, user_id) [unique, name: "organizations_users_org_user"]
61-
}
62-
}
63-
6452
Table refactor_platform.coaching_sessions {
6553
id uuid [primary key, unique, not null, default: `gen_random_uuid()`]
6654
coaching_relationship_id uuid [not null, note: 'The coaching relationship (i.e. what coach & coachee under what organization) associated with this coaching session']
@@ -158,10 +146,6 @@ Ref: refactor_platform.agreements.user_id > refactor_platform.users.id
158146
// actions relationships
159147
Ref: refactor_platform.actions.coaching_session_id > refactor_platform.coaching_sessions.id
160148

161-
// organizations_users relationships
162-
Ref: refactor_platform.organizations_users.organization_id > refactor_platform.organizations.id
163-
Ref: refactor_platform.organizations_users.user_id > refactor_platform.users.id
164-
165149
//user_roles relationships
166150
Ref: refactor_platform.user_roles.organization_id > refactor_platform.organizations.id
167151
Ref: refactor_platform.user_roles.user_id > refactor_platform.users.id

docs/db/refactor_platform_rs.png

-48.6 KB
Loading

0 commit comments

Comments
 (0)