permissions_revision


Columns

Column Type Size Nulls Auto Default Children Parents Comments
id int4 10 √ null

{“what”:“Unique integer ID for each revision row.”,“why”:“Enables stable reference and joins to other tables.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:09:50.667515540+00:00”}

before text 2147483647 null

{“what”:“Permission state before the change, serialized (e.g., JSON).”,“why”:“Needed to compare old vs new and to revert if needed.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:09:50.681704159+00:00”}

after text 2147483647 null

{“what”:“Permission state after the change, serialized (e.g., JSON).”,“why”:“Shows the new state; without it the change is not recorded.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:09:50.704337846+00:00”}

user_id int4 10 null
core_user.id fk_permissions_revision_user_id C

{“what”:“ID of the user who made the change.”,“why”:“Identifies who is responsible; essential for audit.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:09:50.729606920+00:00”}

created_at timestamptz 35,6 null

{“what”:“UTC timestamp when the change was recorded.”,“why”:“Provides chronological order and time-based audit.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:09:50.743513651+00:00”}

remark text 2147483647 √ null

{“what”:“Optional free-text note about the change.”,“why”:“Allows context like reason or ticket number; without it context is lost.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:09:50.756113180+00:00”}

Indexes

Constraint Name Type Sort Column(s)
permissions_revision_pkey Primary key Asc id
idx_permissions_revision_user_id Performance Asc user_id

Relationships