24 lines
730 B
Markdown
24 lines
730 B
Markdown
---
|
|
# nuzlocke-tracker-dwah
|
|
title: Add is_admin column to users table
|
|
status: todo
|
|
type: task
|
|
created_at: 2026-03-21T10:06:19Z
|
|
updated_at: 2026-03-21T10:06:19Z
|
|
parent: nuzlocke-tracker-ce4o
|
|
---
|
|
|
|
Add an `is_admin` boolean column (default `false`) to the `users` table via an Alembic migration.
|
|
|
|
## Checklist
|
|
|
|
- [ ] Create Alembic migration adding `is_admin: Mapped[bool]` column with `server_default="false"`
|
|
- [ ] Update `User` model in `backend/src/app/models/user.py`
|
|
- [ ] Run migration and verify column exists
|
|
- [ ] Seed a test admin user (or document how to set `is_admin=true` via SQL)
|
|
|
|
## Files to change
|
|
|
|
- `backend/src/app/models/user.py` — add `is_admin` field
|
|
- `backend/src/app/alembic/versions/` — new migration
|