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