feat(store): add totp columns, org totp policy and global scope
Orgs are created inside their own tenant scope, so signup needs no system scope. Refs #3 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
caff396264
commit
99e9b1e57d
12 files changed
+203
-31
No files matched your search
@@ -12,9 +12,13 @@ import (
|
||||
|
||||
type Querier interface {
|
||||
AddMembership(ctx context.Context, arg AddMembershipParams) error
|
||||
AnyUserExists(ctx context.Context) (bool, error)
|
||||
CreateOrg(ctx context.Context, arg CreateOrgParams) (Org, error)
|
||||
CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
|
||||
DeleteOrg(ctx context.Context, id uuid.UUID) (int64, error)
|
||||
DeleteUser(ctx context.Context, id uuid.UUID) (int64, error)
|
||||
DisableTOTP(ctx context.Context, id uuid.UUID) error
|
||||
EnableTOTP(ctx context.Context, arg EnableTOTPParams) error
|
||||
GetOrg(ctx context.Context, id uuid.UUID) (Org, error)
|
||||
GetOrgBySlug(ctx context.Context, slug string) (Org, error)
|
||||
GetUser(ctx context.Context, id uuid.UUID) (User, error)
|
||||
@@ -23,6 +27,7 @@ type Querier interface {
|
||||
ListOrgs(ctx context.Context) ([]Org, error)
|
||||
ListUserOrgs(ctx context.Context, userID uuid.UUID) ([]ListUserOrgsRow, error)
|
||||
RemoveMembership(ctx context.Context, arg RemoveMembershipParams) (int64, error)
|
||||
SetPasswordHash(ctx context.Context, arg SetPasswordHashParams) error
|
||||
}
|
||||
|
||||
var _ Querier = (*Queries)(nil)
|
||||
Reference in new issue
Block a user