Create a log for impersonation activities
This commit is contained in:
parent
b2eb98a66c
commit
d287fa44df
7 changed files with 1360 additions and 0 deletions
12
db/migrations/00118_impersonation_log.sql
Normal file
12
db/migrations/00118_impersonation_log.sql
Normal 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;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue