Create a log for impersonation activities

This commit is contained in:
Eli Ribble 2026-03-19 03:19:03 +00:00
parent b2eb98a66c
commit d287fa44df
No known key found for this signature in database
7 changed files with 1360 additions and 0 deletions

View file

@ -0,0 +1,12 @@
-- +goose Up
CREATE TABLE log_impersonation (
begin_at TIMESTAMP WITHOUT TIME ZONE NOT NULL,
end_at TIMESTAMP WITHOUT TIME ZONE,
id SERIAL NOT NULL,
impersonator_id INTEGER NOT NULL REFERENCES user_(id),
target_id INTEGER NOT NULL REFERENCES user_(id),
PRIMARY KEY (id)
);
-- +goose Down
DROP TABLE log_impersonation;