feat: add migration for admin actions and role fields

Adds new tables and columns for admin functionality:

- Create admin_actions table for audit logging
- Create qso_changes table for sync job rollback support
- Add role column to users (default: 'user')
- Add is_admin column to users (default: false)

No data loss - uses ALTER TABLE with safe defaults.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-01-21 10:37:05 +01:00
parent 7026f2bca7
commit fc44fef91a
3 changed files with 788 additions and 0 deletions

View File

@@ -15,6 +15,13 @@
"when": 1768641501799,
"tag": "0001_free_hiroim",
"breakpoints": true
},
{
"idx": 2,
"version": "6",
"when": 1768988121232,
"tag": "0002_nervous_layla_miller",
"breakpoints": true
}
]
}