We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e585f91 commit a1788dfCopy full SHA for a1788df
coderd/database/migrations/000010_audit_logs.up.sql
@@ -19,15 +19,15 @@ CREATE TABLE audit_logs (
19
user_id uuid NOT NULL,
20
organization_id uuid NOT NULL,
21
ip cidr NOT NULL,
22
- os varchar(64) NOT NULL,
23
- browser varchar(64) NOT NULL,
24
- device varchar(64) NOT NULL,
+ user_agent varchar(256) NOT NULL,
25
resource_type resource_type NOT NULL,
26
resource_id uuid NOT NULL,
+ -- resource_target is the name of the resource that `resource_id` points to.
+ -- it's stored here because resources we point to can be deleted.
27
resource_target text NOT NULL,
28
action audit_action NOT NULL,
29
diff jsonb NOT NULL,
30
- status_code integer DEFAULT 0 NOT NULL,
+ status_code integer NOT NULL,
31
PRIMARY KEY (id)
32
);
33
0 commit comments