diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-03 16:53:27 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-03 16:53:27 -0800 |
commit | 39678e1410a06e99ea71655485786caaf5847e7f (patch) | |
tree | d04ba9ae4083892e4d0208be952c98f174d1feef /rust/src/database_schema.rs | |
parent | 9bfb8e968fcecbe4dc729b89017d0606d271b287 (diff) | |
download | fatcat-39678e1410a06e99ea71655485786caaf5847e7f.tar.gz fatcat-39678e1410a06e99ea71655485786caaf5847e7f.zip |
start to impl oidc auth
Diffstat (limited to 'rust/src/database_schema.rs')
-rw-r--r-- | rust/src/database_schema.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/rust/src/database_schema.rs b/rust/src/database_schema.rs index c240048e..49863fc7 100644 --- a/rust/src/database_schema.rs +++ b/rust/src/database_schema.rs @@ -6,6 +6,17 @@ table! { } table! { + auth_oidc (id) { + id -> Int8, + created -> Timestamptz, + editor_id -> Uuid, + provider -> Text, + oidc_iss -> Text, + oidc_sub -> Text, + } +} + +table! { changelog (id) { id -> Int8, editgroup_id -> Uuid, @@ -98,6 +109,7 @@ table! { username -> Text, is_admin -> Bool, is_bot -> Bool, + is_active -> Bool, registered -> Timestamptz, auth_epoch -> Timestamptz, wrangler_id -> Nullable<Uuid>, @@ -387,6 +399,7 @@ table! { } } +joinable!(auth_oidc -> editor (editor_id)); joinable!(changelog -> editgroup (editgroup_id)); joinable!(container_edit -> editgroup (editgroup_id)); joinable!(container_ident -> container_rev (rev_id)); @@ -424,6 +437,7 @@ joinable!(work_ident -> work_rev (rev_id)); allow_tables_to_appear_in_same_query!( abstracts, + auth_oidc, changelog, container_edit, container_ident, |