version: "2" sql: - engine: "postgresql" schema: - "../db/sqlc_schemas.sql" - "../identity/migrations/" - "../organization/migrations/" - "../billing/migrations/" - "migrations/" queries: "queries/" gen: go: package: "entitlements" 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 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_plan_ladder: PlanLadder billing_plan_ladders: PlanLadder billing_plan_ladder_tier: PlanLadderTier billing_plan_ladder_tiers: PlanLadderTier entitlements_pool_provision_ladder: PoolProvisionLadder entitlements_pool_provision_ladders: PoolProvisionLadder entitlements_pool_provision_transition: PoolProvisionTransition entitlements_pool_provision_transitions: PoolProvisionTransition entitlements_grant: Grant entitlements_grants: Grant entitlements_resource_pool: ResourcePool entitlements_resource_pools: ResourcePool entitlements_resource_key: ResourceKey entitlements_resource_keys: ResourceKey entitlements_pool_assignment: PoolAssignment entitlements_pool_assignments: PoolAssignment entitlements_pool_provision: PoolProvision entitlements_pool_provisions: PoolProvision entitlements_entitlement_set: EntitlementSet entitlements_entitlement_sets: EntitlementSet entitlements_entitlement_set_rule: EntitlementSetRule entitlements_entitlement_set_rules: EntitlementSetRule entitlements_numeric_entitlement: NumericEntitlement entitlements_numeric_entitlements: NumericEntitlement entitlements_numeric_entitlement_contribution: NumericEntitlementContribution entitlements_numeric_entitlement_contributions: NumericEntitlementContribution entitlements_numeric_entitlement_usage: NumericEntitlementUsage entitlements_numeric_entitlement_usages: NumericEntitlementUsage overrides: - db_type: "uuid" go_type: "string"