Skip to content
Open
11 changes: 7 additions & 4 deletions ent/migrate/schema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

166 changes: 164 additions & 2 deletions ent/mutation.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions ent/runtime.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions ent/schema/subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,13 @@ func (Subscription) Fields() []ent.Field {
}).
Optional().
Comment("Gateway payment method ID for this subscription"),
field.String("invoice_cadence").
SchemaType(map[string]string{
"postgres": "varchar(50)",
}).
Default(string(types.InvoiceCadenceAdvance)).
GoType(types.InvoiceCadence("")).
Comment("Invoice cadence for this subscription"),
field.String("customer_timezone").
Default("UTC"),
field.String("proration_behavior").
Expand Down
Loading