Build
Admin and audit log
The super-admin panel and who-did-what history.
01Admin panel
/admin is for super-admins: metrics, /admin/users, /admin/teams, /admin/subscriptions and /admin/audit. Admins can ban and unban users, change roles, revoke sessions, impersonate, delete users or teams, adjust credits and cancel subscriptions.
npm run db:seed creates the first admin. There is no self-service way to become one; after that, admins promote others from /admin/users.
02Audit log
Security-relevant actions call audit() from features/audit/server/audit.ts: key created or revoked, roles changed, credits adjusted. Entries stay when users or workspaces are deleted.