Identities are keyed by provider and subject. Both tables are tenant scoped; org_id_by_slug resolves a slug before sign-in without opening a broader scope. Refs #4 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
37 lines
971 B
YAML
37 lines
971 B
YAML
version: "2"
|
|
sql:
|
|
- engine: postgresql
|
|
schema: internal/migrations/sql
|
|
queries: internal/store/queries
|
|
gen:
|
|
go:
|
|
package: store
|
|
out: internal/store
|
|
sql_package: pgx/v5
|
|
emit_interface: true
|
|
emit_empty_slices: true
|
|
emit_pointers_for_null_types: true
|
|
overrides:
|
|
- db_type: uuid
|
|
go_type: github.com/google/uuid.UUID
|
|
- db_type: citext
|
|
go_type: string
|
|
- db_type: citext
|
|
nullable: true
|
|
go_type:
|
|
type: string
|
|
pointer: true
|
|
- db_type: timestamptz
|
|
go_type: time.Time
|
|
- db_type: timestamptz
|
|
nullable: true
|
|
go_type:
|
|
type: time.Time
|
|
pointer: true
|
|
- db_type: uuid
|
|
nullable: true
|
|
go_type:
|
|
import: github.com/google/uuid
|
|
type: UUID
|
|
pointer: true
|