Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-23 05:20:28 +01:00
2ea9b66943
This PR adds event/audit logging support for organizations. By default this feature is disabled, since it does log a lot and adds extra database transactions. All events are touched except a few, since we do not support those features (yet), like SSO for example. This feature is tested with multiple clients and all database types. Fixes #229
19 Zeilen
579 B
SQL
19 Zeilen
579 B
SQL
CREATE TABLE event (
|
|
uuid CHAR(36) NOT NULL PRIMARY KEY,
|
|
event_type INTEGER NOT NULL,
|
|
user_uuid CHAR(36),
|
|
org_uuid CHAR(36),
|
|
cipher_uuid CHAR(36),
|
|
collection_uuid CHAR(36),
|
|
group_uuid CHAR(36),
|
|
org_user_uuid CHAR(36),
|
|
act_user_uuid CHAR(36),
|
|
device_type INTEGER,
|
|
ip_address TEXT,
|
|
event_date DATETIME NOT NULL,
|
|
policy_uuid CHAR(36),
|
|
provider_uuid CHAR(36),
|
|
provider_user_uuid CHAR(36),
|
|
provider_org_uuid CHAR(36),
|
|
UNIQUE (uuid)
|
|
);
|