Zoonk.Billing.BillingAccount (Zoonk v0.1.0-dev)
View SourceDefines the BillingAccount
schema.
This schema centralizes billing information for both users and organizations. Each billing account is associated with either a user or an organization, but not both.
Fields
Field Name | Type | Description |
---|---|---|
country_iso2 | String | The ISO 3166-1 alpha-2 code of the country for billing purposes. |
currency | String | The currency used for billing purposes. |
stripe_customer_id | String | The Stripe customer ID for payment processing. |
user_id | Integer | The ID of the Zoonk.Accounts.User this account belongs to. |
org_id | Integer | The ID of the Zoonk.Orgs.Org this account belongs to. |
inserted_at | DateTime | Timestamp when the billing account was created. |
updated_at | DateTime | Timestamp when the billing account was last updated. |
Summary
Functions
Creates a changeset for the billing account.