Table "public.audit_logs" Column | Type | Collation | Nullable | Default ------------+--------------------------+-----------+----------+---------------------------------------- id | integer | | not null | nextval('audit_logs_id_seq'::regclass) user_id | integer | | | action | character varying(120) | | not null | entity | character varying(60) | | | entity_id | integer | | | detail | json | | | ip_address | character varying(64) | | | created_at | timestamp with time zone | | not null | updated_at | timestamp with time zone | | not null | Indexes: "audit_logs_pkey" PRIMARY KEY, btree (id) "ix_audit_logs_action" btree (action) "ix_audit_logs_created_at" btree (created_at) "ix_audit_logs_user_id" btree (user_id) Foreign-key constraints: "audit_logs_user_id_fkey" FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL