mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-05-30 07:23:55 +00:00
Initial version of policies
This commit is contained in:
parent
70f3ab8ec3
commit
3fa78e7bb1
15 changed files with 296 additions and 23 deletions
|
@ -77,6 +77,16 @@ table! {
|
|||
}
|
||||
}
|
||||
|
||||
table! {
|
||||
org_policies (uuid) {
|
||||
uuid -> Varchar,
|
||||
org_uuid -> Varchar,
|
||||
atype -> Integer,
|
||||
enabled -> Bool,
|
||||
data -> Text,
|
||||
}
|
||||
}
|
||||
|
||||
table! {
|
||||
organizations (uuid) {
|
||||
uuid -> Varchar,
|
||||
|
@ -155,6 +165,7 @@ joinable!(devices -> users (user_uuid));
|
|||
joinable!(folders -> users (user_uuid));
|
||||
joinable!(folders_ciphers -> ciphers (cipher_uuid));
|
||||
joinable!(folders_ciphers -> folders (folder_uuid));
|
||||
joinable!(org_policies -> organizations (org_uuid));
|
||||
joinable!(twofactor -> users (user_uuid));
|
||||
joinable!(users_collections -> collections (collection_uuid));
|
||||
joinable!(users_collections -> users (user_uuid));
|
||||
|
@ -170,6 +181,7 @@ allow_tables_to_appear_in_same_query!(
|
|||
folders,
|
||||
folders_ciphers,
|
||||
invitations,
|
||||
org_policies,
|
||||
organizations,
|
||||
twofactor,
|
||||
users,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue