feat: add the admin columns and the frontend permissions table

- users.permissions and users.last_seen as additive columns
- golem15_user_frontend_permissions (code, label, tab, comment)
- User gains LastSeen, read-only CreatedAt and UpdatedAt and the
  filterByGroup list scope; none of them is serialized
- migration tests roll back by position past the three new steps
This commit is contained in:
Jakub Zych
2026-10-05 12:51:41 +02:00
parent 0fe5b91b63
commit e22f7660f3
9 changed files with 238 additions and 11 deletions

View File

@@ -54,7 +54,8 @@ func TestUserGroupsMigration(t *testing.T) {
t.Fatalf("users_groups primary key = %q", pk)
}
for range 2 { // API tokens, then user groups.
// Frontend permissions, last seen, API tokens, user permissions, then user groups.
for range 5 {
if err := m.RollbackLast(); err != nil {
t.Fatal(err)
}