stripe-experiment-sync 0.0.5 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +113 -42
- package/dist/index.cjs +2615 -1705
- package/dist/index.d.cts +476 -117
- package/dist/index.d.ts +476 -117
- package/dist/index.js +2612 -1704
- package/dist/migrations/0042_convert_to_jsonb_generated_columns.sql +1821 -0
- package/dist/migrations/0043_add_account_id.sql +49 -0
- package/dist/migrations/0044_make_account_id_required.sql +54 -0
- package/dist/migrations/0045_sync_status.sql +18 -0
- package/dist/migrations/0046_sync_status_per_account.sql +91 -0
- package/dist/migrations/0047_api_key_hashes.sql +12 -0
- package/dist/migrations/0048_rename_reserved_columns.sql +1253 -0
- package/dist/migrations/0049_remove_redundant_underscores_from_metadata_tables.sql +68 -0
- package/dist/migrations/0050_rename_id_to_match_stripe_api.sql +239 -0
- package/dist/migrations/0051_remove_webhook_uuid.sql +7 -0
- package/dist/migrations/0052_webhook_url_uniqueness.sql +7 -0
- package/dist/migrations/0053_sync_observability.sql +104 -0
- package/dist/migrations/0054_drop_sync_status.sql +5 -0
- package/package.json +10 -6
|
@@ -0,0 +1,1253 @@
|
|
|
1
|
+
-- Rename all reserved column names to use underscore prefix
|
|
2
|
+
-- This clearly distinguishes system-managed columns from user-accessible data
|
|
3
|
+
--
|
|
4
|
+
-- Changes:
|
|
5
|
+
-- - id -> _id (primary key for all tables)
|
|
6
|
+
-- - raw_data -> _raw_data (JSONB source of truth)
|
|
7
|
+
-- - last_synced_at -> _last_synced_at (sync timestamp)
|
|
8
|
+
-- - updated_at -> _updated_at (last update timestamp)
|
|
9
|
+
-- - _account_id remains unchanged (already has underscore prefix)
|
|
10
|
+
|
|
11
|
+
-- ============================================================================
|
|
12
|
+
-- STEP 1: RENAME BASE COLUMNS FOR ALL TABLES
|
|
13
|
+
-- ============================================================================
|
|
14
|
+
|
|
15
|
+
-- This renames id, raw_data, last_synced_at, and updated_at for all tables
|
|
16
|
+
-- PostgreSQL automatically updates primary keys, foreign keys, and indexes
|
|
17
|
+
|
|
18
|
+
-- active_entitlements
|
|
19
|
+
ALTER TABLE "stripe"."active_entitlements" RENAME COLUMN "id" TO "_id";
|
|
20
|
+
ALTER TABLE "stripe"."active_entitlements" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
21
|
+
ALTER TABLE "stripe"."active_entitlements" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
22
|
+
ALTER TABLE "stripe"."active_entitlements" RENAME COLUMN "updated_at" TO "_updated_at";
|
|
23
|
+
|
|
24
|
+
-- charges
|
|
25
|
+
ALTER TABLE "stripe"."charges" RENAME COLUMN "id" TO "_id";
|
|
26
|
+
ALTER TABLE "stripe"."charges" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
27
|
+
ALTER TABLE "stripe"."charges" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
28
|
+
ALTER TABLE "stripe"."charges" RENAME COLUMN "updated_at" TO "_updated_at";
|
|
29
|
+
|
|
30
|
+
-- checkout_session_line_items
|
|
31
|
+
ALTER TABLE "stripe"."checkout_session_line_items" RENAME COLUMN "id" TO "_id";
|
|
32
|
+
ALTER TABLE "stripe"."checkout_session_line_items" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
33
|
+
ALTER TABLE "stripe"."checkout_session_line_items" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
34
|
+
ALTER TABLE "stripe"."checkout_session_line_items" RENAME COLUMN "updated_at" TO "_updated_at";
|
|
35
|
+
|
|
36
|
+
-- checkout_sessions
|
|
37
|
+
ALTER TABLE "stripe"."checkout_sessions" RENAME COLUMN "id" TO "_id";
|
|
38
|
+
ALTER TABLE "stripe"."checkout_sessions" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
39
|
+
ALTER TABLE "stripe"."checkout_sessions" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
40
|
+
ALTER TABLE "stripe"."checkout_sessions" RENAME COLUMN "updated_at" TO "_updated_at";
|
|
41
|
+
|
|
42
|
+
-- credit_notes
|
|
43
|
+
ALTER TABLE "stripe"."credit_notes" RENAME COLUMN "id" TO "_id";
|
|
44
|
+
ALTER TABLE "stripe"."credit_notes" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
45
|
+
ALTER TABLE "stripe"."credit_notes" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
46
|
+
|
|
47
|
+
-- coupons
|
|
48
|
+
ALTER TABLE "stripe"."coupons" RENAME COLUMN "id" TO "_id";
|
|
49
|
+
ALTER TABLE "stripe"."coupons" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
50
|
+
ALTER TABLE "stripe"."coupons" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
51
|
+
ALTER TABLE "stripe"."coupons" RENAME COLUMN "updated_at" TO "_updated_at";
|
|
52
|
+
|
|
53
|
+
-- customers
|
|
54
|
+
ALTER TABLE "stripe"."customers" RENAME COLUMN "id" TO "_id";
|
|
55
|
+
ALTER TABLE "stripe"."customers" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
56
|
+
ALTER TABLE "stripe"."customers" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
57
|
+
ALTER TABLE "stripe"."customers" RENAME COLUMN "updated_at" TO "_updated_at";
|
|
58
|
+
|
|
59
|
+
-- disputes
|
|
60
|
+
ALTER TABLE "stripe"."disputes" RENAME COLUMN "id" TO "_id";
|
|
61
|
+
ALTER TABLE "stripe"."disputes" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
62
|
+
ALTER TABLE "stripe"."disputes" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
63
|
+
ALTER TABLE "stripe"."disputes" RENAME COLUMN "updated_at" TO "_updated_at";
|
|
64
|
+
|
|
65
|
+
-- early_fraud_warnings
|
|
66
|
+
ALTER TABLE "stripe"."early_fraud_warnings" RENAME COLUMN "id" TO "_id";
|
|
67
|
+
ALTER TABLE "stripe"."early_fraud_warnings" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
68
|
+
ALTER TABLE "stripe"."early_fraud_warnings" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
69
|
+
ALTER TABLE "stripe"."early_fraud_warnings" RENAME COLUMN "updated_at" TO "_updated_at";
|
|
70
|
+
|
|
71
|
+
-- events
|
|
72
|
+
ALTER TABLE "stripe"."events" RENAME COLUMN "id" TO "_id";
|
|
73
|
+
ALTER TABLE "stripe"."events" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
74
|
+
ALTER TABLE "stripe"."events" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
75
|
+
ALTER TABLE "stripe"."events" RENAME COLUMN "updated_at" TO "_updated_at";
|
|
76
|
+
|
|
77
|
+
-- features
|
|
78
|
+
ALTER TABLE "stripe"."features" RENAME COLUMN "id" TO "_id";
|
|
79
|
+
ALTER TABLE "stripe"."features" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
80
|
+
ALTER TABLE "stripe"."features" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
81
|
+
ALTER TABLE "stripe"."features" RENAME COLUMN "updated_at" TO "_updated_at";
|
|
82
|
+
|
|
83
|
+
-- invoices
|
|
84
|
+
ALTER TABLE "stripe"."invoices" RENAME COLUMN "id" TO "_id";
|
|
85
|
+
ALTER TABLE "stripe"."invoices" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
86
|
+
ALTER TABLE "stripe"."invoices" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
87
|
+
ALTER TABLE "stripe"."invoices" RENAME COLUMN "updated_at" TO "_updated_at";
|
|
88
|
+
|
|
89
|
+
-- _managed_webhooks
|
|
90
|
+
ALTER TABLE "stripe"."_managed_webhooks" RENAME COLUMN "id" TO "_id";
|
|
91
|
+
ALTER TABLE "stripe"."_managed_webhooks" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
92
|
+
ALTER TABLE "stripe"."_managed_webhooks" RENAME COLUMN "updated_at" TO "_updated_at";
|
|
93
|
+
|
|
94
|
+
-- payment_intents
|
|
95
|
+
ALTER TABLE "stripe"."payment_intents" RENAME COLUMN "id" TO "_id";
|
|
96
|
+
ALTER TABLE "stripe"."payment_intents" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
97
|
+
ALTER TABLE "stripe"."payment_intents" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
98
|
+
|
|
99
|
+
-- payment_methods
|
|
100
|
+
ALTER TABLE "stripe"."payment_methods" RENAME COLUMN "id" TO "_id";
|
|
101
|
+
ALTER TABLE "stripe"."payment_methods" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
102
|
+
ALTER TABLE "stripe"."payment_methods" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
103
|
+
|
|
104
|
+
-- payouts
|
|
105
|
+
ALTER TABLE "stripe"."payouts" RENAME COLUMN "id" TO "_id";
|
|
106
|
+
ALTER TABLE "stripe"."payouts" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
107
|
+
ALTER TABLE "stripe"."payouts" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
108
|
+
ALTER TABLE "stripe"."payouts" RENAME COLUMN "updated_at" TO "_updated_at";
|
|
109
|
+
|
|
110
|
+
-- plans
|
|
111
|
+
ALTER TABLE "stripe"."plans" RENAME COLUMN "id" TO "_id";
|
|
112
|
+
ALTER TABLE "stripe"."plans" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
113
|
+
ALTER TABLE "stripe"."plans" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
114
|
+
ALTER TABLE "stripe"."plans" RENAME COLUMN "updated_at" TO "_updated_at";
|
|
115
|
+
|
|
116
|
+
-- prices
|
|
117
|
+
ALTER TABLE "stripe"."prices" RENAME COLUMN "id" TO "_id";
|
|
118
|
+
ALTER TABLE "stripe"."prices" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
119
|
+
ALTER TABLE "stripe"."prices" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
120
|
+
ALTER TABLE "stripe"."prices" RENAME COLUMN "updated_at" TO "_updated_at";
|
|
121
|
+
|
|
122
|
+
-- products
|
|
123
|
+
ALTER TABLE "stripe"."products" RENAME COLUMN "id" TO "_id";
|
|
124
|
+
ALTER TABLE "stripe"."products" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
125
|
+
ALTER TABLE "stripe"."products" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
126
|
+
ALTER TABLE "stripe"."products" RENAME COLUMN "updated_at" TO "_updated_at";
|
|
127
|
+
|
|
128
|
+
-- refunds
|
|
129
|
+
ALTER TABLE "stripe"."refunds" RENAME COLUMN "id" TO "_id";
|
|
130
|
+
ALTER TABLE "stripe"."refunds" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
131
|
+
ALTER TABLE "stripe"."refunds" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
132
|
+
ALTER TABLE "stripe"."refunds" RENAME COLUMN "updated_at" TO "_updated_at";
|
|
133
|
+
|
|
134
|
+
-- reviews
|
|
135
|
+
ALTER TABLE "stripe"."reviews" RENAME COLUMN "id" TO "_id";
|
|
136
|
+
ALTER TABLE "stripe"."reviews" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
137
|
+
ALTER TABLE "stripe"."reviews" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
138
|
+
ALTER TABLE "stripe"."reviews" RENAME COLUMN "updated_at" TO "_updated_at";
|
|
139
|
+
|
|
140
|
+
-- setup_intents
|
|
141
|
+
ALTER TABLE "stripe"."setup_intents" RENAME COLUMN "id" TO "_id";
|
|
142
|
+
ALTER TABLE "stripe"."setup_intents" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
143
|
+
ALTER TABLE "stripe"."setup_intents" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
144
|
+
|
|
145
|
+
-- subscription_items
|
|
146
|
+
ALTER TABLE "stripe"."subscription_items" RENAME COLUMN "id" TO "_id";
|
|
147
|
+
ALTER TABLE "stripe"."subscription_items" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
148
|
+
ALTER TABLE "stripe"."subscription_items" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
149
|
+
|
|
150
|
+
-- subscription_schedules
|
|
151
|
+
ALTER TABLE "stripe"."subscription_schedules" RENAME COLUMN "id" TO "_id";
|
|
152
|
+
ALTER TABLE "stripe"."subscription_schedules" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
153
|
+
ALTER TABLE "stripe"."subscription_schedules" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
154
|
+
|
|
155
|
+
-- subscriptions
|
|
156
|
+
ALTER TABLE "stripe"."subscriptions" RENAME COLUMN "id" TO "_id";
|
|
157
|
+
ALTER TABLE "stripe"."subscriptions" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
158
|
+
ALTER TABLE "stripe"."subscriptions" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
159
|
+
ALTER TABLE "stripe"."subscriptions" RENAME COLUMN "updated_at" TO "_updated_at";
|
|
160
|
+
|
|
161
|
+
-- tax_ids
|
|
162
|
+
ALTER TABLE "stripe"."tax_ids" RENAME COLUMN "id" TO "_id";
|
|
163
|
+
ALTER TABLE "stripe"."tax_ids" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
164
|
+
ALTER TABLE "stripe"."tax_ids" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
165
|
+
|
|
166
|
+
-- Metadata Tables
|
|
167
|
+
|
|
168
|
+
-- _sync_status
|
|
169
|
+
ALTER TABLE "stripe"."_sync_status" RENAME COLUMN "id" TO "_id";
|
|
170
|
+
ALTER TABLE "stripe"."_sync_status" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
171
|
+
ALTER TABLE "stripe"."_sync_status" RENAME COLUMN "updated_at" TO "_updated_at";
|
|
172
|
+
|
|
173
|
+
-- accounts
|
|
174
|
+
ALTER TABLE "stripe"."accounts" RENAME COLUMN "id" TO "_id";
|
|
175
|
+
ALTER TABLE "stripe"."accounts" RENAME COLUMN "raw_data" TO "_raw_data";
|
|
176
|
+
ALTER TABLE "stripe"."accounts" RENAME COLUMN "last_synced_at" TO "_last_synced_at";
|
|
177
|
+
ALTER TABLE "stripe"."accounts" RENAME COLUMN "updated_at" TO "_updated_at";
|
|
178
|
+
|
|
179
|
+
-- ============================================================================
|
|
180
|
+
-- STEP 1.5: UPDATE TRIGGER FUNCTION TO USE NEW COLUMN NAME
|
|
181
|
+
-- ============================================================================
|
|
182
|
+
|
|
183
|
+
-- Now that all columns are renamed, update the trigger function to reference _updated_at
|
|
184
|
+
CREATE OR REPLACE FUNCTION set_updated_at() RETURNS trigger
|
|
185
|
+
LANGUAGE plpgsql
|
|
186
|
+
AS $$
|
|
187
|
+
begin
|
|
188
|
+
new._updated_at = now();
|
|
189
|
+
return NEW;
|
|
190
|
+
end;
|
|
191
|
+
$$;
|
|
192
|
+
|
|
193
|
+
-- ============================================================================
|
|
194
|
+
-- STEP 2: RECREATE GENERATED COLUMNS TO REFERENCE _raw_data
|
|
195
|
+
-- ============================================================================
|
|
196
|
+
|
|
197
|
+
-- All generated columns must be dropped and recreated to reference the new
|
|
198
|
+
-- _raw_data column name instead of raw_data
|
|
199
|
+
|
|
200
|
+
ALTER TABLE "stripe"."active_entitlements" DROP COLUMN IF EXISTS "object";
|
|
201
|
+
ALTER TABLE "stripe"."active_entitlements" DROP COLUMN IF EXISTS "livemode";
|
|
202
|
+
ALTER TABLE "stripe"."active_entitlements" DROP COLUMN IF EXISTS "feature";
|
|
203
|
+
ALTER TABLE "stripe"."active_entitlements" DROP COLUMN IF EXISTS "customer";
|
|
204
|
+
ALTER TABLE "stripe"."active_entitlements" DROP COLUMN IF EXISTS "lookup_key";
|
|
205
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "object";
|
|
206
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "paid";
|
|
207
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "order";
|
|
208
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "amount";
|
|
209
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "review";
|
|
210
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "source";
|
|
211
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "status";
|
|
212
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "created";
|
|
213
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "dispute";
|
|
214
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "invoice";
|
|
215
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "outcome";
|
|
216
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "refunds";
|
|
217
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "updated";
|
|
218
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "captured";
|
|
219
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "currency";
|
|
220
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "customer";
|
|
221
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "livemode";
|
|
222
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "metadata";
|
|
223
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "refunded";
|
|
224
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "shipping";
|
|
225
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "application";
|
|
226
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "description";
|
|
227
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "destination";
|
|
228
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "failure_code";
|
|
229
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "on_behalf_of";
|
|
230
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "fraud_details";
|
|
231
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "receipt_email";
|
|
232
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "payment_intent";
|
|
233
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "receipt_number";
|
|
234
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "transfer_group";
|
|
235
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "amount_refunded";
|
|
236
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "application_fee";
|
|
237
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "failure_message";
|
|
238
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "source_transfer";
|
|
239
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "balance_transaction";
|
|
240
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "statement_descriptor";
|
|
241
|
+
ALTER TABLE "stripe"."charges" DROP COLUMN IF EXISTS "payment_method_details";
|
|
242
|
+
ALTER TABLE "stripe"."checkout_session_line_items" DROP COLUMN IF EXISTS "object";
|
|
243
|
+
ALTER TABLE "stripe"."checkout_session_line_items" DROP COLUMN IF EXISTS "amount_discount";
|
|
244
|
+
ALTER TABLE "stripe"."checkout_session_line_items" DROP COLUMN IF EXISTS "amount_subtotal";
|
|
245
|
+
ALTER TABLE "stripe"."checkout_session_line_items" DROP COLUMN IF EXISTS "amount_tax";
|
|
246
|
+
ALTER TABLE "stripe"."checkout_session_line_items" DROP COLUMN IF EXISTS "amount_total";
|
|
247
|
+
ALTER TABLE "stripe"."checkout_session_line_items" DROP COLUMN IF EXISTS "currency";
|
|
248
|
+
ALTER TABLE "stripe"."checkout_session_line_items" DROP COLUMN IF EXISTS "description";
|
|
249
|
+
ALTER TABLE "stripe"."checkout_session_line_items" DROP COLUMN IF EXISTS "price";
|
|
250
|
+
ALTER TABLE "stripe"."checkout_session_line_items" DROP COLUMN IF EXISTS "quantity";
|
|
251
|
+
ALTER TABLE "stripe"."checkout_session_line_items" DROP COLUMN IF EXISTS "checkout_session";
|
|
252
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "object";
|
|
253
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "adaptive_pricing";
|
|
254
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "after_expiration";
|
|
255
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "allow_promotion_codes";
|
|
256
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "amount_subtotal";
|
|
257
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "amount_total";
|
|
258
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "automatic_tax";
|
|
259
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "billing_address_collection";
|
|
260
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "cancel_url";
|
|
261
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "client_reference_id";
|
|
262
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "client_secret";
|
|
263
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "collected_information";
|
|
264
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "consent";
|
|
265
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "consent_collection";
|
|
266
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "created";
|
|
267
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "currency";
|
|
268
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "currency_conversion";
|
|
269
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "custom_fields";
|
|
270
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "custom_text";
|
|
271
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "customer";
|
|
272
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "customer_creation";
|
|
273
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "customer_details";
|
|
274
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "customer_email";
|
|
275
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "discounts";
|
|
276
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "expires_at";
|
|
277
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "invoice";
|
|
278
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "invoice_creation";
|
|
279
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "livemode";
|
|
280
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "locale";
|
|
281
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "metadata";
|
|
282
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "mode";
|
|
283
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "optional_items";
|
|
284
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "payment_intent";
|
|
285
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "payment_link";
|
|
286
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "payment_method_collection";
|
|
287
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "payment_method_configuration_details";
|
|
288
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "payment_method_options";
|
|
289
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "payment_method_types";
|
|
290
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "payment_status";
|
|
291
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "permissions";
|
|
292
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "phone_number_collection";
|
|
293
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "presentment_details";
|
|
294
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "recovered_from";
|
|
295
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "redirect_on_completion";
|
|
296
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "return_url";
|
|
297
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "saved_payment_method_options";
|
|
298
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "setup_intent";
|
|
299
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "shipping_address_collection";
|
|
300
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "shipping_cost";
|
|
301
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "shipping_details";
|
|
302
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "shipping_options";
|
|
303
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "status";
|
|
304
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "submit_type";
|
|
305
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "subscription";
|
|
306
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "success_url";
|
|
307
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "tax_id_collection";
|
|
308
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "total_details";
|
|
309
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "ui_mode";
|
|
310
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "url";
|
|
311
|
+
ALTER TABLE "stripe"."checkout_sessions" DROP COLUMN IF EXISTS "wallet_options";
|
|
312
|
+
ALTER TABLE "stripe"."coupons" DROP COLUMN IF EXISTS "object";
|
|
313
|
+
ALTER TABLE "stripe"."coupons" DROP COLUMN IF EXISTS "name";
|
|
314
|
+
ALTER TABLE "stripe"."coupons" DROP COLUMN IF EXISTS "valid";
|
|
315
|
+
ALTER TABLE "stripe"."coupons" DROP COLUMN IF EXISTS "created";
|
|
316
|
+
ALTER TABLE "stripe"."coupons" DROP COLUMN IF EXISTS "updated";
|
|
317
|
+
ALTER TABLE "stripe"."coupons" DROP COLUMN IF EXISTS "currency";
|
|
318
|
+
ALTER TABLE "stripe"."coupons" DROP COLUMN IF EXISTS "duration";
|
|
319
|
+
ALTER TABLE "stripe"."coupons" DROP COLUMN IF EXISTS "livemode";
|
|
320
|
+
ALTER TABLE "stripe"."coupons" DROP COLUMN IF EXISTS "metadata";
|
|
321
|
+
ALTER TABLE "stripe"."coupons" DROP COLUMN IF EXISTS "redeem_by";
|
|
322
|
+
ALTER TABLE "stripe"."coupons" DROP COLUMN IF EXISTS "amount_off";
|
|
323
|
+
ALTER TABLE "stripe"."coupons" DROP COLUMN IF EXISTS "percent_off";
|
|
324
|
+
ALTER TABLE "stripe"."coupons" DROP COLUMN IF EXISTS "times_redeemed";
|
|
325
|
+
ALTER TABLE "stripe"."coupons" DROP COLUMN IF EXISTS "max_redemptions";
|
|
326
|
+
ALTER TABLE "stripe"."coupons" DROP COLUMN IF EXISTS "duration_in_months";
|
|
327
|
+
ALTER TABLE "stripe"."coupons" DROP COLUMN IF EXISTS "percent_off_precise";
|
|
328
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "object";
|
|
329
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "amount";
|
|
330
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "amount_shipping";
|
|
331
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "created";
|
|
332
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "currency";
|
|
333
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "customer";
|
|
334
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "customer_balance_transaction";
|
|
335
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "discount_amount";
|
|
336
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "discount_amounts";
|
|
337
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "invoice";
|
|
338
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "lines";
|
|
339
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "livemode";
|
|
340
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "memo";
|
|
341
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "metadata";
|
|
342
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "number";
|
|
343
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "out_of_band_amount";
|
|
344
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "pdf";
|
|
345
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "reason";
|
|
346
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "refund";
|
|
347
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "shipping_cost";
|
|
348
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "status";
|
|
349
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "subtotal";
|
|
350
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "subtotal_excluding_tax";
|
|
351
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "tax_amounts";
|
|
352
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "total";
|
|
353
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "total_excluding_tax";
|
|
354
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "type";
|
|
355
|
+
ALTER TABLE "stripe"."credit_notes" DROP COLUMN IF EXISTS "voided_at";
|
|
356
|
+
ALTER TABLE "stripe"."customers" DROP COLUMN IF EXISTS "object";
|
|
357
|
+
ALTER TABLE "stripe"."customers" DROP COLUMN IF EXISTS "address";
|
|
358
|
+
ALTER TABLE "stripe"."customers" DROP COLUMN IF EXISTS "description";
|
|
359
|
+
ALTER TABLE "stripe"."customers" DROP COLUMN IF EXISTS "email";
|
|
360
|
+
ALTER TABLE "stripe"."customers" DROP COLUMN IF EXISTS "metadata";
|
|
361
|
+
ALTER TABLE "stripe"."customers" DROP COLUMN IF EXISTS "name";
|
|
362
|
+
ALTER TABLE "stripe"."customers" DROP COLUMN IF EXISTS "phone";
|
|
363
|
+
ALTER TABLE "stripe"."customers" DROP COLUMN IF EXISTS "shipping";
|
|
364
|
+
ALTER TABLE "stripe"."customers" DROP COLUMN IF EXISTS "balance";
|
|
365
|
+
ALTER TABLE "stripe"."customers" DROP COLUMN IF EXISTS "created";
|
|
366
|
+
ALTER TABLE "stripe"."customers" DROP COLUMN IF EXISTS "currency";
|
|
367
|
+
ALTER TABLE "stripe"."customers" DROP COLUMN IF EXISTS "default_source";
|
|
368
|
+
ALTER TABLE "stripe"."customers" DROP COLUMN IF EXISTS "delinquent";
|
|
369
|
+
ALTER TABLE "stripe"."customers" DROP COLUMN IF EXISTS "discount";
|
|
370
|
+
ALTER TABLE "stripe"."customers" DROP COLUMN IF EXISTS "invoice_prefix";
|
|
371
|
+
ALTER TABLE "stripe"."customers" DROP COLUMN IF EXISTS "invoice_settings";
|
|
372
|
+
ALTER TABLE "stripe"."customers" DROP COLUMN IF EXISTS "livemode";
|
|
373
|
+
ALTER TABLE "stripe"."customers" DROP COLUMN IF EXISTS "next_invoice_sequence";
|
|
374
|
+
ALTER TABLE "stripe"."customers" DROP COLUMN IF EXISTS "preferred_locales";
|
|
375
|
+
ALTER TABLE "stripe"."customers" DROP COLUMN IF EXISTS "tax_exempt";
|
|
376
|
+
ALTER TABLE "stripe"."customers" DROP COLUMN IF EXISTS "deleted";
|
|
377
|
+
ALTER TABLE "stripe"."disputes" DROP COLUMN IF EXISTS "object";
|
|
378
|
+
ALTER TABLE "stripe"."disputes" DROP COLUMN IF EXISTS "amount";
|
|
379
|
+
ALTER TABLE "stripe"."disputes" DROP COLUMN IF EXISTS "charge";
|
|
380
|
+
ALTER TABLE "stripe"."disputes" DROP COLUMN IF EXISTS "reason";
|
|
381
|
+
ALTER TABLE "stripe"."disputes" DROP COLUMN IF EXISTS "status";
|
|
382
|
+
ALTER TABLE "stripe"."disputes" DROP COLUMN IF EXISTS "created";
|
|
383
|
+
ALTER TABLE "stripe"."disputes" DROP COLUMN IF EXISTS "updated";
|
|
384
|
+
ALTER TABLE "stripe"."disputes" DROP COLUMN IF EXISTS "currency";
|
|
385
|
+
ALTER TABLE "stripe"."disputes" DROP COLUMN IF EXISTS "evidence";
|
|
386
|
+
ALTER TABLE "stripe"."disputes" DROP COLUMN IF EXISTS "livemode";
|
|
387
|
+
ALTER TABLE "stripe"."disputes" DROP COLUMN IF EXISTS "metadata";
|
|
388
|
+
ALTER TABLE "stripe"."disputes" DROP COLUMN IF EXISTS "evidence_details";
|
|
389
|
+
ALTER TABLE "stripe"."disputes" DROP COLUMN IF EXISTS "balance_transactions";
|
|
390
|
+
ALTER TABLE "stripe"."disputes" DROP COLUMN IF EXISTS "is_charge_refundable";
|
|
391
|
+
ALTER TABLE "stripe"."disputes" DROP COLUMN IF EXISTS "payment_intent";
|
|
392
|
+
ALTER TABLE "stripe"."early_fraud_warnings" DROP COLUMN IF EXISTS "object";
|
|
393
|
+
ALTER TABLE "stripe"."early_fraud_warnings" DROP COLUMN IF EXISTS "actionable";
|
|
394
|
+
ALTER TABLE "stripe"."early_fraud_warnings" DROP COLUMN IF EXISTS "charge";
|
|
395
|
+
ALTER TABLE "stripe"."early_fraud_warnings" DROP COLUMN IF EXISTS "created";
|
|
396
|
+
ALTER TABLE "stripe"."early_fraud_warnings" DROP COLUMN IF EXISTS "fraud_type";
|
|
397
|
+
ALTER TABLE "stripe"."early_fraud_warnings" DROP COLUMN IF EXISTS "livemode";
|
|
398
|
+
ALTER TABLE "stripe"."early_fraud_warnings" DROP COLUMN IF EXISTS "payment_intent";
|
|
399
|
+
ALTER TABLE "stripe"."events" DROP COLUMN IF EXISTS "object";
|
|
400
|
+
ALTER TABLE "stripe"."events" DROP COLUMN IF EXISTS "data";
|
|
401
|
+
ALTER TABLE "stripe"."events" DROP COLUMN IF EXISTS "type";
|
|
402
|
+
ALTER TABLE "stripe"."events" DROP COLUMN IF EXISTS "created";
|
|
403
|
+
ALTER TABLE "stripe"."events" DROP COLUMN IF EXISTS "request";
|
|
404
|
+
ALTER TABLE "stripe"."events" DROP COLUMN IF EXISTS "updated";
|
|
405
|
+
ALTER TABLE "stripe"."events" DROP COLUMN IF EXISTS "livemode";
|
|
406
|
+
ALTER TABLE "stripe"."events" DROP COLUMN IF EXISTS "api_version";
|
|
407
|
+
ALTER TABLE "stripe"."events" DROP COLUMN IF EXISTS "pending_webhooks";
|
|
408
|
+
ALTER TABLE "stripe"."features" DROP COLUMN IF EXISTS "object";
|
|
409
|
+
ALTER TABLE "stripe"."features" DROP COLUMN IF EXISTS "livemode";
|
|
410
|
+
ALTER TABLE "stripe"."features" DROP COLUMN IF EXISTS "name";
|
|
411
|
+
ALTER TABLE "stripe"."features" DROP COLUMN IF EXISTS "lookup_key";
|
|
412
|
+
ALTER TABLE "stripe"."features" DROP COLUMN IF EXISTS "active";
|
|
413
|
+
ALTER TABLE "stripe"."features" DROP COLUMN IF EXISTS "metadata";
|
|
414
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "object";
|
|
415
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "auto_advance";
|
|
416
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "collection_method";
|
|
417
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "currency";
|
|
418
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "description";
|
|
419
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "hosted_invoice_url";
|
|
420
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "lines";
|
|
421
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "period_end";
|
|
422
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "period_start";
|
|
423
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "status";
|
|
424
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "total";
|
|
425
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "account_country";
|
|
426
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "account_name";
|
|
427
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "account_tax_ids";
|
|
428
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "amount_due";
|
|
429
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "amount_paid";
|
|
430
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "amount_remaining";
|
|
431
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "application_fee_amount";
|
|
432
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "attempt_count";
|
|
433
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "attempted";
|
|
434
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "billing_reason";
|
|
435
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "created";
|
|
436
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "custom_fields";
|
|
437
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "customer_address";
|
|
438
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "customer_email";
|
|
439
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "customer_name";
|
|
440
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "customer_phone";
|
|
441
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "customer_shipping";
|
|
442
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "customer_tax_exempt";
|
|
443
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "customer_tax_ids";
|
|
444
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "default_tax_rates";
|
|
445
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "discount";
|
|
446
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "discounts";
|
|
447
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "due_date";
|
|
448
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "ending_balance";
|
|
449
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "footer";
|
|
450
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "invoice_pdf";
|
|
451
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "last_finalization_error";
|
|
452
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "livemode";
|
|
453
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "next_payment_attempt";
|
|
454
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "number";
|
|
455
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "paid";
|
|
456
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "payment_settings";
|
|
457
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "post_payment_credit_notes_amount";
|
|
458
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "pre_payment_credit_notes_amount";
|
|
459
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "receipt_number";
|
|
460
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "starting_balance";
|
|
461
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "statement_descriptor";
|
|
462
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "status_transitions";
|
|
463
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "subtotal";
|
|
464
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "tax";
|
|
465
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "total_discount_amounts";
|
|
466
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "total_tax_amounts";
|
|
467
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "transfer_data";
|
|
468
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "webhooks_delivered_at";
|
|
469
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "customer";
|
|
470
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "subscription";
|
|
471
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "payment_intent";
|
|
472
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "default_payment_method";
|
|
473
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "default_source";
|
|
474
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "on_behalf_of";
|
|
475
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "charge";
|
|
476
|
+
ALTER TABLE "stripe"."invoices" DROP COLUMN IF EXISTS "metadata";
|
|
477
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "object";
|
|
478
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "amount";
|
|
479
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "amount_capturable";
|
|
480
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "amount_details";
|
|
481
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "amount_received";
|
|
482
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "application";
|
|
483
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "application_fee_amount";
|
|
484
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "automatic_payment_methods";
|
|
485
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "canceled_at";
|
|
486
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "cancellation_reason";
|
|
487
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "capture_method";
|
|
488
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "client_secret";
|
|
489
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "confirmation_method";
|
|
490
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "created";
|
|
491
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "currency";
|
|
492
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "customer";
|
|
493
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "description";
|
|
494
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "invoice";
|
|
495
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "last_payment_error";
|
|
496
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "livemode";
|
|
497
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "metadata";
|
|
498
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "next_action";
|
|
499
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "on_behalf_of";
|
|
500
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "payment_method";
|
|
501
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "payment_method_options";
|
|
502
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "payment_method_types";
|
|
503
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "processing";
|
|
504
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "receipt_email";
|
|
505
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "review";
|
|
506
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "setup_future_usage";
|
|
507
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "shipping";
|
|
508
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "statement_descriptor";
|
|
509
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "statement_descriptor_suffix";
|
|
510
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "status";
|
|
511
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "transfer_data";
|
|
512
|
+
ALTER TABLE "stripe"."payment_intents" DROP COLUMN IF EXISTS "transfer_group";
|
|
513
|
+
ALTER TABLE "stripe"."payment_methods" DROP COLUMN IF EXISTS "object";
|
|
514
|
+
ALTER TABLE "stripe"."payment_methods" DROP COLUMN IF EXISTS "created";
|
|
515
|
+
ALTER TABLE "stripe"."payment_methods" DROP COLUMN IF EXISTS "customer";
|
|
516
|
+
ALTER TABLE "stripe"."payment_methods" DROP COLUMN IF EXISTS "type";
|
|
517
|
+
ALTER TABLE "stripe"."payment_methods" DROP COLUMN IF EXISTS "billing_details";
|
|
518
|
+
ALTER TABLE "stripe"."payment_methods" DROP COLUMN IF EXISTS "metadata";
|
|
519
|
+
ALTER TABLE "stripe"."payment_methods" DROP COLUMN IF EXISTS "card";
|
|
520
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "object";
|
|
521
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "date";
|
|
522
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "type";
|
|
523
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "amount";
|
|
524
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "method";
|
|
525
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "status";
|
|
526
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "created";
|
|
527
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "updated";
|
|
528
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "currency";
|
|
529
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "livemode";
|
|
530
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "metadata";
|
|
531
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "automatic";
|
|
532
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "recipient";
|
|
533
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "description";
|
|
534
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "destination";
|
|
535
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "source_type";
|
|
536
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "arrival_date";
|
|
537
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "bank_account";
|
|
538
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "failure_code";
|
|
539
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "transfer_group";
|
|
540
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "amount_reversed";
|
|
541
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "failure_message";
|
|
542
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "source_transaction";
|
|
543
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "balance_transaction";
|
|
544
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "statement_descriptor";
|
|
545
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "statement_description";
|
|
546
|
+
ALTER TABLE "stripe"."payouts" DROP COLUMN IF EXISTS "failure_balance_transaction";
|
|
547
|
+
ALTER TABLE "stripe"."plans" DROP COLUMN IF EXISTS "object";
|
|
548
|
+
ALTER TABLE "stripe"."plans" DROP COLUMN IF EXISTS "name";
|
|
549
|
+
ALTER TABLE "stripe"."plans" DROP COLUMN IF EXISTS "tiers";
|
|
550
|
+
ALTER TABLE "stripe"."plans" DROP COLUMN IF EXISTS "active";
|
|
551
|
+
ALTER TABLE "stripe"."plans" DROP COLUMN IF EXISTS "amount";
|
|
552
|
+
ALTER TABLE "stripe"."plans" DROP COLUMN IF EXISTS "created";
|
|
553
|
+
ALTER TABLE "stripe"."plans" DROP COLUMN IF EXISTS "product";
|
|
554
|
+
ALTER TABLE "stripe"."plans" DROP COLUMN IF EXISTS "updated";
|
|
555
|
+
ALTER TABLE "stripe"."plans" DROP COLUMN IF EXISTS "currency";
|
|
556
|
+
ALTER TABLE "stripe"."plans" DROP COLUMN IF EXISTS "interval";
|
|
557
|
+
ALTER TABLE "stripe"."plans" DROP COLUMN IF EXISTS "livemode";
|
|
558
|
+
ALTER TABLE "stripe"."plans" DROP COLUMN IF EXISTS "metadata";
|
|
559
|
+
ALTER TABLE "stripe"."plans" DROP COLUMN IF EXISTS "nickname";
|
|
560
|
+
ALTER TABLE "stripe"."plans" DROP COLUMN IF EXISTS "tiers_mode";
|
|
561
|
+
ALTER TABLE "stripe"."plans" DROP COLUMN IF EXISTS "usage_type";
|
|
562
|
+
ALTER TABLE "stripe"."plans" DROP COLUMN IF EXISTS "billing_scheme";
|
|
563
|
+
ALTER TABLE "stripe"."plans" DROP COLUMN IF EXISTS "interval_count";
|
|
564
|
+
ALTER TABLE "stripe"."plans" DROP COLUMN IF EXISTS "aggregate_usage";
|
|
565
|
+
ALTER TABLE "stripe"."plans" DROP COLUMN IF EXISTS "transform_usage";
|
|
566
|
+
ALTER TABLE "stripe"."plans" DROP COLUMN IF EXISTS "trial_period_days";
|
|
567
|
+
ALTER TABLE "stripe"."plans" DROP COLUMN IF EXISTS "statement_descriptor";
|
|
568
|
+
ALTER TABLE "stripe"."plans" DROP COLUMN IF EXISTS "statement_description";
|
|
569
|
+
ALTER TABLE "stripe"."prices" DROP COLUMN IF EXISTS "object";
|
|
570
|
+
ALTER TABLE "stripe"."prices" DROP COLUMN IF EXISTS "active";
|
|
571
|
+
ALTER TABLE "stripe"."prices" DROP COLUMN IF EXISTS "currency";
|
|
572
|
+
ALTER TABLE "stripe"."prices" DROP COLUMN IF EXISTS "metadata";
|
|
573
|
+
ALTER TABLE "stripe"."prices" DROP COLUMN IF EXISTS "nickname";
|
|
574
|
+
ALTER TABLE "stripe"."prices" DROP COLUMN IF EXISTS "recurring";
|
|
575
|
+
ALTER TABLE "stripe"."prices" DROP COLUMN IF EXISTS "type";
|
|
576
|
+
ALTER TABLE "stripe"."prices" DROP COLUMN IF EXISTS "unit_amount";
|
|
577
|
+
ALTER TABLE "stripe"."prices" DROP COLUMN IF EXISTS "billing_scheme";
|
|
578
|
+
ALTER TABLE "stripe"."prices" DROP COLUMN IF EXISTS "created";
|
|
579
|
+
ALTER TABLE "stripe"."prices" DROP COLUMN IF EXISTS "livemode";
|
|
580
|
+
ALTER TABLE "stripe"."prices" DROP COLUMN IF EXISTS "lookup_key";
|
|
581
|
+
ALTER TABLE "stripe"."prices" DROP COLUMN IF EXISTS "tiers_mode";
|
|
582
|
+
ALTER TABLE "stripe"."prices" DROP COLUMN IF EXISTS "transform_quantity";
|
|
583
|
+
ALTER TABLE "stripe"."prices" DROP COLUMN IF EXISTS "unit_amount_decimal";
|
|
584
|
+
ALTER TABLE "stripe"."prices" DROP COLUMN IF EXISTS "product";
|
|
585
|
+
ALTER TABLE "stripe"."products" DROP COLUMN IF EXISTS "object";
|
|
586
|
+
ALTER TABLE "stripe"."products" DROP COLUMN IF EXISTS "active";
|
|
587
|
+
ALTER TABLE "stripe"."products" DROP COLUMN IF EXISTS "default_price";
|
|
588
|
+
ALTER TABLE "stripe"."products" DROP COLUMN IF EXISTS "description";
|
|
589
|
+
ALTER TABLE "stripe"."products" DROP COLUMN IF EXISTS "metadata";
|
|
590
|
+
ALTER TABLE "stripe"."products" DROP COLUMN IF EXISTS "name";
|
|
591
|
+
ALTER TABLE "stripe"."products" DROP COLUMN IF EXISTS "created";
|
|
592
|
+
ALTER TABLE "stripe"."products" DROP COLUMN IF EXISTS "images";
|
|
593
|
+
ALTER TABLE "stripe"."products" DROP COLUMN IF EXISTS "marketing_features";
|
|
594
|
+
ALTER TABLE "stripe"."products" DROP COLUMN IF EXISTS "livemode";
|
|
595
|
+
ALTER TABLE "stripe"."products" DROP COLUMN IF EXISTS "package_dimensions";
|
|
596
|
+
ALTER TABLE "stripe"."products" DROP COLUMN IF EXISTS "shippable";
|
|
597
|
+
ALTER TABLE "stripe"."products" DROP COLUMN IF EXISTS "statement_descriptor";
|
|
598
|
+
ALTER TABLE "stripe"."products" DROP COLUMN IF EXISTS "unit_label";
|
|
599
|
+
ALTER TABLE "stripe"."products" DROP COLUMN IF EXISTS "updated";
|
|
600
|
+
ALTER TABLE "stripe"."products" DROP COLUMN IF EXISTS "url";
|
|
601
|
+
ALTER TABLE "stripe"."refunds" DROP COLUMN IF EXISTS "object";
|
|
602
|
+
ALTER TABLE "stripe"."refunds" DROP COLUMN IF EXISTS "amount";
|
|
603
|
+
ALTER TABLE "stripe"."refunds" DROP COLUMN IF EXISTS "balance_transaction";
|
|
604
|
+
ALTER TABLE "stripe"."refunds" DROP COLUMN IF EXISTS "charge";
|
|
605
|
+
ALTER TABLE "stripe"."refunds" DROP COLUMN IF EXISTS "created";
|
|
606
|
+
ALTER TABLE "stripe"."refunds" DROP COLUMN IF EXISTS "currency";
|
|
607
|
+
ALTER TABLE "stripe"."refunds" DROP COLUMN IF EXISTS "destination_details";
|
|
608
|
+
ALTER TABLE "stripe"."refunds" DROP COLUMN IF EXISTS "metadata";
|
|
609
|
+
ALTER TABLE "stripe"."refunds" DROP COLUMN IF EXISTS "payment_intent";
|
|
610
|
+
ALTER TABLE "stripe"."refunds" DROP COLUMN IF EXISTS "reason";
|
|
611
|
+
ALTER TABLE "stripe"."refunds" DROP COLUMN IF EXISTS "receipt_number";
|
|
612
|
+
ALTER TABLE "stripe"."refunds" DROP COLUMN IF EXISTS "source_transfer_reversal";
|
|
613
|
+
ALTER TABLE "stripe"."refunds" DROP COLUMN IF EXISTS "status";
|
|
614
|
+
ALTER TABLE "stripe"."refunds" DROP COLUMN IF EXISTS "transfer_reversal";
|
|
615
|
+
ALTER TABLE "stripe"."reviews" DROP COLUMN IF EXISTS "object";
|
|
616
|
+
ALTER TABLE "stripe"."reviews" DROP COLUMN IF EXISTS "billing_zip";
|
|
617
|
+
ALTER TABLE "stripe"."reviews" DROP COLUMN IF EXISTS "charge";
|
|
618
|
+
ALTER TABLE "stripe"."reviews" DROP COLUMN IF EXISTS "created";
|
|
619
|
+
ALTER TABLE "stripe"."reviews" DROP COLUMN IF EXISTS "closed_reason";
|
|
620
|
+
ALTER TABLE "stripe"."reviews" DROP COLUMN IF EXISTS "livemode";
|
|
621
|
+
ALTER TABLE "stripe"."reviews" DROP COLUMN IF EXISTS "ip_address";
|
|
622
|
+
ALTER TABLE "stripe"."reviews" DROP COLUMN IF EXISTS "ip_address_location";
|
|
623
|
+
ALTER TABLE "stripe"."reviews" DROP COLUMN IF EXISTS "open";
|
|
624
|
+
ALTER TABLE "stripe"."reviews" DROP COLUMN IF EXISTS "opened_reason";
|
|
625
|
+
ALTER TABLE "stripe"."reviews" DROP COLUMN IF EXISTS "payment_intent";
|
|
626
|
+
ALTER TABLE "stripe"."reviews" DROP COLUMN IF EXISTS "reason";
|
|
627
|
+
ALTER TABLE "stripe"."reviews" DROP COLUMN IF EXISTS "session";
|
|
628
|
+
ALTER TABLE "stripe"."setup_intents" DROP COLUMN IF EXISTS "object";
|
|
629
|
+
ALTER TABLE "stripe"."setup_intents" DROP COLUMN IF EXISTS "created";
|
|
630
|
+
ALTER TABLE "stripe"."setup_intents" DROP COLUMN IF EXISTS "customer";
|
|
631
|
+
ALTER TABLE "stripe"."setup_intents" DROP COLUMN IF EXISTS "description";
|
|
632
|
+
ALTER TABLE "stripe"."setup_intents" DROP COLUMN IF EXISTS "payment_method";
|
|
633
|
+
ALTER TABLE "stripe"."setup_intents" DROP COLUMN IF EXISTS "status";
|
|
634
|
+
ALTER TABLE "stripe"."setup_intents" DROP COLUMN IF EXISTS "usage";
|
|
635
|
+
ALTER TABLE "stripe"."setup_intents" DROP COLUMN IF EXISTS "cancellation_reason";
|
|
636
|
+
ALTER TABLE "stripe"."setup_intents" DROP COLUMN IF EXISTS "latest_attempt";
|
|
637
|
+
ALTER TABLE "stripe"."setup_intents" DROP COLUMN IF EXISTS "mandate";
|
|
638
|
+
ALTER TABLE "stripe"."setup_intents" DROP COLUMN IF EXISTS "single_use_mandate";
|
|
639
|
+
ALTER TABLE "stripe"."setup_intents" DROP COLUMN IF EXISTS "on_behalf_of";
|
|
640
|
+
ALTER TABLE "stripe"."subscription_items" DROP COLUMN IF EXISTS "object";
|
|
641
|
+
ALTER TABLE "stripe"."subscription_items" DROP COLUMN IF EXISTS "billing_thresholds";
|
|
642
|
+
ALTER TABLE "stripe"."subscription_items" DROP COLUMN IF EXISTS "created";
|
|
643
|
+
ALTER TABLE "stripe"."subscription_items" DROP COLUMN IF EXISTS "deleted";
|
|
644
|
+
ALTER TABLE "stripe"."subscription_items" DROP COLUMN IF EXISTS "metadata";
|
|
645
|
+
ALTER TABLE "stripe"."subscription_items" DROP COLUMN IF EXISTS "quantity";
|
|
646
|
+
ALTER TABLE "stripe"."subscription_items" DROP COLUMN IF EXISTS "price";
|
|
647
|
+
ALTER TABLE "stripe"."subscription_items" DROP COLUMN IF EXISTS "subscription";
|
|
648
|
+
ALTER TABLE "stripe"."subscription_items" DROP COLUMN IF EXISTS "tax_rates";
|
|
649
|
+
ALTER TABLE "stripe"."subscription_items" DROP COLUMN IF EXISTS "current_period_end";
|
|
650
|
+
ALTER TABLE "stripe"."subscription_items" DROP COLUMN IF EXISTS "current_period_start";
|
|
651
|
+
ALTER TABLE "stripe"."subscription_schedules" DROP COLUMN IF EXISTS "object";
|
|
652
|
+
ALTER TABLE "stripe"."subscription_schedules" DROP COLUMN IF EXISTS "application";
|
|
653
|
+
ALTER TABLE "stripe"."subscription_schedules" DROP COLUMN IF EXISTS "canceled_at";
|
|
654
|
+
ALTER TABLE "stripe"."subscription_schedules" DROP COLUMN IF EXISTS "completed_at";
|
|
655
|
+
ALTER TABLE "stripe"."subscription_schedules" DROP COLUMN IF EXISTS "created";
|
|
656
|
+
ALTER TABLE "stripe"."subscription_schedules" DROP COLUMN IF EXISTS "current_phase";
|
|
657
|
+
ALTER TABLE "stripe"."subscription_schedules" DROP COLUMN IF EXISTS "customer";
|
|
658
|
+
ALTER TABLE "stripe"."subscription_schedules" DROP COLUMN IF EXISTS "default_settings";
|
|
659
|
+
ALTER TABLE "stripe"."subscription_schedules" DROP COLUMN IF EXISTS "end_behavior";
|
|
660
|
+
ALTER TABLE "stripe"."subscription_schedules" DROP COLUMN IF EXISTS "livemode";
|
|
661
|
+
ALTER TABLE "stripe"."subscription_schedules" DROP COLUMN IF EXISTS "metadata";
|
|
662
|
+
ALTER TABLE "stripe"."subscription_schedules" DROP COLUMN IF EXISTS "phases";
|
|
663
|
+
ALTER TABLE "stripe"."subscription_schedules" DROP COLUMN IF EXISTS "released_at";
|
|
664
|
+
ALTER TABLE "stripe"."subscription_schedules" DROP COLUMN IF EXISTS "released_subscription";
|
|
665
|
+
ALTER TABLE "stripe"."subscription_schedules" DROP COLUMN IF EXISTS "status";
|
|
666
|
+
ALTER TABLE "stripe"."subscription_schedules" DROP COLUMN IF EXISTS "subscription";
|
|
667
|
+
ALTER TABLE "stripe"."subscription_schedules" DROP COLUMN IF EXISTS "test_clock";
|
|
668
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "object";
|
|
669
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "cancel_at_period_end";
|
|
670
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "current_period_end";
|
|
671
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "current_period_start";
|
|
672
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "default_payment_method";
|
|
673
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "items";
|
|
674
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "metadata";
|
|
675
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "pending_setup_intent";
|
|
676
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "pending_update";
|
|
677
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "status";
|
|
678
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "application_fee_percent";
|
|
679
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "billing_cycle_anchor";
|
|
680
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "billing_thresholds";
|
|
681
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "cancel_at";
|
|
682
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "canceled_at";
|
|
683
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "collection_method";
|
|
684
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "created";
|
|
685
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "days_until_due";
|
|
686
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "default_source";
|
|
687
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "default_tax_rates";
|
|
688
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "discount";
|
|
689
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "ended_at";
|
|
690
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "livemode";
|
|
691
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "next_pending_invoice_item_invoice";
|
|
692
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "pause_collection";
|
|
693
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "pending_invoice_item_interval";
|
|
694
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "start_date";
|
|
695
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "transfer_data";
|
|
696
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "trial_end";
|
|
697
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "trial_start";
|
|
698
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "schedule";
|
|
699
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "customer";
|
|
700
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "latest_invoice";
|
|
701
|
+
ALTER TABLE "stripe"."subscriptions" DROP COLUMN IF EXISTS "plan";
|
|
702
|
+
ALTER TABLE "stripe"."tax_ids" DROP COLUMN IF EXISTS "object";
|
|
703
|
+
ALTER TABLE "stripe"."tax_ids" DROP COLUMN IF EXISTS "country";
|
|
704
|
+
ALTER TABLE "stripe"."tax_ids" DROP COLUMN IF EXISTS "customer";
|
|
705
|
+
ALTER TABLE "stripe"."tax_ids" DROP COLUMN IF EXISTS "type";
|
|
706
|
+
ALTER TABLE "stripe"."tax_ids" DROP COLUMN IF EXISTS "value";
|
|
707
|
+
ALTER TABLE "stripe"."tax_ids" DROP COLUMN IF EXISTS "created";
|
|
708
|
+
ALTER TABLE "stripe"."tax_ids" DROP COLUMN IF EXISTS "livemode";
|
|
709
|
+
ALTER TABLE "stripe"."tax_ids" DROP COLUMN IF EXISTS "owner";
|
|
710
|
+
|
|
711
|
+
-- Add generated columns back with _raw_data references
|
|
712
|
+
|
|
713
|
+
ALTER TABLE "stripe"."active_entitlements" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
714
|
+
ALTER TABLE "stripe"."active_entitlements" ADD COLUMN "livemode" boolean GENERATED ALWAYS AS ((_raw_data->>'livemode')::boolean) STORED;
|
|
715
|
+
ALTER TABLE "stripe"."active_entitlements" ADD COLUMN "feature" text GENERATED ALWAYS AS ((_raw_data->>'feature')::text) STORED;
|
|
716
|
+
ALTER TABLE "stripe"."active_entitlements" ADD COLUMN "customer" text GENERATED ALWAYS AS ((_raw_data->>'customer')::text) STORED;
|
|
717
|
+
ALTER TABLE "stripe"."active_entitlements" ADD COLUMN "lookup_key" text GENERATED ALWAYS AS ((_raw_data->>'lookup_key')::text) STORED;
|
|
718
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
719
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "paid" boolean GENERATED ALWAYS AS ((_raw_data->>'paid')::boolean) STORED;
|
|
720
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "order" text GENERATED ALWAYS AS ((_raw_data->>'order')::text) STORED;
|
|
721
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "amount" bigint GENERATED ALWAYS AS ((_raw_data->>'amount')::bigint) STORED;
|
|
722
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "review" text GENERATED ALWAYS AS ((_raw_data->>'review')::text) STORED;
|
|
723
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "source" jsonb GENERATED ALWAYS AS (_raw_data->'source') STORED;
|
|
724
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "status" text GENERATED ALWAYS AS ((_raw_data->>'status')::text) STORED;
|
|
725
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "created" integer GENERATED ALWAYS AS ((_raw_data->>'created')::integer) STORED;
|
|
726
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "dispute" text GENERATED ALWAYS AS ((_raw_data->>'dispute')::text) STORED;
|
|
727
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "invoice" text GENERATED ALWAYS AS ((_raw_data->>'invoice')::text) STORED;
|
|
728
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "outcome" jsonb GENERATED ALWAYS AS (_raw_data->'outcome') STORED;
|
|
729
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "refunds" jsonb GENERATED ALWAYS AS (_raw_data->'refunds') STORED;
|
|
730
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "updated" integer GENERATED ALWAYS AS ((_raw_data->>'updated')::integer) STORED;
|
|
731
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "captured" boolean GENERATED ALWAYS AS ((_raw_data->>'captured')::boolean) STORED;
|
|
732
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "currency" text GENERATED ALWAYS AS ((_raw_data->>'currency')::text) STORED;
|
|
733
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "customer" text GENERATED ALWAYS AS ((_raw_data->>'customer')::text) STORED;
|
|
734
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "livemode" boolean GENERATED ALWAYS AS ((_raw_data->>'livemode')::boolean) STORED;
|
|
735
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "metadata" jsonb GENERATED ALWAYS AS (_raw_data->'metadata') STORED;
|
|
736
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "refunded" boolean GENERATED ALWAYS AS ((_raw_data->>'refunded')::boolean) STORED;
|
|
737
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "shipping" jsonb GENERATED ALWAYS AS (_raw_data->'shipping') STORED;
|
|
738
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "application" text GENERATED ALWAYS AS ((_raw_data->>'application')::text) STORED;
|
|
739
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "description" text GENERATED ALWAYS AS ((_raw_data->>'description')::text) STORED;
|
|
740
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "destination" text GENERATED ALWAYS AS ((_raw_data->>'destination')::text) STORED;
|
|
741
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "failure_code" text GENERATED ALWAYS AS ((_raw_data->>'failure_code')::text) STORED;
|
|
742
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "on_behalf_of" text GENERATED ALWAYS AS ((_raw_data->>'on_behalf_of')::text) STORED;
|
|
743
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "fraud_details" jsonb GENERATED ALWAYS AS (_raw_data->'fraud_details') STORED;
|
|
744
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "receipt_email" text GENERATED ALWAYS AS ((_raw_data->>'receipt_email')::text) STORED;
|
|
745
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "payment_intent" text GENERATED ALWAYS AS ((_raw_data->>'payment_intent')::text) STORED;
|
|
746
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "receipt_number" text GENERATED ALWAYS AS ((_raw_data->>'receipt_number')::text) STORED;
|
|
747
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "transfer_group" text GENERATED ALWAYS AS ((_raw_data->>'transfer_group')::text) STORED;
|
|
748
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "amount_refunded" bigint GENERATED ALWAYS AS ((_raw_data->>'amount_refunded')::bigint) STORED;
|
|
749
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "application_fee" text GENERATED ALWAYS AS ((_raw_data->>'application_fee')::text) STORED;
|
|
750
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "failure_message" text GENERATED ALWAYS AS ((_raw_data->>'failure_message')::text) STORED;
|
|
751
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "source_transfer" text GENERATED ALWAYS AS ((_raw_data->>'source_transfer')::text) STORED;
|
|
752
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "balance_transaction" text GENERATED ALWAYS AS ((_raw_data->>'balance_transaction')::text) STORED;
|
|
753
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "statement_descriptor" text GENERATED ALWAYS AS ((_raw_data->>'statement_descriptor')::text) STORED;
|
|
754
|
+
ALTER TABLE "stripe"."charges" ADD COLUMN "payment_method_details" jsonb GENERATED ALWAYS AS (_raw_data->'payment_method_details') STORED;
|
|
755
|
+
ALTER TABLE "stripe"."checkout_session_line_items" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
756
|
+
ALTER TABLE "stripe"."checkout_session_line_items" ADD COLUMN "amount_discount" integer GENERATED ALWAYS AS ((_raw_data->>'amount_discount')::integer) STORED;
|
|
757
|
+
ALTER TABLE "stripe"."checkout_session_line_items" ADD COLUMN "amount_subtotal" integer GENERATED ALWAYS AS ((_raw_data->>'amount_subtotal')::integer) STORED;
|
|
758
|
+
ALTER TABLE "stripe"."checkout_session_line_items" ADD COLUMN "amount_tax" integer GENERATED ALWAYS AS ((_raw_data->>'amount_tax')::integer) STORED;
|
|
759
|
+
ALTER TABLE "stripe"."checkout_session_line_items" ADD COLUMN "amount_total" integer GENERATED ALWAYS AS ((_raw_data->>'amount_total')::integer) STORED;
|
|
760
|
+
ALTER TABLE "stripe"."checkout_session_line_items" ADD COLUMN "currency" text GENERATED ALWAYS AS ((_raw_data->>'currency')::text) STORED;
|
|
761
|
+
ALTER TABLE "stripe"."checkout_session_line_items" ADD COLUMN "description" text GENERATED ALWAYS AS ((_raw_data->>'description')::text) STORED;
|
|
762
|
+
ALTER TABLE "stripe"."checkout_session_line_items" ADD COLUMN "price" text GENERATED ALWAYS AS ((_raw_data->>'price')::text) STORED;
|
|
763
|
+
ALTER TABLE "stripe"."checkout_session_line_items" ADD COLUMN "quantity" integer GENERATED ALWAYS AS ((_raw_data->>'quantity')::integer) STORED;
|
|
764
|
+
ALTER TABLE "stripe"."checkout_session_line_items" ADD COLUMN "checkout_session" text GENERATED ALWAYS AS ((_raw_data->>'checkout_session')::text) STORED;
|
|
765
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
766
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "adaptive_pricing" jsonb GENERATED ALWAYS AS (_raw_data->'adaptive_pricing') STORED;
|
|
767
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "after_expiration" jsonb GENERATED ALWAYS AS (_raw_data->'after_expiration') STORED;
|
|
768
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "allow_promotion_codes" boolean GENERATED ALWAYS AS ((_raw_data->>'allow_promotion_codes')::boolean) STORED;
|
|
769
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "amount_subtotal" integer GENERATED ALWAYS AS ((_raw_data->>'amount_subtotal')::integer) STORED;
|
|
770
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "amount_total" integer GENERATED ALWAYS AS ((_raw_data->>'amount_total')::integer) STORED;
|
|
771
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "automatic_tax" jsonb GENERATED ALWAYS AS (_raw_data->'automatic_tax') STORED;
|
|
772
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "billing_address_collection" text GENERATED ALWAYS AS ((_raw_data->>'billing_address_collection')::text) STORED;
|
|
773
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "cancel_url" text GENERATED ALWAYS AS ((_raw_data->>'cancel_url')::text) STORED;
|
|
774
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "client_reference_id" text GENERATED ALWAYS AS ((_raw_data->>'client_reference_id')::text) STORED;
|
|
775
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "client_secret" text GENERATED ALWAYS AS ((_raw_data->>'client_secret')::text) STORED;
|
|
776
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "collected_information" jsonb GENERATED ALWAYS AS (_raw_data->'collected_information') STORED;
|
|
777
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "consent" jsonb GENERATED ALWAYS AS (_raw_data->'consent') STORED;
|
|
778
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "consent_collection" jsonb GENERATED ALWAYS AS (_raw_data->'consent_collection') STORED;
|
|
779
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "created" integer GENERATED ALWAYS AS ((_raw_data->>'created')::integer) STORED;
|
|
780
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "currency" text GENERATED ALWAYS AS ((_raw_data->>'currency')::text) STORED;
|
|
781
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "currency_conversion" jsonb GENERATED ALWAYS AS (_raw_data->'currency_conversion') STORED;
|
|
782
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "custom_fields" jsonb GENERATED ALWAYS AS (_raw_data->'custom_fields') STORED;
|
|
783
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "custom_text" jsonb GENERATED ALWAYS AS (_raw_data->'custom_text') STORED;
|
|
784
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "customer" text GENERATED ALWAYS AS ((_raw_data->>'customer')::text) STORED;
|
|
785
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "customer_creation" text GENERATED ALWAYS AS ((_raw_data->>'customer_creation')::text) STORED;
|
|
786
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "customer_details" jsonb GENERATED ALWAYS AS (_raw_data->'customer_details') STORED;
|
|
787
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "customer_email" text GENERATED ALWAYS AS ((_raw_data->>'customer_email')::text) STORED;
|
|
788
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "discounts" jsonb GENERATED ALWAYS AS (_raw_data->'discounts') STORED;
|
|
789
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "expires_at" integer GENERATED ALWAYS AS ((_raw_data->>'expires_at')::integer) STORED;
|
|
790
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "invoice" text GENERATED ALWAYS AS ((_raw_data->>'invoice')::text) STORED;
|
|
791
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "invoice_creation" jsonb GENERATED ALWAYS AS (_raw_data->'invoice_creation') STORED;
|
|
792
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "livemode" boolean GENERATED ALWAYS AS ((_raw_data->>'livemode')::boolean) STORED;
|
|
793
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "locale" text GENERATED ALWAYS AS ((_raw_data->>'locale')::text) STORED;
|
|
794
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "metadata" jsonb GENERATED ALWAYS AS (_raw_data->'metadata') STORED;
|
|
795
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "mode" text GENERATED ALWAYS AS ((_raw_data->>'mode')::text) STORED;
|
|
796
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "optional_items" jsonb GENERATED ALWAYS AS (_raw_data->'optional_items') STORED;
|
|
797
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "payment_intent" text GENERATED ALWAYS AS ((_raw_data->>'payment_intent')::text) STORED;
|
|
798
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "payment_link" text GENERATED ALWAYS AS ((_raw_data->>'payment_link')::text) STORED;
|
|
799
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "payment_method_collection" text GENERATED ALWAYS AS ((_raw_data->>'payment_method_collection')::text) STORED;
|
|
800
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "payment_method_configuration_details" jsonb GENERATED ALWAYS AS (_raw_data->'payment_method_configuration_details') STORED;
|
|
801
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "payment_method_options" jsonb GENERATED ALWAYS AS (_raw_data->'payment_method_options') STORED;
|
|
802
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "payment_method_types" jsonb GENERATED ALWAYS AS (_raw_data->'payment_method_types') STORED;
|
|
803
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "payment_status" text GENERATED ALWAYS AS ((_raw_data->>'payment_status')::text) STORED;
|
|
804
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "permissions" jsonb GENERATED ALWAYS AS (_raw_data->'permissions') STORED;
|
|
805
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "phone_number_collection" jsonb GENERATED ALWAYS AS (_raw_data->'phone_number_collection') STORED;
|
|
806
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "presentment_details" jsonb GENERATED ALWAYS AS (_raw_data->'presentment_details') STORED;
|
|
807
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "recovered_from" text GENERATED ALWAYS AS ((_raw_data->>'recovered_from')::text) STORED;
|
|
808
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "redirect_on_completion" text GENERATED ALWAYS AS ((_raw_data->>'redirect_on_completion')::text) STORED;
|
|
809
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "return_url" text GENERATED ALWAYS AS ((_raw_data->>'return_url')::text) STORED;
|
|
810
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "saved_payment_method_options" jsonb GENERATED ALWAYS AS (_raw_data->'saved_payment_method_options') STORED;
|
|
811
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "setup_intent" text GENERATED ALWAYS AS ((_raw_data->>'setup_intent')::text) STORED;
|
|
812
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "shipping_address_collection" jsonb GENERATED ALWAYS AS (_raw_data->'shipping_address_collection') STORED;
|
|
813
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "shipping_cost" jsonb GENERATED ALWAYS AS (_raw_data->'shipping_cost') STORED;
|
|
814
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "shipping_details" jsonb GENERATED ALWAYS AS (_raw_data->'shipping_details') STORED;
|
|
815
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "shipping_options" jsonb GENERATED ALWAYS AS (_raw_data->'shipping_options') STORED;
|
|
816
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "status" text GENERATED ALWAYS AS ((_raw_data->>'status')::text) STORED;
|
|
817
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "submit_type" text GENERATED ALWAYS AS ((_raw_data->>'submit_type')::text) STORED;
|
|
818
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "subscription" text GENERATED ALWAYS AS ((_raw_data->>'subscription')::text) STORED;
|
|
819
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "success_url" text GENERATED ALWAYS AS ((_raw_data->>'success_url')::text) STORED;
|
|
820
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "tax_id_collection" jsonb GENERATED ALWAYS AS (_raw_data->'tax_id_collection') STORED;
|
|
821
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "total_details" jsonb GENERATED ALWAYS AS (_raw_data->'total_details') STORED;
|
|
822
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "ui_mode" text GENERATED ALWAYS AS ((_raw_data->>'ui_mode')::text) STORED;
|
|
823
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "url" text GENERATED ALWAYS AS ((_raw_data->>'url')::text) STORED;
|
|
824
|
+
ALTER TABLE "stripe"."checkout_sessions" ADD COLUMN "wallet_options" jsonb GENERATED ALWAYS AS (_raw_data->'wallet_options') STORED;
|
|
825
|
+
ALTER TABLE "stripe"."coupons" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
826
|
+
ALTER TABLE "stripe"."coupons" ADD COLUMN "name" text GENERATED ALWAYS AS ((_raw_data->>'name')::text) STORED;
|
|
827
|
+
ALTER TABLE "stripe"."coupons" ADD COLUMN "valid" boolean GENERATED ALWAYS AS ((_raw_data->>'valid')::boolean) STORED;
|
|
828
|
+
ALTER TABLE "stripe"."coupons" ADD COLUMN "created" integer GENERATED ALWAYS AS ((_raw_data->>'created')::integer) STORED;
|
|
829
|
+
ALTER TABLE "stripe"."coupons" ADD COLUMN "updated" integer GENERATED ALWAYS AS ((_raw_data->>'updated')::integer) STORED;
|
|
830
|
+
ALTER TABLE "stripe"."coupons" ADD COLUMN "currency" text GENERATED ALWAYS AS ((_raw_data->>'currency')::text) STORED;
|
|
831
|
+
ALTER TABLE "stripe"."coupons" ADD COLUMN "duration" text GENERATED ALWAYS AS ((_raw_data->>'duration')::text) STORED;
|
|
832
|
+
ALTER TABLE "stripe"."coupons" ADD COLUMN "livemode" boolean GENERATED ALWAYS AS ((_raw_data->>'livemode')::boolean) STORED;
|
|
833
|
+
ALTER TABLE "stripe"."coupons" ADD COLUMN "metadata" jsonb GENERATED ALWAYS AS (_raw_data->'metadata') STORED;
|
|
834
|
+
ALTER TABLE "stripe"."coupons" ADD COLUMN "redeem_by" integer GENERATED ALWAYS AS ((_raw_data->>'redeem_by')::integer) STORED;
|
|
835
|
+
ALTER TABLE "stripe"."coupons" ADD COLUMN "amount_off" bigint GENERATED ALWAYS AS ((_raw_data->>'amount_off')::bigint) STORED;
|
|
836
|
+
ALTER TABLE "stripe"."coupons" ADD COLUMN "percent_off" double precision GENERATED ALWAYS AS ((_raw_data->>'percent_off')::double precision) STORED;
|
|
837
|
+
ALTER TABLE "stripe"."coupons" ADD COLUMN "times_redeemed" bigint GENERATED ALWAYS AS ((_raw_data->>'times_redeemed')::bigint) STORED;
|
|
838
|
+
ALTER TABLE "stripe"."coupons" ADD COLUMN "max_redemptions" bigint GENERATED ALWAYS AS ((_raw_data->>'max_redemptions')::bigint) STORED;
|
|
839
|
+
ALTER TABLE "stripe"."coupons" ADD COLUMN "duration_in_months" bigint GENERATED ALWAYS AS ((_raw_data->>'duration_in_months')::bigint) STORED;
|
|
840
|
+
ALTER TABLE "stripe"."coupons" ADD COLUMN "percent_off_precise" double precision GENERATED ALWAYS AS ((_raw_data->>'percent_off_precise')::double precision) STORED;
|
|
841
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
842
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "amount" integer GENERATED ALWAYS AS ((_raw_data->>'amount')::integer) STORED;
|
|
843
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "amount_shipping" integer GENERATED ALWAYS AS ((_raw_data->>'amount_shipping')::integer) STORED;
|
|
844
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "created" integer GENERATED ALWAYS AS ((_raw_data->>'created')::integer) STORED;
|
|
845
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "currency" text GENERATED ALWAYS AS ((_raw_data->>'currency')::text) STORED;
|
|
846
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "customer" text GENERATED ALWAYS AS ((_raw_data->>'customer')::text) STORED;
|
|
847
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "customer_balance_transaction" text GENERATED ALWAYS AS ((_raw_data->>'customer_balance_transaction')::text) STORED;
|
|
848
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "discount_amount" integer GENERATED ALWAYS AS ((_raw_data->>'discount_amount')::integer) STORED;
|
|
849
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "discount_amounts" jsonb GENERATED ALWAYS AS (_raw_data->'discount_amounts') STORED;
|
|
850
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "invoice" text GENERATED ALWAYS AS ((_raw_data->>'invoice')::text) STORED;
|
|
851
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "lines" jsonb GENERATED ALWAYS AS (_raw_data->'lines') STORED;
|
|
852
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "livemode" boolean GENERATED ALWAYS AS ((_raw_data->>'livemode')::boolean) STORED;
|
|
853
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "memo" text GENERATED ALWAYS AS ((_raw_data->>'memo')::text) STORED;
|
|
854
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "metadata" jsonb GENERATED ALWAYS AS (_raw_data->'metadata') STORED;
|
|
855
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "number" text GENERATED ALWAYS AS ((_raw_data->>'number')::text) STORED;
|
|
856
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "out_of_band_amount" integer GENERATED ALWAYS AS ((_raw_data->>'out_of_band_amount')::integer) STORED;
|
|
857
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "pdf" text GENERATED ALWAYS AS ((_raw_data->>'pdf')::text) STORED;
|
|
858
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "reason" text GENERATED ALWAYS AS ((_raw_data->>'reason')::text) STORED;
|
|
859
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "refund" text GENERATED ALWAYS AS ((_raw_data->>'refund')::text) STORED;
|
|
860
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "shipping_cost" jsonb GENERATED ALWAYS AS (_raw_data->'shipping_cost') STORED;
|
|
861
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "status" text GENERATED ALWAYS AS ((_raw_data->>'status')::text) STORED;
|
|
862
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "subtotal" integer GENERATED ALWAYS AS ((_raw_data->>'subtotal')::integer) STORED;
|
|
863
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "subtotal_excluding_tax" integer GENERATED ALWAYS AS ((_raw_data->>'subtotal_excluding_tax')::integer) STORED;
|
|
864
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "tax_amounts" jsonb GENERATED ALWAYS AS (_raw_data->'tax_amounts') STORED;
|
|
865
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "total" integer GENERATED ALWAYS AS ((_raw_data->>'total')::integer) STORED;
|
|
866
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "total_excluding_tax" integer GENERATED ALWAYS AS ((_raw_data->>'total_excluding_tax')::integer) STORED;
|
|
867
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "type" text GENERATED ALWAYS AS ((_raw_data->>'type')::text) STORED;
|
|
868
|
+
ALTER TABLE "stripe"."credit_notes" ADD COLUMN "voided_at" text GENERATED ALWAYS AS ((_raw_data->>'voided_at')::text) STORED;
|
|
869
|
+
ALTER TABLE "stripe"."customers" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
870
|
+
ALTER TABLE "stripe"."customers" ADD COLUMN "address" jsonb GENERATED ALWAYS AS (_raw_data->'address') STORED;
|
|
871
|
+
ALTER TABLE "stripe"."customers" ADD COLUMN "description" text GENERATED ALWAYS AS ((_raw_data->>'description')::text) STORED;
|
|
872
|
+
ALTER TABLE "stripe"."customers" ADD COLUMN "email" text GENERATED ALWAYS AS ((_raw_data->>'email')::text) STORED;
|
|
873
|
+
ALTER TABLE "stripe"."customers" ADD COLUMN "metadata" jsonb GENERATED ALWAYS AS (_raw_data->'metadata') STORED;
|
|
874
|
+
ALTER TABLE "stripe"."customers" ADD COLUMN "name" text GENERATED ALWAYS AS ((_raw_data->>'name')::text) STORED;
|
|
875
|
+
ALTER TABLE "stripe"."customers" ADD COLUMN "phone" text GENERATED ALWAYS AS ((_raw_data->>'phone')::text) STORED;
|
|
876
|
+
ALTER TABLE "stripe"."customers" ADD COLUMN "shipping" jsonb GENERATED ALWAYS AS (_raw_data->'shipping') STORED;
|
|
877
|
+
ALTER TABLE "stripe"."customers" ADD COLUMN "balance" integer GENERATED ALWAYS AS ((_raw_data->>'balance')::integer) STORED;
|
|
878
|
+
ALTER TABLE "stripe"."customers" ADD COLUMN "created" integer GENERATED ALWAYS AS ((_raw_data->>'created')::integer) STORED;
|
|
879
|
+
ALTER TABLE "stripe"."customers" ADD COLUMN "currency" text GENERATED ALWAYS AS ((_raw_data->>'currency')::text) STORED;
|
|
880
|
+
ALTER TABLE "stripe"."customers" ADD COLUMN "default_source" text GENERATED ALWAYS AS ((_raw_data->>'default_source')::text) STORED;
|
|
881
|
+
ALTER TABLE "stripe"."customers" ADD COLUMN "delinquent" boolean GENERATED ALWAYS AS ((_raw_data->>'delinquent')::boolean) STORED;
|
|
882
|
+
ALTER TABLE "stripe"."customers" ADD COLUMN "discount" jsonb GENERATED ALWAYS AS (_raw_data->'discount') STORED;
|
|
883
|
+
ALTER TABLE "stripe"."customers" ADD COLUMN "invoice_prefix" text GENERATED ALWAYS AS ((_raw_data->>'invoice_prefix')::text) STORED;
|
|
884
|
+
ALTER TABLE "stripe"."customers" ADD COLUMN "invoice_settings" jsonb GENERATED ALWAYS AS (_raw_data->'invoice_settings') STORED;
|
|
885
|
+
ALTER TABLE "stripe"."customers" ADD COLUMN "livemode" boolean GENERATED ALWAYS AS ((_raw_data->>'livemode')::boolean) STORED;
|
|
886
|
+
ALTER TABLE "stripe"."customers" ADD COLUMN "next_invoice_sequence" integer GENERATED ALWAYS AS ((_raw_data->>'next_invoice_sequence')::integer) STORED;
|
|
887
|
+
ALTER TABLE "stripe"."customers" ADD COLUMN "preferred_locales" jsonb GENERATED ALWAYS AS (_raw_data->'preferred_locales') STORED;
|
|
888
|
+
ALTER TABLE "stripe"."customers" ADD COLUMN "tax_exempt" text GENERATED ALWAYS AS ((_raw_data->>'tax_exempt')::text) STORED;
|
|
889
|
+
ALTER TABLE "stripe"."customers" ADD COLUMN "deleted" boolean GENERATED ALWAYS AS ((_raw_data->>'deleted')::boolean) STORED;
|
|
890
|
+
ALTER TABLE "stripe"."disputes" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
891
|
+
ALTER TABLE "stripe"."disputes" ADD COLUMN "amount" bigint GENERATED ALWAYS AS ((_raw_data->>'amount')::bigint) STORED;
|
|
892
|
+
ALTER TABLE "stripe"."disputes" ADD COLUMN "charge" text GENERATED ALWAYS AS ((_raw_data->>'charge')::text) STORED;
|
|
893
|
+
ALTER TABLE "stripe"."disputes" ADD COLUMN "reason" text GENERATED ALWAYS AS ((_raw_data->>'reason')::text) STORED;
|
|
894
|
+
ALTER TABLE "stripe"."disputes" ADD COLUMN "status" text GENERATED ALWAYS AS ((_raw_data->>'status')::text) STORED;
|
|
895
|
+
ALTER TABLE "stripe"."disputes" ADD COLUMN "created" integer GENERATED ALWAYS AS ((_raw_data->>'created')::integer) STORED;
|
|
896
|
+
ALTER TABLE "stripe"."disputes" ADD COLUMN "updated" integer GENERATED ALWAYS AS ((_raw_data->>'updated')::integer) STORED;
|
|
897
|
+
ALTER TABLE "stripe"."disputes" ADD COLUMN "currency" text GENERATED ALWAYS AS ((_raw_data->>'currency')::text) STORED;
|
|
898
|
+
ALTER TABLE "stripe"."disputes" ADD COLUMN "evidence" jsonb GENERATED ALWAYS AS (_raw_data->'evidence') STORED;
|
|
899
|
+
ALTER TABLE "stripe"."disputes" ADD COLUMN "livemode" boolean GENERATED ALWAYS AS ((_raw_data->>'livemode')::boolean) STORED;
|
|
900
|
+
ALTER TABLE "stripe"."disputes" ADD COLUMN "metadata" jsonb GENERATED ALWAYS AS (_raw_data->'metadata') STORED;
|
|
901
|
+
ALTER TABLE "stripe"."disputes" ADD COLUMN "evidence_details" jsonb GENERATED ALWAYS AS (_raw_data->'evidence_details') STORED;
|
|
902
|
+
ALTER TABLE "stripe"."disputes" ADD COLUMN "balance_transactions" jsonb GENERATED ALWAYS AS (_raw_data->'balance_transactions') STORED;
|
|
903
|
+
ALTER TABLE "stripe"."disputes" ADD COLUMN "is_charge_refundable" boolean GENERATED ALWAYS AS ((_raw_data->>'is_charge_refundable')::boolean) STORED;
|
|
904
|
+
ALTER TABLE "stripe"."disputes" ADD COLUMN "payment_intent" text GENERATED ALWAYS AS ((_raw_data->>'payment_intent')::text) STORED;
|
|
905
|
+
ALTER TABLE "stripe"."early_fraud_warnings" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
906
|
+
ALTER TABLE "stripe"."early_fraud_warnings" ADD COLUMN "actionable" boolean GENERATED ALWAYS AS ((_raw_data->>'actionable')::boolean) STORED;
|
|
907
|
+
ALTER TABLE "stripe"."early_fraud_warnings" ADD COLUMN "charge" text GENERATED ALWAYS AS ((_raw_data->>'charge')::text) STORED;
|
|
908
|
+
ALTER TABLE "stripe"."early_fraud_warnings" ADD COLUMN "created" integer GENERATED ALWAYS AS ((_raw_data->>'created')::integer) STORED;
|
|
909
|
+
ALTER TABLE "stripe"."early_fraud_warnings" ADD COLUMN "fraud_type" text GENERATED ALWAYS AS ((_raw_data->>'fraud_type')::text) STORED;
|
|
910
|
+
ALTER TABLE "stripe"."early_fraud_warnings" ADD COLUMN "livemode" boolean GENERATED ALWAYS AS ((_raw_data->>'livemode')::boolean) STORED;
|
|
911
|
+
ALTER TABLE "stripe"."early_fraud_warnings" ADD COLUMN "payment_intent" text GENERATED ALWAYS AS ((_raw_data->>'payment_intent')::text) STORED;
|
|
912
|
+
ALTER TABLE "stripe"."events" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
913
|
+
ALTER TABLE "stripe"."events" ADD COLUMN "data" jsonb GENERATED ALWAYS AS (_raw_data->'data') STORED;
|
|
914
|
+
ALTER TABLE "stripe"."events" ADD COLUMN "type" text GENERATED ALWAYS AS ((_raw_data->>'type')::text) STORED;
|
|
915
|
+
ALTER TABLE "stripe"."events" ADD COLUMN "created" integer GENERATED ALWAYS AS ((_raw_data->>'created')::integer) STORED;
|
|
916
|
+
ALTER TABLE "stripe"."events" ADD COLUMN "request" text GENERATED ALWAYS AS ((_raw_data->>'request')::text) STORED;
|
|
917
|
+
ALTER TABLE "stripe"."events" ADD COLUMN "updated" integer GENERATED ALWAYS AS ((_raw_data->>'updated')::integer) STORED;
|
|
918
|
+
ALTER TABLE "stripe"."events" ADD COLUMN "livemode" boolean GENERATED ALWAYS AS ((_raw_data->>'livemode')::boolean) STORED;
|
|
919
|
+
ALTER TABLE "stripe"."events" ADD COLUMN "api_version" text GENERATED ALWAYS AS ((_raw_data->>'api_version')::text) STORED;
|
|
920
|
+
ALTER TABLE "stripe"."events" ADD COLUMN "pending_webhooks" bigint GENERATED ALWAYS AS ((_raw_data->>'pending_webhooks')::bigint) STORED;
|
|
921
|
+
ALTER TABLE "stripe"."features" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
922
|
+
ALTER TABLE "stripe"."features" ADD COLUMN "livemode" boolean GENERATED ALWAYS AS ((_raw_data->>'livemode')::boolean) STORED;
|
|
923
|
+
ALTER TABLE "stripe"."features" ADD COLUMN "name" text GENERATED ALWAYS AS ((_raw_data->>'name')::text) STORED;
|
|
924
|
+
ALTER TABLE "stripe"."features" ADD COLUMN "lookup_key" text GENERATED ALWAYS AS ((_raw_data->>'lookup_key')::text) STORED;
|
|
925
|
+
ALTER TABLE "stripe"."features" ADD COLUMN "active" boolean GENERATED ALWAYS AS ((_raw_data->>'active')::boolean) STORED;
|
|
926
|
+
ALTER TABLE "stripe"."features" ADD COLUMN "metadata" jsonb GENERATED ALWAYS AS (_raw_data->'metadata') STORED;
|
|
927
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
928
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "auto_advance" boolean GENERATED ALWAYS AS ((_raw_data->>'auto_advance')::boolean) STORED;
|
|
929
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "collection_method" text GENERATED ALWAYS AS ((_raw_data->>'collection_method')::text) STORED;
|
|
930
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "currency" text GENERATED ALWAYS AS ((_raw_data->>'currency')::text) STORED;
|
|
931
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "description" text GENERATED ALWAYS AS ((_raw_data->>'description')::text) STORED;
|
|
932
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "hosted_invoice_url" text GENERATED ALWAYS AS ((_raw_data->>'hosted_invoice_url')::text) STORED;
|
|
933
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "lines" jsonb GENERATED ALWAYS AS (_raw_data->'lines') STORED;
|
|
934
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "period_end" integer GENERATED ALWAYS AS ((_raw_data->>'period_end')::integer) STORED;
|
|
935
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "period_start" integer GENERATED ALWAYS AS ((_raw_data->>'period_start')::integer) STORED;
|
|
936
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "status" text GENERATED ALWAYS AS ((_raw_data->>'status')::text) STORED;
|
|
937
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "total" bigint GENERATED ALWAYS AS ((_raw_data->>'total')::bigint) STORED;
|
|
938
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "account_country" text GENERATED ALWAYS AS ((_raw_data->>'account_country')::text) STORED;
|
|
939
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "account_name" text GENERATED ALWAYS AS ((_raw_data->>'account_name')::text) STORED;
|
|
940
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "account_tax_ids" jsonb GENERATED ALWAYS AS (_raw_data->'account_tax_ids') STORED;
|
|
941
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "amount_due" bigint GENERATED ALWAYS AS ((_raw_data->>'amount_due')::bigint) STORED;
|
|
942
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "amount_paid" bigint GENERATED ALWAYS AS ((_raw_data->>'amount_paid')::bigint) STORED;
|
|
943
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "amount_remaining" bigint GENERATED ALWAYS AS ((_raw_data->>'amount_remaining')::bigint) STORED;
|
|
944
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "application_fee_amount" bigint GENERATED ALWAYS AS ((_raw_data->>'application_fee_amount')::bigint) STORED;
|
|
945
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "attempt_count" integer GENERATED ALWAYS AS ((_raw_data->>'attempt_count')::integer) STORED;
|
|
946
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "attempted" boolean GENERATED ALWAYS AS ((_raw_data->>'attempted')::boolean) STORED;
|
|
947
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "billing_reason" text GENERATED ALWAYS AS ((_raw_data->>'billing_reason')::text) STORED;
|
|
948
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "created" integer GENERATED ALWAYS AS ((_raw_data->>'created')::integer) STORED;
|
|
949
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "custom_fields" jsonb GENERATED ALWAYS AS (_raw_data->'custom_fields') STORED;
|
|
950
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "customer_address" jsonb GENERATED ALWAYS AS (_raw_data->'customer_address') STORED;
|
|
951
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "customer_email" text GENERATED ALWAYS AS ((_raw_data->>'customer_email')::text) STORED;
|
|
952
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "customer_name" text GENERATED ALWAYS AS ((_raw_data->>'customer_name')::text) STORED;
|
|
953
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "customer_phone" text GENERATED ALWAYS AS ((_raw_data->>'customer_phone')::text) STORED;
|
|
954
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "customer_shipping" jsonb GENERATED ALWAYS AS (_raw_data->'customer_shipping') STORED;
|
|
955
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "customer_tax_exempt" text GENERATED ALWAYS AS ((_raw_data->>'customer_tax_exempt')::text) STORED;
|
|
956
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "customer_tax_ids" jsonb GENERATED ALWAYS AS (_raw_data->'customer_tax_ids') STORED;
|
|
957
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "default_tax_rates" jsonb GENERATED ALWAYS AS (_raw_data->'default_tax_rates') STORED;
|
|
958
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "discount" jsonb GENERATED ALWAYS AS (_raw_data->'discount') STORED;
|
|
959
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "discounts" jsonb GENERATED ALWAYS AS (_raw_data->'discounts') STORED;
|
|
960
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "due_date" integer GENERATED ALWAYS AS ((_raw_data->>'due_date')::integer) STORED;
|
|
961
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "ending_balance" integer GENERATED ALWAYS AS ((_raw_data->>'ending_balance')::integer) STORED;
|
|
962
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "footer" text GENERATED ALWAYS AS ((_raw_data->>'footer')::text) STORED;
|
|
963
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "invoice_pdf" text GENERATED ALWAYS AS ((_raw_data->>'invoice_pdf')::text) STORED;
|
|
964
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "last_finalization_error" jsonb GENERATED ALWAYS AS (_raw_data->'last_finalization_error') STORED;
|
|
965
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "livemode" boolean GENERATED ALWAYS AS ((_raw_data->>'livemode')::boolean) STORED;
|
|
966
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "next_payment_attempt" integer GENERATED ALWAYS AS ((_raw_data->>'next_payment_attempt')::integer) STORED;
|
|
967
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "number" text GENERATED ALWAYS AS ((_raw_data->>'number')::text) STORED;
|
|
968
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "paid" boolean GENERATED ALWAYS AS ((_raw_data->>'paid')::boolean) STORED;
|
|
969
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "payment_settings" jsonb GENERATED ALWAYS AS (_raw_data->'payment_settings') STORED;
|
|
970
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "post_payment_credit_notes_amount" integer GENERATED ALWAYS AS ((_raw_data->>'post_payment_credit_notes_amount')::integer) STORED;
|
|
971
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "pre_payment_credit_notes_amount" integer GENERATED ALWAYS AS ((_raw_data->>'pre_payment_credit_notes_amount')::integer) STORED;
|
|
972
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "receipt_number" text GENERATED ALWAYS AS ((_raw_data->>'receipt_number')::text) STORED;
|
|
973
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "starting_balance" integer GENERATED ALWAYS AS ((_raw_data->>'starting_balance')::integer) STORED;
|
|
974
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "statement_descriptor" text GENERATED ALWAYS AS ((_raw_data->>'statement_descriptor')::text) STORED;
|
|
975
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "status_transitions" jsonb GENERATED ALWAYS AS (_raw_data->'status_transitions') STORED;
|
|
976
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "subtotal" integer GENERATED ALWAYS AS ((_raw_data->>'subtotal')::integer) STORED;
|
|
977
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "tax" integer GENERATED ALWAYS AS ((_raw_data->>'tax')::integer) STORED;
|
|
978
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "total_discount_amounts" jsonb GENERATED ALWAYS AS (_raw_data->'total_discount_amounts') STORED;
|
|
979
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "total_tax_amounts" jsonb GENERATED ALWAYS AS (_raw_data->'total_tax_amounts') STORED;
|
|
980
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "transfer_data" jsonb GENERATED ALWAYS AS (_raw_data->'transfer_data') STORED;
|
|
981
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "webhooks_delivered_at" integer GENERATED ALWAYS AS ((_raw_data->>'webhooks_delivered_at')::integer) STORED;
|
|
982
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "customer" text GENERATED ALWAYS AS ((_raw_data->>'customer')::text) STORED;
|
|
983
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "subscription" text GENERATED ALWAYS AS ((_raw_data->>'subscription')::text) STORED;
|
|
984
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "payment_intent" text GENERATED ALWAYS AS ((_raw_data->>'payment_intent')::text) STORED;
|
|
985
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "default_payment_method" text GENERATED ALWAYS AS ((_raw_data->>'default_payment_method')::text) STORED;
|
|
986
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "default_source" text GENERATED ALWAYS AS ((_raw_data->>'default_source')::text) STORED;
|
|
987
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "on_behalf_of" text GENERATED ALWAYS AS ((_raw_data->>'on_behalf_of')::text) STORED;
|
|
988
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "charge" text GENERATED ALWAYS AS ((_raw_data->>'charge')::text) STORED;
|
|
989
|
+
ALTER TABLE "stripe"."invoices" ADD COLUMN "metadata" jsonb GENERATED ALWAYS AS (_raw_data->'metadata') STORED;
|
|
990
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
991
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "amount" integer GENERATED ALWAYS AS ((_raw_data->>'amount')::integer) STORED;
|
|
992
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "amount_capturable" integer GENERATED ALWAYS AS ((_raw_data->>'amount_capturable')::integer) STORED;
|
|
993
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "amount_details" jsonb GENERATED ALWAYS AS (_raw_data->'amount_details') STORED;
|
|
994
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "amount_received" integer GENERATED ALWAYS AS ((_raw_data->>'amount_received')::integer) STORED;
|
|
995
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "application" text GENERATED ALWAYS AS ((_raw_data->>'application')::text) STORED;
|
|
996
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "application_fee_amount" integer GENERATED ALWAYS AS ((_raw_data->>'application_fee_amount')::integer) STORED;
|
|
997
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "automatic_payment_methods" text GENERATED ALWAYS AS ((_raw_data->>'automatic_payment_methods')::text) STORED;
|
|
998
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "canceled_at" integer GENERATED ALWAYS AS ((_raw_data->>'canceled_at')::integer) STORED;
|
|
999
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "cancellation_reason" text GENERATED ALWAYS AS ((_raw_data->>'cancellation_reason')::text) STORED;
|
|
1000
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "capture_method" text GENERATED ALWAYS AS ((_raw_data->>'capture_method')::text) STORED;
|
|
1001
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "client_secret" text GENERATED ALWAYS AS ((_raw_data->>'client_secret')::text) STORED;
|
|
1002
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "confirmation_method" text GENERATED ALWAYS AS ((_raw_data->>'confirmation_method')::text) STORED;
|
|
1003
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "created" integer GENERATED ALWAYS AS ((_raw_data->>'created')::integer) STORED;
|
|
1004
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "currency" text GENERATED ALWAYS AS ((_raw_data->>'currency')::text) STORED;
|
|
1005
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "customer" text GENERATED ALWAYS AS ((_raw_data->>'customer')::text) STORED;
|
|
1006
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "description" text GENERATED ALWAYS AS ((_raw_data->>'description')::text) STORED;
|
|
1007
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "invoice" text GENERATED ALWAYS AS ((_raw_data->>'invoice')::text) STORED;
|
|
1008
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "last_payment_error" text GENERATED ALWAYS AS ((_raw_data->>'last_payment_error')::text) STORED;
|
|
1009
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "livemode" boolean GENERATED ALWAYS AS ((_raw_data->>'livemode')::boolean) STORED;
|
|
1010
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "metadata" jsonb GENERATED ALWAYS AS (_raw_data->'metadata') STORED;
|
|
1011
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "next_action" text GENERATED ALWAYS AS ((_raw_data->>'next_action')::text) STORED;
|
|
1012
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "on_behalf_of" text GENERATED ALWAYS AS ((_raw_data->>'on_behalf_of')::text) STORED;
|
|
1013
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "payment_method" text GENERATED ALWAYS AS ((_raw_data->>'payment_method')::text) STORED;
|
|
1014
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "payment_method_options" jsonb GENERATED ALWAYS AS (_raw_data->'payment_method_options') STORED;
|
|
1015
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "payment_method_types" jsonb GENERATED ALWAYS AS (_raw_data->'payment_method_types') STORED;
|
|
1016
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "processing" text GENERATED ALWAYS AS ((_raw_data->>'processing')::text) STORED;
|
|
1017
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "receipt_email" text GENERATED ALWAYS AS ((_raw_data->>'receipt_email')::text) STORED;
|
|
1018
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "review" text GENERATED ALWAYS AS ((_raw_data->>'review')::text) STORED;
|
|
1019
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "setup_future_usage" text GENERATED ALWAYS AS ((_raw_data->>'setup_future_usage')::text) STORED;
|
|
1020
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "shipping" jsonb GENERATED ALWAYS AS (_raw_data->'shipping') STORED;
|
|
1021
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "statement_descriptor" text GENERATED ALWAYS AS ((_raw_data->>'statement_descriptor')::text) STORED;
|
|
1022
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "statement_descriptor_suffix" text GENERATED ALWAYS AS ((_raw_data->>'statement_descriptor_suffix')::text) STORED;
|
|
1023
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "status" text GENERATED ALWAYS AS ((_raw_data->>'status')::text) STORED;
|
|
1024
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "transfer_data" jsonb GENERATED ALWAYS AS (_raw_data->'transfer_data') STORED;
|
|
1025
|
+
ALTER TABLE "stripe"."payment_intents" ADD COLUMN "transfer_group" text GENERATED ALWAYS AS ((_raw_data->>'transfer_group')::text) STORED;
|
|
1026
|
+
ALTER TABLE "stripe"."payment_methods" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
1027
|
+
ALTER TABLE "stripe"."payment_methods" ADD COLUMN "created" integer GENERATED ALWAYS AS ((_raw_data->>'created')::integer) STORED;
|
|
1028
|
+
ALTER TABLE "stripe"."payment_methods" ADD COLUMN "customer" text GENERATED ALWAYS AS ((_raw_data->>'customer')::text) STORED;
|
|
1029
|
+
ALTER TABLE "stripe"."payment_methods" ADD COLUMN "type" text GENERATED ALWAYS AS ((_raw_data->>'type')::text) STORED;
|
|
1030
|
+
ALTER TABLE "stripe"."payment_methods" ADD COLUMN "billing_details" jsonb GENERATED ALWAYS AS (_raw_data->'billing_details') STORED;
|
|
1031
|
+
ALTER TABLE "stripe"."payment_methods" ADD COLUMN "metadata" jsonb GENERATED ALWAYS AS (_raw_data->'metadata') STORED;
|
|
1032
|
+
ALTER TABLE "stripe"."payment_methods" ADD COLUMN "card" jsonb GENERATED ALWAYS AS (_raw_data->'card') STORED;
|
|
1033
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
1034
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "date" text GENERATED ALWAYS AS ((_raw_data->>'date')::text) STORED;
|
|
1035
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "type" text GENERATED ALWAYS AS ((_raw_data->>'type')::text) STORED;
|
|
1036
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "amount" bigint GENERATED ALWAYS AS ((_raw_data->>'amount')::bigint) STORED;
|
|
1037
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "method" text GENERATED ALWAYS AS ((_raw_data->>'method')::text) STORED;
|
|
1038
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "status" text GENERATED ALWAYS AS ((_raw_data->>'status')::text) STORED;
|
|
1039
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "created" integer GENERATED ALWAYS AS ((_raw_data->>'created')::integer) STORED;
|
|
1040
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "updated" integer GENERATED ALWAYS AS ((_raw_data->>'updated')::integer) STORED;
|
|
1041
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "currency" text GENERATED ALWAYS AS ((_raw_data->>'currency')::text) STORED;
|
|
1042
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "livemode" boolean GENERATED ALWAYS AS ((_raw_data->>'livemode')::boolean) STORED;
|
|
1043
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "metadata" jsonb GENERATED ALWAYS AS (_raw_data->'metadata') STORED;
|
|
1044
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "automatic" boolean GENERATED ALWAYS AS ((_raw_data->>'automatic')::boolean) STORED;
|
|
1045
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "recipient" text GENERATED ALWAYS AS ((_raw_data->>'recipient')::text) STORED;
|
|
1046
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "description" text GENERATED ALWAYS AS ((_raw_data->>'description')::text) STORED;
|
|
1047
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "destination" text GENERATED ALWAYS AS ((_raw_data->>'destination')::text) STORED;
|
|
1048
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "source_type" text GENERATED ALWAYS AS ((_raw_data->>'source_type')::text) STORED;
|
|
1049
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "arrival_date" text GENERATED ALWAYS AS ((_raw_data->>'arrival_date')::text) STORED;
|
|
1050
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "bank_account" jsonb GENERATED ALWAYS AS (_raw_data->'bank_account') STORED;
|
|
1051
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "failure_code" text GENERATED ALWAYS AS ((_raw_data->>'failure_code')::text) STORED;
|
|
1052
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "transfer_group" text GENERATED ALWAYS AS ((_raw_data->>'transfer_group')::text) STORED;
|
|
1053
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "amount_reversed" bigint GENERATED ALWAYS AS ((_raw_data->>'amount_reversed')::bigint) STORED;
|
|
1054
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "failure_message" text GENERATED ALWAYS AS ((_raw_data->>'failure_message')::text) STORED;
|
|
1055
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "source_transaction" text GENERATED ALWAYS AS ((_raw_data->>'source_transaction')::text) STORED;
|
|
1056
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "balance_transaction" text GENERATED ALWAYS AS ((_raw_data->>'balance_transaction')::text) STORED;
|
|
1057
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "statement_descriptor" text GENERATED ALWAYS AS ((_raw_data->>'statement_descriptor')::text) STORED;
|
|
1058
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "statement_description" text GENERATED ALWAYS AS ((_raw_data->>'statement_description')::text) STORED;
|
|
1059
|
+
ALTER TABLE "stripe"."payouts" ADD COLUMN "failure_balance_transaction" text GENERATED ALWAYS AS ((_raw_data->>'failure_balance_transaction')::text) STORED;
|
|
1060
|
+
ALTER TABLE "stripe"."plans" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
1061
|
+
ALTER TABLE "stripe"."plans" ADD COLUMN "name" text GENERATED ALWAYS AS ((_raw_data->>'name')::text) STORED;
|
|
1062
|
+
ALTER TABLE "stripe"."plans" ADD COLUMN "tiers" jsonb GENERATED ALWAYS AS (_raw_data->'tiers') STORED;
|
|
1063
|
+
ALTER TABLE "stripe"."plans" ADD COLUMN "active" boolean GENERATED ALWAYS AS ((_raw_data->>'active')::boolean) STORED;
|
|
1064
|
+
ALTER TABLE "stripe"."plans" ADD COLUMN "amount" bigint GENERATED ALWAYS AS ((_raw_data->>'amount')::bigint) STORED;
|
|
1065
|
+
ALTER TABLE "stripe"."plans" ADD COLUMN "created" integer GENERATED ALWAYS AS ((_raw_data->>'created')::integer) STORED;
|
|
1066
|
+
ALTER TABLE "stripe"."plans" ADD COLUMN "product" text GENERATED ALWAYS AS ((_raw_data->>'product')::text) STORED;
|
|
1067
|
+
ALTER TABLE "stripe"."plans" ADD COLUMN "updated" integer GENERATED ALWAYS AS ((_raw_data->>'updated')::integer) STORED;
|
|
1068
|
+
ALTER TABLE "stripe"."plans" ADD COLUMN "currency" text GENERATED ALWAYS AS ((_raw_data->>'currency')::text) STORED;
|
|
1069
|
+
ALTER TABLE "stripe"."plans" ADD COLUMN "interval" text GENERATED ALWAYS AS ((_raw_data->>'interval')::text) STORED;
|
|
1070
|
+
ALTER TABLE "stripe"."plans" ADD COLUMN "livemode" boolean GENERATED ALWAYS AS ((_raw_data->>'livemode')::boolean) STORED;
|
|
1071
|
+
ALTER TABLE "stripe"."plans" ADD COLUMN "metadata" jsonb GENERATED ALWAYS AS (_raw_data->'metadata') STORED;
|
|
1072
|
+
ALTER TABLE "stripe"."plans" ADD COLUMN "nickname" text GENERATED ALWAYS AS ((_raw_data->>'nickname')::text) STORED;
|
|
1073
|
+
ALTER TABLE "stripe"."plans" ADD COLUMN "tiers_mode" text GENERATED ALWAYS AS ((_raw_data->>'tiers_mode')::text) STORED;
|
|
1074
|
+
ALTER TABLE "stripe"."plans" ADD COLUMN "usage_type" text GENERATED ALWAYS AS ((_raw_data->>'usage_type')::text) STORED;
|
|
1075
|
+
ALTER TABLE "stripe"."plans" ADD COLUMN "billing_scheme" text GENERATED ALWAYS AS ((_raw_data->>'billing_scheme')::text) STORED;
|
|
1076
|
+
ALTER TABLE "stripe"."plans" ADD COLUMN "interval_count" bigint GENERATED ALWAYS AS ((_raw_data->>'interval_count')::bigint) STORED;
|
|
1077
|
+
ALTER TABLE "stripe"."plans" ADD COLUMN "aggregate_usage" text GENERATED ALWAYS AS ((_raw_data->>'aggregate_usage')::text) STORED;
|
|
1078
|
+
ALTER TABLE "stripe"."plans" ADD COLUMN "transform_usage" text GENERATED ALWAYS AS ((_raw_data->>'transform_usage')::text) STORED;
|
|
1079
|
+
ALTER TABLE "stripe"."plans" ADD COLUMN "trial_period_days" bigint GENERATED ALWAYS AS ((_raw_data->>'trial_period_days')::bigint) STORED;
|
|
1080
|
+
ALTER TABLE "stripe"."plans" ADD COLUMN "statement_descriptor" text GENERATED ALWAYS AS ((_raw_data->>'statement_descriptor')::text) STORED;
|
|
1081
|
+
ALTER TABLE "stripe"."plans" ADD COLUMN "statement_description" text GENERATED ALWAYS AS ((_raw_data->>'statement_description')::text) STORED;
|
|
1082
|
+
ALTER TABLE "stripe"."prices" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
1083
|
+
ALTER TABLE "stripe"."prices" ADD COLUMN "active" boolean GENERATED ALWAYS AS ((_raw_data->>'active')::boolean) STORED;
|
|
1084
|
+
ALTER TABLE "stripe"."prices" ADD COLUMN "currency" text GENERATED ALWAYS AS ((_raw_data->>'currency')::text) STORED;
|
|
1085
|
+
ALTER TABLE "stripe"."prices" ADD COLUMN "metadata" jsonb GENERATED ALWAYS AS (_raw_data->'metadata') STORED;
|
|
1086
|
+
ALTER TABLE "stripe"."prices" ADD COLUMN "nickname" text GENERATED ALWAYS AS ((_raw_data->>'nickname')::text) STORED;
|
|
1087
|
+
ALTER TABLE "stripe"."prices" ADD COLUMN "recurring" jsonb GENERATED ALWAYS AS (_raw_data->'recurring') STORED;
|
|
1088
|
+
ALTER TABLE "stripe"."prices" ADD COLUMN "type" text GENERATED ALWAYS AS ((_raw_data->>'type')::text) STORED;
|
|
1089
|
+
ALTER TABLE "stripe"."prices" ADD COLUMN "unit_amount" integer GENERATED ALWAYS AS ((_raw_data->>'unit_amount')::integer) STORED;
|
|
1090
|
+
ALTER TABLE "stripe"."prices" ADD COLUMN "billing_scheme" text GENERATED ALWAYS AS ((_raw_data->>'billing_scheme')::text) STORED;
|
|
1091
|
+
ALTER TABLE "stripe"."prices" ADD COLUMN "created" integer GENERATED ALWAYS AS ((_raw_data->>'created')::integer) STORED;
|
|
1092
|
+
ALTER TABLE "stripe"."prices" ADD COLUMN "livemode" boolean GENERATED ALWAYS AS ((_raw_data->>'livemode')::boolean) STORED;
|
|
1093
|
+
ALTER TABLE "stripe"."prices" ADD COLUMN "lookup_key" text GENERATED ALWAYS AS ((_raw_data->>'lookup_key')::text) STORED;
|
|
1094
|
+
ALTER TABLE "stripe"."prices" ADD COLUMN "tiers_mode" text GENERATED ALWAYS AS ((_raw_data->>'tiers_mode')::text) STORED;
|
|
1095
|
+
ALTER TABLE "stripe"."prices" ADD COLUMN "transform_quantity" jsonb GENERATED ALWAYS AS (_raw_data->'transform_quantity') STORED;
|
|
1096
|
+
ALTER TABLE "stripe"."prices" ADD COLUMN "unit_amount_decimal" text GENERATED ALWAYS AS ((_raw_data->>'unit_amount_decimal')::text) STORED;
|
|
1097
|
+
ALTER TABLE "stripe"."prices" ADD COLUMN "product" text GENERATED ALWAYS AS ((_raw_data->>'product')::text) STORED;
|
|
1098
|
+
ALTER TABLE "stripe"."products" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
1099
|
+
ALTER TABLE "stripe"."products" ADD COLUMN "active" boolean GENERATED ALWAYS AS ((_raw_data->>'active')::boolean) STORED;
|
|
1100
|
+
ALTER TABLE "stripe"."products" ADD COLUMN "default_price" text GENERATED ALWAYS AS ((_raw_data->>'default_price')::text) STORED;
|
|
1101
|
+
ALTER TABLE "stripe"."products" ADD COLUMN "description" text GENERATED ALWAYS AS ((_raw_data->>'description')::text) STORED;
|
|
1102
|
+
ALTER TABLE "stripe"."products" ADD COLUMN "metadata" jsonb GENERATED ALWAYS AS (_raw_data->'metadata') STORED;
|
|
1103
|
+
ALTER TABLE "stripe"."products" ADD COLUMN "name" text GENERATED ALWAYS AS ((_raw_data->>'name')::text) STORED;
|
|
1104
|
+
ALTER TABLE "stripe"."products" ADD COLUMN "created" integer GENERATED ALWAYS AS ((_raw_data->>'created')::integer) STORED;
|
|
1105
|
+
ALTER TABLE "stripe"."products" ADD COLUMN "images" jsonb GENERATED ALWAYS AS (_raw_data->'images') STORED;
|
|
1106
|
+
ALTER TABLE "stripe"."products" ADD COLUMN "marketing_features" jsonb GENERATED ALWAYS AS (_raw_data->'marketing_features') STORED;
|
|
1107
|
+
ALTER TABLE "stripe"."products" ADD COLUMN "livemode" boolean GENERATED ALWAYS AS ((_raw_data->>'livemode')::boolean) STORED;
|
|
1108
|
+
ALTER TABLE "stripe"."products" ADD COLUMN "package_dimensions" jsonb GENERATED ALWAYS AS (_raw_data->'package_dimensions') STORED;
|
|
1109
|
+
ALTER TABLE "stripe"."products" ADD COLUMN "shippable" boolean GENERATED ALWAYS AS ((_raw_data->>'shippable')::boolean) STORED;
|
|
1110
|
+
ALTER TABLE "stripe"."products" ADD COLUMN "statement_descriptor" text GENERATED ALWAYS AS ((_raw_data->>'statement_descriptor')::text) STORED;
|
|
1111
|
+
ALTER TABLE "stripe"."products" ADD COLUMN "unit_label" text GENERATED ALWAYS AS ((_raw_data->>'unit_label')::text) STORED;
|
|
1112
|
+
ALTER TABLE "stripe"."products" ADD COLUMN "updated" integer GENERATED ALWAYS AS ((_raw_data->>'updated')::integer) STORED;
|
|
1113
|
+
ALTER TABLE "stripe"."products" ADD COLUMN "url" text GENERATED ALWAYS AS ((_raw_data->>'url')::text) STORED;
|
|
1114
|
+
ALTER TABLE "stripe"."refunds" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
1115
|
+
ALTER TABLE "stripe"."refunds" ADD COLUMN "amount" integer GENERATED ALWAYS AS ((_raw_data->>'amount')::integer) STORED;
|
|
1116
|
+
ALTER TABLE "stripe"."refunds" ADD COLUMN "balance_transaction" text GENERATED ALWAYS AS ((_raw_data->>'balance_transaction')::text) STORED;
|
|
1117
|
+
ALTER TABLE "stripe"."refunds" ADD COLUMN "charge" text GENERATED ALWAYS AS ((_raw_data->>'charge')::text) STORED;
|
|
1118
|
+
ALTER TABLE "stripe"."refunds" ADD COLUMN "created" integer GENERATED ALWAYS AS ((_raw_data->>'created')::integer) STORED;
|
|
1119
|
+
ALTER TABLE "stripe"."refunds" ADD COLUMN "currency" text GENERATED ALWAYS AS ((_raw_data->>'currency')::text) STORED;
|
|
1120
|
+
ALTER TABLE "stripe"."refunds" ADD COLUMN "destination_details" jsonb GENERATED ALWAYS AS (_raw_data->'destination_details') STORED;
|
|
1121
|
+
ALTER TABLE "stripe"."refunds" ADD COLUMN "metadata" jsonb GENERATED ALWAYS AS (_raw_data->'metadata') STORED;
|
|
1122
|
+
ALTER TABLE "stripe"."refunds" ADD COLUMN "payment_intent" text GENERATED ALWAYS AS ((_raw_data->>'payment_intent')::text) STORED;
|
|
1123
|
+
ALTER TABLE "stripe"."refunds" ADD COLUMN "reason" text GENERATED ALWAYS AS ((_raw_data->>'reason')::text) STORED;
|
|
1124
|
+
ALTER TABLE "stripe"."refunds" ADD COLUMN "receipt_number" text GENERATED ALWAYS AS ((_raw_data->>'receipt_number')::text) STORED;
|
|
1125
|
+
ALTER TABLE "stripe"."refunds" ADD COLUMN "source_transfer_reversal" text GENERATED ALWAYS AS ((_raw_data->>'source_transfer_reversal')::text) STORED;
|
|
1126
|
+
ALTER TABLE "stripe"."refunds" ADD COLUMN "status" text GENERATED ALWAYS AS ((_raw_data->>'status')::text) STORED;
|
|
1127
|
+
ALTER TABLE "stripe"."refunds" ADD COLUMN "transfer_reversal" text GENERATED ALWAYS AS ((_raw_data->>'transfer_reversal')::text) STORED;
|
|
1128
|
+
ALTER TABLE "stripe"."reviews" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
1129
|
+
ALTER TABLE "stripe"."reviews" ADD COLUMN "billing_zip" text GENERATED ALWAYS AS ((_raw_data->>'billing_zip')::text) STORED;
|
|
1130
|
+
ALTER TABLE "stripe"."reviews" ADD COLUMN "charge" text GENERATED ALWAYS AS ((_raw_data->>'charge')::text) STORED;
|
|
1131
|
+
ALTER TABLE "stripe"."reviews" ADD COLUMN "created" integer GENERATED ALWAYS AS ((_raw_data->>'created')::integer) STORED;
|
|
1132
|
+
ALTER TABLE "stripe"."reviews" ADD COLUMN "closed_reason" text GENERATED ALWAYS AS ((_raw_data->>'closed_reason')::text) STORED;
|
|
1133
|
+
ALTER TABLE "stripe"."reviews" ADD COLUMN "livemode" boolean GENERATED ALWAYS AS ((_raw_data->>'livemode')::boolean) STORED;
|
|
1134
|
+
ALTER TABLE "stripe"."reviews" ADD COLUMN "ip_address" text GENERATED ALWAYS AS ((_raw_data->>'ip_address')::text) STORED;
|
|
1135
|
+
ALTER TABLE "stripe"."reviews" ADD COLUMN "ip_address_location" jsonb GENERATED ALWAYS AS (_raw_data->'ip_address_location') STORED;
|
|
1136
|
+
ALTER TABLE "stripe"."reviews" ADD COLUMN "open" boolean GENERATED ALWAYS AS ((_raw_data->>'open')::boolean) STORED;
|
|
1137
|
+
ALTER TABLE "stripe"."reviews" ADD COLUMN "opened_reason" text GENERATED ALWAYS AS ((_raw_data->>'opened_reason')::text) STORED;
|
|
1138
|
+
ALTER TABLE "stripe"."reviews" ADD COLUMN "payment_intent" text GENERATED ALWAYS AS ((_raw_data->>'payment_intent')::text) STORED;
|
|
1139
|
+
ALTER TABLE "stripe"."reviews" ADD COLUMN "reason" text GENERATED ALWAYS AS ((_raw_data->>'reason')::text) STORED;
|
|
1140
|
+
ALTER TABLE "stripe"."reviews" ADD COLUMN "session" text GENERATED ALWAYS AS ((_raw_data->>'session')::text) STORED;
|
|
1141
|
+
ALTER TABLE "stripe"."setup_intents" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
1142
|
+
ALTER TABLE "stripe"."setup_intents" ADD COLUMN "created" integer GENERATED ALWAYS AS ((_raw_data->>'created')::integer) STORED;
|
|
1143
|
+
ALTER TABLE "stripe"."setup_intents" ADD COLUMN "customer" text GENERATED ALWAYS AS ((_raw_data->>'customer')::text) STORED;
|
|
1144
|
+
ALTER TABLE "stripe"."setup_intents" ADD COLUMN "description" text GENERATED ALWAYS AS ((_raw_data->>'description')::text) STORED;
|
|
1145
|
+
ALTER TABLE "stripe"."setup_intents" ADD COLUMN "payment_method" text GENERATED ALWAYS AS ((_raw_data->>'payment_method')::text) STORED;
|
|
1146
|
+
ALTER TABLE "stripe"."setup_intents" ADD COLUMN "status" text GENERATED ALWAYS AS ((_raw_data->>'status')::text) STORED;
|
|
1147
|
+
ALTER TABLE "stripe"."setup_intents" ADD COLUMN "usage" text GENERATED ALWAYS AS ((_raw_data->>'usage')::text) STORED;
|
|
1148
|
+
ALTER TABLE "stripe"."setup_intents" ADD COLUMN "cancellation_reason" text GENERATED ALWAYS AS ((_raw_data->>'cancellation_reason')::text) STORED;
|
|
1149
|
+
ALTER TABLE "stripe"."setup_intents" ADD COLUMN "latest_attempt" text GENERATED ALWAYS AS ((_raw_data->>'latest_attempt')::text) STORED;
|
|
1150
|
+
ALTER TABLE "stripe"."setup_intents" ADD COLUMN "mandate" text GENERATED ALWAYS AS ((_raw_data->>'mandate')::text) STORED;
|
|
1151
|
+
ALTER TABLE "stripe"."setup_intents" ADD COLUMN "single_use_mandate" text GENERATED ALWAYS AS ((_raw_data->>'single_use_mandate')::text) STORED;
|
|
1152
|
+
ALTER TABLE "stripe"."setup_intents" ADD COLUMN "on_behalf_of" text GENERATED ALWAYS AS ((_raw_data->>'on_behalf_of')::text) STORED;
|
|
1153
|
+
ALTER TABLE "stripe"."subscription_items" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
1154
|
+
ALTER TABLE "stripe"."subscription_items" ADD COLUMN "billing_thresholds" jsonb GENERATED ALWAYS AS (_raw_data->'billing_thresholds') STORED;
|
|
1155
|
+
ALTER TABLE "stripe"."subscription_items" ADD COLUMN "created" integer GENERATED ALWAYS AS ((_raw_data->>'created')::integer) STORED;
|
|
1156
|
+
ALTER TABLE "stripe"."subscription_items" ADD COLUMN "deleted" boolean GENERATED ALWAYS AS ((_raw_data->>'deleted')::boolean) STORED;
|
|
1157
|
+
ALTER TABLE "stripe"."subscription_items" ADD COLUMN "metadata" jsonb GENERATED ALWAYS AS (_raw_data->'metadata') STORED;
|
|
1158
|
+
ALTER TABLE "stripe"."subscription_items" ADD COLUMN "quantity" integer GENERATED ALWAYS AS ((_raw_data->>'quantity')::integer) STORED;
|
|
1159
|
+
ALTER TABLE "stripe"."subscription_items" ADD COLUMN "price" text GENERATED ALWAYS AS ((_raw_data->>'price')::text) STORED;
|
|
1160
|
+
ALTER TABLE "stripe"."subscription_items" ADD COLUMN "subscription" text GENERATED ALWAYS AS ((_raw_data->>'subscription')::text) STORED;
|
|
1161
|
+
ALTER TABLE "stripe"."subscription_items" ADD COLUMN "tax_rates" jsonb GENERATED ALWAYS AS (_raw_data->'tax_rates') STORED;
|
|
1162
|
+
ALTER TABLE "stripe"."subscription_items" ADD COLUMN "current_period_end" integer GENERATED ALWAYS AS ((_raw_data->>'current_period_end')::integer) STORED;
|
|
1163
|
+
ALTER TABLE "stripe"."subscription_items" ADD COLUMN "current_period_start" integer GENERATED ALWAYS AS ((_raw_data->>'current_period_start')::integer) STORED;
|
|
1164
|
+
ALTER TABLE "stripe"."subscription_schedules" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
1165
|
+
ALTER TABLE "stripe"."subscription_schedules" ADD COLUMN "application" text GENERATED ALWAYS AS ((_raw_data->>'application')::text) STORED;
|
|
1166
|
+
ALTER TABLE "stripe"."subscription_schedules" ADD COLUMN "canceled_at" integer GENERATED ALWAYS AS ((_raw_data->>'canceled_at')::integer) STORED;
|
|
1167
|
+
ALTER TABLE "stripe"."subscription_schedules" ADD COLUMN "completed_at" integer GENERATED ALWAYS AS ((_raw_data->>'completed_at')::integer) STORED;
|
|
1168
|
+
ALTER TABLE "stripe"."subscription_schedules" ADD COLUMN "created" integer GENERATED ALWAYS AS ((_raw_data->>'created')::integer) STORED;
|
|
1169
|
+
ALTER TABLE "stripe"."subscription_schedules" ADD COLUMN "current_phase" jsonb GENERATED ALWAYS AS (_raw_data->'current_phase') STORED;
|
|
1170
|
+
ALTER TABLE "stripe"."subscription_schedules" ADD COLUMN "customer" text GENERATED ALWAYS AS ((_raw_data->>'customer')::text) STORED;
|
|
1171
|
+
ALTER TABLE "stripe"."subscription_schedules" ADD COLUMN "default_settings" jsonb GENERATED ALWAYS AS (_raw_data->'default_settings') STORED;
|
|
1172
|
+
ALTER TABLE "stripe"."subscription_schedules" ADD COLUMN "end_behavior" text GENERATED ALWAYS AS ((_raw_data->>'end_behavior')::text) STORED;
|
|
1173
|
+
ALTER TABLE "stripe"."subscription_schedules" ADD COLUMN "livemode" boolean GENERATED ALWAYS AS ((_raw_data->>'livemode')::boolean) STORED;
|
|
1174
|
+
ALTER TABLE "stripe"."subscription_schedules" ADD COLUMN "metadata" jsonb GENERATED ALWAYS AS (_raw_data->'metadata') STORED;
|
|
1175
|
+
ALTER TABLE "stripe"."subscription_schedules" ADD COLUMN "phases" jsonb GENERATED ALWAYS AS (_raw_data->'phases') STORED;
|
|
1176
|
+
ALTER TABLE "stripe"."subscription_schedules" ADD COLUMN "released_at" integer GENERATED ALWAYS AS ((_raw_data->>'released_at')::integer) STORED;
|
|
1177
|
+
ALTER TABLE "stripe"."subscription_schedules" ADD COLUMN "released_subscription" text GENERATED ALWAYS AS ((_raw_data->>'released_subscription')::text) STORED;
|
|
1178
|
+
ALTER TABLE "stripe"."subscription_schedules" ADD COLUMN "status" text GENERATED ALWAYS AS ((_raw_data->>'status')::text) STORED;
|
|
1179
|
+
ALTER TABLE "stripe"."subscription_schedules" ADD COLUMN "subscription" text GENERATED ALWAYS AS ((_raw_data->>'subscription')::text) STORED;
|
|
1180
|
+
ALTER TABLE "stripe"."subscription_schedules" ADD COLUMN "test_clock" text GENERATED ALWAYS AS ((_raw_data->>'test_clock')::text) STORED;
|
|
1181
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
1182
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "cancel_at_period_end" boolean GENERATED ALWAYS AS ((_raw_data->>'cancel_at_period_end')::boolean) STORED;
|
|
1183
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "current_period_end" integer GENERATED ALWAYS AS ((_raw_data->>'current_period_end')::integer) STORED;
|
|
1184
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "current_period_start" integer GENERATED ALWAYS AS ((_raw_data->>'current_period_start')::integer) STORED;
|
|
1185
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "default_payment_method" text GENERATED ALWAYS AS ((_raw_data->>'default_payment_method')::text) STORED;
|
|
1186
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "items" jsonb GENERATED ALWAYS AS (_raw_data->'items') STORED;
|
|
1187
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "metadata" jsonb GENERATED ALWAYS AS (_raw_data->'metadata') STORED;
|
|
1188
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "pending_setup_intent" text GENERATED ALWAYS AS ((_raw_data->>'pending_setup_intent')::text) STORED;
|
|
1189
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "pending_update" jsonb GENERATED ALWAYS AS (_raw_data->'pending_update') STORED;
|
|
1190
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "status" text GENERATED ALWAYS AS ((_raw_data->>'status')::text) STORED;
|
|
1191
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "application_fee_percent" double precision GENERATED ALWAYS AS ((_raw_data->>'application_fee_percent')::double precision) STORED;
|
|
1192
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "billing_cycle_anchor" integer GENERATED ALWAYS AS ((_raw_data->>'billing_cycle_anchor')::integer) STORED;
|
|
1193
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "billing_thresholds" jsonb GENERATED ALWAYS AS (_raw_data->'billing_thresholds') STORED;
|
|
1194
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "cancel_at" integer GENERATED ALWAYS AS ((_raw_data->>'cancel_at')::integer) STORED;
|
|
1195
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "canceled_at" integer GENERATED ALWAYS AS ((_raw_data->>'canceled_at')::integer) STORED;
|
|
1196
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "collection_method" text GENERATED ALWAYS AS ((_raw_data->>'collection_method')::text) STORED;
|
|
1197
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "created" integer GENERATED ALWAYS AS ((_raw_data->>'created')::integer) STORED;
|
|
1198
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "days_until_due" integer GENERATED ALWAYS AS ((_raw_data->>'days_until_due')::integer) STORED;
|
|
1199
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "default_source" text GENERATED ALWAYS AS ((_raw_data->>'default_source')::text) STORED;
|
|
1200
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "default_tax_rates" jsonb GENERATED ALWAYS AS (_raw_data->'default_tax_rates') STORED;
|
|
1201
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "discount" jsonb GENERATED ALWAYS AS (_raw_data->'discount') STORED;
|
|
1202
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "ended_at" integer GENERATED ALWAYS AS ((_raw_data->>'ended_at')::integer) STORED;
|
|
1203
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "livemode" boolean GENERATED ALWAYS AS ((_raw_data->>'livemode')::boolean) STORED;
|
|
1204
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "next_pending_invoice_item_invoice" integer GENERATED ALWAYS AS ((_raw_data->>'next_pending_invoice_item_invoice')::integer) STORED;
|
|
1205
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "pause_collection" jsonb GENERATED ALWAYS AS (_raw_data->'pause_collection') STORED;
|
|
1206
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "pending_invoice_item_interval" jsonb GENERATED ALWAYS AS (_raw_data->'pending_invoice_item_interval') STORED;
|
|
1207
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "start_date" integer GENERATED ALWAYS AS ((_raw_data->>'start_date')::integer) STORED;
|
|
1208
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "transfer_data" jsonb GENERATED ALWAYS AS (_raw_data->'transfer_data') STORED;
|
|
1209
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "trial_end" jsonb GENERATED ALWAYS AS (_raw_data->'trial_end') STORED;
|
|
1210
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "trial_start" jsonb GENERATED ALWAYS AS (_raw_data->'trial_start') STORED;
|
|
1211
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "schedule" text GENERATED ALWAYS AS ((_raw_data->>'schedule')::text) STORED;
|
|
1212
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "customer" text GENERATED ALWAYS AS ((_raw_data->>'customer')::text) STORED;
|
|
1213
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "latest_invoice" text GENERATED ALWAYS AS ((_raw_data->>'latest_invoice')::text) STORED;
|
|
1214
|
+
ALTER TABLE "stripe"."subscriptions" ADD COLUMN "plan" text GENERATED ALWAYS AS ((_raw_data->>'plan')::text) STORED;
|
|
1215
|
+
ALTER TABLE "stripe"."tax_ids" ADD COLUMN "object" text GENERATED ALWAYS AS ((_raw_data->>'object')::text) STORED;
|
|
1216
|
+
ALTER TABLE "stripe"."tax_ids" ADD COLUMN "country" text GENERATED ALWAYS AS ((_raw_data->>'country')::text) STORED;
|
|
1217
|
+
ALTER TABLE "stripe"."tax_ids" ADD COLUMN "customer" text GENERATED ALWAYS AS ((_raw_data->>'customer')::text) STORED;
|
|
1218
|
+
ALTER TABLE "stripe"."tax_ids" ADD COLUMN "type" text GENERATED ALWAYS AS ((_raw_data->>'type')::text) STORED;
|
|
1219
|
+
ALTER TABLE "stripe"."tax_ids" ADD COLUMN "value" text GENERATED ALWAYS AS ((_raw_data->>'value')::text) STORED;
|
|
1220
|
+
ALTER TABLE "stripe"."tax_ids" ADD COLUMN "created" integer GENERATED ALWAYS AS ((_raw_data->>'created')::integer) STORED;
|
|
1221
|
+
ALTER TABLE "stripe"."tax_ids" ADD COLUMN "livemode" boolean GENERATED ALWAYS AS ((_raw_data->>'livemode')::boolean) STORED;
|
|
1222
|
+
ALTER TABLE "stripe"."tax_ids" ADD COLUMN "owner" jsonb GENERATED ALWAYS AS (_raw_data->'owner') STORED;
|
|
1223
|
+
|
|
1224
|
+
-- ============================================================================
|
|
1225
|
+
-- STEP 3: RECREATE INDEXES
|
|
1226
|
+
-- ============================================================================
|
|
1227
|
+
|
|
1228
|
+
CREATE INDEX stripe_active_entitlements_customer_idx ON "stripe"."active_entitlements" USING btree (customer);
|
|
1229
|
+
CREATE INDEX stripe_active_entitlements_feature_idx ON "stripe"."active_entitlements" USING btree (feature);
|
|
1230
|
+
CREATE UNIQUE INDEX active_entitlements_lookup_key_key ON "stripe"."active_entitlements" (lookup_key) WHERE lookup_key IS NOT NULL;
|
|
1231
|
+
CREATE INDEX stripe_checkout_session_line_items_session_idx ON "stripe"."checkout_session_line_items" USING btree (checkout_session);
|
|
1232
|
+
CREATE INDEX stripe_checkout_session_line_items_price_idx ON "stripe"."checkout_session_line_items" USING btree (price);
|
|
1233
|
+
CREATE INDEX stripe_checkout_sessions_customer_idx ON "stripe"."checkout_sessions" USING btree (customer);
|
|
1234
|
+
CREATE INDEX stripe_checkout_sessions_subscription_idx ON "stripe"."checkout_sessions" USING btree (subscription);
|
|
1235
|
+
CREATE INDEX stripe_checkout_sessions_payment_intent_idx ON "stripe"."checkout_sessions" USING btree (payment_intent);
|
|
1236
|
+
CREATE INDEX stripe_checkout_sessions_invoice_idx ON "stripe"."checkout_sessions" USING btree (invoice);
|
|
1237
|
+
CREATE INDEX stripe_credit_notes_customer_idx ON "stripe"."credit_notes" USING btree (customer);
|
|
1238
|
+
CREATE INDEX stripe_credit_notes_invoice_idx ON "stripe"."credit_notes" USING btree (invoice);
|
|
1239
|
+
CREATE INDEX stripe_dispute_created_idx ON "stripe"."disputes" USING btree (created);
|
|
1240
|
+
CREATE INDEX stripe_early_fraud_warnings_charge_idx ON "stripe"."early_fraud_warnings" USING btree (charge);
|
|
1241
|
+
CREATE INDEX stripe_early_fraud_warnings_payment_intent_idx ON "stripe"."early_fraud_warnings" USING btree (payment_intent);
|
|
1242
|
+
CREATE UNIQUE INDEX features_lookup_key_key ON "stripe"."features" (lookup_key) WHERE lookup_key IS NOT NULL;
|
|
1243
|
+
CREATE INDEX stripe_invoices_customer_idx ON "stripe"."invoices" USING btree (customer);
|
|
1244
|
+
CREATE INDEX stripe_invoices_subscription_idx ON "stripe"."invoices" USING btree (subscription);
|
|
1245
|
+
CREATE INDEX stripe_payment_intents_customer_idx ON "stripe"."payment_intents" USING btree (customer);
|
|
1246
|
+
CREATE INDEX stripe_payment_intents_invoice_idx ON "stripe"."payment_intents" USING btree (invoice);
|
|
1247
|
+
CREATE INDEX stripe_payment_methods_customer_idx ON "stripe"."payment_methods" USING btree (customer);
|
|
1248
|
+
CREATE INDEX stripe_refunds_charge_idx ON "stripe"."refunds" USING btree (charge);
|
|
1249
|
+
CREATE INDEX stripe_refunds_payment_intent_idx ON "stripe"."refunds" USING btree (payment_intent);
|
|
1250
|
+
CREATE INDEX stripe_reviews_charge_idx ON "stripe"."reviews" USING btree (charge);
|
|
1251
|
+
CREATE INDEX stripe_reviews_payment_intent_idx ON "stripe"."reviews" USING btree (payment_intent);
|
|
1252
|
+
CREATE INDEX stripe_setup_intents_customer_idx ON "stripe"."setup_intents" USING btree (customer);
|
|
1253
|
+
CREATE INDEX stripe_tax_ids_customer_idx ON "stripe"."tax_ids" USING btree (customer);
|