Files
member-console/internal/billing/sqlc.yaml
Christian Galo 667e9ffe24 Add plan ladders and pool provision transitions
Introduce DB migrations for ladder and pool-attachment tables and an
audit log for provision transitions. Make product_type nullable and add
lifecycle_status plus a product_kinds view. Implement Transition and
ReapplyDefaultsForPool primitives, SQLC queries/models, webhook and
Temporal workflow integration, and accompanying unit/integration tests.
2026-04-19 20:45:56 -05:00

51 lines
1.7 KiB
YAML

version: "2"
sql:
- engine: "postgresql"
schema:
- "../db/sqlc_schemas.sql"
- "migrations/"
queries: "queries/"
gen:
go:
package: "billing"
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:
billing_account: Account
billing_accounts: Account
billing_price: Price
billing_prices: Price
billing_product: Product
billing_products: Product
billing_subscription: Subscription
billing_subscriptions: Subscription
billing_subscription_item: SubscriptionItem
billing_subscription_items: SubscriptionItem
billing_subscription_change: SubscriptionChange
billing_subscription_changes: SubscriptionChange
billing_invoice: Invoice
billing_invoices: Invoice
billing_invoice_line_item: InvoiceLineItem
billing_invoice_line_items: InvoiceLineItem
billing_payment: Payment
billing_payments: Payment
billing_payment_method: PaymentMethod
billing_payment_methods: PaymentMethod
billing_plan_ladder: PlanLadder
billing_plan_ladders: PlanLadder
billing_plan_ladder_tier: PlanLadderTier
billing_plan_ladder_tiers: PlanLadderTier
billing_product_kind: ProductKind
billing_product_kinds: ProductKind
overrides:
- db_type: "uuid"
go_type: "string"
- column: "billing.product_kinds.product_kind"
go_type:
type: "sql.NullString"