feat(store): add users and org memberships with single owner per org

Refs #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-11-21 23:48:02 +01:00
1 parent c615c21af1
commit 95da376ac1
9 files changed
+356

No files matched your search

+18
View File
@@ -8,8 +8,16 @@ import (
"time"
"github.com/google/uuid"
"github.com/jackc/pgx/v5/pgtype"
)
type Membership struct {
OrgID uuid.UUID
UserID uuid.UUID
IsOwner bool
CreatedAt time.Time
}
type Org struct {
ID uuid.UUID
Slug string
@@ -17,3 +25,13 @@ type Org struct {
CreatedAt time.Time
UpdatedAt time.Time
}
type User struct {
ID uuid.UUID
Email string
DisplayName string
PasswordHash *string
DisabledAt pgtype.Timestamptz
CreatedAt time.Time
UpdatedAt time.Time
}