Commit de989b4
authored
Add login.avatar_id FK for selected avatar (#331)
Adds a nullable foreign key on the login table referencing avatars_list,
making "currently selected avatar" a single authoritative value per user.
The legacy avatars.selected flag is kept (and still writable) for
backwards compatibility; the API mirrors both sides on writes and
provides a reconciler to repair drift.1 parent 3020887 commit de989b4
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments