basalt / subscriptions-prisma/src / PrismaSubscriptionsStoreOptions
Interface: PrismaSubscriptionsStoreOptions
Defined in: subscriptions-prisma/src/index.ts:52
Properties
columnLimits?
> optional columnLimits?: "mysql" | ColumnLimits<{ Payment: "id" | "billableId" | "status" | "reference" | "raw"; RecurringSubscription: "billableId" | "plan" | "status" | "interval" | "pendingPaymentId" | "customer"; Subscription: "billableId" | "plan" | "period" | "status" | "gatewayRef" | "pendingPlan" | "pendingPeriod"; UsageCounter: "billableId" | "feature" | "periodKey"; WebhookEvent: "id"; }>
Defined in: subscriptions-prisma/src/index.ts:62
Refuse (throw ColumnLengthError) a value longer than its column instead of letting the database truncate it — on MySQL outside strict mode two long webhook event ids cut to the same prefix make the second look already processed, and a cut raw is no longer valid JSON. 'mysql' uses the limits of the bundled schema.mysql.prisma; pass an object for a schema of your own. Default: unchecked (PostgreSQL and SQLite store any length).