moonhead 1.0.0

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 (631) hide show
  1. package/README.md +32 -0
  2. package/dist/components/layout/app-header.d.ts +1 -0
  3. package/dist/components/layout/app-header.js +1 -0
  4. package/dist/components/layout/app-sidebar.d.ts +9 -0
  5. package/dist/components/layout/app-sidebar.js +1 -0
  6. package/dist/components/layout/brand-logo.d.ts +2 -0
  7. package/dist/components/layout/brand-logo.js +1 -0
  8. package/dist/components/layout/user-menu.d.ts +6 -0
  9. package/dist/components/layout/user-menu.js +1 -0
  10. package/dist/components/ui/action-form.d.ts +10 -0
  11. package/dist/components/ui/action-form.js +1 -0
  12. package/dist/components/ui/alert-dialog.d.ts +14 -0
  13. package/dist/components/ui/alert-dialog.js +1 -0
  14. package/dist/components/ui/alert.d.ts +12 -0
  15. package/dist/components/ui/alert.js +1 -0
  16. package/dist/components/ui/avatar.d.ts +12 -0
  17. package/dist/components/ui/avatar.js +1 -0
  18. package/dist/components/ui/badge.d.ts +2 -0
  19. package/dist/components/ui/badge.js +1 -0
  20. package/dist/components/ui/button.d.ts +12 -0
  21. package/dist/components/ui/button.js +1 -0
  22. package/dist/components/ui/card.d.ts +2 -0
  23. package/dist/components/ui/card.js +1 -0
  24. package/dist/components/ui/checkbox.d.ts +5 -0
  25. package/dist/components/ui/checkbox.js +1 -0
  26. package/dist/components/ui/combobox.d.ts +18 -0
  27. package/dist/components/ui/combobox.js +1 -0
  28. package/dist/components/ui/copy-button.d.ts +8 -0
  29. package/dist/components/ui/copy-button.js +1 -0
  30. package/dist/components/ui/country-select.d.ts +12 -0
  31. package/dist/components/ui/country-select.js +1 -0
  32. package/dist/components/ui/data-table.d.ts +11 -0
  33. package/dist/components/ui/data-table.js +1 -0
  34. package/dist/components/ui/date-range-picker.d.ts +25 -0
  35. package/dist/components/ui/date-range-picker.js +1 -0
  36. package/dist/components/ui/dialog.d.ts +19 -0
  37. package/dist/components/ui/dialog.js +1 -0
  38. package/dist/components/ui/drawer.d.ts +24 -0
  39. package/dist/components/ui/drawer.js +1 -0
  40. package/dist/components/ui/dropdown-menu.d.ts +17 -0
  41. package/dist/components/ui/dropdown-menu.js +1 -0
  42. package/dist/components/ui/field.d.ts +7 -0
  43. package/dist/components/ui/field.js +1 -0
  44. package/dist/components/ui/fieldset.d.ts +4 -0
  45. package/dist/components/ui/fieldset.js +1 -0
  46. package/dist/components/ui/form-field.d.ts +17 -0
  47. package/dist/components/ui/form-field.js +1 -0
  48. package/dist/components/ui/form.d.ts +3 -0
  49. package/dist/components/ui/form.js +1 -0
  50. package/dist/components/ui/icon-tile.d.ts +5 -0
  51. package/dist/components/ui/icon-tile.js +1 -0
  52. package/dist/components/ui/identity.d.ts +6 -0
  53. package/dist/components/ui/identity.js +1 -0
  54. package/dist/components/ui/input.d.ts +4 -0
  55. package/dist/components/ui/input.js +1 -0
  56. package/dist/components/ui/number-input.d.ts +19 -0
  57. package/dist/components/ui/number-input.js +1 -0
  58. package/dist/components/ui/otp-field.d.ts +6 -0
  59. package/dist/components/ui/otp-field.js +1 -0
  60. package/dist/components/ui/page-toolbar.d.ts +9 -0
  61. package/dist/components/ui/page-toolbar.js +1 -0
  62. package/dist/components/ui/password-input.d.ts +7 -0
  63. package/dist/components/ui/password-input.js +1 -0
  64. package/dist/components/ui/radio-group.d.ts +5 -0
  65. package/dist/components/ui/radio-group.js +1 -0
  66. package/dist/components/ui/search-input.d.ts +4 -0
  67. package/dist/components/ui/search-input.js +1 -0
  68. package/dist/components/ui/section-card.d.ts +7 -0
  69. package/dist/components/ui/section-card.js +1 -0
  70. package/dist/components/ui/select-field.d.ts +19 -0
  71. package/dist/components/ui/select-field.js +1 -0
  72. package/dist/components/ui/select.d.ts +17 -0
  73. package/dist/components/ui/select.js +1 -0
  74. package/dist/components/ui/sidebar.d.ts +27 -0
  75. package/dist/components/ui/sidebar.js +1 -0
  76. package/dist/components/ui/slider.d.ts +10 -0
  77. package/dist/components/ui/slider.js +1 -0
  78. package/dist/components/ui/sort-button.d.ts +5 -0
  79. package/dist/components/ui/sort-button.js +1 -0
  80. package/dist/components/ui/spinner.d.ts +4 -0
  81. package/dist/components/ui/spinner.js +1 -0
  82. package/dist/components/ui/status-badge.d.ts +11 -0
  83. package/dist/components/ui/status-badge.js +1 -0
  84. package/dist/components/ui/switch-field.d.ts +18 -0
  85. package/dist/components/ui/switch-field.js +1 -0
  86. package/dist/components/ui/switch.d.ts +3 -0
  87. package/dist/components/ui/switch.js +1 -0
  88. package/dist/components/ui/table-pagination.d.ts +9 -0
  89. package/dist/components/ui/table-pagination.js +1 -0
  90. package/dist/components/ui/table.d.ts +18 -0
  91. package/dist/components/ui/table.js +1 -0
  92. package/dist/components/ui/tabs.d.ts +8 -0
  93. package/dist/components/ui/tabs.js +1 -0
  94. package/dist/components/ui/tag-input.d.ts +9 -0
  95. package/dist/components/ui/tag-input.js +1 -0
  96. package/dist/components/ui/text-link.d.ts +10 -0
  97. package/dist/components/ui/text-link.js +1 -0
  98. package/dist/components/ui/textarea.d.ts +2 -0
  99. package/dist/components/ui/textarea.js +1 -0
  100. package/dist/components/ui/toast.d.ts +1 -0
  101. package/dist/components/ui/toast.js +1 -0
  102. package/dist/components/ui/tree.d.ts +32 -0
  103. package/dist/components/ui/tree.js +1 -0
  104. package/dist/db/client.d.ts +8 -0
  105. package/dist/db/client.js +1 -0
  106. package/dist/db/index.d.ts +3 -0
  107. package/dist/db/index.js +1 -0
  108. package/dist/db/logger.d.ts +2 -0
  109. package/dist/db/logger.js +1 -0
  110. package/dist/db/migrations/20260628182304_wonderful_groot/migration.sql +289 -0
  111. package/dist/db/migrations/20260628182304_wonderful_groot/snapshot.json +3750 -0
  112. package/dist/db/migrations/20260630082829_wet_robin_chapel/migration.sql +2 -0
  113. package/dist/db/migrations/20260630082829_wet_robin_chapel/snapshot.json +3791 -0
  114. package/dist/db/migrations/20260702132335_wooden_iron_monger/migration.sql +48 -0
  115. package/dist/db/migrations/20260702132335_wooden_iron_monger/snapshot.json +4407 -0
  116. package/dist/db/migrations/20260702142948_vengeful_rhino/migration.sql +1 -0
  117. package/dist/db/migrations/20260702142948_vengeful_rhino/snapshot.json +4420 -0
  118. package/dist/db/migrations/20260702185813_curved_pyro/migration.sql +16 -0
  119. package/dist/db/migrations/20260702185813_curved_pyro/snapshot.json +4646 -0
  120. package/dist/db/migrations/20260702192041_shiny_franklin_storm/migration.sql +16 -0
  121. package/dist/db/migrations/20260702192041_shiny_franklin_storm/snapshot.json +4872 -0
  122. package/dist/db/migrations/20260704101548_bizarre_namorita/migration.sql +1 -0
  123. package/dist/db/migrations/20260704101548_bizarre_namorita/snapshot.json +4885 -0
  124. package/dist/db/migrations/20260704105911_sleepy_juggernaut/migration.sql +1 -0
  125. package/dist/db/migrations/20260704105911_sleepy_juggernaut/snapshot.json +4898 -0
  126. package/dist/db/migrations/20260704115959_lean_sandman/migration.sql +1 -0
  127. package/dist/db/migrations/20260704115959_lean_sandman/snapshot.json +4885 -0
  128. package/dist/db/migrations/20260707231532_daffy_captain_stacy/migration.sql +10 -0
  129. package/dist/db/migrations/20260707231532_daffy_captain_stacy/snapshot.json +4919 -0
  130. package/dist/db/migrations/20260708190355_spooky_jimmy_woo/migration.sql +3 -0
  131. package/dist/db/migrations/20260708190355_spooky_jimmy_woo/snapshot.json +4970 -0
  132. package/dist/db/migrations/20260711145212_drop_legacy_earning_status/migration.sql +7 -0
  133. package/dist/db/migrations/20260711145212_drop_legacy_earning_status/snapshot.json +4968 -0
  134. package/dist/db/migrations/20260712161249_dashboard_stat_indexes/migration.sql +3 -0
  135. package/dist/db/migrations/20260712161249_dashboard_stat_indexes/snapshot.json +5038 -0
  136. package/dist/db/migrations/20260713013911_add_payout_paid_at/migration.sql +2 -0
  137. package/dist/db/migrations/20260713013911_add_payout_paid_at/snapshot.json +5072 -0
  138. package/dist/db/schema/analytics-outbox.d.ts +145 -0
  139. package/dist/db/schema/analytics-outbox.js +1 -0
  140. package/dist/db/schema/audit-logs.d.ts +204 -0
  141. package/dist/db/schema/audit-logs.js +1 -0
  142. package/dist/db/schema/campaigns.d.ts +180 -0
  143. package/dist/db/schema/campaigns.js +1 -0
  144. package/dist/db/schema/casinos.d.ts +129 -0
  145. package/dist/db/schema/casinos.js +1 -0
  146. package/dist/db/schema/commission-rule-groups.d.ts +84 -0
  147. package/dist/db/schema/commission-rule-groups.js +1 -0
  148. package/dist/db/schema/commission-rules.d.ts +145 -0
  149. package/dist/db/schema/commission-rules.js +1 -0
  150. package/dist/db/schema/commissions.d.ts +242 -0
  151. package/dist/db/schema/commissions.js +1 -0
  152. package/dist/db/schema/conversions.d.ts +302 -0
  153. package/dist/db/schema/conversions.js +1 -0
  154. package/dist/db/schema/deals.d.ts +180 -0
  155. package/dist/db/schema/deals.js +1 -0
  156. package/dist/db/schema/earnings.d.ts +262 -0
  157. package/dist/db/schema/earnings.js +1 -0
  158. package/dist/db/schema/groups.d.ts +214 -0
  159. package/dist/db/schema/groups.js +1 -0
  160. package/dist/db/schema/index.d.ts +18 -0
  161. package/dist/db/schema/index.js +1 -0
  162. package/dist/db/schema/payouts.d.ts +182 -0
  163. package/dist/db/schema/payouts.js +1 -0
  164. package/dist/db/schema/platform-settings.d.ts +84 -0
  165. package/dist/db/schema/platform-settings.js +1 -0
  166. package/dist/db/schema/player-activity.d.ts +159 -0
  167. package/dist/db/schema/player-activity.js +1 -0
  168. package/dist/db/schema/revshare-carryover.d.ts +129 -0
  169. package/dist/db/schema/revshare-carryover.js +1 -0
  170. package/dist/db/schema/sessions.d.ts +213 -0
  171. package/dist/db/schema/sessions.js +1 -0
  172. package/dist/db/schema/table.d.ts +1 -0
  173. package/dist/db/schema/table.js +1 -0
  174. package/dist/db/schema/users.d.ts +609 -0
  175. package/dist/db/schema/users.js +1 -0
  176. package/dist/db/schema/verification-tokens.d.ts +106 -0
  177. package/dist/db/schema/verification-tokens.js +1 -0
  178. package/dist/db/types/branded.d.ts +3 -0
  179. package/dist/db/types/branded.js +0 -0
  180. package/dist/db/types/commission-rules.d.ts +70 -0
  181. package/dist/db/types/commission-rules.js +1 -0
  182. package/dist/db/types/index.d.ts +2 -0
  183. package/dist/db/types/index.js +1 -0
  184. package/dist/emails/admin/support-message.d.ts +39 -0
  185. package/dist/emails/admin/support-message.js +5 -0
  186. package/dist/emails/affiliate/activated.d.ts +33 -0
  187. package/dist/emails/affiliate/activated.js +1 -0
  188. package/dist/emails/affiliate/deal-notice.d.ts +35 -0
  189. package/dist/emails/affiliate/deal-notice.js +1 -0
  190. package/dist/emails/affiliate/invite.d.ts +35 -0
  191. package/dist/emails/affiliate/invite.js +1 -0
  192. package/dist/emails/affiliate/signup-verify.d.ts +35 -0
  193. package/dist/emails/affiliate/signup-verify.js +1 -0
  194. package/dist/emails/auth/password-reset.d.ts +37 -0
  195. package/dist/emails/auth/password-reset.js +1 -0
  196. package/dist/emails/layout.d.ts +10 -0
  197. package/dist/emails/layout.js +1 -0
  198. package/dist/emails/manager/affiliate-activated.d.ts +33 -0
  199. package/dist/emails/manager/affiliate-activated.js +1 -0
  200. package/dist/emails/manager/bulk-affiliates-activated.d.ts +33 -0
  201. package/dist/emails/manager/bulk-affiliates-activated.js +1 -0
  202. package/dist/emails/manager/invite.d.ts +35 -0
  203. package/dist/emails/manager/invite.js +1 -0
  204. package/dist/emails/manager/pending-approval.d.ts +33 -0
  205. package/dist/emails/manager/pending-approval.js +1 -0
  206. package/dist/emails/preview-env.d.ts +2 -0
  207. package/dist/emails/preview-env.js +1 -0
  208. package/dist/features/affiliates/actions.d.ts +60 -0
  209. package/dist/features/affiliates/actions.js +1 -0
  210. package/dist/features/affiliates/activation-email.d.ts +8 -0
  211. package/dist/features/affiliates/activation-email.js +1 -0
  212. package/dist/features/affiliates/bulk-approve.d.ts +2 -0
  213. package/dist/features/affiliates/bulk-approve.js +1 -0
  214. package/dist/features/affiliates/components/affiliate-actions-menu.d.ts +6 -0
  215. package/dist/features/affiliates/components/affiliate-actions-menu.js +1 -0
  216. package/dist/features/affiliates/components/affiliate-create-button.d.ts +1 -0
  217. package/dist/features/affiliates/components/affiliate-create-button.js +1 -0
  218. package/dist/features/affiliates/components/affiliate-detail-tabs.d.ts +6 -0
  219. package/dist/features/affiliates/components/affiliate-detail-tabs.js +1 -0
  220. package/dist/features/affiliates/components/affiliate-dialog.d.ts +11 -0
  221. package/dist/features/affiliates/components/affiliate-dialog.js +1 -0
  222. package/dist/features/affiliates/components/affiliate-profile-fields.d.ts +6 -0
  223. package/dist/features/affiliates/components/affiliate-profile-fields.js +1 -0
  224. package/dist/features/affiliates/components/affiliate-status-badge.d.ts +4 -0
  225. package/dist/features/affiliates/components/affiliate-status-badge.js +1 -0
  226. package/dist/features/affiliates/components/affiliate-status-tabs.d.ts +4 -0
  227. package/dist/features/affiliates/components/affiliate-status-tabs.js +1 -0
  228. package/dist/features/affiliates/components/affiliates-table.d.ts +10 -0
  229. package/dist/features/affiliates/components/affiliates-table.js +1 -0
  230. package/dist/features/affiliates/components/assign-parent-dialog.d.ts +5 -0
  231. package/dist/features/affiliates/components/assign-parent-dialog.js +1 -0
  232. package/dist/features/affiliates/components/detach-affiliate-confirm.d.ts +5 -0
  233. package/dist/features/affiliates/components/detach-affiliate-confirm.js +1 -0
  234. package/dist/features/affiliates/components/reject-affiliate-confirm.d.ts +5 -0
  235. package/dist/features/affiliates/components/reject-affiliate-confirm.js +1 -0
  236. package/dist/features/affiliates/components/sub-affiliate-invite-button.d.ts +3 -0
  237. package/dist/features/affiliates/components/sub-affiliate-invite-button.js +1 -0
  238. package/dist/features/affiliates/invite.d.ts +6 -0
  239. package/dist/features/affiliates/invite.js +1 -0
  240. package/dist/features/affiliates/list-params.d.ts +27 -0
  241. package/dist/features/affiliates/list-params.js +1 -0
  242. package/dist/features/affiliates/pending-notification.d.ts +18 -0
  243. package/dist/features/affiliates/pending-notification.js +1 -0
  244. package/dist/features/affiliates/sub-invite.d.ts +7 -0
  245. package/dist/features/affiliates/sub-invite.js +1 -0
  246. package/dist/features/audit/action-labels.d.ts +15 -0
  247. package/dist/features/audit/action-labels.js +1 -0
  248. package/dist/features/audit/components/audit-log-table.d.ts +5 -0
  249. package/dist/features/audit/components/audit-log-table.js +1 -0
  250. package/dist/features/audit/list-params.d.ts +2 -0
  251. package/dist/features/audit/list-params.js +1 -0
  252. package/dist/features/audit/read.d.ts +27 -0
  253. package/dist/features/audit/read.js +1 -0
  254. package/dist/features/auth/actions.d.ts +33 -0
  255. package/dist/features/auth/actions.js +1 -0
  256. package/dist/features/auth/authorization.d.ts +14 -0
  257. package/dist/features/auth/authorization.js +1 -0
  258. package/dist/features/auth/components/accept-invite-form.d.ts +3 -0
  259. package/dist/features/auth/components/accept-invite-form.js +1 -0
  260. package/dist/features/auth/components/forgot-password-form.d.ts +1 -0
  261. package/dist/features/auth/components/forgot-password-form.js +1 -0
  262. package/dist/features/auth/components/permissions-form.d.ts +5 -0
  263. package/dist/features/auth/components/permissions-form.js +1 -0
  264. package/dist/features/auth/components/reset-password-form.d.ts +3 -0
  265. package/dist/features/auth/components/reset-password-form.js +1 -0
  266. package/dist/features/auth/components/signin-form.d.ts +5 -0
  267. package/dist/features/auth/components/signin-form.js +1 -0
  268. package/dist/features/auth/components/signup-form.d.ts +1 -0
  269. package/dist/features/auth/components/signup-form.js +1 -0
  270. package/dist/features/auth/components/verify-email-form.d.ts +3 -0
  271. package/dist/features/auth/components/verify-email-form.js +1 -0
  272. package/dist/features/auth/password-reset.d.ts +6 -0
  273. package/dist/features/auth/password-reset.js +1 -0
  274. package/dist/features/auth/permissions.d.ts +49 -0
  275. package/dist/features/auth/permissions.js +1 -0
  276. package/dist/features/auth/require.d.ts +3 -0
  277. package/dist/features/auth/require.js +1 -0
  278. package/dist/features/auth/signup-email.d.ts +6 -0
  279. package/dist/features/auth/signup-email.js +1 -0
  280. package/dist/features/campaigns/actions.d.ts +53 -0
  281. package/dist/features/campaigns/actions.js +1 -0
  282. package/dist/features/campaigns/components/campaign-dialog.d.ts +7 -0
  283. package/dist/features/campaigns/components/campaign-dialog.js +1 -0
  284. package/dist/features/campaigns/components/campaign-row-actions.d.ts +8 -0
  285. package/dist/features/campaigns/components/campaign-row-actions.js +1 -0
  286. package/dist/features/campaigns/components/campaign-status-badge.d.ts +6 -0
  287. package/dist/features/campaigns/components/campaign-status-badge.js +1 -0
  288. package/dist/features/campaigns/components/campaign-status-tabs.d.ts +1 -0
  289. package/dist/features/campaigns/components/campaign-status-tabs.js +1 -0
  290. package/dist/features/campaigns/components/campaigns-table.d.ts +7 -0
  291. package/dist/features/campaigns/components/campaigns-table.js +1 -0
  292. package/dist/features/campaigns/components/create-campaign-button.d.ts +5 -0
  293. package/dist/features/campaigns/components/create-campaign-button.js +1 -0
  294. package/dist/features/campaigns/components/sub-id-builder.d.ts +4 -0
  295. package/dist/features/campaigns/components/sub-id-builder.js +1 -0
  296. package/dist/features/campaigns/components/tracking-link-box.d.ts +3 -0
  297. package/dist/features/campaigns/components/tracking-link-box.js +1 -0
  298. package/dist/features/campaigns/components/tracking-link-cell.d.ts +4 -0
  299. package/dist/features/campaigns/components/tracking-link-cell.js +1 -0
  300. package/dist/features/campaigns/components/tracking-link-dialog.d.ts +6 -0
  301. package/dist/features/campaigns/components/tracking-link-dialog.js +1 -0
  302. package/dist/features/campaigns/list-params.d.ts +14 -0
  303. package/dist/features/campaigns/list-params.js +1 -0
  304. package/dist/features/campaigns/tracking-url.d.ts +8 -0
  305. package/dist/features/campaigns/tracking-url.js +1 -0
  306. package/dist/features/casinos/actions.d.ts +39 -0
  307. package/dist/features/casinos/actions.js +1 -0
  308. package/dist/features/casinos/components/casino-create-button.d.ts +1 -0
  309. package/dist/features/casinos/components/casino-create-button.js +1 -0
  310. package/dist/features/casinos/components/casino-dialog.d.ts +11 -0
  311. package/dist/features/casinos/components/casino-dialog.js +1 -0
  312. package/dist/features/casinos/components/casino-form-fields.d.ts +7 -0
  313. package/dist/features/casinos/components/casino-form-fields.js +1 -0
  314. package/dist/features/casinos/components/casino-status-tabs.d.ts +1 -0
  315. package/dist/features/casinos/components/casino-status-tabs.js +1 -0
  316. package/dist/features/casinos/components/casinos-table.d.ts +6 -0
  317. package/dist/features/casinos/components/casinos-table.js +1 -0
  318. package/dist/features/casinos/components/delete-casino-confirm.d.ts +5 -0
  319. package/dist/features/casinos/components/delete-casino-confirm.js +1 -0
  320. package/dist/features/casinos/list-params.d.ts +14 -0
  321. package/dist/features/casinos/list-params.js +1 -0
  322. package/dist/features/commissions/actions.d.ts +76 -0
  323. package/dist/features/commissions/actions.js +1 -0
  324. package/dist/features/commissions/components/casino-bindings-field.d.ts +10 -0
  325. package/dist/features/commissions/components/casino-bindings-field.js +1 -0
  326. package/dist/features/commissions/components/commission-create-button.d.ts +1 -0
  327. package/dist/features/commissions/components/commission-create-button.js +1 -0
  328. package/dist/features/commissions/components/commission-detail-dialog.d.ts +5 -0
  329. package/dist/features/commissions/components/commission-detail-dialog.js +1 -0
  330. package/dist/features/commissions/components/commission-editor.d.ts +8 -0
  331. package/dist/features/commissions/components/commission-editor.js +1 -0
  332. package/dist/features/commissions/components/commission-read-view.d.ts +5 -0
  333. package/dist/features/commissions/components/commission-read-view.js +1 -0
  334. package/dist/features/commissions/components/commission-status-badge.d.ts +4 -0
  335. package/dist/features/commissions/components/commission-status-badge.js +1 -0
  336. package/dist/features/commissions/components/commission-status-tabs.d.ts +1 -0
  337. package/dist/features/commissions/components/commission-status-tabs.js +1 -0
  338. package/dist/features/commissions/components/commissions-table.d.ts +14 -0
  339. package/dist/features/commissions/components/commissions-table.js +1 -0
  340. package/dist/features/commissions/components/delete-commission-confirm.d.ts +5 -0
  341. package/dist/features/commissions/components/delete-commission-confirm.js +1 -0
  342. package/dist/features/commissions/components/duplicate-commission-dialog.d.ts +6 -0
  343. package/dist/features/commissions/components/duplicate-commission-dialog.js +1 -0
  344. package/dist/features/commissions/components/rule-editor/conditions-block.d.ts +9 -0
  345. package/dist/features/commissions/components/rule-editor/conditions-block.js +1 -0
  346. package/dist/features/commissions/components/rule-editor/modifiers-block.d.ts +9 -0
  347. package/dist/features/commissions/components/rule-editor/modifiers-block.js +1 -0
  348. package/dist/features/commissions/components/rule-editor/qualifiers-block.d.ts +9 -0
  349. package/dist/features/commissions/components/rule-editor/qualifiers-block.js +1 -0
  350. package/dist/features/commissions/components/rule-editor/reducer.d.ts +102 -0
  351. package/dist/features/commissions/components/rule-editor/reducer.js +1 -0
  352. package/dist/features/commissions/components/rule-editor/rewards-block.d.ts +9 -0
  353. package/dist/features/commissions/components/rule-editor/rewards-block.js +1 -0
  354. package/dist/features/commissions/components/rule-editor/rule-card.d.ts +10 -0
  355. package/dist/features/commissions/components/rule-editor/rule-card.js +1 -0
  356. package/dist/features/commissions/components/rule-editor/rule-editor.d.ts +7 -0
  357. package/dist/features/commissions/components/rule-editor/rule-editor.js +1 -0
  358. package/dist/features/commissions/components/rule-editor/rule-group-card.d.ts +9 -0
  359. package/dist/features/commissions/components/rule-editor/rule-group-card.js +1 -0
  360. package/dist/features/commissions/components/rule-editor/state.d.ts +21 -0
  361. package/dist/features/commissions/components/rule-editor/state.js +1 -0
  362. package/dist/features/commissions/components/rule-groups-read-view.d.ts +4 -0
  363. package/dist/features/commissions/components/rule-groups-read-view.js +1 -0
  364. package/dist/features/commissions/list-params.d.ts +14 -0
  365. package/dist/features/commissions/list-params.js +1 -0
  366. package/dist/features/commissions/rule-validation.d.ts +173 -0
  367. package/dist/features/commissions/rule-validation.js +1 -0
  368. package/dist/features/dashboard/affiliate-queries.d.ts +14 -0
  369. package/dist/features/dashboard/affiliate-queries.js +1 -0
  370. package/dist/features/dashboard/clickhouse.d.ts +3 -0
  371. package/dist/features/dashboard/clickhouse.js +2 -0
  372. package/dist/features/dashboard/components/affiliate-charts.d.ts +5 -0
  373. package/dist/features/dashboard/components/affiliate-charts.js +1 -0
  374. package/dist/features/dashboard/components/affiliate-stats.d.ts +5 -0
  375. package/dist/features/dashboard/components/affiliate-stats.js +1 -0
  376. package/dist/features/dashboard/components/charts/funnel-chart.d.ts +11 -0
  377. package/dist/features/dashboard/components/charts/funnel-chart.js +1 -0
  378. package/dist/features/dashboard/components/charts/rank-bar-chart.d.ts +10 -0
  379. package/dist/features/dashboard/components/charts/rank-bar-chart.js +1 -0
  380. package/dist/features/dashboard/components/charts/time-series-chart.d.ts +12 -0
  381. package/dist/features/dashboard/components/charts/time-series-chart.js +1 -0
  382. package/dist/features/dashboard/components/charts-grid.d.ts +8 -0
  383. package/dist/features/dashboard/components/charts-grid.js +1 -0
  384. package/dist/features/dashboard/components/dashboard-charts.d.ts +4 -0
  385. package/dist/features/dashboard/components/dashboard-charts.js +1 -0
  386. package/dist/features/dashboard/components/dashboard-period-tabs.d.ts +1 -0
  387. package/dist/features/dashboard/components/dashboard-period-tabs.js +1 -0
  388. package/dist/features/dashboard/components/money-stat-card.d.ts +6 -0
  389. package/dist/features/dashboard/components/money-stat-card.js +1 -0
  390. package/dist/features/dashboard/components/stat-card.d.ts +6 -0
  391. package/dist/features/dashboard/components/stat-card.js +1 -0
  392. package/dist/features/dashboard/components/top-affiliates.d.ts +4 -0
  393. package/dist/features/dashboard/components/top-affiliates.js +1 -0
  394. package/dist/features/dashboard/list-params.d.ts +24 -0
  395. package/dist/features/dashboard/list-params.js +1 -0
  396. package/dist/features/dashboard/queries.d.ts +63 -0
  397. package/dist/features/dashboard/queries.js +1 -0
  398. package/dist/features/dashboard/series.d.ts +32 -0
  399. package/dist/features/dashboard/series.js +1 -0
  400. package/dist/features/deals/actions.d.ts +60 -0
  401. package/dist/features/deals/actions.js +1 -0
  402. package/dist/features/deals/components/affiliate-deals.d.ts +10 -0
  403. package/dist/features/deals/components/affiliate-deals.js +1 -0
  404. package/dist/features/deals/components/assign-deal-button.d.ts +9 -0
  405. package/dist/features/deals/components/assign-deal-button.js +1 -0
  406. package/dist/features/deals/components/deal-dialog.d.ts +19 -0
  407. package/dist/features/deals/components/deal-dialog.js +1 -0
  408. package/dist/features/deals/components/deal-row-actions.d.ts +6 -0
  409. package/dist/features/deals/components/deal-row-actions.js +1 -0
  410. package/dist/features/deals/components/deal-status-badge.d.ts +10 -0
  411. package/dist/features/deals/components/deal-status-badge.js +1 -0
  412. package/dist/features/deals/components/deal-status-tabs.d.ts +1 -0
  413. package/dist/features/deals/components/deal-status-tabs.js +1 -0
  414. package/dist/features/deals/components/delegate-deal-button.d.ts +8 -0
  415. package/dist/features/deals/components/delegate-deal-button.js +1 -0
  416. package/dist/features/deals/deal-assigned-email.d.ts +11 -0
  417. package/dist/features/deals/deal-assigned-email.js +1 -0
  418. package/dist/features/deals/deal-delegated-email.d.ts +13 -0
  419. package/dist/features/deals/deal-delegated-email.js +1 -0
  420. package/dist/features/deals/list-params.d.ts +14 -0
  421. package/dist/features/deals/list-params.js +1 -0
  422. package/dist/features/earnings/components/earnings-balances.d.ts +4 -0
  423. package/dist/features/earnings/components/earnings-balances.js +1 -0
  424. package/dist/features/earnings/components/earnings-ledger.d.ts +5 -0
  425. package/dist/features/earnings/components/earnings-ledger.js +1 -0
  426. package/dist/features/earnings/components/earnings-status-badge.d.ts +4 -0
  427. package/dist/features/earnings/components/earnings-status-badge.js +1 -0
  428. package/dist/features/earnings/components/earnings-status-tabs.d.ts +1 -0
  429. package/dist/features/earnings/components/earnings-status-tabs.js +1 -0
  430. package/dist/features/earnings/components/sub-affiliate-earnings.d.ts +4 -0
  431. package/dist/features/earnings/components/sub-affiliate-earnings.js +1 -0
  432. package/dist/features/earnings/list-params.d.ts +14 -0
  433. package/dist/features/earnings/list-params.js +1 -0
  434. package/dist/features/earnings/queries.d.ts +30 -0
  435. package/dist/features/earnings/queries.js +1 -0
  436. package/dist/features/groups/actions.d.ts +36 -0
  437. package/dist/features/groups/actions.js +1 -0
  438. package/dist/features/groups/components/delete-group-confirm.d.ts +5 -0
  439. package/dist/features/groups/components/delete-group-confirm.js +1 -0
  440. package/dist/features/groups/components/group-create-button.d.ts +1 -0
  441. package/dist/features/groups/components/group-create-button.js +1 -0
  442. package/dist/features/groups/components/group-dialog.d.ts +11 -0
  443. package/dist/features/groups/components/group-dialog.js +1 -0
  444. package/dist/features/groups/components/group-form-fields.d.ts +10 -0
  445. package/dist/features/groups/components/group-form-fields.js +1 -0
  446. package/dist/features/groups/components/group-status-tabs.d.ts +1 -0
  447. package/dist/features/groups/components/group-status-tabs.js +1 -0
  448. package/dist/features/groups/components/groups-table.d.ts +9 -0
  449. package/dist/features/groups/components/groups-table.js +1 -0
  450. package/dist/features/groups/list-params.d.ts +14 -0
  451. package/dist/features/groups/list-params.js +1 -0
  452. package/dist/features/managers/actions.d.ts +43 -0
  453. package/dist/features/managers/actions.js +1 -0
  454. package/dist/features/managers/components/manager-create-button.d.ts +1 -0
  455. package/dist/features/managers/components/manager-create-button.js +1 -0
  456. package/dist/features/managers/components/manager-dialog.d.ts +11 -0
  457. package/dist/features/managers/components/manager-dialog.js +1 -0
  458. package/dist/features/managers/components/manager-permissions-dialog.d.ts +7 -0
  459. package/dist/features/managers/components/manager-permissions-dialog.js +1 -0
  460. package/dist/features/managers/components/manager-profile-fields.d.ts +7 -0
  461. package/dist/features/managers/components/manager-profile-fields.js +1 -0
  462. package/dist/features/managers/components/manager-status-tabs.d.ts +1 -0
  463. package/dist/features/managers/components/manager-status-tabs.js +1 -0
  464. package/dist/features/managers/components/managers-table.d.ts +8 -0
  465. package/dist/features/managers/components/managers-table.js +1 -0
  466. package/dist/features/managers/invite.d.ts +6 -0
  467. package/dist/features/managers/invite.js +1 -0
  468. package/dist/features/managers/list-params.d.ts +14 -0
  469. package/dist/features/managers/list-params.js +1 -0
  470. package/dist/features/payouts/actions.d.ts +12 -0
  471. package/dist/features/payouts/actions.js +1 -0
  472. package/dist/features/payouts/balance.d.ts +2 -0
  473. package/dist/features/payouts/balance.js +1 -0
  474. package/dist/features/payouts/components/my-payouts-table.d.ts +5 -0
  475. package/dist/features/payouts/components/my-payouts-table.js +1 -0
  476. package/dist/features/payouts/components/payout-row-actions.d.ts +5 -0
  477. package/dist/features/payouts/components/payout-row-actions.js +1 -0
  478. package/dist/features/payouts/components/payout-status-badge.d.ts +4 -0
  479. package/dist/features/payouts/components/payout-status-badge.js +1 -0
  480. package/dist/features/payouts/components/payout-status-tabs.d.ts +1 -0
  481. package/dist/features/payouts/components/payout-status-tabs.js +1 -0
  482. package/dist/features/payouts/components/payouts-table.d.ts +6 -0
  483. package/dist/features/payouts/components/payouts-table.js +1 -0
  484. package/dist/features/payouts/components/request-payout-dialog.d.ts +4 -0
  485. package/dist/features/payouts/components/request-payout-dialog.js +1 -0
  486. package/dist/features/payouts/constants.d.ts +2 -0
  487. package/dist/features/payouts/constants.js +1 -0
  488. package/dist/features/payouts/list-params.d.ts +14 -0
  489. package/dist/features/payouts/list-params.js +1 -0
  490. package/dist/features/payouts/my-queries.d.ts +14 -0
  491. package/dist/features/payouts/my-queries.js +1 -0
  492. package/dist/features/payouts/queries.d.ts +14 -0
  493. package/dist/features/payouts/queries.js +1 -0
  494. package/dist/features/postbacks/actions.d.ts +27 -0
  495. package/dist/features/postbacks/actions.js +1 -0
  496. package/dist/features/postbacks/components/integration-dialog.d.ts +6 -0
  497. package/dist/features/postbacks/components/integration-dialog.js +1 -0
  498. package/dist/features/postbacks/components/postback-editor.d.ts +5 -0
  499. package/dist/features/postbacks/components/postback-editor.js +1 -0
  500. package/dist/features/postbacks/components/postbacks-table.d.ts +4 -0
  501. package/dist/features/postbacks/components/postbacks-table.js +1 -0
  502. package/dist/features/settings/actions.d.ts +2 -0
  503. package/dist/features/settings/actions.js +1 -0
  504. package/dist/features/settings/components/affiliate-approval-setting.d.ts +3 -0
  505. package/dist/features/settings/components/affiliate-approval-setting.js +1 -0
  506. package/dist/features/settings/components/manager-totp-setting.d.ts +3 -0
  507. package/dist/features/settings/components/manager-totp-setting.js +1 -0
  508. package/dist/features/support/actions.d.ts +12 -0
  509. package/dist/features/support/actions.js +1 -0
  510. package/dist/features/support/components/support-page.d.ts +4 -0
  511. package/dist/features/support/components/support-page.js +1 -0
  512. package/dist/features/support/email.d.ts +13 -0
  513. package/dist/features/support/email.js +1 -0
  514. package/dist/features/users/actions.d.ts +4 -0
  515. package/dist/features/users/actions.js +1 -0
  516. package/dist/features/users/components/password-section.d.ts +1 -0
  517. package/dist/features/users/components/password-section.js +1 -0
  518. package/dist/features/users/components/preferences-section.d.ts +4 -0
  519. package/dist/features/users/components/preferences-section.js +1 -0
  520. package/dist/features/users/components/settings-tabs.d.ts +1 -0
  521. package/dist/features/users/components/settings-tabs.js +1 -0
  522. package/dist/features/users/components/totp-section.d.ts +4 -0
  523. package/dist/features/users/components/totp-section.js +1 -0
  524. package/dist/features/users/list-params.d.ts +12 -0
  525. package/dist/features/users/list-params.js +1 -0
  526. package/dist/features/users/totp.d.ts +7 -0
  527. package/dist/features/users/totp.js +1 -0
  528. package/dist/i18n/config.d.ts +5 -0
  529. package/dist/i18n/config.js +1 -0
  530. package/dist/i18n/get-locale.d.ts +3 -0
  531. package/dist/i18n/get-locale.js +1 -0
  532. package/dist/i18n/locale.d.ts +2 -0
  533. package/dist/i18n/locale.js +1 -0
  534. package/dist/lib/actions/parse-form.d.ts +3 -0
  535. package/dist/lib/actions/parse-form.js +1 -0
  536. package/dist/lib/actions/state.d.ts +22 -0
  537. package/dist/lib/actions/state.js +0 -0
  538. package/dist/lib/audit/actions.d.ts +9 -0
  539. package/dist/lib/audit/actions.js +1 -0
  540. package/dist/lib/audit/record.d.ts +4 -0
  541. package/dist/lib/audit/record.js +1 -0
  542. package/dist/lib/auth/action.d.ts +45 -0
  543. package/dist/lib/auth/action.js +1 -0
  544. package/dist/lib/auth/config.d.ts +24 -0
  545. package/dist/lib/auth/config.js +1 -0
  546. package/dist/lib/auth/jwt.d.ts +17 -0
  547. package/dist/lib/auth/jwt.js +1 -0
  548. package/dist/lib/auth/password-options.d.ts +6 -0
  549. package/dist/lib/auth/password-options.js +1 -0
  550. package/dist/lib/auth/password.d.ts +3 -0
  551. package/dist/lib/auth/password.js +1 -0
  552. package/dist/lib/auth/session.d.ts +26 -0
  553. package/dist/lib/auth/session.js +1 -0
  554. package/dist/lib/auth/tokens.d.ts +43 -0
  555. package/dist/lib/auth/tokens.js +1 -0
  556. package/dist/lib/auth/totp-challenge.d.ts +4 -0
  557. package/dist/lib/auth/totp-challenge.js +1 -0
  558. package/dist/lib/auth/totp.d.ts +7 -0
  559. package/dist/lib/auth/totp.js +1 -0
  560. package/dist/lib/auth/verification-tokens.d.ts +19 -0
  561. package/dist/lib/auth/verification-tokens.js +1 -0
  562. package/dist/lib/cn.d.ts +2 -0
  563. package/dist/lib/cn.js +1 -0
  564. package/dist/lib/countries.d.ts +18 -0
  565. package/dist/lib/countries.js +1 -0
  566. package/dist/lib/currencies.d.ts +6 -0
  567. package/dist/lib/currencies.js +1 -0
  568. package/dist/lib/data/countries-by-continent.json +257 -0
  569. package/dist/lib/db/errors.d.ts +4 -0
  570. package/dist/lib/db/errors.js +1 -0
  571. package/dist/lib/email/client.d.ts +6 -0
  572. package/dist/lib/email/client.js +1 -0
  573. package/dist/lib/email/env.d.ts +12 -0
  574. package/dist/lib/email/env.js +1 -0
  575. package/dist/lib/email/format.d.ts +5 -0
  576. package/dist/lib/email/format.js +1 -0
  577. package/dist/lib/email/locale.d.ts +3 -0
  578. package/dist/lib/email/locale.js +1 -0
  579. package/dist/lib/email/send.d.ts +12 -0
  580. package/dist/lib/email/send.js +1 -0
  581. package/dist/lib/env.d.ts +20 -0
  582. package/dist/lib/env.js +1 -0
  583. package/dist/lib/errors/codes.d.ts +72 -0
  584. package/dist/lib/errors/codes.js +1 -0
  585. package/dist/lib/errors/server.d.ts +10 -0
  586. package/dist/lib/errors/server.js +1 -0
  587. package/dist/lib/format.d.ts +3 -0
  588. package/dist/lib/format.js +1 -0
  589. package/dist/lib/hooks/use-deferred-dialog.d.ts +11 -0
  590. package/dist/lib/hooks/use-deferred-dialog.js +1 -0
  591. package/dist/lib/hooks/use-form-reset.d.ts +2 -0
  592. package/dist/lib/hooks/use-form-reset.js +1 -0
  593. package/dist/lib/hooks/use-form-toast.d.ts +2 -0
  594. package/dist/lib/hooks/use-form-toast.js +1 -0
  595. package/dist/lib/i18n/format-datetime.d.ts +1 -0
  596. package/dist/lib/i18n/format-datetime.js +1 -0
  597. package/dist/lib/i18n/relative-time.d.ts +1 -0
  598. package/dist/lib/i18n/relative-time.js +1 -0
  599. package/dist/lib/list-params.d.ts +51 -0
  600. package/dist/lib/list-params.js +1 -0
  601. package/dist/lib/money.d.ts +2 -0
  602. package/dist/lib/money.js +1 -0
  603. package/dist/lib/platform-settings.d.ts +5 -0
  604. package/dist/lib/platform-settings.js +1 -0
  605. package/dist/lib/preferences/actions.d.ts +1 -0
  606. package/dist/lib/preferences/actions.js +1 -0
  607. package/dist/lib/preferences/index.d.ts +15 -0
  608. package/dist/lib/preferences/index.js +1 -0
  609. package/dist/lib/preferences/read.d.ts +2 -0
  610. package/dist/lib/preferences/read.js +1 -0
  611. package/dist/lib/slug.d.ts +1 -0
  612. package/dist/lib/slug.js +1 -0
  613. package/dist/lib/toast.d.ts +13 -0
  614. package/dist/lib/toast.js +1 -0
  615. package/dist/lib/tracking-cache.d.ts +2 -0
  616. package/dist/lib/tracking-cache.js +1 -0
  617. package/dist/lib/users.d.ts +12 -0
  618. package/dist/lib/users.js +1 -0
  619. package/dist/lib/validation/zod.d.ts +30 -0
  620. package/dist/lib/validation/zod.js +1 -0
  621. package/dist/messages/de/emails.json +136 -0
  622. package/dist/messages/de/index.json +1104 -0
  623. package/dist/messages/en/emails.json +136 -0
  624. package/dist/messages/en/index.json +1104 -0
  625. package/dist/theme/config.d.ts +8 -0
  626. package/dist/theme/config.js +1 -0
  627. package/dist/theme/get-theme.d.ts +3 -0
  628. package/dist/theme/get-theme.js +1 -0
  629. package/dist/theme/theme.d.ts +2 -0
  630. package/dist/theme/theme.js +1 -0
  631. package/package.json +131 -0
@@ -0,0 +1,4407 @@
1
+ {
2
+ "version": "8",
3
+ "dialect": "postgres",
4
+ "id": "021f7e33-4afa-4af6-b2e8-23b17eceeb76",
5
+ "prevIds": [
6
+ "c51da37a-dd21-4105-8a8f-35134f1fa91e"
7
+ ],
8
+ "ddl": [
9
+ {
10
+ "values": [
11
+ "active",
12
+ "deactivated"
13
+ ],
14
+ "name": "campaign_status",
15
+ "entityType": "enums",
16
+ "schema": "public"
17
+ },
18
+ {
19
+ "values": [
20
+ "draft",
21
+ "published",
22
+ "deactivated"
23
+ ],
24
+ "name": "commission_status",
25
+ "entityType": "enums",
26
+ "schema": "public"
27
+ },
28
+ {
29
+ "values": [
30
+ "rev_share",
31
+ "cpa",
32
+ "hybrid",
33
+ "custom"
34
+ ],
35
+ "name": "commission_strategy",
36
+ "entityType": "enums",
37
+ "schema": "public"
38
+ },
39
+ {
40
+ "values": [
41
+ "registration",
42
+ "ftd",
43
+ "deposit",
44
+ "ngr",
45
+ "chargeback"
46
+ ],
47
+ "name": "conversion_event",
48
+ "entityType": "enums",
49
+ "schema": "public"
50
+ },
51
+ {
52
+ "values": [
53
+ "casino",
54
+ "sportsbook"
55
+ ],
56
+ "name": "conversion_product",
57
+ "entityType": "enums",
58
+ "schema": "public"
59
+ },
60
+ {
61
+ "values": [
62
+ "pending",
63
+ "locked",
64
+ "paid",
65
+ "rejected"
66
+ ],
67
+ "name": "conversion_status",
68
+ "entityType": "enums",
69
+ "schema": "public"
70
+ },
71
+ {
72
+ "values": [
73
+ "active",
74
+ "deactivated"
75
+ ],
76
+ "name": "deal_status",
77
+ "entityType": "enums",
78
+ "schema": "public"
79
+ },
80
+ {
81
+ "values": [
82
+ "direct",
83
+ "sub_affiliate_share"
84
+ ],
85
+ "name": "earning_kind",
86
+ "entityType": "enums",
87
+ "schema": "public"
88
+ },
89
+ {
90
+ "values": [
91
+ "pending",
92
+ "confirmed",
93
+ "reversed",
94
+ "requested",
95
+ "paid"
96
+ ],
97
+ "name": "earning_status",
98
+ "entityType": "enums",
99
+ "schema": "public"
100
+ },
101
+ {
102
+ "values": [
103
+ "requested",
104
+ "approved",
105
+ "rejected",
106
+ "paid"
107
+ ],
108
+ "name": "payout_request_status",
109
+ "entityType": "enums",
110
+ "schema": "public"
111
+ },
112
+ {
113
+ "values": [
114
+ "admin_invite",
115
+ "self_signup",
116
+ "affiliate_invite"
117
+ ],
118
+ "name": "signup_source",
119
+ "entityType": "enums",
120
+ "schema": "public"
121
+ },
122
+ {
123
+ "values": [
124
+ "platform_admin",
125
+ "manager",
126
+ "affiliate"
127
+ ],
128
+ "name": "user_role",
129
+ "entityType": "enums",
130
+ "schema": "public"
131
+ },
132
+ {
133
+ "values": [
134
+ "active",
135
+ "blocked",
136
+ "rejected"
137
+ ],
138
+ "name": "user_status",
139
+ "entityType": "enums",
140
+ "schema": "public"
141
+ },
142
+ {
143
+ "values": [
144
+ "invite",
145
+ "password_reset",
146
+ "email_verify"
147
+ ],
148
+ "name": "verification_token_purpose",
149
+ "entityType": "enums",
150
+ "schema": "public"
151
+ },
152
+ {
153
+ "isRlsEnabled": false,
154
+ "name": "analytics_outbox",
155
+ "entityType": "tables",
156
+ "schema": "public"
157
+ },
158
+ {
159
+ "isRlsEnabled": false,
160
+ "name": "audit_logs",
161
+ "entityType": "tables",
162
+ "schema": "public"
163
+ },
164
+ {
165
+ "isRlsEnabled": false,
166
+ "name": "campaigns",
167
+ "entityType": "tables",
168
+ "schema": "public"
169
+ },
170
+ {
171
+ "isRlsEnabled": false,
172
+ "name": "casinos",
173
+ "entityType": "tables",
174
+ "schema": "public"
175
+ },
176
+ {
177
+ "isRlsEnabled": false,
178
+ "name": "commission_rule_groups",
179
+ "entityType": "tables",
180
+ "schema": "public"
181
+ },
182
+ {
183
+ "isRlsEnabled": false,
184
+ "name": "commission_rules",
185
+ "entityType": "tables",
186
+ "schema": "public"
187
+ },
188
+ {
189
+ "isRlsEnabled": false,
190
+ "name": "commission_casinos",
191
+ "entityType": "tables",
192
+ "schema": "public"
193
+ },
194
+ {
195
+ "isRlsEnabled": false,
196
+ "name": "commissions",
197
+ "entityType": "tables",
198
+ "schema": "public"
199
+ },
200
+ {
201
+ "isRlsEnabled": false,
202
+ "name": "conversions",
203
+ "entityType": "tables",
204
+ "schema": "public"
205
+ },
206
+ {
207
+ "isRlsEnabled": false,
208
+ "name": "deals",
209
+ "entityType": "tables",
210
+ "schema": "public"
211
+ },
212
+ {
213
+ "isRlsEnabled": false,
214
+ "name": "earnings_ledger",
215
+ "entityType": "tables",
216
+ "schema": "public"
217
+ },
218
+ {
219
+ "isRlsEnabled": false,
220
+ "name": "group_permissions",
221
+ "entityType": "tables",
222
+ "schema": "public"
223
+ },
224
+ {
225
+ "isRlsEnabled": false,
226
+ "name": "groups",
227
+ "entityType": "tables",
228
+ "schema": "public"
229
+ },
230
+ {
231
+ "isRlsEnabled": false,
232
+ "name": "user_groups",
233
+ "entityType": "tables",
234
+ "schema": "public"
235
+ },
236
+ {
237
+ "isRlsEnabled": false,
238
+ "name": "user_permissions",
239
+ "entityType": "tables",
240
+ "schema": "public"
241
+ },
242
+ {
243
+ "isRlsEnabled": false,
244
+ "name": "payout_requests",
245
+ "entityType": "tables",
246
+ "schema": "public"
247
+ },
248
+ {
249
+ "isRlsEnabled": false,
250
+ "name": "platform_settings",
251
+ "entityType": "tables",
252
+ "schema": "public"
253
+ },
254
+ {
255
+ "isRlsEnabled": false,
256
+ "name": "refresh_tokens",
257
+ "entityType": "tables",
258
+ "schema": "public"
259
+ },
260
+ {
261
+ "isRlsEnabled": false,
262
+ "name": "sessions",
263
+ "entityType": "tables",
264
+ "schema": "public"
265
+ },
266
+ {
267
+ "isRlsEnabled": false,
268
+ "name": "user_preferences",
269
+ "entityType": "tables",
270
+ "schema": "public"
271
+ },
272
+ {
273
+ "isRlsEnabled": false,
274
+ "name": "users",
275
+ "entityType": "tables",
276
+ "schema": "public"
277
+ },
278
+ {
279
+ "isRlsEnabled": false,
280
+ "name": "verification_tokens",
281
+ "entityType": "tables",
282
+ "schema": "public"
283
+ },
284
+ {
285
+ "type": "uuid",
286
+ "typeSchema": null,
287
+ "notNull": true,
288
+ "dimensions": 0,
289
+ "default": "gen_random_uuid()",
290
+ "generated": null,
291
+ "identity": null,
292
+ "name": "id",
293
+ "entityType": "columns",
294
+ "schema": "public",
295
+ "table": "analytics_outbox"
296
+ },
297
+ {
298
+ "type": "text",
299
+ "typeSchema": null,
300
+ "notNull": true,
301
+ "dimensions": 0,
302
+ "default": null,
303
+ "generated": null,
304
+ "identity": null,
305
+ "name": "event_type",
306
+ "entityType": "columns",
307
+ "schema": "public",
308
+ "table": "analytics_outbox"
309
+ },
310
+ {
311
+ "type": "jsonb",
312
+ "typeSchema": null,
313
+ "notNull": true,
314
+ "dimensions": 0,
315
+ "default": null,
316
+ "generated": null,
317
+ "identity": null,
318
+ "name": "payload",
319
+ "entityType": "columns",
320
+ "schema": "public",
321
+ "table": "analytics_outbox"
322
+ },
323
+ {
324
+ "type": "integer",
325
+ "typeSchema": null,
326
+ "notNull": true,
327
+ "dimensions": 0,
328
+ "default": "0",
329
+ "generated": null,
330
+ "identity": null,
331
+ "name": "attempts",
332
+ "entityType": "columns",
333
+ "schema": "public",
334
+ "table": "analytics_outbox"
335
+ },
336
+ {
337
+ "type": "text",
338
+ "typeSchema": null,
339
+ "notNull": false,
340
+ "dimensions": 0,
341
+ "default": null,
342
+ "generated": null,
343
+ "identity": null,
344
+ "name": "last_error",
345
+ "entityType": "columns",
346
+ "schema": "public",
347
+ "table": "analytics_outbox"
348
+ },
349
+ {
350
+ "type": "timestamp with time zone",
351
+ "typeSchema": null,
352
+ "notNull": true,
353
+ "dimensions": 0,
354
+ "default": "now()",
355
+ "generated": null,
356
+ "identity": null,
357
+ "name": "available_at",
358
+ "entityType": "columns",
359
+ "schema": "public",
360
+ "table": "analytics_outbox"
361
+ },
362
+ {
363
+ "type": "timestamp with time zone",
364
+ "typeSchema": null,
365
+ "notNull": false,
366
+ "dimensions": 0,
367
+ "default": null,
368
+ "generated": null,
369
+ "identity": null,
370
+ "name": "locked_at",
371
+ "entityType": "columns",
372
+ "schema": "public",
373
+ "table": "analytics_outbox"
374
+ },
375
+ {
376
+ "type": "text",
377
+ "typeSchema": null,
378
+ "notNull": false,
379
+ "dimensions": 0,
380
+ "default": null,
381
+ "generated": null,
382
+ "identity": null,
383
+ "name": "locked_by",
384
+ "entityType": "columns",
385
+ "schema": "public",
386
+ "table": "analytics_outbox"
387
+ },
388
+ {
389
+ "type": "timestamp with time zone",
390
+ "typeSchema": null,
391
+ "notNull": true,
392
+ "dimensions": 0,
393
+ "default": "now()",
394
+ "generated": null,
395
+ "identity": null,
396
+ "name": "created_at",
397
+ "entityType": "columns",
398
+ "schema": "public",
399
+ "table": "analytics_outbox"
400
+ },
401
+ {
402
+ "type": "uuid",
403
+ "typeSchema": null,
404
+ "notNull": true,
405
+ "dimensions": 0,
406
+ "default": "gen_random_uuid()",
407
+ "generated": null,
408
+ "identity": null,
409
+ "name": "id",
410
+ "entityType": "columns",
411
+ "schema": "public",
412
+ "table": "audit_logs"
413
+ },
414
+ {
415
+ "type": "uuid",
416
+ "typeSchema": null,
417
+ "notNull": false,
418
+ "dimensions": 0,
419
+ "default": null,
420
+ "generated": null,
421
+ "identity": null,
422
+ "name": "actor_id",
423
+ "entityType": "columns",
424
+ "schema": "public",
425
+ "table": "audit_logs"
426
+ },
427
+ {
428
+ "type": "user_role",
429
+ "typeSchema": "public",
430
+ "notNull": true,
431
+ "dimensions": 0,
432
+ "default": null,
433
+ "generated": null,
434
+ "identity": null,
435
+ "name": "actor_role",
436
+ "entityType": "columns",
437
+ "schema": "public",
438
+ "table": "audit_logs"
439
+ },
440
+ {
441
+ "type": "text",
442
+ "typeSchema": null,
443
+ "notNull": false,
444
+ "dimensions": 0,
445
+ "default": null,
446
+ "generated": null,
447
+ "identity": null,
448
+ "name": "actor_email",
449
+ "entityType": "columns",
450
+ "schema": "public",
451
+ "table": "audit_logs"
452
+ },
453
+ {
454
+ "type": "uuid",
455
+ "typeSchema": null,
456
+ "notNull": false,
457
+ "dimensions": 0,
458
+ "default": null,
459
+ "generated": null,
460
+ "identity": null,
461
+ "name": "subject_id",
462
+ "entityType": "columns",
463
+ "schema": "public",
464
+ "table": "audit_logs"
465
+ },
466
+ {
467
+ "type": "text",
468
+ "typeSchema": null,
469
+ "notNull": true,
470
+ "dimensions": 0,
471
+ "default": null,
472
+ "generated": null,
473
+ "identity": null,
474
+ "name": "action",
475
+ "entityType": "columns",
476
+ "schema": "public",
477
+ "table": "audit_logs"
478
+ },
479
+ {
480
+ "type": "text",
481
+ "typeSchema": null,
482
+ "notNull": false,
483
+ "dimensions": 0,
484
+ "default": null,
485
+ "generated": null,
486
+ "identity": null,
487
+ "name": "target_type",
488
+ "entityType": "columns",
489
+ "schema": "public",
490
+ "table": "audit_logs"
491
+ },
492
+ {
493
+ "type": "text",
494
+ "typeSchema": null,
495
+ "notNull": false,
496
+ "dimensions": 0,
497
+ "default": null,
498
+ "generated": null,
499
+ "identity": null,
500
+ "name": "target_id",
501
+ "entityType": "columns",
502
+ "schema": "public",
503
+ "table": "audit_logs"
504
+ },
505
+ {
506
+ "type": "text",
507
+ "typeSchema": null,
508
+ "notNull": false,
509
+ "dimensions": 0,
510
+ "default": null,
511
+ "generated": null,
512
+ "identity": null,
513
+ "name": "target_label",
514
+ "entityType": "columns",
515
+ "schema": "public",
516
+ "table": "audit_logs"
517
+ },
518
+ {
519
+ "type": "jsonb",
520
+ "typeSchema": null,
521
+ "notNull": false,
522
+ "dimensions": 0,
523
+ "default": null,
524
+ "generated": null,
525
+ "identity": null,
526
+ "name": "metadata",
527
+ "entityType": "columns",
528
+ "schema": "public",
529
+ "table": "audit_logs"
530
+ },
531
+ {
532
+ "type": "text",
533
+ "typeSchema": null,
534
+ "notNull": false,
535
+ "dimensions": 0,
536
+ "default": null,
537
+ "generated": null,
538
+ "identity": null,
539
+ "name": "ip_address",
540
+ "entityType": "columns",
541
+ "schema": "public",
542
+ "table": "audit_logs"
543
+ },
544
+ {
545
+ "type": "text",
546
+ "typeSchema": null,
547
+ "notNull": false,
548
+ "dimensions": 0,
549
+ "default": null,
550
+ "generated": null,
551
+ "identity": null,
552
+ "name": "user_agent",
553
+ "entityType": "columns",
554
+ "schema": "public",
555
+ "table": "audit_logs"
556
+ },
557
+ {
558
+ "type": "timestamp with time zone",
559
+ "typeSchema": null,
560
+ "notNull": true,
561
+ "dimensions": 0,
562
+ "default": "now()",
563
+ "generated": null,
564
+ "identity": null,
565
+ "name": "created_at",
566
+ "entityType": "columns",
567
+ "schema": "public",
568
+ "table": "audit_logs"
569
+ },
570
+ {
571
+ "type": "uuid",
572
+ "typeSchema": null,
573
+ "notNull": true,
574
+ "dimensions": 0,
575
+ "default": "gen_random_uuid()",
576
+ "generated": null,
577
+ "identity": null,
578
+ "name": "id",
579
+ "entityType": "columns",
580
+ "schema": "public",
581
+ "table": "campaigns"
582
+ },
583
+ {
584
+ "type": "uuid",
585
+ "typeSchema": null,
586
+ "notNull": true,
587
+ "dimensions": 0,
588
+ "default": null,
589
+ "generated": null,
590
+ "identity": null,
591
+ "name": "affiliate_id",
592
+ "entityType": "columns",
593
+ "schema": "public",
594
+ "table": "campaigns"
595
+ },
596
+ {
597
+ "type": "uuid",
598
+ "typeSchema": null,
599
+ "notNull": true,
600
+ "dimensions": 0,
601
+ "default": null,
602
+ "generated": null,
603
+ "identity": null,
604
+ "name": "casino_id",
605
+ "entityType": "columns",
606
+ "schema": "public",
607
+ "table": "campaigns"
608
+ },
609
+ {
610
+ "type": "uuid",
611
+ "typeSchema": null,
612
+ "notNull": true,
613
+ "dimensions": 0,
614
+ "default": null,
615
+ "generated": null,
616
+ "identity": null,
617
+ "name": "commission_id",
618
+ "entityType": "columns",
619
+ "schema": "public",
620
+ "table": "campaigns"
621
+ },
622
+ {
623
+ "type": "campaign_status",
624
+ "typeSchema": "public",
625
+ "notNull": true,
626
+ "dimensions": 0,
627
+ "default": "'active'",
628
+ "generated": null,
629
+ "identity": null,
630
+ "name": "status",
631
+ "entityType": "columns",
632
+ "schema": "public",
633
+ "table": "campaigns"
634
+ },
635
+ {
636
+ "type": "text",
637
+ "typeSchema": null,
638
+ "notNull": true,
639
+ "dimensions": 0,
640
+ "default": null,
641
+ "generated": null,
642
+ "identity": null,
643
+ "name": "name",
644
+ "entityType": "columns",
645
+ "schema": "public",
646
+ "table": "campaigns"
647
+ },
648
+ {
649
+ "type": "text",
650
+ "typeSchema": null,
651
+ "notNull": false,
652
+ "dimensions": 0,
653
+ "default": null,
654
+ "generated": null,
655
+ "identity": null,
656
+ "name": "description",
657
+ "entityType": "columns",
658
+ "schema": "public",
659
+ "table": "campaigns"
660
+ },
661
+ {
662
+ "type": "text",
663
+ "typeSchema": null,
664
+ "notNull": true,
665
+ "dimensions": 0,
666
+ "default": null,
667
+ "generated": null,
668
+ "identity": null,
669
+ "name": "slug",
670
+ "entityType": "columns",
671
+ "schema": "public",
672
+ "table": "campaigns"
673
+ },
674
+ {
675
+ "type": "boolean",
676
+ "typeSchema": null,
677
+ "notNull": true,
678
+ "dimensions": 0,
679
+ "default": "true",
680
+ "generated": null,
681
+ "identity": null,
682
+ "name": "allow_sub_ids",
683
+ "entityType": "columns",
684
+ "schema": "public",
685
+ "table": "campaigns"
686
+ },
687
+ {
688
+ "type": "timestamp with time zone",
689
+ "typeSchema": null,
690
+ "notNull": true,
691
+ "dimensions": 0,
692
+ "default": "now()",
693
+ "generated": null,
694
+ "identity": null,
695
+ "name": "created_at",
696
+ "entityType": "columns",
697
+ "schema": "public",
698
+ "table": "campaigns"
699
+ },
700
+ {
701
+ "type": "timestamp with time zone",
702
+ "typeSchema": null,
703
+ "notNull": true,
704
+ "dimensions": 0,
705
+ "default": "now()",
706
+ "generated": null,
707
+ "identity": null,
708
+ "name": "updated_at",
709
+ "entityType": "columns",
710
+ "schema": "public",
711
+ "table": "campaigns"
712
+ },
713
+ {
714
+ "type": "uuid",
715
+ "typeSchema": null,
716
+ "notNull": true,
717
+ "dimensions": 0,
718
+ "default": "gen_random_uuid()",
719
+ "generated": null,
720
+ "identity": null,
721
+ "name": "id",
722
+ "entityType": "columns",
723
+ "schema": "public",
724
+ "table": "casinos"
725
+ },
726
+ {
727
+ "type": "text",
728
+ "typeSchema": null,
729
+ "notNull": true,
730
+ "dimensions": 0,
731
+ "default": null,
732
+ "generated": null,
733
+ "identity": null,
734
+ "name": "name",
735
+ "entityType": "columns",
736
+ "schema": "public",
737
+ "table": "casinos"
738
+ },
739
+ {
740
+ "type": "boolean",
741
+ "typeSchema": null,
742
+ "notNull": true,
743
+ "dimensions": 0,
744
+ "default": "true",
745
+ "generated": null,
746
+ "identity": null,
747
+ "name": "is_active",
748
+ "entityType": "columns",
749
+ "schema": "public",
750
+ "table": "casinos"
751
+ },
752
+ {
753
+ "type": "text",
754
+ "typeSchema": null,
755
+ "notNull": true,
756
+ "dimensions": 0,
757
+ "default": "''",
758
+ "generated": null,
759
+ "identity": null,
760
+ "name": "landing_url",
761
+ "entityType": "columns",
762
+ "schema": "public",
763
+ "table": "casinos"
764
+ },
765
+ {
766
+ "type": "text",
767
+ "typeSchema": null,
768
+ "notNull": true,
769
+ "dimensions": 0,
770
+ "default": "'clickid'",
771
+ "generated": null,
772
+ "identity": null,
773
+ "name": "tracking_param_name",
774
+ "entityType": "columns",
775
+ "schema": "public",
776
+ "table": "casinos"
777
+ },
778
+ {
779
+ "type": "text",
780
+ "typeSchema": null,
781
+ "notNull": true,
782
+ "dimensions": 0,
783
+ "default": null,
784
+ "generated": null,
785
+ "identity": null,
786
+ "name": "postback_secret",
787
+ "entityType": "columns",
788
+ "schema": "public",
789
+ "table": "casinos"
790
+ },
791
+ {
792
+ "type": "timestamp with time zone",
793
+ "typeSchema": null,
794
+ "notNull": true,
795
+ "dimensions": 0,
796
+ "default": "now()",
797
+ "generated": null,
798
+ "identity": null,
799
+ "name": "created_at",
800
+ "entityType": "columns",
801
+ "schema": "public",
802
+ "table": "casinos"
803
+ },
804
+ {
805
+ "type": "timestamp with time zone",
806
+ "typeSchema": null,
807
+ "notNull": true,
808
+ "dimensions": 0,
809
+ "default": "now()",
810
+ "generated": null,
811
+ "identity": null,
812
+ "name": "updated_at",
813
+ "entityType": "columns",
814
+ "schema": "public",
815
+ "table": "casinos"
816
+ },
817
+ {
818
+ "type": "uuid",
819
+ "typeSchema": null,
820
+ "notNull": true,
821
+ "dimensions": 0,
822
+ "default": "gen_random_uuid()",
823
+ "generated": null,
824
+ "identity": null,
825
+ "name": "id",
826
+ "entityType": "columns",
827
+ "schema": "public",
828
+ "table": "commission_rule_groups"
829
+ },
830
+ {
831
+ "type": "uuid",
832
+ "typeSchema": null,
833
+ "notNull": true,
834
+ "dimensions": 0,
835
+ "default": null,
836
+ "generated": null,
837
+ "identity": null,
838
+ "name": "commission_id",
839
+ "entityType": "columns",
840
+ "schema": "public",
841
+ "table": "commission_rule_groups"
842
+ },
843
+ {
844
+ "type": "integer",
845
+ "typeSchema": null,
846
+ "notNull": true,
847
+ "dimensions": 0,
848
+ "default": "100",
849
+ "generated": null,
850
+ "identity": null,
851
+ "name": "priority",
852
+ "entityType": "columns",
853
+ "schema": "public",
854
+ "table": "commission_rule_groups"
855
+ },
856
+ {
857
+ "type": "timestamp with time zone",
858
+ "typeSchema": null,
859
+ "notNull": true,
860
+ "dimensions": 0,
861
+ "default": "now()",
862
+ "generated": null,
863
+ "identity": null,
864
+ "name": "created_at",
865
+ "entityType": "columns",
866
+ "schema": "public",
867
+ "table": "commission_rule_groups"
868
+ },
869
+ {
870
+ "type": "timestamp with time zone",
871
+ "typeSchema": null,
872
+ "notNull": true,
873
+ "dimensions": 0,
874
+ "default": "now()",
875
+ "generated": null,
876
+ "identity": null,
877
+ "name": "updated_at",
878
+ "entityType": "columns",
879
+ "schema": "public",
880
+ "table": "commission_rule_groups"
881
+ },
882
+ {
883
+ "type": "uuid",
884
+ "typeSchema": null,
885
+ "notNull": true,
886
+ "dimensions": 0,
887
+ "default": "gen_random_uuid()",
888
+ "generated": null,
889
+ "identity": null,
890
+ "name": "id",
891
+ "entityType": "columns",
892
+ "schema": "public",
893
+ "table": "commission_rules"
894
+ },
895
+ {
896
+ "type": "uuid",
897
+ "typeSchema": null,
898
+ "notNull": true,
899
+ "dimensions": 0,
900
+ "default": null,
901
+ "generated": null,
902
+ "identity": null,
903
+ "name": "rule_group_id",
904
+ "entityType": "columns",
905
+ "schema": "public",
906
+ "table": "commission_rules"
907
+ },
908
+ {
909
+ "type": "integer",
910
+ "typeSchema": null,
911
+ "notNull": true,
912
+ "dimensions": 0,
913
+ "default": "0",
914
+ "generated": null,
915
+ "identity": null,
916
+ "name": "position",
917
+ "entityType": "columns",
918
+ "schema": "public",
919
+ "table": "commission_rules"
920
+ },
921
+ {
922
+ "type": "jsonb",
923
+ "typeSchema": null,
924
+ "notNull": true,
925
+ "dimensions": 0,
926
+ "default": "'[]'",
927
+ "generated": null,
928
+ "identity": null,
929
+ "name": "qualifiers",
930
+ "entityType": "columns",
931
+ "schema": "public",
932
+ "table": "commission_rules"
933
+ },
934
+ {
935
+ "type": "jsonb",
936
+ "typeSchema": null,
937
+ "notNull": true,
938
+ "dimensions": 0,
939
+ "default": "'{\"id\":\"root\",\"type\":\"AND\",\"children\":[]}'",
940
+ "generated": null,
941
+ "identity": null,
942
+ "name": "conditions",
943
+ "entityType": "columns",
944
+ "schema": "public",
945
+ "table": "commission_rules"
946
+ },
947
+ {
948
+ "type": "jsonb",
949
+ "typeSchema": null,
950
+ "notNull": true,
951
+ "dimensions": 0,
952
+ "default": "'{}'",
953
+ "generated": null,
954
+ "identity": null,
955
+ "name": "modifiers",
956
+ "entityType": "columns",
957
+ "schema": "public",
958
+ "table": "commission_rules"
959
+ },
960
+ {
961
+ "type": "jsonb",
962
+ "typeSchema": null,
963
+ "notNull": true,
964
+ "dimensions": 0,
965
+ "default": "'[]'",
966
+ "generated": null,
967
+ "identity": null,
968
+ "name": "rewards",
969
+ "entityType": "columns",
970
+ "schema": "public",
971
+ "table": "commission_rules"
972
+ },
973
+ {
974
+ "type": "timestamp with time zone",
975
+ "typeSchema": null,
976
+ "notNull": true,
977
+ "dimensions": 0,
978
+ "default": "now()",
979
+ "generated": null,
980
+ "identity": null,
981
+ "name": "created_at",
982
+ "entityType": "columns",
983
+ "schema": "public",
984
+ "table": "commission_rules"
985
+ },
986
+ {
987
+ "type": "timestamp with time zone",
988
+ "typeSchema": null,
989
+ "notNull": true,
990
+ "dimensions": 0,
991
+ "default": "now()",
992
+ "generated": null,
993
+ "identity": null,
994
+ "name": "updated_at",
995
+ "entityType": "columns",
996
+ "schema": "public",
997
+ "table": "commission_rules"
998
+ },
999
+ {
1000
+ "type": "uuid",
1001
+ "typeSchema": null,
1002
+ "notNull": true,
1003
+ "dimensions": 0,
1004
+ "default": null,
1005
+ "generated": null,
1006
+ "identity": null,
1007
+ "name": "commission_id",
1008
+ "entityType": "columns",
1009
+ "schema": "public",
1010
+ "table": "commission_casinos"
1011
+ },
1012
+ {
1013
+ "type": "uuid",
1014
+ "typeSchema": null,
1015
+ "notNull": true,
1016
+ "dimensions": 0,
1017
+ "default": null,
1018
+ "generated": null,
1019
+ "identity": null,
1020
+ "name": "casino_id",
1021
+ "entityType": "columns",
1022
+ "schema": "public",
1023
+ "table": "commission_casinos"
1024
+ },
1025
+ {
1026
+ "type": "timestamp with time zone",
1027
+ "typeSchema": null,
1028
+ "notNull": true,
1029
+ "dimensions": 0,
1030
+ "default": "now()",
1031
+ "generated": null,
1032
+ "identity": null,
1033
+ "name": "created_at",
1034
+ "entityType": "columns",
1035
+ "schema": "public",
1036
+ "table": "commission_casinos"
1037
+ },
1038
+ {
1039
+ "type": "uuid",
1040
+ "typeSchema": null,
1041
+ "notNull": true,
1042
+ "dimensions": 0,
1043
+ "default": "gen_random_uuid()",
1044
+ "generated": null,
1045
+ "identity": null,
1046
+ "name": "id",
1047
+ "entityType": "columns",
1048
+ "schema": "public",
1049
+ "table": "commissions"
1050
+ },
1051
+ {
1052
+ "type": "text",
1053
+ "typeSchema": null,
1054
+ "notNull": false,
1055
+ "dimensions": 0,
1056
+ "default": null,
1057
+ "generated": null,
1058
+ "identity": null,
1059
+ "name": "title",
1060
+ "entityType": "columns",
1061
+ "schema": "public",
1062
+ "table": "commissions"
1063
+ },
1064
+ {
1065
+ "type": "commission_status",
1066
+ "typeSchema": "public",
1067
+ "notNull": true,
1068
+ "dimensions": 0,
1069
+ "default": "'draft'",
1070
+ "generated": null,
1071
+ "identity": null,
1072
+ "name": "status",
1073
+ "entityType": "columns",
1074
+ "schema": "public",
1075
+ "table": "commissions"
1076
+ },
1077
+ {
1078
+ "type": "commission_strategy",
1079
+ "typeSchema": "public",
1080
+ "notNull": true,
1081
+ "dimensions": 0,
1082
+ "default": "'rev_share'",
1083
+ "generated": null,
1084
+ "identity": null,
1085
+ "name": "strategy",
1086
+ "entityType": "columns",
1087
+ "schema": "public",
1088
+ "table": "commissions"
1089
+ },
1090
+ {
1091
+ "type": "text",
1092
+ "typeSchema": null,
1093
+ "notNull": true,
1094
+ "dimensions": 1,
1095
+ "default": "'{}'",
1096
+ "generated": null,
1097
+ "identity": null,
1098
+ "name": "tags",
1099
+ "entityType": "columns",
1100
+ "schema": "public",
1101
+ "table": "commissions"
1102
+ },
1103
+ {
1104
+ "type": "text",
1105
+ "typeSchema": null,
1106
+ "notNull": true,
1107
+ "dimensions": 0,
1108
+ "default": "'EUR'",
1109
+ "generated": null,
1110
+ "identity": null,
1111
+ "name": "currency",
1112
+ "entityType": "columns",
1113
+ "schema": "public",
1114
+ "table": "commissions"
1115
+ },
1116
+ {
1117
+ "type": "boolean",
1118
+ "typeSchema": null,
1119
+ "notNull": true,
1120
+ "dimensions": 0,
1121
+ "default": "false",
1122
+ "generated": null,
1123
+ "identity": null,
1124
+ "name": "forgive_debts",
1125
+ "entityType": "columns",
1126
+ "schema": "public",
1127
+ "table": "commissions"
1128
+ },
1129
+ {
1130
+ "type": "boolean",
1131
+ "typeSchema": null,
1132
+ "notNull": true,
1133
+ "dimensions": 0,
1134
+ "default": "false",
1135
+ "generated": null,
1136
+ "identity": null,
1137
+ "name": "allow_sub_affiliates",
1138
+ "entityType": "columns",
1139
+ "schema": "public",
1140
+ "table": "commissions"
1141
+ },
1142
+ {
1143
+ "type": "numeric(5,2)",
1144
+ "typeSchema": null,
1145
+ "notNull": false,
1146
+ "dimensions": 0,
1147
+ "default": null,
1148
+ "generated": null,
1149
+ "identity": null,
1150
+ "name": "sub_affiliate_max_percent",
1151
+ "entityType": "columns",
1152
+ "schema": "public",
1153
+ "table": "commissions"
1154
+ },
1155
+ {
1156
+ "type": "timestamp with time zone",
1157
+ "typeSchema": null,
1158
+ "notNull": true,
1159
+ "dimensions": 0,
1160
+ "default": "now()",
1161
+ "generated": null,
1162
+ "identity": null,
1163
+ "name": "created_at",
1164
+ "entityType": "columns",
1165
+ "schema": "public",
1166
+ "table": "commissions"
1167
+ },
1168
+ {
1169
+ "type": "timestamp with time zone",
1170
+ "typeSchema": null,
1171
+ "notNull": true,
1172
+ "dimensions": 0,
1173
+ "default": "now()",
1174
+ "generated": null,
1175
+ "identity": null,
1176
+ "name": "updated_at",
1177
+ "entityType": "columns",
1178
+ "schema": "public",
1179
+ "table": "commissions"
1180
+ },
1181
+ {
1182
+ "type": "uuid",
1183
+ "typeSchema": null,
1184
+ "notNull": true,
1185
+ "dimensions": 0,
1186
+ "default": "gen_random_uuid()",
1187
+ "generated": null,
1188
+ "identity": null,
1189
+ "name": "id",
1190
+ "entityType": "columns",
1191
+ "schema": "public",
1192
+ "table": "conversions"
1193
+ },
1194
+ {
1195
+ "type": "uuid",
1196
+ "typeSchema": null,
1197
+ "notNull": true,
1198
+ "dimensions": 0,
1199
+ "default": null,
1200
+ "generated": null,
1201
+ "identity": null,
1202
+ "name": "click_id",
1203
+ "entityType": "columns",
1204
+ "schema": "public",
1205
+ "table": "conversions"
1206
+ },
1207
+ {
1208
+ "type": "uuid",
1209
+ "typeSchema": null,
1210
+ "notNull": true,
1211
+ "dimensions": 0,
1212
+ "default": null,
1213
+ "generated": null,
1214
+ "identity": null,
1215
+ "name": "campaign_id",
1216
+ "entityType": "columns",
1217
+ "schema": "public",
1218
+ "table": "conversions"
1219
+ },
1220
+ {
1221
+ "type": "uuid",
1222
+ "typeSchema": null,
1223
+ "notNull": true,
1224
+ "dimensions": 0,
1225
+ "default": null,
1226
+ "generated": null,
1227
+ "identity": null,
1228
+ "name": "casino_id",
1229
+ "entityType": "columns",
1230
+ "schema": "public",
1231
+ "table": "conversions"
1232
+ },
1233
+ {
1234
+ "type": "uuid",
1235
+ "typeSchema": null,
1236
+ "notNull": true,
1237
+ "dimensions": 0,
1238
+ "default": null,
1239
+ "generated": null,
1240
+ "identity": null,
1241
+ "name": "affiliate_id",
1242
+ "entityType": "columns",
1243
+ "schema": "public",
1244
+ "table": "conversions"
1245
+ },
1246
+ {
1247
+ "type": "conversion_event",
1248
+ "typeSchema": "public",
1249
+ "notNull": true,
1250
+ "dimensions": 0,
1251
+ "default": null,
1252
+ "generated": null,
1253
+ "identity": null,
1254
+ "name": "event",
1255
+ "entityType": "columns",
1256
+ "schema": "public",
1257
+ "table": "conversions"
1258
+ },
1259
+ {
1260
+ "type": "conversion_product",
1261
+ "typeSchema": "public",
1262
+ "notNull": false,
1263
+ "dimensions": 0,
1264
+ "default": null,
1265
+ "generated": null,
1266
+ "identity": null,
1267
+ "name": "product",
1268
+ "entityType": "columns",
1269
+ "schema": "public",
1270
+ "table": "conversions"
1271
+ },
1272
+ {
1273
+ "type": "numeric(14,2)",
1274
+ "typeSchema": null,
1275
+ "notNull": false,
1276
+ "dimensions": 0,
1277
+ "default": null,
1278
+ "generated": null,
1279
+ "identity": null,
1280
+ "name": "amount",
1281
+ "entityType": "columns",
1282
+ "schema": "public",
1283
+ "table": "conversions"
1284
+ },
1285
+ {
1286
+ "type": "text",
1287
+ "typeSchema": null,
1288
+ "notNull": false,
1289
+ "dimensions": 0,
1290
+ "default": null,
1291
+ "generated": null,
1292
+ "identity": null,
1293
+ "name": "currency",
1294
+ "entityType": "columns",
1295
+ "schema": "public",
1296
+ "table": "conversions"
1297
+ },
1298
+ {
1299
+ "type": "text",
1300
+ "typeSchema": null,
1301
+ "notNull": true,
1302
+ "dimensions": 0,
1303
+ "default": null,
1304
+ "generated": null,
1305
+ "identity": null,
1306
+ "name": "casino_tx_id",
1307
+ "entityType": "columns",
1308
+ "schema": "public",
1309
+ "table": "conversions"
1310
+ },
1311
+ {
1312
+ "type": "text",
1313
+ "typeSchema": null,
1314
+ "notNull": true,
1315
+ "dimensions": 0,
1316
+ "default": null,
1317
+ "generated": null,
1318
+ "identity": null,
1319
+ "name": "player_id",
1320
+ "entityType": "columns",
1321
+ "schema": "public",
1322
+ "table": "conversions"
1323
+ },
1324
+ {
1325
+ "type": "conversion_status",
1326
+ "typeSchema": "public",
1327
+ "notNull": true,
1328
+ "dimensions": 0,
1329
+ "default": "'pending'",
1330
+ "generated": null,
1331
+ "identity": null,
1332
+ "name": "status",
1333
+ "entityType": "columns",
1334
+ "schema": "public",
1335
+ "table": "conversions"
1336
+ },
1337
+ {
1338
+ "type": "timestamp with time zone",
1339
+ "typeSchema": null,
1340
+ "notNull": false,
1341
+ "dimensions": 0,
1342
+ "default": null,
1343
+ "generated": null,
1344
+ "identity": null,
1345
+ "name": "locked_until",
1346
+ "entityType": "columns",
1347
+ "schema": "public",
1348
+ "table": "conversions"
1349
+ },
1350
+ {
1351
+ "type": "jsonb",
1352
+ "typeSchema": null,
1353
+ "notNull": true,
1354
+ "dimensions": 0,
1355
+ "default": null,
1356
+ "generated": null,
1357
+ "identity": null,
1358
+ "name": "raw_postback",
1359
+ "entityType": "columns",
1360
+ "schema": "public",
1361
+ "table": "conversions"
1362
+ },
1363
+ {
1364
+ "type": "timestamp with time zone",
1365
+ "typeSchema": null,
1366
+ "notNull": true,
1367
+ "dimensions": 0,
1368
+ "default": "now()",
1369
+ "generated": null,
1370
+ "identity": null,
1371
+ "name": "received_at",
1372
+ "entityType": "columns",
1373
+ "schema": "public",
1374
+ "table": "conversions"
1375
+ },
1376
+ {
1377
+ "type": "uuid",
1378
+ "typeSchema": null,
1379
+ "notNull": true,
1380
+ "dimensions": 0,
1381
+ "default": "gen_random_uuid()",
1382
+ "generated": null,
1383
+ "identity": null,
1384
+ "name": "id",
1385
+ "entityType": "columns",
1386
+ "schema": "public",
1387
+ "table": "deals"
1388
+ },
1389
+ {
1390
+ "type": "uuid",
1391
+ "typeSchema": null,
1392
+ "notNull": true,
1393
+ "dimensions": 0,
1394
+ "default": null,
1395
+ "generated": null,
1396
+ "identity": null,
1397
+ "name": "affiliate_id",
1398
+ "entityType": "columns",
1399
+ "schema": "public",
1400
+ "table": "deals"
1401
+ },
1402
+ {
1403
+ "type": "uuid",
1404
+ "typeSchema": null,
1405
+ "notNull": true,
1406
+ "dimensions": 0,
1407
+ "default": null,
1408
+ "generated": null,
1409
+ "identity": null,
1410
+ "name": "commission_id",
1411
+ "entityType": "columns",
1412
+ "schema": "public",
1413
+ "table": "deals"
1414
+ },
1415
+ {
1416
+ "type": "deal_status",
1417
+ "typeSchema": "public",
1418
+ "notNull": true,
1419
+ "dimensions": 0,
1420
+ "default": "'active'",
1421
+ "generated": null,
1422
+ "identity": null,
1423
+ "name": "status",
1424
+ "entityType": "columns",
1425
+ "schema": "public",
1426
+ "table": "deals"
1427
+ },
1428
+ {
1429
+ "type": "timestamp with time zone",
1430
+ "typeSchema": null,
1431
+ "notNull": true,
1432
+ "dimensions": 0,
1433
+ "default": null,
1434
+ "generated": null,
1435
+ "identity": null,
1436
+ "name": "starts_at",
1437
+ "entityType": "columns",
1438
+ "schema": "public",
1439
+ "table": "deals"
1440
+ },
1441
+ {
1442
+ "type": "timestamp with time zone",
1443
+ "typeSchema": null,
1444
+ "notNull": false,
1445
+ "dimensions": 0,
1446
+ "default": null,
1447
+ "generated": null,
1448
+ "identity": null,
1449
+ "name": "ends_at",
1450
+ "entityType": "columns",
1451
+ "schema": "public",
1452
+ "table": "deals"
1453
+ },
1454
+ {
1455
+ "type": "uuid",
1456
+ "typeSchema": null,
1457
+ "notNull": false,
1458
+ "dimensions": 0,
1459
+ "default": null,
1460
+ "generated": null,
1461
+ "identity": null,
1462
+ "name": "assigned_by_id",
1463
+ "entityType": "columns",
1464
+ "schema": "public",
1465
+ "table": "deals"
1466
+ },
1467
+ {
1468
+ "type": "uuid",
1469
+ "typeSchema": null,
1470
+ "notNull": false,
1471
+ "dimensions": 0,
1472
+ "default": null,
1473
+ "generated": null,
1474
+ "identity": null,
1475
+ "name": "parent_deal_id",
1476
+ "entityType": "columns",
1477
+ "schema": "public",
1478
+ "table": "deals"
1479
+ },
1480
+ {
1481
+ "type": "numeric(5,2)",
1482
+ "typeSchema": null,
1483
+ "notNull": false,
1484
+ "dimensions": 0,
1485
+ "default": null,
1486
+ "generated": null,
1487
+ "identity": null,
1488
+ "name": "sub_affiliate_percent",
1489
+ "entityType": "columns",
1490
+ "schema": "public",
1491
+ "table": "deals"
1492
+ },
1493
+ {
1494
+ "type": "timestamp with time zone",
1495
+ "typeSchema": null,
1496
+ "notNull": true,
1497
+ "dimensions": 0,
1498
+ "default": "now()",
1499
+ "generated": null,
1500
+ "identity": null,
1501
+ "name": "created_at",
1502
+ "entityType": "columns",
1503
+ "schema": "public",
1504
+ "table": "deals"
1505
+ },
1506
+ {
1507
+ "type": "timestamp with time zone",
1508
+ "typeSchema": null,
1509
+ "notNull": true,
1510
+ "dimensions": 0,
1511
+ "default": "now()",
1512
+ "generated": null,
1513
+ "identity": null,
1514
+ "name": "updated_at",
1515
+ "entityType": "columns",
1516
+ "schema": "public",
1517
+ "table": "deals"
1518
+ },
1519
+ {
1520
+ "type": "uuid",
1521
+ "typeSchema": null,
1522
+ "notNull": true,
1523
+ "dimensions": 0,
1524
+ "default": "gen_random_uuid()",
1525
+ "generated": null,
1526
+ "identity": null,
1527
+ "name": "id",
1528
+ "entityType": "columns",
1529
+ "schema": "public",
1530
+ "table": "earnings_ledger"
1531
+ },
1532
+ {
1533
+ "type": "uuid",
1534
+ "typeSchema": null,
1535
+ "notNull": true,
1536
+ "dimensions": 0,
1537
+ "default": null,
1538
+ "generated": null,
1539
+ "identity": null,
1540
+ "name": "user_id",
1541
+ "entityType": "columns",
1542
+ "schema": "public",
1543
+ "table": "earnings_ledger"
1544
+ },
1545
+ {
1546
+ "type": "uuid",
1547
+ "typeSchema": null,
1548
+ "notNull": false,
1549
+ "dimensions": 0,
1550
+ "default": null,
1551
+ "generated": null,
1552
+ "identity": null,
1553
+ "name": "conversion_id",
1554
+ "entityType": "columns",
1555
+ "schema": "public",
1556
+ "table": "earnings_ledger"
1557
+ },
1558
+ {
1559
+ "type": "uuid",
1560
+ "typeSchema": null,
1561
+ "notNull": true,
1562
+ "dimensions": 0,
1563
+ "default": null,
1564
+ "generated": null,
1565
+ "identity": null,
1566
+ "name": "deal_id",
1567
+ "entityType": "columns",
1568
+ "schema": "public",
1569
+ "table": "earnings_ledger"
1570
+ },
1571
+ {
1572
+ "type": "uuid",
1573
+ "typeSchema": null,
1574
+ "notNull": true,
1575
+ "dimensions": 0,
1576
+ "default": null,
1577
+ "generated": null,
1578
+ "identity": null,
1579
+ "name": "commission_id",
1580
+ "entityType": "columns",
1581
+ "schema": "public",
1582
+ "table": "earnings_ledger"
1583
+ },
1584
+ {
1585
+ "type": "text",
1586
+ "typeSchema": null,
1587
+ "notNull": true,
1588
+ "dimensions": 0,
1589
+ "default": null,
1590
+ "generated": null,
1591
+ "identity": null,
1592
+ "name": "reward_id",
1593
+ "entityType": "columns",
1594
+ "schema": "public",
1595
+ "table": "earnings_ledger"
1596
+ },
1597
+ {
1598
+ "type": "earning_kind",
1599
+ "typeSchema": "public",
1600
+ "notNull": true,
1601
+ "dimensions": 0,
1602
+ "default": "'direct'",
1603
+ "generated": null,
1604
+ "identity": null,
1605
+ "name": "kind",
1606
+ "entityType": "columns",
1607
+ "schema": "public",
1608
+ "table": "earnings_ledger"
1609
+ },
1610
+ {
1611
+ "type": "numeric(14,2)",
1612
+ "typeSchema": null,
1613
+ "notNull": true,
1614
+ "dimensions": 0,
1615
+ "default": null,
1616
+ "generated": null,
1617
+ "identity": null,
1618
+ "name": "amount",
1619
+ "entityType": "columns",
1620
+ "schema": "public",
1621
+ "table": "earnings_ledger"
1622
+ },
1623
+ {
1624
+ "type": "text",
1625
+ "typeSchema": null,
1626
+ "notNull": true,
1627
+ "dimensions": 0,
1628
+ "default": null,
1629
+ "generated": null,
1630
+ "identity": null,
1631
+ "name": "currency",
1632
+ "entityType": "columns",
1633
+ "schema": "public",
1634
+ "table": "earnings_ledger"
1635
+ },
1636
+ {
1637
+ "type": "earning_status",
1638
+ "typeSchema": "public",
1639
+ "notNull": true,
1640
+ "dimensions": 0,
1641
+ "default": "'pending'",
1642
+ "generated": null,
1643
+ "identity": null,
1644
+ "name": "status",
1645
+ "entityType": "columns",
1646
+ "schema": "public",
1647
+ "table": "earnings_ledger"
1648
+ },
1649
+ {
1650
+ "type": "text",
1651
+ "typeSchema": null,
1652
+ "notNull": true,
1653
+ "dimensions": 0,
1654
+ "default": null,
1655
+ "generated": null,
1656
+ "identity": null,
1657
+ "name": "source_hash",
1658
+ "entityType": "columns",
1659
+ "schema": "public",
1660
+ "table": "earnings_ledger"
1661
+ },
1662
+ {
1663
+ "type": "uuid",
1664
+ "typeSchema": null,
1665
+ "notNull": false,
1666
+ "dimensions": 0,
1667
+ "default": null,
1668
+ "generated": null,
1669
+ "identity": null,
1670
+ "name": "payout_request_id",
1671
+ "entityType": "columns",
1672
+ "schema": "public",
1673
+ "table": "earnings_ledger"
1674
+ },
1675
+ {
1676
+ "type": "timestamp with time zone",
1677
+ "typeSchema": null,
1678
+ "notNull": true,
1679
+ "dimensions": 0,
1680
+ "default": null,
1681
+ "generated": null,
1682
+ "identity": null,
1683
+ "name": "available_at",
1684
+ "entityType": "columns",
1685
+ "schema": "public",
1686
+ "table": "earnings_ledger"
1687
+ },
1688
+ {
1689
+ "type": "timestamp with time zone",
1690
+ "typeSchema": null,
1691
+ "notNull": true,
1692
+ "dimensions": 0,
1693
+ "default": "now()",
1694
+ "generated": null,
1695
+ "identity": null,
1696
+ "name": "earned_at",
1697
+ "entityType": "columns",
1698
+ "schema": "public",
1699
+ "table": "earnings_ledger"
1700
+ },
1701
+ {
1702
+ "type": "uuid",
1703
+ "typeSchema": null,
1704
+ "notNull": true,
1705
+ "dimensions": 0,
1706
+ "default": null,
1707
+ "generated": null,
1708
+ "identity": null,
1709
+ "name": "group_id",
1710
+ "entityType": "columns",
1711
+ "schema": "public",
1712
+ "table": "group_permissions"
1713
+ },
1714
+ {
1715
+ "type": "text",
1716
+ "typeSchema": null,
1717
+ "notNull": true,
1718
+ "dimensions": 0,
1719
+ "default": null,
1720
+ "generated": null,
1721
+ "identity": null,
1722
+ "name": "permission",
1723
+ "entityType": "columns",
1724
+ "schema": "public",
1725
+ "table": "group_permissions"
1726
+ },
1727
+ {
1728
+ "type": "uuid",
1729
+ "typeSchema": null,
1730
+ "notNull": true,
1731
+ "dimensions": 0,
1732
+ "default": "gen_random_uuid()",
1733
+ "generated": null,
1734
+ "identity": null,
1735
+ "name": "id",
1736
+ "entityType": "columns",
1737
+ "schema": "public",
1738
+ "table": "groups"
1739
+ },
1740
+ {
1741
+ "type": "text",
1742
+ "typeSchema": null,
1743
+ "notNull": true,
1744
+ "dimensions": 0,
1745
+ "default": null,
1746
+ "generated": null,
1747
+ "identity": null,
1748
+ "name": "name",
1749
+ "entityType": "columns",
1750
+ "schema": "public",
1751
+ "table": "groups"
1752
+ },
1753
+ {
1754
+ "type": "text",
1755
+ "typeSchema": null,
1756
+ "notNull": false,
1757
+ "dimensions": 0,
1758
+ "default": null,
1759
+ "generated": null,
1760
+ "identity": null,
1761
+ "name": "description",
1762
+ "entityType": "columns",
1763
+ "schema": "public",
1764
+ "table": "groups"
1765
+ },
1766
+ {
1767
+ "type": "timestamp with time zone",
1768
+ "typeSchema": null,
1769
+ "notNull": true,
1770
+ "dimensions": 0,
1771
+ "default": "now()",
1772
+ "generated": null,
1773
+ "identity": null,
1774
+ "name": "created_at",
1775
+ "entityType": "columns",
1776
+ "schema": "public",
1777
+ "table": "groups"
1778
+ },
1779
+ {
1780
+ "type": "timestamp with time zone",
1781
+ "typeSchema": null,
1782
+ "notNull": true,
1783
+ "dimensions": 0,
1784
+ "default": "now()",
1785
+ "generated": null,
1786
+ "identity": null,
1787
+ "name": "updated_at",
1788
+ "entityType": "columns",
1789
+ "schema": "public",
1790
+ "table": "groups"
1791
+ },
1792
+ {
1793
+ "type": "uuid",
1794
+ "typeSchema": null,
1795
+ "notNull": true,
1796
+ "dimensions": 0,
1797
+ "default": null,
1798
+ "generated": null,
1799
+ "identity": null,
1800
+ "name": "user_id",
1801
+ "entityType": "columns",
1802
+ "schema": "public",
1803
+ "table": "user_groups"
1804
+ },
1805
+ {
1806
+ "type": "uuid",
1807
+ "typeSchema": null,
1808
+ "notNull": true,
1809
+ "dimensions": 0,
1810
+ "default": null,
1811
+ "generated": null,
1812
+ "identity": null,
1813
+ "name": "group_id",
1814
+ "entityType": "columns",
1815
+ "schema": "public",
1816
+ "table": "user_groups"
1817
+ },
1818
+ {
1819
+ "type": "timestamp with time zone",
1820
+ "typeSchema": null,
1821
+ "notNull": true,
1822
+ "dimensions": 0,
1823
+ "default": "now()",
1824
+ "generated": null,
1825
+ "identity": null,
1826
+ "name": "assigned_at",
1827
+ "entityType": "columns",
1828
+ "schema": "public",
1829
+ "table": "user_groups"
1830
+ },
1831
+ {
1832
+ "type": "uuid",
1833
+ "typeSchema": null,
1834
+ "notNull": true,
1835
+ "dimensions": 0,
1836
+ "default": null,
1837
+ "generated": null,
1838
+ "identity": null,
1839
+ "name": "user_id",
1840
+ "entityType": "columns",
1841
+ "schema": "public",
1842
+ "table": "user_permissions"
1843
+ },
1844
+ {
1845
+ "type": "text",
1846
+ "typeSchema": null,
1847
+ "notNull": true,
1848
+ "dimensions": 0,
1849
+ "default": null,
1850
+ "generated": null,
1851
+ "identity": null,
1852
+ "name": "permission",
1853
+ "entityType": "columns",
1854
+ "schema": "public",
1855
+ "table": "user_permissions"
1856
+ },
1857
+ {
1858
+ "type": "uuid",
1859
+ "typeSchema": null,
1860
+ "notNull": true,
1861
+ "dimensions": 0,
1862
+ "default": "gen_random_uuid()",
1863
+ "generated": null,
1864
+ "identity": null,
1865
+ "name": "id",
1866
+ "entityType": "columns",
1867
+ "schema": "public",
1868
+ "table": "payout_requests"
1869
+ },
1870
+ {
1871
+ "type": "uuid",
1872
+ "typeSchema": null,
1873
+ "notNull": true,
1874
+ "dimensions": 0,
1875
+ "default": null,
1876
+ "generated": null,
1877
+ "identity": null,
1878
+ "name": "user_id",
1879
+ "entityType": "columns",
1880
+ "schema": "public",
1881
+ "table": "payout_requests"
1882
+ },
1883
+ {
1884
+ "type": "numeric(14,2)",
1885
+ "typeSchema": null,
1886
+ "notNull": true,
1887
+ "dimensions": 0,
1888
+ "default": null,
1889
+ "generated": null,
1890
+ "identity": null,
1891
+ "name": "amount",
1892
+ "entityType": "columns",
1893
+ "schema": "public",
1894
+ "table": "payout_requests"
1895
+ },
1896
+ {
1897
+ "type": "text",
1898
+ "typeSchema": null,
1899
+ "notNull": true,
1900
+ "dimensions": 0,
1901
+ "default": null,
1902
+ "generated": null,
1903
+ "identity": null,
1904
+ "name": "currency",
1905
+ "entityType": "columns",
1906
+ "schema": "public",
1907
+ "table": "payout_requests"
1908
+ },
1909
+ {
1910
+ "type": "text",
1911
+ "typeSchema": null,
1912
+ "notNull": false,
1913
+ "dimensions": 0,
1914
+ "default": null,
1915
+ "generated": null,
1916
+ "identity": null,
1917
+ "name": "desired_currency",
1918
+ "entityType": "columns",
1919
+ "schema": "public",
1920
+ "table": "payout_requests"
1921
+ },
1922
+ {
1923
+ "type": "payout_request_status",
1924
+ "typeSchema": "public",
1925
+ "notNull": true,
1926
+ "dimensions": 0,
1927
+ "default": "'requested'",
1928
+ "generated": null,
1929
+ "identity": null,
1930
+ "name": "status",
1931
+ "entityType": "columns",
1932
+ "schema": "public",
1933
+ "table": "payout_requests"
1934
+ },
1935
+ {
1936
+ "type": "text",
1937
+ "typeSchema": null,
1938
+ "notNull": false,
1939
+ "dimensions": 0,
1940
+ "default": null,
1941
+ "generated": null,
1942
+ "identity": null,
1943
+ "name": "note",
1944
+ "entityType": "columns",
1945
+ "schema": "public",
1946
+ "table": "payout_requests"
1947
+ },
1948
+ {
1949
+ "type": "uuid",
1950
+ "typeSchema": null,
1951
+ "notNull": false,
1952
+ "dimensions": 0,
1953
+ "default": null,
1954
+ "generated": null,
1955
+ "identity": null,
1956
+ "name": "reviewed_by_id",
1957
+ "entityType": "columns",
1958
+ "schema": "public",
1959
+ "table": "payout_requests"
1960
+ },
1961
+ {
1962
+ "type": "timestamp with time zone",
1963
+ "typeSchema": null,
1964
+ "notNull": false,
1965
+ "dimensions": 0,
1966
+ "default": null,
1967
+ "generated": null,
1968
+ "identity": null,
1969
+ "name": "reviewed_at",
1970
+ "entityType": "columns",
1971
+ "schema": "public",
1972
+ "table": "payout_requests"
1973
+ },
1974
+ {
1975
+ "type": "timestamp with time zone",
1976
+ "typeSchema": null,
1977
+ "notNull": true,
1978
+ "dimensions": 0,
1979
+ "default": "now()",
1980
+ "generated": null,
1981
+ "identity": null,
1982
+ "name": "requested_at",
1983
+ "entityType": "columns",
1984
+ "schema": "public",
1985
+ "table": "payout_requests"
1986
+ },
1987
+ {
1988
+ "type": "boolean",
1989
+ "typeSchema": null,
1990
+ "notNull": true,
1991
+ "dimensions": 0,
1992
+ "default": "true",
1993
+ "generated": null,
1994
+ "identity": null,
1995
+ "name": "id",
1996
+ "entityType": "columns",
1997
+ "schema": "public",
1998
+ "table": "platform_settings"
1999
+ },
2000
+ {
2001
+ "type": "boolean",
2002
+ "typeSchema": null,
2003
+ "notNull": true,
2004
+ "dimensions": 0,
2005
+ "default": "false",
2006
+ "generated": null,
2007
+ "identity": null,
2008
+ "name": "require_manager_totp",
2009
+ "entityType": "columns",
2010
+ "schema": "public",
2011
+ "table": "platform_settings"
2012
+ },
2013
+ {
2014
+ "type": "boolean",
2015
+ "typeSchema": null,
2016
+ "notNull": true,
2017
+ "dimensions": 0,
2018
+ "default": "false",
2019
+ "generated": null,
2020
+ "identity": null,
2021
+ "name": "require_affiliate_approval",
2022
+ "entityType": "columns",
2023
+ "schema": "public",
2024
+ "table": "platform_settings"
2025
+ },
2026
+ {
2027
+ "type": "timestamp with time zone",
2028
+ "typeSchema": null,
2029
+ "notNull": true,
2030
+ "dimensions": 0,
2031
+ "default": "now()",
2032
+ "generated": null,
2033
+ "identity": null,
2034
+ "name": "updated_at",
2035
+ "entityType": "columns",
2036
+ "schema": "public",
2037
+ "table": "platform_settings"
2038
+ },
2039
+ {
2040
+ "type": "uuid",
2041
+ "typeSchema": null,
2042
+ "notNull": false,
2043
+ "dimensions": 0,
2044
+ "default": null,
2045
+ "generated": null,
2046
+ "identity": null,
2047
+ "name": "updated_by",
2048
+ "entityType": "columns",
2049
+ "schema": "public",
2050
+ "table": "platform_settings"
2051
+ },
2052
+ {
2053
+ "type": "uuid",
2054
+ "typeSchema": null,
2055
+ "notNull": true,
2056
+ "dimensions": 0,
2057
+ "default": "gen_random_uuid()",
2058
+ "generated": null,
2059
+ "identity": null,
2060
+ "name": "id",
2061
+ "entityType": "columns",
2062
+ "schema": "public",
2063
+ "table": "refresh_tokens"
2064
+ },
2065
+ {
2066
+ "type": "uuid",
2067
+ "typeSchema": null,
2068
+ "notNull": true,
2069
+ "dimensions": 0,
2070
+ "default": null,
2071
+ "generated": null,
2072
+ "identity": null,
2073
+ "name": "session_id",
2074
+ "entityType": "columns",
2075
+ "schema": "public",
2076
+ "table": "refresh_tokens"
2077
+ },
2078
+ {
2079
+ "type": "text",
2080
+ "typeSchema": null,
2081
+ "notNull": true,
2082
+ "dimensions": 0,
2083
+ "default": null,
2084
+ "generated": null,
2085
+ "identity": null,
2086
+ "name": "token_hash",
2087
+ "entityType": "columns",
2088
+ "schema": "public",
2089
+ "table": "refresh_tokens"
2090
+ },
2091
+ {
2092
+ "type": "timestamp with time zone",
2093
+ "typeSchema": null,
2094
+ "notNull": true,
2095
+ "dimensions": 0,
2096
+ "default": "now()",
2097
+ "generated": null,
2098
+ "identity": null,
2099
+ "name": "created_at",
2100
+ "entityType": "columns",
2101
+ "schema": "public",
2102
+ "table": "refresh_tokens"
2103
+ },
2104
+ {
2105
+ "type": "timestamp with time zone",
2106
+ "typeSchema": null,
2107
+ "notNull": true,
2108
+ "dimensions": 0,
2109
+ "default": null,
2110
+ "generated": null,
2111
+ "identity": null,
2112
+ "name": "expires_at",
2113
+ "entityType": "columns",
2114
+ "schema": "public",
2115
+ "table": "refresh_tokens"
2116
+ },
2117
+ {
2118
+ "type": "timestamp with time zone",
2119
+ "typeSchema": null,
2120
+ "notNull": false,
2121
+ "dimensions": 0,
2122
+ "default": null,
2123
+ "generated": null,
2124
+ "identity": null,
2125
+ "name": "revoked_at",
2126
+ "entityType": "columns",
2127
+ "schema": "public",
2128
+ "table": "refresh_tokens"
2129
+ },
2130
+ {
2131
+ "type": "uuid",
2132
+ "typeSchema": null,
2133
+ "notNull": true,
2134
+ "dimensions": 0,
2135
+ "default": "gen_random_uuid()",
2136
+ "generated": null,
2137
+ "identity": null,
2138
+ "name": "id",
2139
+ "entityType": "columns",
2140
+ "schema": "public",
2141
+ "table": "sessions"
2142
+ },
2143
+ {
2144
+ "type": "uuid",
2145
+ "typeSchema": null,
2146
+ "notNull": true,
2147
+ "dimensions": 0,
2148
+ "default": null,
2149
+ "generated": null,
2150
+ "identity": null,
2151
+ "name": "user_id",
2152
+ "entityType": "columns",
2153
+ "schema": "public",
2154
+ "table": "sessions"
2155
+ },
2156
+ {
2157
+ "type": "text",
2158
+ "typeSchema": null,
2159
+ "notNull": false,
2160
+ "dimensions": 0,
2161
+ "default": null,
2162
+ "generated": null,
2163
+ "identity": null,
2164
+ "name": "user_agent",
2165
+ "entityType": "columns",
2166
+ "schema": "public",
2167
+ "table": "sessions"
2168
+ },
2169
+ {
2170
+ "type": "text",
2171
+ "typeSchema": null,
2172
+ "notNull": false,
2173
+ "dimensions": 0,
2174
+ "default": null,
2175
+ "generated": null,
2176
+ "identity": null,
2177
+ "name": "ip_address",
2178
+ "entityType": "columns",
2179
+ "schema": "public",
2180
+ "table": "sessions"
2181
+ },
2182
+ {
2183
+ "type": "timestamp with time zone",
2184
+ "typeSchema": null,
2185
+ "notNull": true,
2186
+ "dimensions": 0,
2187
+ "default": "now()",
2188
+ "generated": null,
2189
+ "identity": null,
2190
+ "name": "created_at",
2191
+ "entityType": "columns",
2192
+ "schema": "public",
2193
+ "table": "sessions"
2194
+ },
2195
+ {
2196
+ "type": "timestamp with time zone",
2197
+ "typeSchema": null,
2198
+ "notNull": true,
2199
+ "dimensions": 0,
2200
+ "default": "now()",
2201
+ "generated": null,
2202
+ "identity": null,
2203
+ "name": "last_seen_at",
2204
+ "entityType": "columns",
2205
+ "schema": "public",
2206
+ "table": "sessions"
2207
+ },
2208
+ {
2209
+ "type": "timestamp with time zone",
2210
+ "typeSchema": null,
2211
+ "notNull": true,
2212
+ "dimensions": 0,
2213
+ "default": null,
2214
+ "generated": null,
2215
+ "identity": null,
2216
+ "name": "expires_at",
2217
+ "entityType": "columns",
2218
+ "schema": "public",
2219
+ "table": "sessions"
2220
+ },
2221
+ {
2222
+ "type": "uuid",
2223
+ "typeSchema": null,
2224
+ "notNull": true,
2225
+ "dimensions": 0,
2226
+ "default": null,
2227
+ "generated": null,
2228
+ "identity": null,
2229
+ "name": "user_id",
2230
+ "entityType": "columns",
2231
+ "schema": "public",
2232
+ "table": "user_preferences"
2233
+ },
2234
+ {
2235
+ "type": "text",
2236
+ "typeSchema": null,
2237
+ "notNull": false,
2238
+ "dimensions": 0,
2239
+ "default": null,
2240
+ "generated": null,
2241
+ "identity": null,
2242
+ "name": "locale",
2243
+ "entityType": "columns",
2244
+ "schema": "public",
2245
+ "table": "user_preferences"
2246
+ },
2247
+ {
2248
+ "type": "text",
2249
+ "typeSchema": null,
2250
+ "notNull": false,
2251
+ "dimensions": 0,
2252
+ "default": null,
2253
+ "generated": null,
2254
+ "identity": null,
2255
+ "name": "theme",
2256
+ "entityType": "columns",
2257
+ "schema": "public",
2258
+ "table": "user_preferences"
2259
+ },
2260
+ {
2261
+ "type": "boolean",
2262
+ "typeSchema": null,
2263
+ "notNull": true,
2264
+ "dimensions": 0,
2265
+ "default": "false",
2266
+ "generated": null,
2267
+ "identity": null,
2268
+ "name": "sidebar_collapsed",
2269
+ "entityType": "columns",
2270
+ "schema": "public",
2271
+ "table": "user_preferences"
2272
+ },
2273
+ {
2274
+ "type": "timestamp with time zone",
2275
+ "typeSchema": null,
2276
+ "notNull": true,
2277
+ "dimensions": 0,
2278
+ "default": "now()",
2279
+ "generated": null,
2280
+ "identity": null,
2281
+ "name": "updated_at",
2282
+ "entityType": "columns",
2283
+ "schema": "public",
2284
+ "table": "user_preferences"
2285
+ },
2286
+ {
2287
+ "type": "uuid",
2288
+ "typeSchema": null,
2289
+ "notNull": true,
2290
+ "dimensions": 0,
2291
+ "default": "gen_random_uuid()",
2292
+ "generated": null,
2293
+ "identity": null,
2294
+ "name": "id",
2295
+ "entityType": "columns",
2296
+ "schema": "public",
2297
+ "table": "users"
2298
+ },
2299
+ {
2300
+ "type": "text",
2301
+ "typeSchema": null,
2302
+ "notNull": true,
2303
+ "dimensions": 0,
2304
+ "default": null,
2305
+ "generated": null,
2306
+ "identity": null,
2307
+ "name": "email",
2308
+ "entityType": "columns",
2309
+ "schema": "public",
2310
+ "table": "users"
2311
+ },
2312
+ {
2313
+ "type": "text",
2314
+ "typeSchema": null,
2315
+ "notNull": true,
2316
+ "dimensions": 0,
2317
+ "default": null,
2318
+ "generated": null,
2319
+ "identity": null,
2320
+ "name": "first_name",
2321
+ "entityType": "columns",
2322
+ "schema": "public",
2323
+ "table": "users"
2324
+ },
2325
+ {
2326
+ "type": "text",
2327
+ "typeSchema": null,
2328
+ "notNull": true,
2329
+ "dimensions": 0,
2330
+ "default": null,
2331
+ "generated": null,
2332
+ "identity": null,
2333
+ "name": "last_name",
2334
+ "entityType": "columns",
2335
+ "schema": "public",
2336
+ "table": "users"
2337
+ },
2338
+ {
2339
+ "type": "text",
2340
+ "typeSchema": null,
2341
+ "notNull": false,
2342
+ "dimensions": 0,
2343
+ "default": null,
2344
+ "generated": null,
2345
+ "identity": null,
2346
+ "name": "password_hash",
2347
+ "entityType": "columns",
2348
+ "schema": "public",
2349
+ "table": "users"
2350
+ },
2351
+ {
2352
+ "type": "user_role",
2353
+ "typeSchema": "public",
2354
+ "notNull": true,
2355
+ "dimensions": 0,
2356
+ "default": "'affiliate'",
2357
+ "generated": null,
2358
+ "identity": null,
2359
+ "name": "role",
2360
+ "entityType": "columns",
2361
+ "schema": "public",
2362
+ "table": "users"
2363
+ },
2364
+ {
2365
+ "type": "user_status",
2366
+ "typeSchema": "public",
2367
+ "notNull": true,
2368
+ "dimensions": 0,
2369
+ "default": "'active'",
2370
+ "generated": null,
2371
+ "identity": null,
2372
+ "name": "status",
2373
+ "entityType": "columns",
2374
+ "schema": "public",
2375
+ "table": "users"
2376
+ },
2377
+ {
2378
+ "type": "signup_source",
2379
+ "typeSchema": "public",
2380
+ "notNull": true,
2381
+ "dimensions": 0,
2382
+ "default": "'admin_invite'",
2383
+ "generated": null,
2384
+ "identity": null,
2385
+ "name": "signup_source",
2386
+ "entityType": "columns",
2387
+ "schema": "public",
2388
+ "table": "users"
2389
+ },
2390
+ {
2391
+ "type": "timestamp with time zone",
2392
+ "typeSchema": null,
2393
+ "notNull": false,
2394
+ "dimensions": 0,
2395
+ "default": "now()",
2396
+ "generated": null,
2397
+ "identity": null,
2398
+ "name": "invite_accepted_at",
2399
+ "entityType": "columns",
2400
+ "schema": "public",
2401
+ "table": "users"
2402
+ },
2403
+ {
2404
+ "type": "timestamp with time zone",
2405
+ "typeSchema": null,
2406
+ "notNull": false,
2407
+ "dimensions": 0,
2408
+ "default": null,
2409
+ "generated": null,
2410
+ "identity": null,
2411
+ "name": "tos_accepted_at",
2412
+ "entityType": "columns",
2413
+ "schema": "public",
2414
+ "table": "users"
2415
+ },
2416
+ {
2417
+ "type": "timestamp with time zone",
2418
+ "typeSchema": null,
2419
+ "notNull": false,
2420
+ "dimensions": 0,
2421
+ "default": null,
2422
+ "generated": null,
2423
+ "identity": null,
2424
+ "name": "approved_at",
2425
+ "entityType": "columns",
2426
+ "schema": "public",
2427
+ "table": "users"
2428
+ },
2429
+ {
2430
+ "type": "uuid",
2431
+ "typeSchema": null,
2432
+ "notNull": false,
2433
+ "dimensions": 0,
2434
+ "default": null,
2435
+ "generated": null,
2436
+ "identity": null,
2437
+ "name": "approved_by",
2438
+ "entityType": "columns",
2439
+ "schema": "public",
2440
+ "table": "users"
2441
+ },
2442
+ {
2443
+ "type": "uuid",
2444
+ "typeSchema": null,
2445
+ "notNull": false,
2446
+ "dimensions": 0,
2447
+ "default": null,
2448
+ "generated": null,
2449
+ "identity": null,
2450
+ "name": "parent_affiliate_id",
2451
+ "entityType": "columns",
2452
+ "schema": "public",
2453
+ "table": "users"
2454
+ },
2455
+ {
2456
+ "type": "text",
2457
+ "typeSchema": null,
2458
+ "notNull": false,
2459
+ "dimensions": 0,
2460
+ "default": null,
2461
+ "generated": null,
2462
+ "identity": null,
2463
+ "name": "totp_secret",
2464
+ "entityType": "columns",
2465
+ "schema": "public",
2466
+ "table": "users"
2467
+ },
2468
+ {
2469
+ "type": "timestamp with time zone",
2470
+ "typeSchema": null,
2471
+ "notNull": false,
2472
+ "dimensions": 0,
2473
+ "default": null,
2474
+ "generated": null,
2475
+ "identity": null,
2476
+ "name": "totp_confirmed_at",
2477
+ "entityType": "columns",
2478
+ "schema": "public",
2479
+ "table": "users"
2480
+ },
2481
+ {
2482
+ "type": "timestamp with time zone",
2483
+ "typeSchema": null,
2484
+ "notNull": true,
2485
+ "dimensions": 0,
2486
+ "default": "now()",
2487
+ "generated": null,
2488
+ "identity": null,
2489
+ "name": "created_at",
2490
+ "entityType": "columns",
2491
+ "schema": "public",
2492
+ "table": "users"
2493
+ },
2494
+ {
2495
+ "type": "timestamp with time zone",
2496
+ "typeSchema": null,
2497
+ "notNull": true,
2498
+ "dimensions": 0,
2499
+ "default": "now()",
2500
+ "generated": null,
2501
+ "identity": null,
2502
+ "name": "updated_at",
2503
+ "entityType": "columns",
2504
+ "schema": "public",
2505
+ "table": "users"
2506
+ },
2507
+ {
2508
+ "type": "uuid",
2509
+ "typeSchema": null,
2510
+ "notNull": true,
2511
+ "dimensions": 0,
2512
+ "default": "gen_random_uuid()",
2513
+ "generated": null,
2514
+ "identity": null,
2515
+ "name": "id",
2516
+ "entityType": "columns",
2517
+ "schema": "public",
2518
+ "table": "verification_tokens"
2519
+ },
2520
+ {
2521
+ "type": "uuid",
2522
+ "typeSchema": null,
2523
+ "notNull": true,
2524
+ "dimensions": 0,
2525
+ "default": null,
2526
+ "generated": null,
2527
+ "identity": null,
2528
+ "name": "user_id",
2529
+ "entityType": "columns",
2530
+ "schema": "public",
2531
+ "table": "verification_tokens"
2532
+ },
2533
+ {
2534
+ "type": "verification_token_purpose",
2535
+ "typeSchema": "public",
2536
+ "notNull": true,
2537
+ "dimensions": 0,
2538
+ "default": null,
2539
+ "generated": null,
2540
+ "identity": null,
2541
+ "name": "purpose",
2542
+ "entityType": "columns",
2543
+ "schema": "public",
2544
+ "table": "verification_tokens"
2545
+ },
2546
+ {
2547
+ "type": "text",
2548
+ "typeSchema": null,
2549
+ "notNull": true,
2550
+ "dimensions": 0,
2551
+ "default": null,
2552
+ "generated": null,
2553
+ "identity": null,
2554
+ "name": "token_hash",
2555
+ "entityType": "columns",
2556
+ "schema": "public",
2557
+ "table": "verification_tokens"
2558
+ },
2559
+ {
2560
+ "type": "timestamp with time zone",
2561
+ "typeSchema": null,
2562
+ "notNull": true,
2563
+ "dimensions": 0,
2564
+ "default": "now()",
2565
+ "generated": null,
2566
+ "identity": null,
2567
+ "name": "created_at",
2568
+ "entityType": "columns",
2569
+ "schema": "public",
2570
+ "table": "verification_tokens"
2571
+ },
2572
+ {
2573
+ "type": "timestamp with time zone",
2574
+ "typeSchema": null,
2575
+ "notNull": true,
2576
+ "dimensions": 0,
2577
+ "default": null,
2578
+ "generated": null,
2579
+ "identity": null,
2580
+ "name": "expires_at",
2581
+ "entityType": "columns",
2582
+ "schema": "public",
2583
+ "table": "verification_tokens"
2584
+ },
2585
+ {
2586
+ "nameExplicit": true,
2587
+ "columns": [
2588
+ {
2589
+ "value": "available_at",
2590
+ "isExpression": false,
2591
+ "asc": true,
2592
+ "nullsFirst": false,
2593
+ "opclass": null
2594
+ },
2595
+ {
2596
+ "value": "created_at",
2597
+ "isExpression": false,
2598
+ "asc": true,
2599
+ "nullsFirst": false,
2600
+ "opclass": null
2601
+ }
2602
+ ],
2603
+ "isUnique": false,
2604
+ "where": null,
2605
+ "with": "",
2606
+ "method": "btree",
2607
+ "concurrently": false,
2608
+ "name": "analytics_outbox_available_idx",
2609
+ "entityType": "indexes",
2610
+ "schema": "public",
2611
+ "table": "analytics_outbox"
2612
+ },
2613
+ {
2614
+ "nameExplicit": true,
2615
+ "columns": [
2616
+ {
2617
+ "value": "locked_at",
2618
+ "isExpression": false,
2619
+ "asc": true,
2620
+ "nullsFirst": false,
2621
+ "opclass": null
2622
+ }
2623
+ ],
2624
+ "isUnique": false,
2625
+ "where": null,
2626
+ "with": "",
2627
+ "method": "btree",
2628
+ "concurrently": false,
2629
+ "name": "analytics_outbox_lock_idx",
2630
+ "entityType": "indexes",
2631
+ "schema": "public",
2632
+ "table": "analytics_outbox"
2633
+ },
2634
+ {
2635
+ "nameExplicit": true,
2636
+ "columns": [
2637
+ {
2638
+ "value": "event_type",
2639
+ "isExpression": false,
2640
+ "asc": true,
2641
+ "nullsFirst": false,
2642
+ "opclass": null
2643
+ }
2644
+ ],
2645
+ "isUnique": false,
2646
+ "where": null,
2647
+ "with": "",
2648
+ "method": "btree",
2649
+ "concurrently": false,
2650
+ "name": "analytics_outbox_event_type_idx",
2651
+ "entityType": "indexes",
2652
+ "schema": "public",
2653
+ "table": "analytics_outbox"
2654
+ },
2655
+ {
2656
+ "nameExplicit": true,
2657
+ "columns": [
2658
+ {
2659
+ "value": "created_at",
2660
+ "isExpression": false,
2661
+ "asc": false,
2662
+ "nullsFirst": false,
2663
+ "opclass": null
2664
+ }
2665
+ ],
2666
+ "isUnique": false,
2667
+ "where": null,
2668
+ "with": "",
2669
+ "method": "btree",
2670
+ "concurrently": false,
2671
+ "name": "audit_logs_created_at_idx",
2672
+ "entityType": "indexes",
2673
+ "schema": "public",
2674
+ "table": "audit_logs"
2675
+ },
2676
+ {
2677
+ "nameExplicit": true,
2678
+ "columns": [
2679
+ {
2680
+ "value": "actor_id",
2681
+ "isExpression": false,
2682
+ "asc": true,
2683
+ "nullsFirst": false,
2684
+ "opclass": null
2685
+ },
2686
+ {
2687
+ "value": "created_at",
2688
+ "isExpression": false,
2689
+ "asc": false,
2690
+ "nullsFirst": false,
2691
+ "opclass": null
2692
+ }
2693
+ ],
2694
+ "isUnique": false,
2695
+ "where": null,
2696
+ "with": "",
2697
+ "method": "btree",
2698
+ "concurrently": false,
2699
+ "name": "audit_logs_actor_id_created_at_idx",
2700
+ "entityType": "indexes",
2701
+ "schema": "public",
2702
+ "table": "audit_logs"
2703
+ },
2704
+ {
2705
+ "nameExplicit": true,
2706
+ "columns": [
2707
+ {
2708
+ "value": "subject_id",
2709
+ "isExpression": false,
2710
+ "asc": true,
2711
+ "nullsFirst": false,
2712
+ "opclass": null
2713
+ },
2714
+ {
2715
+ "value": "created_at",
2716
+ "isExpression": false,
2717
+ "asc": false,
2718
+ "nullsFirst": false,
2719
+ "opclass": null
2720
+ }
2721
+ ],
2722
+ "isUnique": false,
2723
+ "where": null,
2724
+ "with": "",
2725
+ "method": "btree",
2726
+ "concurrently": false,
2727
+ "name": "audit_logs_subject_id_created_at_idx",
2728
+ "entityType": "indexes",
2729
+ "schema": "public",
2730
+ "table": "audit_logs"
2731
+ },
2732
+ {
2733
+ "nameExplicit": true,
2734
+ "columns": [
2735
+ {
2736
+ "value": "actor_role",
2737
+ "isExpression": false,
2738
+ "asc": true,
2739
+ "nullsFirst": false,
2740
+ "opclass": null
2741
+ },
2742
+ {
2743
+ "value": "created_at",
2744
+ "isExpression": false,
2745
+ "asc": false,
2746
+ "nullsFirst": false,
2747
+ "opclass": null
2748
+ }
2749
+ ],
2750
+ "isUnique": false,
2751
+ "where": null,
2752
+ "with": "",
2753
+ "method": "btree",
2754
+ "concurrently": false,
2755
+ "name": "audit_logs_actor_role_created_at_idx",
2756
+ "entityType": "indexes",
2757
+ "schema": "public",
2758
+ "table": "audit_logs"
2759
+ },
2760
+ {
2761
+ "nameExplicit": true,
2762
+ "columns": [
2763
+ {
2764
+ "value": "target_type",
2765
+ "isExpression": false,
2766
+ "asc": true,
2767
+ "nullsFirst": false,
2768
+ "opclass": null
2769
+ },
2770
+ {
2771
+ "value": "target_id",
2772
+ "isExpression": false,
2773
+ "asc": true,
2774
+ "nullsFirst": false,
2775
+ "opclass": null
2776
+ }
2777
+ ],
2778
+ "isUnique": false,
2779
+ "where": null,
2780
+ "with": "",
2781
+ "method": "btree",
2782
+ "concurrently": false,
2783
+ "name": "audit_logs_target_idx",
2784
+ "entityType": "indexes",
2785
+ "schema": "public",
2786
+ "table": "audit_logs"
2787
+ },
2788
+ {
2789
+ "nameExplicit": true,
2790
+ "columns": [
2791
+ {
2792
+ "value": "action",
2793
+ "isExpression": false,
2794
+ "asc": true,
2795
+ "nullsFirst": false,
2796
+ "opclass": null
2797
+ }
2798
+ ],
2799
+ "isUnique": false,
2800
+ "where": null,
2801
+ "with": "",
2802
+ "method": "btree",
2803
+ "concurrently": false,
2804
+ "name": "audit_logs_action_idx",
2805
+ "entityType": "indexes",
2806
+ "schema": "public",
2807
+ "table": "audit_logs"
2808
+ },
2809
+ {
2810
+ "nameExplicit": true,
2811
+ "columns": [
2812
+ {
2813
+ "value": "affiliate_id",
2814
+ "isExpression": false,
2815
+ "asc": true,
2816
+ "nullsFirst": false,
2817
+ "opclass": null
2818
+ }
2819
+ ],
2820
+ "isUnique": false,
2821
+ "where": null,
2822
+ "with": "",
2823
+ "method": "btree",
2824
+ "concurrently": false,
2825
+ "name": "campaigns_affiliate_id_idx",
2826
+ "entityType": "indexes",
2827
+ "schema": "public",
2828
+ "table": "campaigns"
2829
+ },
2830
+ {
2831
+ "nameExplicit": true,
2832
+ "columns": [
2833
+ {
2834
+ "value": "casino_id",
2835
+ "isExpression": false,
2836
+ "asc": true,
2837
+ "nullsFirst": false,
2838
+ "opclass": null
2839
+ }
2840
+ ],
2841
+ "isUnique": false,
2842
+ "where": null,
2843
+ "with": "",
2844
+ "method": "btree",
2845
+ "concurrently": false,
2846
+ "name": "campaigns_casino_id_idx",
2847
+ "entityType": "indexes",
2848
+ "schema": "public",
2849
+ "table": "campaigns"
2850
+ },
2851
+ {
2852
+ "nameExplicit": true,
2853
+ "columns": [
2854
+ {
2855
+ "value": "commission_id",
2856
+ "isExpression": false,
2857
+ "asc": true,
2858
+ "nullsFirst": false,
2859
+ "opclass": null
2860
+ }
2861
+ ],
2862
+ "isUnique": false,
2863
+ "where": null,
2864
+ "with": "",
2865
+ "method": "btree",
2866
+ "concurrently": false,
2867
+ "name": "campaigns_commission_id_idx",
2868
+ "entityType": "indexes",
2869
+ "schema": "public",
2870
+ "table": "campaigns"
2871
+ },
2872
+ {
2873
+ "nameExplicit": true,
2874
+ "columns": [
2875
+ {
2876
+ "value": "status",
2877
+ "isExpression": false,
2878
+ "asc": true,
2879
+ "nullsFirst": false,
2880
+ "opclass": null
2881
+ }
2882
+ ],
2883
+ "isUnique": false,
2884
+ "where": null,
2885
+ "with": "",
2886
+ "method": "btree",
2887
+ "concurrently": false,
2888
+ "name": "campaigns_status_idx",
2889
+ "entityType": "indexes",
2890
+ "schema": "public",
2891
+ "table": "campaigns"
2892
+ },
2893
+ {
2894
+ "nameExplicit": true,
2895
+ "columns": [
2896
+ {
2897
+ "value": "commission_id",
2898
+ "isExpression": false,
2899
+ "asc": true,
2900
+ "nullsFirst": false,
2901
+ "opclass": null
2902
+ }
2903
+ ],
2904
+ "isUnique": false,
2905
+ "where": null,
2906
+ "with": "",
2907
+ "method": "btree",
2908
+ "concurrently": false,
2909
+ "name": "commission_rule_groups_commission_id_idx",
2910
+ "entityType": "indexes",
2911
+ "schema": "public",
2912
+ "table": "commission_rule_groups"
2913
+ },
2914
+ {
2915
+ "nameExplicit": true,
2916
+ "columns": [
2917
+ {
2918
+ "value": "rule_group_id",
2919
+ "isExpression": false,
2920
+ "asc": true,
2921
+ "nullsFirst": false,
2922
+ "opclass": null
2923
+ }
2924
+ ],
2925
+ "isUnique": false,
2926
+ "where": null,
2927
+ "with": "",
2928
+ "method": "btree",
2929
+ "concurrently": false,
2930
+ "name": "commission_rules_rule_group_id_idx",
2931
+ "entityType": "indexes",
2932
+ "schema": "public",
2933
+ "table": "commission_rules"
2934
+ },
2935
+ {
2936
+ "nameExplicit": true,
2937
+ "columns": [
2938
+ {
2939
+ "value": "casino_id",
2940
+ "isExpression": false,
2941
+ "asc": true,
2942
+ "nullsFirst": false,
2943
+ "opclass": null
2944
+ }
2945
+ ],
2946
+ "isUnique": false,
2947
+ "where": null,
2948
+ "with": "",
2949
+ "method": "btree",
2950
+ "concurrently": false,
2951
+ "name": "commission_casinos_casino_id_idx",
2952
+ "entityType": "indexes",
2953
+ "schema": "public",
2954
+ "table": "commission_casinos"
2955
+ },
2956
+ {
2957
+ "nameExplicit": true,
2958
+ "columns": [
2959
+ {
2960
+ "value": "casino_id",
2961
+ "isExpression": false,
2962
+ "asc": true,
2963
+ "nullsFirst": false,
2964
+ "opclass": null
2965
+ },
2966
+ {
2967
+ "value": "casino_tx_id",
2968
+ "isExpression": false,
2969
+ "asc": true,
2970
+ "nullsFirst": false,
2971
+ "opclass": null
2972
+ }
2973
+ ],
2974
+ "isUnique": true,
2975
+ "where": null,
2976
+ "with": "",
2977
+ "method": "btree",
2978
+ "concurrently": false,
2979
+ "name": "conversions_casino_tx_unique",
2980
+ "entityType": "indexes",
2981
+ "schema": "public",
2982
+ "table": "conversions"
2983
+ },
2984
+ {
2985
+ "nameExplicit": true,
2986
+ "columns": [
2987
+ {
2988
+ "value": "campaign_id",
2989
+ "isExpression": false,
2990
+ "asc": true,
2991
+ "nullsFirst": false,
2992
+ "opclass": null
2993
+ },
2994
+ {
2995
+ "value": "received_at",
2996
+ "isExpression": false,
2997
+ "asc": true,
2998
+ "nullsFirst": false,
2999
+ "opclass": null
3000
+ }
3001
+ ],
3002
+ "isUnique": false,
3003
+ "where": null,
3004
+ "with": "",
3005
+ "method": "btree",
3006
+ "concurrently": false,
3007
+ "name": "conversions_campaign_idx",
3008
+ "entityType": "indexes",
3009
+ "schema": "public",
3010
+ "table": "conversions"
3011
+ },
3012
+ {
3013
+ "nameExplicit": true,
3014
+ "columns": [
3015
+ {
3016
+ "value": "affiliate_id",
3017
+ "isExpression": false,
3018
+ "asc": true,
3019
+ "nullsFirst": false,
3020
+ "opclass": null
3021
+ },
3022
+ {
3023
+ "value": "received_at",
3024
+ "isExpression": false,
3025
+ "asc": true,
3026
+ "nullsFirst": false,
3027
+ "opclass": null
3028
+ }
3029
+ ],
3030
+ "isUnique": false,
3031
+ "where": null,
3032
+ "with": "",
3033
+ "method": "btree",
3034
+ "concurrently": false,
3035
+ "name": "conversions_affiliate_idx",
3036
+ "entityType": "indexes",
3037
+ "schema": "public",
3038
+ "table": "conversions"
3039
+ },
3040
+ {
3041
+ "nameExplicit": true,
3042
+ "columns": [
3043
+ {
3044
+ "value": "status",
3045
+ "isExpression": false,
3046
+ "asc": true,
3047
+ "nullsFirst": false,
3048
+ "opclass": null
3049
+ },
3050
+ {
3051
+ "value": "locked_until",
3052
+ "isExpression": false,
3053
+ "asc": true,
3054
+ "nullsFirst": false,
3055
+ "opclass": null
3056
+ }
3057
+ ],
3058
+ "isUnique": false,
3059
+ "where": null,
3060
+ "with": "",
3061
+ "method": "btree",
3062
+ "concurrently": false,
3063
+ "name": "conversions_status_idx",
3064
+ "entityType": "indexes",
3065
+ "schema": "public",
3066
+ "table": "conversions"
3067
+ },
3068
+ {
3069
+ "nameExplicit": true,
3070
+ "columns": [
3071
+ {
3072
+ "value": "casino_id",
3073
+ "isExpression": false,
3074
+ "asc": true,
3075
+ "nullsFirst": false,
3076
+ "opclass": null
3077
+ },
3078
+ {
3079
+ "value": "player_id",
3080
+ "isExpression": false,
3081
+ "asc": true,
3082
+ "nullsFirst": false,
3083
+ "opclass": null
3084
+ }
3085
+ ],
3086
+ "isUnique": false,
3087
+ "where": null,
3088
+ "with": "",
3089
+ "method": "btree",
3090
+ "concurrently": false,
3091
+ "name": "conversions_player_idx",
3092
+ "entityType": "indexes",
3093
+ "schema": "public",
3094
+ "table": "conversions"
3095
+ },
3096
+ {
3097
+ "nameExplicit": true,
3098
+ "columns": [
3099
+ {
3100
+ "value": "affiliate_id",
3101
+ "isExpression": false,
3102
+ "asc": true,
3103
+ "nullsFirst": false,
3104
+ "opclass": null
3105
+ }
3106
+ ],
3107
+ "isUnique": false,
3108
+ "where": null,
3109
+ "with": "",
3110
+ "method": "btree",
3111
+ "concurrently": false,
3112
+ "name": "deals_affiliate_id_idx",
3113
+ "entityType": "indexes",
3114
+ "schema": "public",
3115
+ "table": "deals"
3116
+ },
3117
+ {
3118
+ "nameExplicit": true,
3119
+ "columns": [
3120
+ {
3121
+ "value": "commission_id",
3122
+ "isExpression": false,
3123
+ "asc": true,
3124
+ "nullsFirst": false,
3125
+ "opclass": null
3126
+ }
3127
+ ],
3128
+ "isUnique": false,
3129
+ "where": null,
3130
+ "with": "",
3131
+ "method": "btree",
3132
+ "concurrently": false,
3133
+ "name": "deals_commission_id_idx",
3134
+ "entityType": "indexes",
3135
+ "schema": "public",
3136
+ "table": "deals"
3137
+ },
3138
+ {
3139
+ "nameExplicit": true,
3140
+ "columns": [
3141
+ {
3142
+ "value": "status",
3143
+ "isExpression": false,
3144
+ "asc": true,
3145
+ "nullsFirst": false,
3146
+ "opclass": null
3147
+ }
3148
+ ],
3149
+ "isUnique": false,
3150
+ "where": null,
3151
+ "with": "",
3152
+ "method": "btree",
3153
+ "concurrently": false,
3154
+ "name": "deals_status_idx",
3155
+ "entityType": "indexes",
3156
+ "schema": "public",
3157
+ "table": "deals"
3158
+ },
3159
+ {
3160
+ "nameExplicit": true,
3161
+ "columns": [
3162
+ {
3163
+ "value": "parent_deal_id",
3164
+ "isExpression": false,
3165
+ "asc": true,
3166
+ "nullsFirst": false,
3167
+ "opclass": null
3168
+ }
3169
+ ],
3170
+ "isUnique": false,
3171
+ "where": null,
3172
+ "with": "",
3173
+ "method": "btree",
3174
+ "concurrently": false,
3175
+ "name": "deals_parent_deal_id_idx",
3176
+ "entityType": "indexes",
3177
+ "schema": "public",
3178
+ "table": "deals"
3179
+ },
3180
+ {
3181
+ "nameExplicit": true,
3182
+ "columns": [
3183
+ {
3184
+ "value": "parent_deal_id",
3185
+ "isExpression": false,
3186
+ "asc": true,
3187
+ "nullsFirst": false,
3188
+ "opclass": null
3189
+ },
3190
+ {
3191
+ "value": "affiliate_id",
3192
+ "isExpression": false,
3193
+ "asc": true,
3194
+ "nullsFirst": false,
3195
+ "opclass": null
3196
+ }
3197
+ ],
3198
+ "isUnique": true,
3199
+ "where": null,
3200
+ "with": "",
3201
+ "method": "btree",
3202
+ "concurrently": false,
3203
+ "name": "deals_parent_deal_affiliate_uniq",
3204
+ "entityType": "indexes",
3205
+ "schema": "public",
3206
+ "table": "deals"
3207
+ },
3208
+ {
3209
+ "nameExplicit": true,
3210
+ "columns": [
3211
+ {
3212
+ "value": "source_hash",
3213
+ "isExpression": false,
3214
+ "asc": true,
3215
+ "nullsFirst": false,
3216
+ "opclass": null
3217
+ }
3218
+ ],
3219
+ "isUnique": true,
3220
+ "where": null,
3221
+ "with": "",
3222
+ "method": "btree",
3223
+ "concurrently": false,
3224
+ "name": "earnings_ledger_source_hash_uniq",
3225
+ "entityType": "indexes",
3226
+ "schema": "public",
3227
+ "table": "earnings_ledger"
3228
+ },
3229
+ {
3230
+ "nameExplicit": true,
3231
+ "columns": [
3232
+ {
3233
+ "value": "user_id",
3234
+ "isExpression": false,
3235
+ "asc": true,
3236
+ "nullsFirst": false,
3237
+ "opclass": null
3238
+ },
3239
+ {
3240
+ "value": "status",
3241
+ "isExpression": false,
3242
+ "asc": true,
3243
+ "nullsFirst": false,
3244
+ "opclass": null
3245
+ }
3246
+ ],
3247
+ "isUnique": false,
3248
+ "where": null,
3249
+ "with": "",
3250
+ "method": "btree",
3251
+ "concurrently": false,
3252
+ "name": "earnings_ledger_user_status_idx",
3253
+ "entityType": "indexes",
3254
+ "schema": "public",
3255
+ "table": "earnings_ledger"
3256
+ },
3257
+ {
3258
+ "nameExplicit": true,
3259
+ "columns": [
3260
+ {
3261
+ "value": "conversion_id",
3262
+ "isExpression": false,
3263
+ "asc": true,
3264
+ "nullsFirst": false,
3265
+ "opclass": null
3266
+ }
3267
+ ],
3268
+ "isUnique": false,
3269
+ "where": null,
3270
+ "with": "",
3271
+ "method": "btree",
3272
+ "concurrently": false,
3273
+ "name": "earnings_ledger_conversion_idx",
3274
+ "entityType": "indexes",
3275
+ "schema": "public",
3276
+ "table": "earnings_ledger"
3277
+ },
3278
+ {
3279
+ "nameExplicit": true,
3280
+ "columns": [
3281
+ {
3282
+ "value": "payout_request_id",
3283
+ "isExpression": false,
3284
+ "asc": true,
3285
+ "nullsFirst": false,
3286
+ "opclass": null
3287
+ }
3288
+ ],
3289
+ "isUnique": false,
3290
+ "where": null,
3291
+ "with": "",
3292
+ "method": "btree",
3293
+ "concurrently": false,
3294
+ "name": "earnings_ledger_payout_request_idx",
3295
+ "entityType": "indexes",
3296
+ "schema": "public",
3297
+ "table": "earnings_ledger"
3298
+ },
3299
+ {
3300
+ "nameExplicit": true,
3301
+ "columns": [
3302
+ {
3303
+ "value": "group_id",
3304
+ "isExpression": false,
3305
+ "asc": true,
3306
+ "nullsFirst": false,
3307
+ "opclass": null
3308
+ }
3309
+ ],
3310
+ "isUnique": false,
3311
+ "where": null,
3312
+ "with": "",
3313
+ "method": "btree",
3314
+ "concurrently": false,
3315
+ "name": "user_groups_group_id_idx",
3316
+ "entityType": "indexes",
3317
+ "schema": "public",
3318
+ "table": "user_groups"
3319
+ },
3320
+ {
3321
+ "nameExplicit": true,
3322
+ "columns": [
3323
+ {
3324
+ "value": "user_id",
3325
+ "isExpression": false,
3326
+ "asc": true,
3327
+ "nullsFirst": false,
3328
+ "opclass": null
3329
+ },
3330
+ {
3331
+ "value": "status",
3332
+ "isExpression": false,
3333
+ "asc": true,
3334
+ "nullsFirst": false,
3335
+ "opclass": null
3336
+ }
3337
+ ],
3338
+ "isUnique": false,
3339
+ "where": null,
3340
+ "with": "",
3341
+ "method": "btree",
3342
+ "concurrently": false,
3343
+ "name": "payout_requests_user_idx",
3344
+ "entityType": "indexes",
3345
+ "schema": "public",
3346
+ "table": "payout_requests"
3347
+ },
3348
+ {
3349
+ "nameExplicit": true,
3350
+ "columns": [
3351
+ {
3352
+ "value": "status",
3353
+ "isExpression": false,
3354
+ "asc": true,
3355
+ "nullsFirst": false,
3356
+ "opclass": null
3357
+ },
3358
+ {
3359
+ "value": "requested_at",
3360
+ "isExpression": false,
3361
+ "asc": true,
3362
+ "nullsFirst": false,
3363
+ "opclass": null
3364
+ }
3365
+ ],
3366
+ "isUnique": false,
3367
+ "where": null,
3368
+ "with": "",
3369
+ "method": "btree",
3370
+ "concurrently": false,
3371
+ "name": "payout_requests_status_idx",
3372
+ "entityType": "indexes",
3373
+ "schema": "public",
3374
+ "table": "payout_requests"
3375
+ },
3376
+ {
3377
+ "nameExplicit": true,
3378
+ "columns": [
3379
+ {
3380
+ "value": "session_id",
3381
+ "isExpression": false,
3382
+ "asc": true,
3383
+ "nullsFirst": false,
3384
+ "opclass": null
3385
+ }
3386
+ ],
3387
+ "isUnique": false,
3388
+ "where": null,
3389
+ "with": "",
3390
+ "method": "btree",
3391
+ "concurrently": false,
3392
+ "name": "refresh_tokens_session_id_idx",
3393
+ "entityType": "indexes",
3394
+ "schema": "public",
3395
+ "table": "refresh_tokens"
3396
+ },
3397
+ {
3398
+ "nameExplicit": true,
3399
+ "columns": [
3400
+ {
3401
+ "value": "expires_at",
3402
+ "isExpression": false,
3403
+ "asc": true,
3404
+ "nullsFirst": false,
3405
+ "opclass": null
3406
+ }
3407
+ ],
3408
+ "isUnique": false,
3409
+ "where": null,
3410
+ "with": "",
3411
+ "method": "btree",
3412
+ "concurrently": false,
3413
+ "name": "refresh_tokens_expires_at_idx",
3414
+ "entityType": "indexes",
3415
+ "schema": "public",
3416
+ "table": "refresh_tokens"
3417
+ },
3418
+ {
3419
+ "nameExplicit": true,
3420
+ "columns": [
3421
+ {
3422
+ "value": "user_id",
3423
+ "isExpression": false,
3424
+ "asc": true,
3425
+ "nullsFirst": false,
3426
+ "opclass": null
3427
+ }
3428
+ ],
3429
+ "isUnique": false,
3430
+ "where": null,
3431
+ "with": "",
3432
+ "method": "btree",
3433
+ "concurrently": false,
3434
+ "name": "sessions_user_id_idx",
3435
+ "entityType": "indexes",
3436
+ "schema": "public",
3437
+ "table": "sessions"
3438
+ },
3439
+ {
3440
+ "nameExplicit": true,
3441
+ "columns": [
3442
+ {
3443
+ "value": "expires_at",
3444
+ "isExpression": false,
3445
+ "asc": true,
3446
+ "nullsFirst": false,
3447
+ "opclass": null
3448
+ }
3449
+ ],
3450
+ "isUnique": false,
3451
+ "where": null,
3452
+ "with": "",
3453
+ "method": "btree",
3454
+ "concurrently": false,
3455
+ "name": "sessions_expires_at_idx",
3456
+ "entityType": "indexes",
3457
+ "schema": "public",
3458
+ "table": "sessions"
3459
+ },
3460
+ {
3461
+ "nameExplicit": true,
3462
+ "columns": [
3463
+ {
3464
+ "value": "role",
3465
+ "isExpression": false,
3466
+ "asc": true,
3467
+ "nullsFirst": false,
3468
+ "opclass": null
3469
+ },
3470
+ {
3471
+ "value": "created_at",
3472
+ "isExpression": false,
3473
+ "asc": false,
3474
+ "nullsFirst": false,
3475
+ "opclass": null
3476
+ }
3477
+ ],
3478
+ "isUnique": false,
3479
+ "where": null,
3480
+ "with": "",
3481
+ "method": "btree",
3482
+ "concurrently": false,
3483
+ "name": "users_role_created_at_idx",
3484
+ "entityType": "indexes",
3485
+ "schema": "public",
3486
+ "table": "users"
3487
+ },
3488
+ {
3489
+ "nameExplicit": true,
3490
+ "columns": [
3491
+ {
3492
+ "value": "parent_affiliate_id",
3493
+ "isExpression": false,
3494
+ "asc": true,
3495
+ "nullsFirst": false,
3496
+ "opclass": null
3497
+ }
3498
+ ],
3499
+ "isUnique": false,
3500
+ "where": null,
3501
+ "with": "",
3502
+ "method": "btree",
3503
+ "concurrently": false,
3504
+ "name": "users_parent_affiliate_id_idx",
3505
+ "entityType": "indexes",
3506
+ "schema": "public",
3507
+ "table": "users"
3508
+ },
3509
+ {
3510
+ "nameExplicit": true,
3511
+ "columns": [
3512
+ {
3513
+ "value": "user_id",
3514
+ "isExpression": false,
3515
+ "asc": true,
3516
+ "nullsFirst": false,
3517
+ "opclass": null
3518
+ },
3519
+ {
3520
+ "value": "purpose",
3521
+ "isExpression": false,
3522
+ "asc": true,
3523
+ "nullsFirst": false,
3524
+ "opclass": null
3525
+ }
3526
+ ],
3527
+ "isUnique": true,
3528
+ "where": null,
3529
+ "with": "",
3530
+ "method": "btree",
3531
+ "concurrently": false,
3532
+ "name": "verification_tokens_user_purpose_idx",
3533
+ "entityType": "indexes",
3534
+ "schema": "public",
3535
+ "table": "verification_tokens"
3536
+ },
3537
+ {
3538
+ "nameExplicit": false,
3539
+ "columns": [
3540
+ "actor_id"
3541
+ ],
3542
+ "schemaTo": "public",
3543
+ "tableTo": "users",
3544
+ "columnsTo": [
3545
+ "id"
3546
+ ],
3547
+ "onUpdate": "NO ACTION",
3548
+ "onDelete": "SET NULL",
3549
+ "name": "audit_logs_actor_id_users_id_fkey",
3550
+ "entityType": "fks",
3551
+ "schema": "public",
3552
+ "table": "audit_logs"
3553
+ },
3554
+ {
3555
+ "nameExplicit": false,
3556
+ "columns": [
3557
+ "subject_id"
3558
+ ],
3559
+ "schemaTo": "public",
3560
+ "tableTo": "users",
3561
+ "columnsTo": [
3562
+ "id"
3563
+ ],
3564
+ "onUpdate": "NO ACTION",
3565
+ "onDelete": "SET NULL",
3566
+ "name": "audit_logs_subject_id_users_id_fkey",
3567
+ "entityType": "fks",
3568
+ "schema": "public",
3569
+ "table": "audit_logs"
3570
+ },
3571
+ {
3572
+ "nameExplicit": false,
3573
+ "columns": [
3574
+ "affiliate_id"
3575
+ ],
3576
+ "schemaTo": "public",
3577
+ "tableTo": "users",
3578
+ "columnsTo": [
3579
+ "id"
3580
+ ],
3581
+ "onUpdate": "NO ACTION",
3582
+ "onDelete": "CASCADE",
3583
+ "name": "campaigns_affiliate_id_users_id_fkey",
3584
+ "entityType": "fks",
3585
+ "schema": "public",
3586
+ "table": "campaigns"
3587
+ },
3588
+ {
3589
+ "nameExplicit": false,
3590
+ "columns": [
3591
+ "casino_id"
3592
+ ],
3593
+ "schemaTo": "public",
3594
+ "tableTo": "casinos",
3595
+ "columnsTo": [
3596
+ "id"
3597
+ ],
3598
+ "onUpdate": "NO ACTION",
3599
+ "onDelete": "RESTRICT",
3600
+ "name": "campaigns_casino_id_casinos_id_fkey",
3601
+ "entityType": "fks",
3602
+ "schema": "public",
3603
+ "table": "campaigns"
3604
+ },
3605
+ {
3606
+ "nameExplicit": false,
3607
+ "columns": [
3608
+ "commission_id"
3609
+ ],
3610
+ "schemaTo": "public",
3611
+ "tableTo": "commissions",
3612
+ "columnsTo": [
3613
+ "id"
3614
+ ],
3615
+ "onUpdate": "NO ACTION",
3616
+ "onDelete": "RESTRICT",
3617
+ "name": "campaigns_commission_id_commissions_id_fkey",
3618
+ "entityType": "fks",
3619
+ "schema": "public",
3620
+ "table": "campaigns"
3621
+ },
3622
+ {
3623
+ "nameExplicit": false,
3624
+ "columns": [
3625
+ "commission_id"
3626
+ ],
3627
+ "schemaTo": "public",
3628
+ "tableTo": "commissions",
3629
+ "columnsTo": [
3630
+ "id"
3631
+ ],
3632
+ "onUpdate": "NO ACTION",
3633
+ "onDelete": "CASCADE",
3634
+ "name": "commission_rule_groups_commission_id_commissions_id_fkey",
3635
+ "entityType": "fks",
3636
+ "schema": "public",
3637
+ "table": "commission_rule_groups"
3638
+ },
3639
+ {
3640
+ "nameExplicit": false,
3641
+ "columns": [
3642
+ "rule_group_id"
3643
+ ],
3644
+ "schemaTo": "public",
3645
+ "tableTo": "commission_rule_groups",
3646
+ "columnsTo": [
3647
+ "id"
3648
+ ],
3649
+ "onUpdate": "NO ACTION",
3650
+ "onDelete": "CASCADE",
3651
+ "name": "commission_rules_rule_group_id_commission_rule_groups_id_fkey",
3652
+ "entityType": "fks",
3653
+ "schema": "public",
3654
+ "table": "commission_rules"
3655
+ },
3656
+ {
3657
+ "nameExplicit": false,
3658
+ "columns": [
3659
+ "commission_id"
3660
+ ],
3661
+ "schemaTo": "public",
3662
+ "tableTo": "commissions",
3663
+ "columnsTo": [
3664
+ "id"
3665
+ ],
3666
+ "onUpdate": "NO ACTION",
3667
+ "onDelete": "CASCADE",
3668
+ "name": "commission_casinos_commission_id_commissions_id_fkey",
3669
+ "entityType": "fks",
3670
+ "schema": "public",
3671
+ "table": "commission_casinos"
3672
+ },
3673
+ {
3674
+ "nameExplicit": false,
3675
+ "columns": [
3676
+ "casino_id"
3677
+ ],
3678
+ "schemaTo": "public",
3679
+ "tableTo": "casinos",
3680
+ "columnsTo": [
3681
+ "id"
3682
+ ],
3683
+ "onUpdate": "NO ACTION",
3684
+ "onDelete": "RESTRICT",
3685
+ "name": "commission_casinos_casino_id_casinos_id_fkey",
3686
+ "entityType": "fks",
3687
+ "schema": "public",
3688
+ "table": "commission_casinos"
3689
+ },
3690
+ {
3691
+ "nameExplicit": false,
3692
+ "columns": [
3693
+ "campaign_id"
3694
+ ],
3695
+ "schemaTo": "public",
3696
+ "tableTo": "campaigns",
3697
+ "columnsTo": [
3698
+ "id"
3699
+ ],
3700
+ "onUpdate": "NO ACTION",
3701
+ "onDelete": "NO ACTION",
3702
+ "name": "conversions_campaign_id_campaigns_id_fkey",
3703
+ "entityType": "fks",
3704
+ "schema": "public",
3705
+ "table": "conversions"
3706
+ },
3707
+ {
3708
+ "nameExplicit": false,
3709
+ "columns": [
3710
+ "casino_id"
3711
+ ],
3712
+ "schemaTo": "public",
3713
+ "tableTo": "casinos",
3714
+ "columnsTo": [
3715
+ "id"
3716
+ ],
3717
+ "onUpdate": "NO ACTION",
3718
+ "onDelete": "NO ACTION",
3719
+ "name": "conversions_casino_id_casinos_id_fkey",
3720
+ "entityType": "fks",
3721
+ "schema": "public",
3722
+ "table": "conversions"
3723
+ },
3724
+ {
3725
+ "nameExplicit": false,
3726
+ "columns": [
3727
+ "affiliate_id"
3728
+ ],
3729
+ "schemaTo": "public",
3730
+ "tableTo": "users",
3731
+ "columnsTo": [
3732
+ "id"
3733
+ ],
3734
+ "onUpdate": "NO ACTION",
3735
+ "onDelete": "NO ACTION",
3736
+ "name": "conversions_affiliate_id_users_id_fkey",
3737
+ "entityType": "fks",
3738
+ "schema": "public",
3739
+ "table": "conversions"
3740
+ },
3741
+ {
3742
+ "nameExplicit": false,
3743
+ "columns": [
3744
+ "affiliate_id"
3745
+ ],
3746
+ "schemaTo": "public",
3747
+ "tableTo": "users",
3748
+ "columnsTo": [
3749
+ "id"
3750
+ ],
3751
+ "onUpdate": "NO ACTION",
3752
+ "onDelete": "CASCADE",
3753
+ "name": "deals_affiliate_id_users_id_fkey",
3754
+ "entityType": "fks",
3755
+ "schema": "public",
3756
+ "table": "deals"
3757
+ },
3758
+ {
3759
+ "nameExplicit": false,
3760
+ "columns": [
3761
+ "commission_id"
3762
+ ],
3763
+ "schemaTo": "public",
3764
+ "tableTo": "commissions",
3765
+ "columnsTo": [
3766
+ "id"
3767
+ ],
3768
+ "onUpdate": "NO ACTION",
3769
+ "onDelete": "RESTRICT",
3770
+ "name": "deals_commission_id_commissions_id_fkey",
3771
+ "entityType": "fks",
3772
+ "schema": "public",
3773
+ "table": "deals"
3774
+ },
3775
+ {
3776
+ "nameExplicit": false,
3777
+ "columns": [
3778
+ "assigned_by_id"
3779
+ ],
3780
+ "schemaTo": "public",
3781
+ "tableTo": "users",
3782
+ "columnsTo": [
3783
+ "id"
3784
+ ],
3785
+ "onUpdate": "NO ACTION",
3786
+ "onDelete": "SET NULL",
3787
+ "name": "deals_assigned_by_id_users_id_fkey",
3788
+ "entityType": "fks",
3789
+ "schema": "public",
3790
+ "table": "deals"
3791
+ },
3792
+ {
3793
+ "nameExplicit": false,
3794
+ "columns": [
3795
+ "parent_deal_id"
3796
+ ],
3797
+ "schemaTo": "public",
3798
+ "tableTo": "deals",
3799
+ "columnsTo": [
3800
+ "id"
3801
+ ],
3802
+ "onUpdate": "NO ACTION",
3803
+ "onDelete": "CASCADE",
3804
+ "name": "deals_parent_deal_id_deals_id_fkey",
3805
+ "entityType": "fks",
3806
+ "schema": "public",
3807
+ "table": "deals"
3808
+ },
3809
+ {
3810
+ "nameExplicit": false,
3811
+ "columns": [
3812
+ "user_id"
3813
+ ],
3814
+ "schemaTo": "public",
3815
+ "tableTo": "users",
3816
+ "columnsTo": [
3817
+ "id"
3818
+ ],
3819
+ "onUpdate": "NO ACTION",
3820
+ "onDelete": "CASCADE",
3821
+ "name": "earnings_ledger_user_id_users_id_fkey",
3822
+ "entityType": "fks",
3823
+ "schema": "public",
3824
+ "table": "earnings_ledger"
3825
+ },
3826
+ {
3827
+ "nameExplicit": false,
3828
+ "columns": [
3829
+ "conversion_id"
3830
+ ],
3831
+ "schemaTo": "public",
3832
+ "tableTo": "conversions",
3833
+ "columnsTo": [
3834
+ "id"
3835
+ ],
3836
+ "onUpdate": "NO ACTION",
3837
+ "onDelete": "SET NULL",
3838
+ "name": "earnings_ledger_conversion_id_conversions_id_fkey",
3839
+ "entityType": "fks",
3840
+ "schema": "public",
3841
+ "table": "earnings_ledger"
3842
+ },
3843
+ {
3844
+ "nameExplicit": false,
3845
+ "columns": [
3846
+ "deal_id"
3847
+ ],
3848
+ "schemaTo": "public",
3849
+ "tableTo": "deals",
3850
+ "columnsTo": [
3851
+ "id"
3852
+ ],
3853
+ "onUpdate": "NO ACTION",
3854
+ "onDelete": "RESTRICT",
3855
+ "name": "earnings_ledger_deal_id_deals_id_fkey",
3856
+ "entityType": "fks",
3857
+ "schema": "public",
3858
+ "table": "earnings_ledger"
3859
+ },
3860
+ {
3861
+ "nameExplicit": false,
3862
+ "columns": [
3863
+ "commission_id"
3864
+ ],
3865
+ "schemaTo": "public",
3866
+ "tableTo": "commissions",
3867
+ "columnsTo": [
3868
+ "id"
3869
+ ],
3870
+ "onUpdate": "NO ACTION",
3871
+ "onDelete": "RESTRICT",
3872
+ "name": "earnings_ledger_commission_id_commissions_id_fkey",
3873
+ "entityType": "fks",
3874
+ "schema": "public",
3875
+ "table": "earnings_ledger"
3876
+ },
3877
+ {
3878
+ "nameExplicit": false,
3879
+ "columns": [
3880
+ "payout_request_id"
3881
+ ],
3882
+ "schemaTo": "public",
3883
+ "tableTo": "payout_requests",
3884
+ "columnsTo": [
3885
+ "id"
3886
+ ],
3887
+ "onUpdate": "NO ACTION",
3888
+ "onDelete": "SET NULL",
3889
+ "name": "earnings_ledger_payout_request_id_payout_requests_id_fkey",
3890
+ "entityType": "fks",
3891
+ "schema": "public",
3892
+ "table": "earnings_ledger"
3893
+ },
3894
+ {
3895
+ "nameExplicit": false,
3896
+ "columns": [
3897
+ "group_id"
3898
+ ],
3899
+ "schemaTo": "public",
3900
+ "tableTo": "groups",
3901
+ "columnsTo": [
3902
+ "id"
3903
+ ],
3904
+ "onUpdate": "NO ACTION",
3905
+ "onDelete": "CASCADE",
3906
+ "name": "group_permissions_group_id_groups_id_fkey",
3907
+ "entityType": "fks",
3908
+ "schema": "public",
3909
+ "table": "group_permissions"
3910
+ },
3911
+ {
3912
+ "nameExplicit": false,
3913
+ "columns": [
3914
+ "user_id"
3915
+ ],
3916
+ "schemaTo": "public",
3917
+ "tableTo": "users",
3918
+ "columnsTo": [
3919
+ "id"
3920
+ ],
3921
+ "onUpdate": "NO ACTION",
3922
+ "onDelete": "CASCADE",
3923
+ "name": "user_groups_user_id_users_id_fkey",
3924
+ "entityType": "fks",
3925
+ "schema": "public",
3926
+ "table": "user_groups"
3927
+ },
3928
+ {
3929
+ "nameExplicit": false,
3930
+ "columns": [
3931
+ "group_id"
3932
+ ],
3933
+ "schemaTo": "public",
3934
+ "tableTo": "groups",
3935
+ "columnsTo": [
3936
+ "id"
3937
+ ],
3938
+ "onUpdate": "NO ACTION",
3939
+ "onDelete": "CASCADE",
3940
+ "name": "user_groups_group_id_groups_id_fkey",
3941
+ "entityType": "fks",
3942
+ "schema": "public",
3943
+ "table": "user_groups"
3944
+ },
3945
+ {
3946
+ "nameExplicit": false,
3947
+ "columns": [
3948
+ "user_id"
3949
+ ],
3950
+ "schemaTo": "public",
3951
+ "tableTo": "users",
3952
+ "columnsTo": [
3953
+ "id"
3954
+ ],
3955
+ "onUpdate": "NO ACTION",
3956
+ "onDelete": "CASCADE",
3957
+ "name": "user_permissions_user_id_users_id_fkey",
3958
+ "entityType": "fks",
3959
+ "schema": "public",
3960
+ "table": "user_permissions"
3961
+ },
3962
+ {
3963
+ "nameExplicit": false,
3964
+ "columns": [
3965
+ "user_id"
3966
+ ],
3967
+ "schemaTo": "public",
3968
+ "tableTo": "users",
3969
+ "columnsTo": [
3970
+ "id"
3971
+ ],
3972
+ "onUpdate": "NO ACTION",
3973
+ "onDelete": "CASCADE",
3974
+ "name": "payout_requests_user_id_users_id_fkey",
3975
+ "entityType": "fks",
3976
+ "schema": "public",
3977
+ "table": "payout_requests"
3978
+ },
3979
+ {
3980
+ "nameExplicit": false,
3981
+ "columns": [
3982
+ "reviewed_by_id"
3983
+ ],
3984
+ "schemaTo": "public",
3985
+ "tableTo": "users",
3986
+ "columnsTo": [
3987
+ "id"
3988
+ ],
3989
+ "onUpdate": "NO ACTION",
3990
+ "onDelete": "SET NULL",
3991
+ "name": "payout_requests_reviewed_by_id_users_id_fkey",
3992
+ "entityType": "fks",
3993
+ "schema": "public",
3994
+ "table": "payout_requests"
3995
+ },
3996
+ {
3997
+ "nameExplicit": false,
3998
+ "columns": [
3999
+ "updated_by"
4000
+ ],
4001
+ "schemaTo": "public",
4002
+ "tableTo": "users",
4003
+ "columnsTo": [
4004
+ "id"
4005
+ ],
4006
+ "onUpdate": "NO ACTION",
4007
+ "onDelete": "SET NULL",
4008
+ "name": "platform_settings_updated_by_users_id_fkey",
4009
+ "entityType": "fks",
4010
+ "schema": "public",
4011
+ "table": "platform_settings"
4012
+ },
4013
+ {
4014
+ "nameExplicit": false,
4015
+ "columns": [
4016
+ "session_id"
4017
+ ],
4018
+ "schemaTo": "public",
4019
+ "tableTo": "sessions",
4020
+ "columnsTo": [
4021
+ "id"
4022
+ ],
4023
+ "onUpdate": "NO ACTION",
4024
+ "onDelete": "CASCADE",
4025
+ "name": "refresh_tokens_session_id_sessions_id_fkey",
4026
+ "entityType": "fks",
4027
+ "schema": "public",
4028
+ "table": "refresh_tokens"
4029
+ },
4030
+ {
4031
+ "nameExplicit": false,
4032
+ "columns": [
4033
+ "user_id"
4034
+ ],
4035
+ "schemaTo": "public",
4036
+ "tableTo": "users",
4037
+ "columnsTo": [
4038
+ "id"
4039
+ ],
4040
+ "onUpdate": "NO ACTION",
4041
+ "onDelete": "CASCADE",
4042
+ "name": "sessions_user_id_users_id_fkey",
4043
+ "entityType": "fks",
4044
+ "schema": "public",
4045
+ "table": "sessions"
4046
+ },
4047
+ {
4048
+ "nameExplicit": false,
4049
+ "columns": [
4050
+ "user_id"
4051
+ ],
4052
+ "schemaTo": "public",
4053
+ "tableTo": "users",
4054
+ "columnsTo": [
4055
+ "id"
4056
+ ],
4057
+ "onUpdate": "NO ACTION",
4058
+ "onDelete": "CASCADE",
4059
+ "name": "user_preferences_user_id_users_id_fkey",
4060
+ "entityType": "fks",
4061
+ "schema": "public",
4062
+ "table": "user_preferences"
4063
+ },
4064
+ {
4065
+ "nameExplicit": false,
4066
+ "columns": [
4067
+ "approved_by"
4068
+ ],
4069
+ "schemaTo": "public",
4070
+ "tableTo": "users",
4071
+ "columnsTo": [
4072
+ "id"
4073
+ ],
4074
+ "onUpdate": "NO ACTION",
4075
+ "onDelete": "SET NULL",
4076
+ "name": "users_approved_by_users_id_fkey",
4077
+ "entityType": "fks",
4078
+ "schema": "public",
4079
+ "table": "users"
4080
+ },
4081
+ {
4082
+ "nameExplicit": false,
4083
+ "columns": [
4084
+ "parent_affiliate_id"
4085
+ ],
4086
+ "schemaTo": "public",
4087
+ "tableTo": "users",
4088
+ "columnsTo": [
4089
+ "id"
4090
+ ],
4091
+ "onUpdate": "NO ACTION",
4092
+ "onDelete": "SET NULL",
4093
+ "name": "users_parent_affiliate_id_users_id_fkey",
4094
+ "entityType": "fks",
4095
+ "schema": "public",
4096
+ "table": "users"
4097
+ },
4098
+ {
4099
+ "nameExplicit": false,
4100
+ "columns": [
4101
+ "user_id"
4102
+ ],
4103
+ "schemaTo": "public",
4104
+ "tableTo": "users",
4105
+ "columnsTo": [
4106
+ "id"
4107
+ ],
4108
+ "onUpdate": "NO ACTION",
4109
+ "onDelete": "CASCADE",
4110
+ "name": "verification_tokens_user_id_users_id_fkey",
4111
+ "entityType": "fks",
4112
+ "schema": "public",
4113
+ "table": "verification_tokens"
4114
+ },
4115
+ {
4116
+ "columns": [
4117
+ "commission_id",
4118
+ "casino_id"
4119
+ ],
4120
+ "nameExplicit": false,
4121
+ "name": "commission_casinos_pkey",
4122
+ "entityType": "pks",
4123
+ "schema": "public",
4124
+ "table": "commission_casinos"
4125
+ },
4126
+ {
4127
+ "columns": [
4128
+ "group_id",
4129
+ "permission"
4130
+ ],
4131
+ "nameExplicit": false,
4132
+ "name": "group_permissions_pkey",
4133
+ "entityType": "pks",
4134
+ "schema": "public",
4135
+ "table": "group_permissions"
4136
+ },
4137
+ {
4138
+ "columns": [
4139
+ "user_id",
4140
+ "group_id"
4141
+ ],
4142
+ "nameExplicit": false,
4143
+ "name": "user_groups_pkey",
4144
+ "entityType": "pks",
4145
+ "schema": "public",
4146
+ "table": "user_groups"
4147
+ },
4148
+ {
4149
+ "columns": [
4150
+ "user_id",
4151
+ "permission"
4152
+ ],
4153
+ "nameExplicit": false,
4154
+ "name": "user_permissions_pkey",
4155
+ "entityType": "pks",
4156
+ "schema": "public",
4157
+ "table": "user_permissions"
4158
+ },
4159
+ {
4160
+ "columns": [
4161
+ "id"
4162
+ ],
4163
+ "nameExplicit": false,
4164
+ "name": "analytics_outbox_pkey",
4165
+ "schema": "public",
4166
+ "table": "analytics_outbox",
4167
+ "entityType": "pks"
4168
+ },
4169
+ {
4170
+ "columns": [
4171
+ "id"
4172
+ ],
4173
+ "nameExplicit": false,
4174
+ "name": "audit_logs_pkey",
4175
+ "schema": "public",
4176
+ "table": "audit_logs",
4177
+ "entityType": "pks"
4178
+ },
4179
+ {
4180
+ "columns": [
4181
+ "id"
4182
+ ],
4183
+ "nameExplicit": false,
4184
+ "name": "campaigns_pkey",
4185
+ "schema": "public",
4186
+ "table": "campaigns",
4187
+ "entityType": "pks"
4188
+ },
4189
+ {
4190
+ "columns": [
4191
+ "id"
4192
+ ],
4193
+ "nameExplicit": false,
4194
+ "name": "casinos_pkey",
4195
+ "schema": "public",
4196
+ "table": "casinos",
4197
+ "entityType": "pks"
4198
+ },
4199
+ {
4200
+ "columns": [
4201
+ "id"
4202
+ ],
4203
+ "nameExplicit": false,
4204
+ "name": "commission_rule_groups_pkey",
4205
+ "schema": "public",
4206
+ "table": "commission_rule_groups",
4207
+ "entityType": "pks"
4208
+ },
4209
+ {
4210
+ "columns": [
4211
+ "id"
4212
+ ],
4213
+ "nameExplicit": false,
4214
+ "name": "commission_rules_pkey",
4215
+ "schema": "public",
4216
+ "table": "commission_rules",
4217
+ "entityType": "pks"
4218
+ },
4219
+ {
4220
+ "columns": [
4221
+ "id"
4222
+ ],
4223
+ "nameExplicit": false,
4224
+ "name": "commissions_pkey",
4225
+ "schema": "public",
4226
+ "table": "commissions",
4227
+ "entityType": "pks"
4228
+ },
4229
+ {
4230
+ "columns": [
4231
+ "id"
4232
+ ],
4233
+ "nameExplicit": false,
4234
+ "name": "conversions_pkey",
4235
+ "schema": "public",
4236
+ "table": "conversions",
4237
+ "entityType": "pks"
4238
+ },
4239
+ {
4240
+ "columns": [
4241
+ "id"
4242
+ ],
4243
+ "nameExplicit": false,
4244
+ "name": "deals_pkey",
4245
+ "schema": "public",
4246
+ "table": "deals",
4247
+ "entityType": "pks"
4248
+ },
4249
+ {
4250
+ "columns": [
4251
+ "id"
4252
+ ],
4253
+ "nameExplicit": false,
4254
+ "name": "earnings_ledger_pkey",
4255
+ "schema": "public",
4256
+ "table": "earnings_ledger",
4257
+ "entityType": "pks"
4258
+ },
4259
+ {
4260
+ "columns": [
4261
+ "id"
4262
+ ],
4263
+ "nameExplicit": false,
4264
+ "name": "groups_pkey",
4265
+ "schema": "public",
4266
+ "table": "groups",
4267
+ "entityType": "pks"
4268
+ },
4269
+ {
4270
+ "columns": [
4271
+ "id"
4272
+ ],
4273
+ "nameExplicit": false,
4274
+ "name": "payout_requests_pkey",
4275
+ "schema": "public",
4276
+ "table": "payout_requests",
4277
+ "entityType": "pks"
4278
+ },
4279
+ {
4280
+ "columns": [
4281
+ "id"
4282
+ ],
4283
+ "nameExplicit": false,
4284
+ "name": "platform_settings_pkey",
4285
+ "schema": "public",
4286
+ "table": "platform_settings",
4287
+ "entityType": "pks"
4288
+ },
4289
+ {
4290
+ "columns": [
4291
+ "id"
4292
+ ],
4293
+ "nameExplicit": false,
4294
+ "name": "refresh_tokens_pkey",
4295
+ "schema": "public",
4296
+ "table": "refresh_tokens",
4297
+ "entityType": "pks"
4298
+ },
4299
+ {
4300
+ "columns": [
4301
+ "id"
4302
+ ],
4303
+ "nameExplicit": false,
4304
+ "name": "sessions_pkey",
4305
+ "schema": "public",
4306
+ "table": "sessions",
4307
+ "entityType": "pks"
4308
+ },
4309
+ {
4310
+ "columns": [
4311
+ "user_id"
4312
+ ],
4313
+ "nameExplicit": false,
4314
+ "name": "user_preferences_pkey",
4315
+ "schema": "public",
4316
+ "table": "user_preferences",
4317
+ "entityType": "pks"
4318
+ },
4319
+ {
4320
+ "columns": [
4321
+ "id"
4322
+ ],
4323
+ "nameExplicit": false,
4324
+ "name": "users_pkey",
4325
+ "schema": "public",
4326
+ "table": "users",
4327
+ "entityType": "pks"
4328
+ },
4329
+ {
4330
+ "columns": [
4331
+ "id"
4332
+ ],
4333
+ "nameExplicit": false,
4334
+ "name": "verification_tokens_pkey",
4335
+ "schema": "public",
4336
+ "table": "verification_tokens",
4337
+ "entityType": "pks"
4338
+ },
4339
+ {
4340
+ "nameExplicit": false,
4341
+ "columns": [
4342
+ "slug"
4343
+ ],
4344
+ "nullsNotDistinct": false,
4345
+ "name": "campaigns_slug_key",
4346
+ "schema": "public",
4347
+ "table": "campaigns",
4348
+ "entityType": "uniques"
4349
+ },
4350
+ {
4351
+ "nameExplicit": false,
4352
+ "columns": [
4353
+ "name"
4354
+ ],
4355
+ "nullsNotDistinct": false,
4356
+ "name": "casinos_name_key",
4357
+ "schema": "public",
4358
+ "table": "casinos",
4359
+ "entityType": "uniques"
4360
+ },
4361
+ {
4362
+ "nameExplicit": false,
4363
+ "columns": [
4364
+ "name"
4365
+ ],
4366
+ "nullsNotDistinct": false,
4367
+ "name": "groups_name_key",
4368
+ "schema": "public",
4369
+ "table": "groups",
4370
+ "entityType": "uniques"
4371
+ },
4372
+ {
4373
+ "nameExplicit": false,
4374
+ "columns": [
4375
+ "token_hash"
4376
+ ],
4377
+ "nullsNotDistinct": false,
4378
+ "name": "refresh_tokens_token_hash_key",
4379
+ "schema": "public",
4380
+ "table": "refresh_tokens",
4381
+ "entityType": "uniques"
4382
+ },
4383
+ {
4384
+ "nameExplicit": false,
4385
+ "columns": [
4386
+ "email"
4387
+ ],
4388
+ "nullsNotDistinct": false,
4389
+ "name": "users_email_key",
4390
+ "schema": "public",
4391
+ "table": "users",
4392
+ "entityType": "uniques"
4393
+ },
4394
+ {
4395
+ "nameExplicit": false,
4396
+ "columns": [
4397
+ "token_hash"
4398
+ ],
4399
+ "nullsNotDistinct": false,
4400
+ "name": "verification_tokens_token_hash_key",
4401
+ "schema": "public",
4402
+ "table": "verification_tokens",
4403
+ "entityType": "uniques"
4404
+ }
4405
+ ],
4406
+ "renames": []
4407
+ }