mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-06-04 18:13:58 +00:00
Initial organizations functionality: Creating orgs and inviting users
This commit is contained in:
parent
a4d2aad331
commit
4093bf92fe
14 changed files with 440 additions and 170 deletions
|
@ -18,12 +18,14 @@ CREATE TABLE users_collections (
|
|||
);
|
||||
|
||||
CREATE TABLE users_organizations (
|
||||
user_uuid TEXT NOT NULL REFERENCES users (uuid),
|
||||
org_uuid TEXT NOT NULL REFERENCES organizations (uuid),
|
||||
uuid TEXT NOT NULL PRIMARY KEY,
|
||||
user_uuid TEXT NOT NULL REFERENCES users (uuid),
|
||||
org_uuid TEXT NOT NULL REFERENCES organizations (uuid),
|
||||
|
||||
key TEXT NOT NULL,
|
||||
status INTEGER NOT NULL,
|
||||
type INTEGER NOT NULL,
|
||||
access_all BOOLEAN NOT NULL,
|
||||
key TEXT NOT NULL,
|
||||
status INTEGER NOT NULL,
|
||||
type INTEGER NOT NULL,
|
||||
|
||||
PRIMARY KEY (user_uuid, org_uuid)
|
||||
UNIQUE (user_uuid, org_uuid)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue