Add default_plan_ladder_id with a forward data migration and update the runtime to resolve the ladder's rank-0 tier at use-time. Regenerate sqlc, update auto-provisioning, ReapplyDefaultsForPool, operator UI and tests; add GetTierByLadderRank and pool/provision query helpers. Add a CSP-safe confirm-action modal and wire operator actions to it. Close plan-sole-writer safety gaps and serialize IssueGrant with a FOR UPDATE pool lock to prevent ladder races.
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
version: "2"
|
|
sql:
|
|
- engine: "postgresql"
|
|
schema:
|
|
- "../db/sqlc_schemas.sql"
|
|
- "../identity/migrations/"
|
|
- "migrations/"
|
|
- "../billing/migrations/"
|
|
- "../entitlements/migrations/"
|
|
queries: "queries/"
|
|
gen:
|
|
go:
|
|
package: "organization"
|
|
out: "."
|
|
sql_package: "database/sql"
|
|
emit_json_tags: true
|
|
emit_prepared_queries: false
|
|
emit_interface: true
|
|
emit_exact_table_names: false
|
|
emit_empty_slices: true
|
|
rename:
|
|
identity_person: Person
|
|
identity_persons: Person
|
|
identity_user: User
|
|
identity_users: User
|
|
organization_organization: Organization
|
|
organization_organizations: Organization
|
|
organization_workspace: Workspace
|
|
organization_workspaces: Workspace
|
|
organization_role: Role
|
|
organization_roles: Role
|
|
organization_role_assignment: RoleAssignment
|
|
organization_role_assignments: RoleAssignment
|
|
organization_org_member: OrgMember
|
|
organization_org_members: OrgMember
|
|
organization_org_type: OrgType
|
|
organization_org_types: OrgType
|
|
overrides:
|
|
- db_type: "uuid"
|
|
go_type: "string"
|