@bhushanpawar/sqldb 1.0.6 → 1.0.7

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.
Files changed (169) hide show
  1. package/dist/cache/cache-manager.d.ts +18 -1
  2. package/dist/cache/cache-manager.d.ts.map +1 -1
  3. package/dist/cache/cache-manager.js +76 -2
  4. package/dist/cache/cache-manager.js.map +1 -1
  5. package/dist/cli/index.js +0 -0
  6. package/dist/client.d.ts +54 -0
  7. package/dist/client.d.ts.map +1 -1
  8. package/dist/client.js +124 -1
  9. package/dist/client.js.map +1 -1
  10. package/dist/connection/mariadb.d.ts +15 -0
  11. package/dist/connection/mariadb.d.ts.map +1 -1
  12. package/dist/connection/mariadb.js +25 -0
  13. package/dist/connection/mariadb.js.map +1 -1
  14. package/dist/discovery/relationship-parser.d.ts.map +1 -1
  15. package/dist/discovery/relationship-parser.js +8 -1
  16. package/dist/discovery/relationship-parser.js.map +1 -1
  17. package/dist/discovery/schema-reader.d.ts +2 -0
  18. package/dist/discovery/schema-reader.d.ts.map +1 -1
  19. package/dist/discovery/schema-reader.js +91 -0
  20. package/dist/discovery/schema-reader.js.map +1 -1
  21. package/dist/index.d.ts +2 -1
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +4 -1
  24. package/dist/index.js.map +1 -1
  25. package/dist/query/operations.d.ts +35 -1
  26. package/dist/query/operations.d.ts.map +1 -1
  27. package/dist/query/operations.js +307 -4
  28. package/dist/query/operations.js.map +1 -1
  29. package/dist/query/query-tracker.d.ts +30 -0
  30. package/dist/query/query-tracker.d.ts.map +1 -1
  31. package/dist/query/query-tracker.js +86 -1
  32. package/dist/query/query-tracker.js.map +1 -1
  33. package/dist/search/inverted-index-manager.d.ts +76 -0
  34. package/dist/search/inverted-index-manager.d.ts.map +1 -0
  35. package/dist/search/inverted-index-manager.js +371 -0
  36. package/dist/search/inverted-index-manager.js.map +1 -0
  37. package/dist/search/search-ranker.d.ts +91 -0
  38. package/dist/search/search-ranker.d.ts.map +1 -0
  39. package/dist/search/search-ranker.js +281 -0
  40. package/dist/search/search-ranker.js.map +1 -0
  41. package/dist/search/tokenizer.d.ts +80 -0
  42. package/dist/search/tokenizer.d.ts.map +1 -0
  43. package/dist/search/tokenizer.js +398 -0
  44. package/dist/search/tokenizer.js.map +1 -0
  45. package/dist/types/cache.d.ts +16 -0
  46. package/dist/types/cache.d.ts.map +1 -1
  47. package/dist/types/cache.js.map +1 -1
  48. package/dist/types/config.d.ts +10 -0
  49. package/dist/types/config.d.ts.map +1 -1
  50. package/dist/types/config.js +13 -1
  51. package/dist/types/config.js.map +1 -1
  52. package/dist/types/query.d.ts +4 -0
  53. package/dist/types/query.d.ts.map +1 -1
  54. package/dist/types/schema.d.ts +35 -0
  55. package/dist/types/schema.d.ts.map +1 -1
  56. package/dist/types/search.d.ts +223 -0
  57. package/dist/types/search.d.ts.map +1 -0
  58. package/dist/types/search.js +54 -0
  59. package/dist/types/search.js.map +1 -0
  60. package/dist/types/warming.d.ts +1 -1
  61. package/dist/types/warming.d.ts.map +1 -1
  62. package/dist/utils/case-converter.d.ts +38 -0
  63. package/dist/utils/case-converter.d.ts.map +1 -0
  64. package/dist/utils/case-converter.js +90 -0
  65. package/dist/utils/case-converter.js.map +1 -0
  66. package/dist/warming/auto-warming-manager.d.ts.map +1 -1
  67. package/dist/warming/auto-warming-manager.js +5 -0
  68. package/dist/warming/auto-warming-manager.js.map +1 -1
  69. package/package.json +7 -3
  70. package/dist/best-practice-example.d.ts +0 -35
  71. package/dist/best-practice-example.d.ts.map +0 -1
  72. package/dist/best-practice-example.js +0 -171
  73. package/dist/best-practice-example.js.map +0 -1
  74. package/dist/db-schema.d.ts +0 -413
  75. package/dist/db-schema.d.ts.map +0 -1
  76. package/dist/db-schema.js +0 -1149
  77. package/dist/db-schema.js.map +0 -1
  78. package/dist/demo-debug.d.ts +0 -2
  79. package/dist/demo-debug.d.ts.map +0 -1
  80. package/dist/demo-debug.js +0 -36
  81. package/dist/demo-debug.js.map +0 -1
  82. package/dist/smart-cache/cache/cache-key-builder.d.ts +0 -17
  83. package/dist/smart-cache/cache/cache-key-builder.d.ts.map +0 -1
  84. package/dist/smart-cache/cache/cache-key-builder.js +0 -100
  85. package/dist/smart-cache/cache/cache-key-builder.js.map +0 -1
  86. package/dist/smart-cache/cache/cache-manager.d.ts +0 -22
  87. package/dist/smart-cache/cache/cache-manager.d.ts.map +0 -1
  88. package/dist/smart-cache/cache/cache-manager.js +0 -124
  89. package/dist/smart-cache/cache/cache-manager.js.map +0 -1
  90. package/dist/smart-cache/cache/invalidation.d.ts +0 -15
  91. package/dist/smart-cache/cache/invalidation.d.ts.map +0 -1
  92. package/dist/smart-cache/cache/invalidation.js +0 -59
  93. package/dist/smart-cache/cache/invalidation.js.map +0 -1
  94. package/dist/smart-cache/client.d.ts +0 -36
  95. package/dist/smart-cache/client.d.ts.map +0 -1
  96. package/dist/smart-cache/client.js +0 -138
  97. package/dist/smart-cache/client.js.map +0 -1
  98. package/dist/smart-cache/connection/mariadb.d.ts +0 -14
  99. package/dist/smart-cache/connection/mariadb.d.ts.map +0 -1
  100. package/dist/smart-cache/connection/mariadb.js +0 -82
  101. package/dist/smart-cache/connection/mariadb.js.map +0 -1
  102. package/dist/smart-cache/connection/redis.d.ts +0 -20
  103. package/dist/smart-cache/connection/redis.d.ts.map +0 -1
  104. package/dist/smart-cache/connection/redis.js +0 -168
  105. package/dist/smart-cache/connection/redis.js.map +0 -1
  106. package/dist/smart-cache/discovery/dependency-graph.d.ts +0 -20
  107. package/dist/smart-cache/discovery/dependency-graph.d.ts.map +0 -1
  108. package/dist/smart-cache/discovery/dependency-graph.js +0 -89
  109. package/dist/smart-cache/discovery/dependency-graph.js.map +0 -1
  110. package/dist/smart-cache/discovery/relationship-parser.d.ts +0 -10
  111. package/dist/smart-cache/discovery/relationship-parser.d.ts.map +0 -1
  112. package/dist/smart-cache/discovery/relationship-parser.js +0 -40
  113. package/dist/smart-cache/discovery/relationship-parser.js.map +0 -1
  114. package/dist/smart-cache/discovery/schema-reader.d.ts +0 -15
  115. package/dist/smart-cache/discovery/schema-reader.d.ts.map +0 -1
  116. package/dist/smart-cache/discovery/schema-reader.js +0 -82
  117. package/dist/smart-cache/discovery/schema-reader.js.map +0 -1
  118. package/dist/smart-cache/examples/basic-usage.d.ts +0 -3
  119. package/dist/smart-cache/examples/basic-usage.d.ts.map +0 -1
  120. package/dist/smart-cache/examples/basic-usage.js +0 -105
  121. package/dist/smart-cache/examples/basic-usage.js.map +0 -1
  122. package/dist/smart-cache/examples/hooks-example.d.ts +0 -3
  123. package/dist/smart-cache/examples/hooks-example.d.ts.map +0 -1
  124. package/dist/smart-cache/examples/hooks-example.js +0 -133
  125. package/dist/smart-cache/examples/hooks-example.js.map +0 -1
  126. package/dist/smart-cache/examples/relationships-example.d.ts +0 -3
  127. package/dist/smart-cache/examples/relationships-example.d.ts.map +0 -1
  128. package/dist/smart-cache/examples/relationships-example.js +0 -88
  129. package/dist/smart-cache/examples/relationships-example.js.map +0 -1
  130. package/dist/smart-cache/hooks/hooks-manager.d.ts +0 -22
  131. package/dist/smart-cache/hooks/hooks-manager.d.ts.map +0 -1
  132. package/dist/smart-cache/hooks/hooks-manager.js +0 -117
  133. package/dist/smart-cache/hooks/hooks-manager.js.map +0 -1
  134. package/dist/smart-cache/index.d.ts +0 -19
  135. package/dist/smart-cache/index.d.ts.map +0 -1
  136. package/dist/smart-cache/index.js +0 -49
  137. package/dist/smart-cache/index.js.map +0 -1
  138. package/dist/smart-cache/query/operations.d.ts +0 -31
  139. package/dist/smart-cache/query/operations.d.ts.map +0 -1
  140. package/dist/smart-cache/query/operations.js +0 -187
  141. package/dist/smart-cache/query/operations.js.map +0 -1
  142. package/dist/smart-cache/query/query-builder.d.ts +0 -15
  143. package/dist/smart-cache/query/query-builder.d.ts.map +0 -1
  144. package/dist/smart-cache/query/query-builder.js +0 -169
  145. package/dist/smart-cache/query/query-builder.js.map +0 -1
  146. package/dist/smart-cache/query/table-proxy.d.ts +0 -11
  147. package/dist/smart-cache/query/table-proxy.d.ts.map +0 -1
  148. package/dist/smart-cache/query/table-proxy.js +0 -25
  149. package/dist/smart-cache/query/table-proxy.js.map +0 -1
  150. package/dist/smart-cache/types/cache.d.ts +0 -29
  151. package/dist/smart-cache/types/cache.d.ts.map +0 -1
  152. package/dist/smart-cache/types/cache.js +0 -10
  153. package/dist/smart-cache/types/cache.js.map +0 -1
  154. package/dist/smart-cache/types/config.d.ts +0 -47
  155. package/dist/smart-cache/types/config.d.ts.map +0 -1
  156. package/dist/smart-cache/types/config.js +0 -27
  157. package/dist/smart-cache/types/config.js.map +0 -1
  158. package/dist/smart-cache/types/query.d.ts +0 -36
  159. package/dist/smart-cache/types/query.d.ts.map +0 -1
  160. package/dist/smart-cache/types/query.js +0 -3
  161. package/dist/smart-cache/types/query.js.map +0 -1
  162. package/dist/smart-cache/types/schema.d.ts +0 -25
  163. package/dist/smart-cache/types/schema.d.ts.map +0 -1
  164. package/dist/smart-cache/types/schema.js +0 -3
  165. package/dist/smart-cache/types/schema.js.map +0 -1
  166. package/dist/trial.d.ts +0 -7
  167. package/dist/trial.d.ts.map +0 -1
  168. package/dist/trial.js +0 -30
  169. package/dist/trial.js.map +0 -1
package/dist/db-schema.js DELETED
@@ -1,1149 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- like;
4
- number;
5
- /** Default: current_timestamp() */
6
- created_on ? : Date | null;
7
- /** Default: current_timestamp() */
8
- updated_on ? : Date | null;
9
- ;
10
- /**
11
- * Table: location_info
12
- * Primary key: location_id
13
- */
14
- location_info: {
15
- /** Default: uuid() */
16
- location_id: any;
17
- /** Default: NULL */
18
- provider_id ? : any | null;
19
- /** Default: NULL */
20
- street_address ? : string | null;
21
- /** Default: NULL */
22
- city ? : string | null;
23
- /** Default: NULL */
24
- state ? : string | null;
25
- /** Default: NULL */
26
- country ? : string | null;
27
- /** Default: NULL */
28
- postal_code ? : string | null;
29
- /** Default: NULL */
30
- latitude ? : number | null;
31
- /** Default: NULL */
32
- longitude ? : number | null;
33
- /** Default: 5 */
34
- coverage_radius_in_km ? : number | null;
35
- /** Default: current_timestamp() */
36
- created_on ? : Date | null;
37
- /** Default: current_timestamp() */
38
- updated_on ? : Date | null;
39
- }
40
- ;
41
- /**
42
- * Table: notification_templates
43
- * Primary key: template_id
44
- */
45
- notification_templates: {
46
- /** Default: uuid() */
47
- template_id: any;
48
- /** Default: NULL */
49
- template_type ? : string | null;
50
- /** Default: NULL */
51
- receiver_user_type ? : string | null;
52
- /** Default: NULL */
53
- template_condition ? : string | null;
54
- /** Default: NULL */
55
- title ? : string | null;
56
- /** Default: NULL */
57
- description ? : string | null;
58
- /** Default: NULL */
59
- notification_data ? : string | null;
60
- /** Default: NULL */
61
- image ? : string | null;
62
- /** Default: NULL */
63
- status ? : string | null;
64
- /** Default: current_timestamp() */
65
- created_on ? : Date | null;
66
- /** Default: current_timestamp() */
67
- updated_on ? : Date | null;
68
- /** Default: NULL */
69
- notification_object_template ? : string | null;
70
- /** Default: NULL */
71
- scenario ? : string | null;
72
- }
73
- ;
74
- /**
75
- * Table: notification_templates_v2
76
- * Primary key: template_id
77
- */
78
- notification_templates_v2: {
79
- /** Default: uuid() */
80
- template_id: any;
81
- /** Default: NULL */
82
- template_type ? : string | null;
83
- /** Default: NULL */
84
- receiver_user_type ? : string | null;
85
- /** Default: NULL */
86
- scenario ? : string | null;
87
- /** Default: 'en' */
88
- language_code ? : string | null;
89
- /** Default: 1 */
90
- version ? : number | null;
91
- /** Default: 'active' */
92
- status ? : string | null;
93
- /** Default: NULL */
94
- template_condition ? : string | null;
95
- /** Default: NULL */
96
- notification_data ? : string | null;
97
- /** Default: NULL */
98
- notification_object_template ? : string | null;
99
- /** Default: NULL */
100
- image ? : string | null;
101
- /** Default: NULL */
102
- sms_template_name ? : string | null;
103
- /** Default: NULL */
104
- sms_body ? : string | null;
105
- /** Default: NULL */
106
- sms_variables ? : string | null;
107
- /** Default: NULL */
108
- email_template_name ? : string | null;
109
- /** Default: NULL */
110
- email_subject ? : string | null;
111
- /** Default: NULL */
112
- email_body ? : string | null;
113
- /** Default: NULL */
114
- email_variables ? : string | null;
115
- /** Default: NULL */
116
- whatsapp_template_name ? : string | null;
117
- /** Default: NULL */
118
- whatsapp_header ? : string | null;
119
- /** Default: NULL */
120
- whatsapp_body ? : string | null;
121
- /** Default: NULL */
122
- whatsapp_footer ? : string | null;
123
- /** Default: NULL */
124
- whatsapp_buttons ? : string | null;
125
- /** Default: NULL */
126
- whatsapp_variables ? : string | null;
127
- /** Default: NULL */
128
- push_title ? : string | null;
129
- /** Default: NULL */
130
- push_body ? : string | null;
131
- /** Default: NULL */
132
- push_variables ? : string | null;
133
- /** Default: 0 */
134
- supports_sms ? : number | null;
135
- /** Default: 0 */
136
- supports_email ? : number | null;
137
- /** Default: 0 */
138
- supports_whatsapp ? : number | null;
139
- /** Default: 0 */
140
- supports_push ? : number | null;
141
- /** Default: NULL */
142
- metadata ? : string | null;
143
- /** Default: current_timestamp() */
144
- created_on ? : Date | null;
145
- /** Default: current_timestamp() */
146
- updated_on ? : Date | null;
147
- }
148
- ;
149
- /**
150
- * Table: opening_hours
151
- * Primary key: opening_hours_id
152
- */
153
- opening_hours: {
154
- /** Default: uuid() */
155
- opening_hours_id: any;
156
- /** Default: NULL */
157
- provider_id ? : any | null;
158
- /** Default: NULL */
159
- day_of_week ? : number | null;
160
- /** Default: NULL */
161
- opening_time ? : Date | null;
162
- /** Default: NULL */
163
- closing_time ? : Date | null;
164
- /** Default: current_timestamp() */
165
- created_on ? : Date | null;
166
- /** Default: current_timestamp() */
167
- updated_on ? : Date | null;
168
- /** Default: NULL */
169
- deleted_at ? : Date | null;
170
- }
171
- ;
172
- /**
173
- * Table: order_history_log
174
- */
175
- order_history_log: {
176
- /** Default: uuid() */
177
- history_id: any;
178
- order_id: any;
179
- /** Default: NULL */
180
- status ? : string | null;
181
- /** Default: NULL */
182
- description ? : string | null;
183
- /** Default: current_timestamp() */
184
- created_on ? : Date | null;
185
- /** Default: NULL */
186
- created_on_timestamp ? : string | null;
187
- }
188
- ;
189
- /**
190
- * Table: orders
191
- * Primary key: order_id
192
- */
193
- orders: {
194
- /** Default: uuid() */
195
- order_id: any;
196
- /** Default: NULL */
197
- customer_id ? : any | null;
198
- /** Default: NULL */
199
- provider_id ? : any | null;
200
- /** Default: current_timestamp() */
201
- order_date ? : Date | null;
202
- /** Default: NULL */
203
- status ? : string | null;
204
- amount: number;
205
- /** Default: NULL */
206
- service_title ? : string | null;
207
- /** Default: current_timestamp() */
208
- created_on ? : Date | null;
209
- /** Default: current_timestamp() */
210
- updated_on ? : Date | null;
211
- /** Default: NULL */
212
- deleted_at ? : Date | null;
213
- /** Default: NULL */
214
- shopping_cart_id ? : any | null;
215
- /** Default: NULL */
216
- order_ref_id ? : string | null;
217
- /** Default: NULL */
218
- scheduled_start_date_time ? : Date | null;
219
- /** Default: NULL */
220
- scheduled_end_date_time ? : Date | null;
221
- /** Default: NULL */
222
- requested_end_date_time ? : Date | null;
223
- /** Default: NULL */
224
- requested_start_date_time ? : Date | null;
225
- /** Default: NULL */
226
- customer_address ? : string | null;
227
- /** Default: NULL */
228
- provider_address ? : string | null;
229
- /** Default: NULL */
230
- delivery_otp ? : number | null;
231
- /** Default: NULL */
232
- instructions_for_provider ? : string | null;
233
- /** Default: NULL */
234
- delivery_location ? : string | null;
235
- /** Default: NULL */
236
- is_at_store ? : number | null;
237
- /** Default: NULL */
238
- is_at_door_step ? : number | null;
239
- /** Default: NULL */
240
- is_remote ? : number | null;
241
- /** Default: NULL */
242
- receipt_image_url ? : string | null;
243
- /** Default: NULL */
244
- customer_latitude ? : string | null;
245
- /** Default: NULL */
246
- customer_longitude ? : string | null;
247
- /** Default: NULL */
248
- pricing_model_json ? : string | null;
249
- }
250
- ;
251
- /**
252
- * Table: payments
253
- * Primary key: payment_id
254
- */
255
- payments: {
256
- /** Default: uuid() */
257
- payment_id: any;
258
- /** Default: NULL */
259
- order_id ? : any | null;
260
- /** Default: current_timestamp() */
261
- payment_date ? : Date | null;
262
- amount: number;
263
- /** Default: 'PENDING' */
264
- payment_status ? : string | null;
265
- /** Default: current_timestamp() */
266
- created_on ? : Date | null;
267
- /** Default: current_timestamp() */
268
- updated_on ? : Date | null;
269
- /** Default: NULL */
270
- deleted_at ? : Date | null;
271
- /** Default: NULL */
272
- payment_request ? : string | null;
273
- /** Default: NULL */
274
- payment_response ? : string | null;
275
- /** Default: NULL */
276
- payment_link ? : string | null;
277
- }
278
- ;
279
- /**
280
- * Table: payout_history
281
- * Primary key: payout_history_id
282
- */
283
- payout_history: {
284
- payout_history_id: string;
285
- payout_ref_id: string;
286
- /** Default: current_timestamp() */
287
- created_on: Date;
288
- /** Default: current_timestamp() */
289
- updated_on: Date;
290
- status: string;
291
- /** Default: NULL */
292
- description ? : string | null;
293
- /** Default: NULL */
294
- payout_response ? : string | null;
295
- payout_id: string;
296
- /** Default: NULL */
297
- transfer_id ? : string | null;
298
- }
299
- ;
300
- /**
301
- * Table: payouts
302
- * Primary key: payout_id
303
- */
304
- payouts: {
305
- payout_id: string;
306
- payout_ref_id: string;
307
- order_id: string;
308
- order_ref_id: string;
309
- /** Default: NULL */
310
- transfer_id ? : string | null;
311
- amount: number;
312
- /** Default: NULL */
313
- payout_batch_id ? : string | null;
314
- /** Default: NULL */
315
- payout_request ? : string | null;
316
- /** Default: NULL */
317
- create_payout_response ? : string | null;
318
- /** Default: NULL */
319
- expected_completion_time ? : string | null;
320
- /** Default: current_timestamp() */
321
- created_on: Date;
322
- /** Default: current_timestamp() */
323
- updated_on: Date;
324
- /** Default: NULL */
325
- provider_id ? : string | null;
326
- /** Default: NULL */
327
- status ? : string | null;
328
- provider_beneficiary_id: string;
329
- /** Default: NULL */
330
- amount_without_tax ? : number | null;
331
- /** Default: NULL */
332
- commission ? : number | null;
333
- }
334
- ;
335
- /**
336
- * Table: promo_codes
337
- * Primary key: promo_code_id
338
- */
339
- promo_codes: {
340
- /** Default: uuid() */
341
- promo_code_id: any;
342
- code: string;
343
- /** Default: NULL */
344
- description ? : string | null;
345
- discount_type: string;
346
- discount_value: number;
347
- /** Default: NULL */
348
- min_order_amount ? : number | null;
349
- /** Default: NULL */
350
- max_uses ? : number | null;
351
- /** Default: NULL */
352
- start_date ? : Date | null;
353
- /** Default: NULL */
354
- end_date ? : Date | null;
355
- /** Default: NULL */
356
- provider_id ? : any | null;
357
- /** Default: current_timestamp() */
358
- created_on ? : Date | null;
359
- /** Default: current_timestamp() */
360
- updated_on ? : Date | null;
361
- /** Default: NULL */
362
- image_url ? : string | null;
363
- /** Default: 0 */
364
- max_discount_amount ? : number | null;
365
- /** Default: '[]' */
366
- service_ids ? : string | null;
367
- /** Default: 'ACTIVE' */
368
- status ? : string | null;
369
- /** Default: NULL */
370
- max_use_per_user ? : number | null;
371
- }
372
- ;
373
- /**
374
- * Table: provider
375
- * Primary key: provider_id
376
- */
377
- provider: {
378
- /** Default: uuid() */
379
- provider_id: any;
380
- /** Default: NULL */
381
- user_id ? : any | null;
382
- email: string;
383
- /** Default: NULL */
384
- name ? : string | null;
385
- /** Default: NULL */
386
- bio ? : string | null;
387
- /** Default: NULL */
388
- profile_picture_url ? : string | null;
389
- /** Default: 0.00 */
390
- balance ? : number | null;
391
- /** Default: 1 */
392
- is_active ? : number | null;
393
- /** Default: current_timestamp() */
394
- created_on ? : Date | null;
395
- /** Default: current_timestamp() */
396
- updated_on ? : Date | null;
397
- /** Default: NULL */
398
- deleted_at ? : Date | null;
399
- /** Default: 0 */
400
- is_kyc_completed ? : number | null;
401
- /** Default: NULL */
402
- company_type ? : string | null;
403
- /** Default: NULL */
404
- about ? : string | null;
405
- /** Default: 'ACTIVE' */
406
- status ? : string | null;
407
- /** Default: NULL */
408
- mobile_number ? : string | null;
409
- /** Default: NULL */
410
- country_code ? : string | null;
411
- /** Default: '' */
412
- adhar_front_image ? : string | null;
413
- /** Default: '' */
414
- adhar_back_image ? : string | null;
415
- /** Default: '' */
416
- pan_card_image ? : string | null;
417
- /** Default: '' */
418
- gst_number ? : string | null;
419
- /** Default: '' */
420
- gst_account_name ? : string | null;
421
- /** Default: '' */
422
- pan_card_number ? : string | null;
423
- /** Default: '' */
424
- name_on_pan_card ? : string | null;
425
- /** Default: '' */
426
- provider_beneficiary_id: string;
427
- /** Default: NULL */
428
- about_image ? : string | null;
429
- /** Default: NULL */
430
- bio_image ? : string | null;
431
- /** Default: NULL */
432
- provider_store_images ? : string | null;
433
- /** Default: NULL */
434
- store_address ? : string | null;
435
- /** Default: NULL */
436
- reviewer_comment ? : string | null;
437
- /** Default: NULL */
438
- adhar_card_number ? : string | null;
439
- /** Default: NULL */
440
- app_page_route ? : string | null;
441
- /** Default: NULL */
442
- gst_certificate_image ? : string | null;
443
- /** Default: NULL */
444
- cancelled_cheque_image ? : string | null;
445
- /** Default: NULL */
446
- business_mobile_number ? : string | null;
447
- /** Default: NULL */
448
- mother_name ? : string | null;
449
- /** Default: NULL */
450
- date_of_birth ? : Date | null;
451
- /** Default: 0 */
452
- is_female_profile ? : number | null;
453
- /** Default: 0 */
454
- is_aadhaar_verified ? : number | null;
455
- /** Default: NULL */
456
- offering_type ? : string | null;
457
- /** Default: NULL */
458
- full_name ? : string | null;
459
- /** Default: NULL */
460
- verification_id ? : string | null;
461
- /** Default: NULL */
462
- reference_id ? : string | null;
463
- /** Default: NULL */
464
- digilocker_response ? : string | null;
465
- /** Default: NULL */
466
- digilocker_url ? : string | null;
467
- /** Default: NULL */
468
- digilocker_status ? : string | null;
469
- /** Default: NULL */
470
- business_mobile_country_code ? : string | null;
471
- /** Default: NULL */
472
- integration_config ? : string | null;
473
- }
474
- ;
475
- /**
476
- * Table: provider_special_message
477
- * Primary key: special_message_id
478
- */
479
- provider_special_message: {
480
- /** Default: uuid() */
481
- special_message_id: any;
482
- /** Default: NULL */
483
- provider_id ? : any | null;
484
- /** Default: NULL */
485
- special_message ? : string | null;
486
- /** Default: NULL */
487
- special_message_image ? : string | null;
488
- /** Default: NULL */
489
- more_images ? : string | null;
490
- /** Default: NULL */
491
- reviewer_comment ? : string | null;
492
- /** Default: NULL */
493
- status ? : string | null;
494
- /** Default: current_timestamp() */
495
- created_on ? : Date | null;
496
- /** Default: current_timestamp() */
497
- updated_on ? : Date | null;
498
- /** Default: NULL */
499
- video_url ? : string | null;
500
- }
501
- ;
502
- /**
503
- * Table: recon
504
- * Primary key: recon_id
505
- */
506
- recon: {
507
- recon_id: string;
508
- /** Default: NULL */
509
- order_id ? : string | null;
510
- /** Default: NULL */
511
- customer_id ? : string | null;
512
- /** Default: NULL */
513
- provider_id ? : string | null;
514
- /** Default: NULL */
515
- order_date ? : Date | null;
516
- /** Default: NULL */
517
- order_status ? : string | null;
518
- /** Default: NULL */
519
- order_amount ? : number | null;
520
- /** Default: NULL */
521
- order_ref_id ? : string | null;
522
- /** Default: NULL */
523
- order_shopping_cart_id ? : string | null;
524
- /** Default: NULL */
525
- order_service_title ? : string | null;
526
- /** Default: NULL */
527
- order_discounted_price ? : number | null;
528
- /** Default: NULL */
529
- shopping_cart_tax_percentage ? : number | null;
530
- /** Default: NULL */
531
- shopping_cart_tax_amount ? : number | null;
532
- /** Default: NULL */
533
- shopping_cart_tax_total ? : number | null;
534
- /** Default: NULL */
535
- shopping_cart_delivery_charges ? : number | null;
536
- /** Default: NULL */
537
- shopping_cart_price_with_tax ? : number | null;
538
- /** Default: NULL */
539
- shopping_cart_platform_fee ? : number | null;
540
- /** Default: NULL */
541
- shopping_cart_final ? : number | null;
542
- /** Default: NULL */
543
- payout_id ? : string | null;
544
- /** Default: NULL */
545
- payout_status ? : string | null;
546
- /** Default: NULL */
547
- payout_amount ? : number | null;
548
- /** Default: NULL */
549
- payout_date ? : Date | null;
550
- /** Default: NULL */
551
- payout_ref_id ? : string | null;
552
- /** Default: NULL */
553
- amount_without_tax ? : number | null;
554
- /** Default: NULL */
555
- commission ? : number | null;
556
- /** Default: NULL */
557
- commission_percentage ? : number | null;
558
- /** Default: NULL */
559
- recon_status ? : string | null;
560
- /** Default: NULL */
561
- payout_amount_gateway_charges ? : number | null;
562
- created_on: Date;
563
- updated_on: Date;
564
- }
565
- ;
566
- /**
567
- * Table: s3_objects
568
- */
569
- s3_objects: {
570
- /** Default: uuid() */
571
- document_id ? : any | null;
572
- /** Default: NULL */
573
- owner_id ? : any | null;
574
- /** Default: NULL */
575
- e_tag ? : string | null;
576
- /** Default: NULL */
577
- server_side_encryption ? : string | null;
578
- /** Default: NULL */
579
- location ? : string | null;
580
- /** Default: NULL */
581
- file_key ? : string | null;
582
- /** Default: NULL */
583
- bucket ? : string | null;
584
- /** Default: current_timestamp() */
585
- created_on ? : Date | null;
586
- /** Default: current_timestamp() */
587
- updated_on ? : Date | null;
588
- }
589
- ;
590
- /**
591
- * Table: scheduled_activity
592
- * Primary key: scheduled_activity_id
593
- */
594
- scheduled_activity: {
595
- scheduled_activity_id: string;
596
- /** Default: NULL */
597
- template_id ? : string | null;
598
- payload: string;
599
- scheduled_at: Date;
600
- /** Default: 'PENDING' */
601
- status: string;
602
- task_type: string;
603
- scheduled_by: string;
604
- /** Default: 3 */
605
- max_retry: number;
606
- /** Default: 0 */
607
- retry_count: number;
608
- /** Default: NULL */
609
- last_retry_at ? : Date | null;
610
- /** Default: current_timestamp(3) */
611
- created_at: Date;
612
- /** Default: current_timestamp(3) */
613
- updated_at: Date;
614
- /** Default: current_timestamp() */
615
- created_on ? : Date | null;
616
- /** Default: current_timestamp() */
617
- updated_on ? : Date | null;
618
- }
619
- ;
620
- /**
621
- * Table: service_views
622
- * Primary key: service_view_id
623
- */
624
- service_views: {
625
- /** Default: uuid() */
626
- service_view_id: string;
627
- service_id: string;
628
- user_id: string;
629
- /** Default: 0 */
630
- is_multi_city: number;
631
- /** Default: current_timestamp() */
632
- created_on: Date;
633
- /** Default: current_timestamp() */
634
- updated_on: Date;
635
- }
636
- ;
637
- /**
638
- * Table: services
639
- * Primary key: service_id
640
- */
641
- services: {
642
- /** Default: uuid() */
643
- service_id: any;
644
- /** Default: NULL */
645
- provider_id ? : any | null;
646
- title: string;
647
- /** Default: NULL */
648
- description ? : string | null;
649
- /** Default: NULL */
650
- category ? : string | null;
651
- /** Default: current_timestamp() */
652
- creation_date ? : Date | null;
653
- /** Default: 1 */
654
- is_active ? : number | null;
655
- /** Default: NULL */
656
- sub_category_id ? : any | null;
657
- /** Default: NULL */
658
- category_id ? : any | null;
659
- /** Default: current_timestamp() */
660
- created_on ? : Date | null;
661
- /** Default: current_timestamp() */
662
- updated_on ? : Date | null;
663
- /** Default: NULL */
664
- deleted_at ? : Date | null;
665
- /** Default: NULL */
666
- base_price ? : number | null;
667
- /** Default: NULL */
668
- tax_type_id ? : any | null;
669
- /** Default: NULL */
670
- tax_id ? : any | null;
671
- /** Default: 0 */
672
- is_at_door_step ? : number | null;
673
- /** Default: 0 */
674
- is_cancelable ? : number | null;
675
- /** Default: 0 */
676
- is_at_store ? : number | null;
677
- /** Default: 'ACTIVE' */
678
- status ? : string | null;
679
- /** Default: NULL */
680
- other_image_urls ? : string | null;
681
- /** Default: 30 */
682
- task_duration_minutes ? : number | null;
683
- /** Default: NULL */
684
- tags ? : string | null;
685
- /** Default: NULL */
686
- image_url ? : string | null;
687
- /** Default: 30 */
688
- free_cancellation_in_minutes ? : number | null;
689
- /** Default: NULL */
690
- discounted_price ? : number | null;
691
- /** Default: 0 */
692
- is_available ? : number | null;
693
- /** Default: 0 */
694
- discount_percentage ? : number | null;
695
- /** Default: NULL */
696
- reviewer_comment ? : string | null;
697
- /** Default: NULL */
698
- rejection_message ? : string | null;
699
- /** Default: 0 */
700
- is_multi_city: number;
701
- /** Default: 0 */
702
- delivery_charges ? : number | null;
703
- /** Default: 0.00000000 */
704
- latitude ? : number | null;
705
- /** Default: 0.00000000 */
706
- longitude ? : number | null;
707
- /** Default: NULL */
708
- perimeter ? : number | null;
709
- /** Default: NULL */
710
- canonical_city_name ? : string | null;
711
- /** Default: NULL */
712
- is_remote ? : number | null;
713
- /** Default: 0 */
714
- is_pre_owned_item ? : number | null;
715
- /** Default: '{}' */
716
- currency_based_prices ? : string | null;
717
- /** Default: NULL */
718
- base_currency ? : string | null;
719
- }
720
- ;
721
- /**
722
- * Table: services_faq
723
- * Primary key: faq_id
724
- */
725
- services_faq: {
726
- /** Default: uuid() */
727
- faq_id: any;
728
- question: string;
729
- service_id: any;
730
- answer: string;
731
- /** Default: current_timestamp() */
732
- created_on ? : Date | null;
733
- /** Default: current_timestamp() */
734
- updated_on ? : Date | null;
735
- }
736
- ;
737
- /**
738
- * Table: services_review
739
- * Primary key: review_id
740
- */
741
- services_review: {
742
- /** Default: uuid() */
743
- review_id: any;
744
- /** Default: NULL */
745
- order_id ? : any | null;
746
- /** Default: NULL */
747
- provider_id ? : any | null;
748
- /** Default: NULL */
749
- customer_id ? : any | null;
750
- /** Default: NULL */
751
- rating ? : number | null;
752
- /** Default: NULL */
753
- comment ? : string | null;
754
- /** Default: current_timestamp() */
755
- review_date ? : Date | null;
756
- /** Default: current_timestamp() */
757
- created_on ? : Date | null;
758
- /** Default: current_timestamp() */
759
- updated_on ? : Date | null;
760
- /** Default: NULL */
761
- deleted_at ? : Date | null;
762
- /** Default: NULL */
763
- service_id ? : any | null;
764
- /** Default: 'PUBLISHED' */
765
- status ? : string | null;
766
- /** Default: NULL */
767
- reviewed_service_images ? : string | null;
768
- /** Default: NULL */
769
- service_recommendation ? : number | null;
770
- /** Default: NULL */
771
- is_service_recommended ? : number | null;
772
- }
773
- ;
774
- /**
775
- * Table: services_tax
776
- * Primary key: tax_id
777
- */
778
- services_tax: {
779
- /** Default: uuid() */
780
- tax_id: any;
781
- tax_name: string;
782
- tax_percentage: number;
783
- /** Default: current_timestamp() */
784
- created_on ? : Date | null;
785
- /** Default: current_timestamp() */
786
- updated_on ? : Date | null;
787
- }
788
- ;
789
- /**
790
- * Table: shopping_cart
791
- * Primary key: shopping_cart_id
792
- */
793
- shopping_cart: {
794
- /** Default: uuid() */
795
- shopping_cart_id: any;
796
- customer_id: any;
797
- /** Default: NULL */
798
- total_items ? : number | null;
799
- /** Default: NULL */
800
- cart_total ? : number | null;
801
- /** Default: NULL */
802
- total_discount ? : number | null;
803
- /** Default: NULL */
804
- final_price ? : number | null;
805
- /** Default: NULL */
806
- payment_mode ? : string | null;
807
- /** Default: NULL */
808
- promo_code_id ? : any | null;
809
- /** Default: NULL */
810
- payment_id ? : any | null;
811
- /** Default: NULL */
812
- order_id ? : any | null;
813
- order_status: string;
814
- /** Default: current_timestamp() */
815
- created_on ? : Date | null;
816
- /** Default: current_timestamp() */
817
- updated_on ? : Date | null;
818
- /** Default: NULL */
819
- service_id ? : any | null;
820
- /** Default: NULL */
821
- currency ? : string | null;
822
- }
823
- ;
824
- /**
825
- * Table: shopping_cart_item
826
- * Primary key: shopping_cart_item_id
827
- */
828
- shopping_cart_item: {
829
- /** Default: uuid() */
830
- shopping_cart_item_id: any;
831
- shopping_cart_id: any;
832
- service_id: any;
833
- /** Default: 1 */
834
- quantity: number;
835
- price: number;
836
- final_price: number;
837
- /** Default: current_timestamp() */
838
- added_on ? : Date | null;
839
- /** Default: current_timestamp() */
840
- created_on ? : Date | null;
841
- /** Default: current_timestamp() */
842
- updated_on ? : Date | null;
843
- }
844
- ;
845
- /**
846
- * Table: sliders
847
- * Primary key: slider_id
848
- */
849
- sliders: {
850
- /** Default: uuid() */
851
- slider_id: any;
852
- slider_title: string;
853
- /** Default: NULL */
854
- slider_image_url ? : string | null;
855
- /** Default: NULL */
856
- slider_type ? : string | null;
857
- /** Default: current_timestamp() */
858
- created_on ? : Date | null;
859
- /** Default: current_timestamp() */
860
- updated_on ? : Date | null;
861
- /** Default: NULL */
862
- status ? : string | null;
863
- /** Default: NULL */
864
- entity_ids ? : string | null;
865
- }
866
- ;
867
- /**
868
- * Table: sub_categories
869
- * Primary key: sub_category_id
870
- */
871
- sub_categories: {
872
- /** Default: uuid() */
873
- sub_category_id: any;
874
- /** Default: NULL */
875
- category_id ? : any | null;
876
- name: string;
877
- /** Default: NULL */
878
- description ? : string | null;
879
- image_url: string;
880
- dark_color: string;
881
- light_color: string;
882
- tags: string;
883
- /** Default: current_timestamp() */
884
- created_on ? : Date | null;
885
- /** Default: current_timestamp() */
886
- updated_on ? : Date | null;
887
- /** Default: NULL */
888
- deleted_at ? : Date | null;
889
- /** Default: 'ACTIVE' */
890
- status ? : string | null;
891
- }
892
- ;
893
- /**
894
- * Table: subscription
895
- * Primary key: subscription_id
896
- */
897
- subscription: {
898
- /** Default: uuid() */
899
- subscription_id: any;
900
- /** Default: NULL */
901
- description ? : string | null;
902
- price: number;
903
- status: string;
904
- duration_in_days: number;
905
- discounted_price: number;
906
- max_orders: number;
907
- commission_percentage: number;
908
- /** Default: current_timestamp() */
909
- created_on ? : Date | null;
910
- /** Default: 1 */
911
- is_active ? : number | null;
912
- /** Default: current_timestamp() */
913
- updated_on ? : Date | null;
914
- /** Default: 'INR' */
915
- currency ? : string | null;
916
- subscription_name: string;
917
- image_url: string;
918
- /** Default: '[]' */
919
- subscription_offerings ? : string | null;
920
- /** Default: 10 */
921
- rank_id ? : number | null;
922
- /** Default: 0 */
923
- commission_amount ? : number | null;
924
- /** Default: 0 */
925
- no_of_products ? : number | null;
926
- /** Default: 0.00 */
927
- taxes ? : number | null;
928
- /** Default: 0.00 */
929
- platform_fee ? : number | null;
930
- /** Default: 0.00 */
931
- final_price ? : number | null;
932
- }
933
- ;
934
- /**
935
- * Table: system_settings
936
- * Primary key: settings_id
937
- */
938
- system_settings: {
939
- /** Default: uuid() */
940
- settings_id: any;
941
- /** Default: NULL */
942
- user_id ? : any | null;
943
- /** Default: NULL */
944
- payment_gateways_settings ? : string | null;
945
- /** Default: NULL */
946
- terms_conditions ? : string | null;
947
- /** Default: NULL */
948
- privacy_policy ? : string | null;
949
- /** Default: NULL */
950
- about_us ? : string | null;
951
- /** Default: NULL */
952
- contact_us ? : string | null;
953
- /** Default: NULL */
954
- general_settings ? : string | null;
955
- /** Default: NULL */
956
- refund_policy ? : string | null;
957
- /** Default: NULL */
958
- customer_terms_conditions ? : string | null;
959
- /** Default: NULL */
960
- customer_privacy_policy ? : string | null;
961
- /** Default: NULL */
962
- country_code ? : string | null;
963
- /** Default: NULL */
964
- system_tax_settings ? : string | null;
965
- /** Default: NULL */
966
- range_units ? : string | null;
967
- /** Default: current_timestamp() */
968
- created_on ? : Date | null;
969
- /** Default: current_timestamp() */
970
- updated_on ? : Date | null;
971
- }
972
- ;
973
- /**
974
- * Table: ticket
975
- * Primary key: ticket_id
976
- */
977
- ticket: {
978
- /** Default: uuid() */
979
- ticket_id: any;
980
- /** Default: NULL */
981
- title ? : string | null;
982
- /** Default: NULL */
983
- description ? : string | null;
984
- /** Default: NULL */
985
- category ? : string | null;
986
- /** Default: NULL */
987
- sub_category ? : string | null;
988
- /** Default: NULL */
989
- status ? : string | null;
990
- /** Default: NULL */
991
- customer_id ? : any | null;
992
- /** Default: NULL */
993
- assignee_id ? : any | null;
994
- /** Default: NULL */
995
- priority ? : string | null;
996
- /** Default: NULL */
997
- type ? : string | null;
998
- /** Default: NULL */
999
- due_date ? : Date | null;
1000
- /** Default: NULL */
1001
- attachment_url ? : string | null;
1002
- /** Default: current_timestamp() */
1003
- created_on ? : Date | null;
1004
- /** Default: current_timestamp() */
1005
- updated_on ? : Date | null;
1006
- /** Default: NULL */
1007
- provider_profile ? : string | null;
1008
- /** Default: NULL */
1009
- provider_id ? : any | null;
1010
- /** Default: NULL */
1011
- reviewer_comment ? : string | null;
1012
- /** Default: NULL */
1013
- reviewer_id ? : any | null;
1014
- }
1015
- ;
1016
- /**
1017
- * Table: user
1018
- * Primary key: user_id
1019
- */
1020
- user: {
1021
- /** Default: uuid() */
1022
- user_id: any;
1023
- username: string;
1024
- email: string;
1025
- password: string;
1026
- /** Default: 1 */
1027
- default_password: number;
1028
- /** Default: 0 */
1029
- email_verified: number;
1030
- /** Default: NULL */
1031
- country_code ? : string | null;
1032
- /** Default: NULL */
1033
- mobile_iso_code ? : string | null;
1034
- /** Default: 0 */
1035
- mobile_verified: number;
1036
- /** Default: 1 */
1037
- is_active ? : number | null;
1038
- /** Default: current_timestamp() */
1039
- created_on ? : Date | null;
1040
- /** Default: current_timestamp() */
1041
- updated_on ? : Date | null;
1042
- /** Default: NULL */
1043
- deleted_at ? : Date | null;
1044
- /** Default: NULL */
1045
- id_token ? : string | null;
1046
- /** Default: NULL */
1047
- refresh_token ? : string | null;
1048
- /** Default: NULL */
1049
- fcm_id ? : string | null;
1050
- /** Default: NULL */
1051
- mpin ? : string | null;
1052
- /** Default: NULL */
1053
- mother_name ? : string | null;
1054
- /** Default: NULL */
1055
- date_of_birth ? : string | null;
1056
- /** Default: NULL */
1057
- mpin_token ? : string | null;
1058
- /** Default: NULL */
1059
- requested_delete_date_time ? : Date | null;
1060
- /** Default: 0 */
1061
- is_delete_requested ? : number | null;
1062
- }
1063
- ;
1064
- /**
1065
- * Table: user_notification
1066
- * Primary key: user_notification_id
1067
- */
1068
- user_notification: {
1069
- /** Default: uuid() */
1070
- user_notification_id: any;
1071
- /** Default: current_timestamp() */
1072
- created_on ? : Date | null;
1073
- /** Default: current_timestamp() */
1074
- updated_on ? : Date | null;
1075
- /** Default: NULL */
1076
- notification ? : string | null;
1077
- /** Default: NULL */
1078
- data ? : string | null;
1079
- /** Default: NULL */
1080
- token ? : string | null;
1081
- /** Default: NULL */
1082
- topic ? : string | null;
1083
- /** Default: NULL */
1084
- notification_condition ? : string | null;
1085
- /** Default: NULL */
1086
- android ? : string | null;
1087
- /** Default: NULL */
1088
- apns ? : string | null;
1089
- /** Default: NULL */
1090
- webpush ? : string | null;
1091
- /** Default: NULL */
1092
- fcm_options ? : string | null;
1093
- /** Default: NULL */
1094
- template_id ? : string | null;
1095
- /** Default: NULL */
1096
- delivery_status ? : string | null;
1097
- /** Default: NULL */
1098
- read_status ? : string | null;
1099
- /** Default: NULL */
1100
- user_type ? : string | null;
1101
- }
1102
- ;
1103
- /**
1104
- * Table: videos
1105
- * Primary key: video_id
1106
- */
1107
- videos: {
1108
- /** Default: uuid() */
1109
- video_id: any;
1110
- video_url: string;
1111
- title: string;
1112
- thumbnail_url: string;
1113
- video_type: string;
1114
- /** Default: 'DRAFT' */
1115
- status: string;
1116
- /** Default: current_timestamp() */
1117
- created_on: Date;
1118
- /** Default: current_timestamp() */
1119
- updated_on: Date;
1120
- /** Default: NULL */
1121
- description ? : string | null;
1122
- }
1123
- ;
1124
- /**
1125
- * Table: vw_prewarmed_services
1126
- * Primary key: service_id
1127
- */
1128
- vw_prewarmed_services: {
1129
- service_id: any;
1130
- /** Default: NULL */
1131
- payload ? : string | null;
1132
- /** Default: current_timestamp() */
1133
- last_updated ? : Date | null;
1134
- }
1135
- ;
1136
- /**
1137
- * Usage example:
1138
- *
1139
- * import { createSmartDB } from '@bhushanpawar/sqldb';
1140
- * import { DB } from "./db-schema";
1141
- *
1142
- * const db = await createSmartDB(config) as DB;
1143
- *
1144
- * // Now you have full type safety:
1145
- * const account_subscription = await db.account_subscription.findMany();
1146
- * const address = await db.address.findMany();
1147
- * const app_configurations = await db.app_configurations.findMany();
1148
- */
1149
- //# sourceMappingURL=db-schema.js.map