refactor scope_id to be the project of the session's target

pull/347/head
Jim Lambert 6 years ago
parent 534786c134
commit 90fbecf617

@ -121,9 +121,9 @@ begin;
references auth_token (public_id)
on delete set null
on update cascade,
-- the organization which owns this session
-- the project which owns this session
scope_id wt_scope_id -- fk7
references iam_scope_org (scope_id)
references iam_scope_project (scope_id)
on delete set null
on update cascade,
-- the reason this session ended (null until terminated)

Loading…
Cancel
Save