614e4f92

By: Michael Lynch <git@mtlynch.io>

Refactor user admin storage

Add IsAdmin to the User struct and update InsertUser to take a User value directly, simplifying the call site.

Collapse the unused owner/admin split into a single admin flag. TinyBeans MOTHER and FATHER relationships now map directly to IsAdmin, and SQLite stores only is_admin for user permissions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Reviewed-on: https://codeberg.org/mtlynch/little-moments/pulls/117
Co-authored-by: Michael Lynch <git@mtlynch.io>
Co-committed-by: Michael Lynch <git@mtlynch.io>

Suite timing

Time to Start Worker time Duration Time to finish
Config 0s 1s 1s 1s
Eval 2s 58s 58s 1m00s
Build 4s 5m09s 1m24s 1m29s
Test - - - -
Deploy - - - -
Suite 0s 6m10s 1m28s 1m29s

Timeline

0s10s20s30s40s50s1m1m10s1m20s