Files
trackgo-be/drizzle/migrations/meta/_journal.json
T
shancheas 51db4f4a4d Refactor privilege management to support hierarchical privilege keys
- Updated privilege key structure to use a 3- or 4-part dotted hierarchy (e.g., `GROUP.PARENT.MODULE`).
- Modified the `RequirePrivilege` decorator to accept multiple keys, allowing for OR logic in privilege checks.
- Enhanced `PrivilegesGuard` to validate against multiple privilege keys, improving access control logic.
- Created migration scripts to update existing privilege keys in the database to the new format.
- Updated related services, controllers, and tests to accommodate the new privilege key structure and validation logic.
2026-09-01 13:14:58 +07:00

125 lines
2.4 KiB
JSON

{
"version": "7",
"dialect": "postgresql",
"entries": [
{
"idx": 0,
"version": "7",
"when": 1787284452106,
"tag": "0000_jazzy_tomorrow_man",
"breakpoints": true
},
{
"idx": 1,
"version": "7",
"when": 1787285129382,
"tag": "0001_amusing_maximus",
"breakpoints": true
},
{
"idx": 2,
"version": "7",
"when": 1787305078482,
"tag": "0002_wooden_king_cobra",
"breakpoints": true
},
{
"idx": 3,
"version": "7",
"when": 1787544143116,
"tag": "0003_pretty_darkhawk",
"breakpoints": true
},
{
"idx": 4,
"version": "7",
"when": 1787546862278,
"tag": "0004_next_the_fury",
"breakpoints": true
},
{
"idx": 5,
"version": "7",
"when": 1787549883658,
"tag": "0005_past_vengeance",
"breakpoints": true
},
{
"idx": 6,
"version": "7",
"when": 1787554000000,
"tag": "0006_customers",
"breakpoints": true
},
{
"idx": 7,
"version": "7",
"when": 1787555000000,
"tag": "0007_employees",
"breakpoints": true
},
{
"idx": 8,
"version": "7",
"when": 1787556000000,
"tag": "0008_products",
"breakpoints": true
},
{
"idx": 9,
"version": "7",
"when": 1787557000000,
"tag": "0009_sales",
"breakpoints": true
},
{
"idx": 10,
"version": "7",
"when": 1787558000000,
"tag": "0010_phase2_shape",
"breakpoints": true
},
{
"idx": 11,
"version": "7",
"when": 1787559000000,
"tag": "0011_field",
"breakpoints": true
},
{
"idx": 12,
"version": "7",
"when": 1787560000000,
"tag": "0012_users_primary",
"breakpoints": true
},
{
"idx": 13,
"version": "7",
"when": 1787561000000,
"tag": "0013_reports",
"breakpoints": true
},
{
"idx": 14,
"version": "7",
"when": 1787562000000,
"tag": "0014_sales_invoice_location",
"breakpoints": true
},
{
"idx": 15,
"version": "7",
"when": 1787563000000,
"tag": "0015_field_check_in",
"breakpoints": true
},
{
"idx": 16,
"version": "7",
"when": 1787564000000,
"tag": "0016_privilege_key_hierarchy",
"breakpoints": true
}
]
}