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,4970 @@
1
+ {
2
+ "version": "8",
3
+ "dialect": "postgres",
4
+ "id": "b7d41bfb-fedb-4d31-a0c7-5147dda0a792",
5
+ "prevIds": [
6
+ "94ff7ed9-7c4e-4b4b-bf3c-c7497f4745aa"
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": "numeric(14,2)",
1130
+ "typeSchema": null,
1131
+ "notNull": false,
1132
+ "dimensions": 0,
1133
+ "default": null,
1134
+ "generated": null,
1135
+ "identity": null,
1136
+ "name": "carryover_limit",
1137
+ "entityType": "columns",
1138
+ "schema": "public",
1139
+ "table": "commissions"
1140
+ },
1141
+ {
1142
+ "type": "boolean",
1143
+ "typeSchema": null,
1144
+ "notNull": true,
1145
+ "dimensions": 0,
1146
+ "default": "false",
1147
+ "generated": null,
1148
+ "identity": null,
1149
+ "name": "allow_sub_affiliates",
1150
+ "entityType": "columns",
1151
+ "schema": "public",
1152
+ "table": "commissions"
1153
+ },
1154
+ {
1155
+ "type": "numeric(5,2)",
1156
+ "typeSchema": null,
1157
+ "notNull": false,
1158
+ "dimensions": 0,
1159
+ "default": null,
1160
+ "generated": null,
1161
+ "identity": null,
1162
+ "name": "sub_affiliate_max_percent",
1163
+ "entityType": "columns",
1164
+ "schema": "public",
1165
+ "table": "commissions"
1166
+ },
1167
+ {
1168
+ "type": "timestamp with time zone",
1169
+ "typeSchema": null,
1170
+ "notNull": true,
1171
+ "dimensions": 0,
1172
+ "default": "now()",
1173
+ "generated": null,
1174
+ "identity": null,
1175
+ "name": "created_at",
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": "updated_at",
1189
+ "entityType": "columns",
1190
+ "schema": "public",
1191
+ "table": "commissions"
1192
+ },
1193
+ {
1194
+ "type": "uuid",
1195
+ "typeSchema": null,
1196
+ "notNull": true,
1197
+ "dimensions": 0,
1198
+ "default": "gen_random_uuid()",
1199
+ "generated": null,
1200
+ "identity": null,
1201
+ "name": "id",
1202
+ "entityType": "columns",
1203
+ "schema": "public",
1204
+ "table": "conversions"
1205
+ },
1206
+ {
1207
+ "type": "uuid",
1208
+ "typeSchema": null,
1209
+ "notNull": true,
1210
+ "dimensions": 0,
1211
+ "default": null,
1212
+ "generated": null,
1213
+ "identity": null,
1214
+ "name": "click_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": "campaign_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": "casino_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": "affiliate_id",
1254
+ "entityType": "columns",
1255
+ "schema": "public",
1256
+ "table": "conversions"
1257
+ },
1258
+ {
1259
+ "type": "conversion_event",
1260
+ "typeSchema": "public",
1261
+ "notNull": true,
1262
+ "dimensions": 0,
1263
+ "default": null,
1264
+ "generated": null,
1265
+ "identity": null,
1266
+ "name": "event",
1267
+ "entityType": "columns",
1268
+ "schema": "public",
1269
+ "table": "conversions"
1270
+ },
1271
+ {
1272
+ "type": "conversion_product",
1273
+ "typeSchema": "public",
1274
+ "notNull": false,
1275
+ "dimensions": 0,
1276
+ "default": null,
1277
+ "generated": null,
1278
+ "identity": null,
1279
+ "name": "product",
1280
+ "entityType": "columns",
1281
+ "schema": "public",
1282
+ "table": "conversions"
1283
+ },
1284
+ {
1285
+ "type": "text",
1286
+ "typeSchema": null,
1287
+ "notNull": false,
1288
+ "dimensions": 0,
1289
+ "default": null,
1290
+ "generated": null,
1291
+ "identity": null,
1292
+ "name": "country",
1293
+ "entityType": "columns",
1294
+ "schema": "public",
1295
+ "table": "conversions"
1296
+ },
1297
+ {
1298
+ "type": "numeric(14,2)",
1299
+ "typeSchema": null,
1300
+ "notNull": false,
1301
+ "dimensions": 0,
1302
+ "default": null,
1303
+ "generated": null,
1304
+ "identity": null,
1305
+ "name": "amount",
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": "wager",
1319
+ "entityType": "columns",
1320
+ "schema": "public",
1321
+ "table": "conversions"
1322
+ },
1323
+ {
1324
+ "type": "text",
1325
+ "typeSchema": null,
1326
+ "notNull": false,
1327
+ "dimensions": 0,
1328
+ "default": null,
1329
+ "generated": null,
1330
+ "identity": null,
1331
+ "name": "currency",
1332
+ "entityType": "columns",
1333
+ "schema": "public",
1334
+ "table": "conversions"
1335
+ },
1336
+ {
1337
+ "type": "text",
1338
+ "typeSchema": null,
1339
+ "notNull": true,
1340
+ "dimensions": 0,
1341
+ "default": null,
1342
+ "generated": null,
1343
+ "identity": null,
1344
+ "name": "casino_tx_id",
1345
+ "entityType": "columns",
1346
+ "schema": "public",
1347
+ "table": "conversions"
1348
+ },
1349
+ {
1350
+ "type": "text",
1351
+ "typeSchema": null,
1352
+ "notNull": false,
1353
+ "dimensions": 0,
1354
+ "default": null,
1355
+ "generated": null,
1356
+ "identity": null,
1357
+ "name": "original_tx_id",
1358
+ "entityType": "columns",
1359
+ "schema": "public",
1360
+ "table": "conversions"
1361
+ },
1362
+ {
1363
+ "type": "text",
1364
+ "typeSchema": null,
1365
+ "notNull": true,
1366
+ "dimensions": 0,
1367
+ "default": null,
1368
+ "generated": null,
1369
+ "identity": null,
1370
+ "name": "player_id",
1371
+ "entityType": "columns",
1372
+ "schema": "public",
1373
+ "table": "conversions"
1374
+ },
1375
+ {
1376
+ "type": "conversion_status",
1377
+ "typeSchema": "public",
1378
+ "notNull": true,
1379
+ "dimensions": 0,
1380
+ "default": "'pending'",
1381
+ "generated": null,
1382
+ "identity": null,
1383
+ "name": "status",
1384
+ "entityType": "columns",
1385
+ "schema": "public",
1386
+ "table": "conversions"
1387
+ },
1388
+ {
1389
+ "type": "timestamp with time zone",
1390
+ "typeSchema": null,
1391
+ "notNull": false,
1392
+ "dimensions": 0,
1393
+ "default": null,
1394
+ "generated": null,
1395
+ "identity": null,
1396
+ "name": "locked_until",
1397
+ "entityType": "columns",
1398
+ "schema": "public",
1399
+ "table": "conversions"
1400
+ },
1401
+ {
1402
+ "type": "jsonb",
1403
+ "typeSchema": null,
1404
+ "notNull": true,
1405
+ "dimensions": 0,
1406
+ "default": null,
1407
+ "generated": null,
1408
+ "identity": null,
1409
+ "name": "raw_postback",
1410
+ "entityType": "columns",
1411
+ "schema": "public",
1412
+ "table": "conversions"
1413
+ },
1414
+ {
1415
+ "type": "timestamp with time zone",
1416
+ "typeSchema": null,
1417
+ "notNull": true,
1418
+ "dimensions": 0,
1419
+ "default": "now()",
1420
+ "generated": null,
1421
+ "identity": null,
1422
+ "name": "received_at",
1423
+ "entityType": "columns",
1424
+ "schema": "public",
1425
+ "table": "conversions"
1426
+ },
1427
+ {
1428
+ "type": "uuid",
1429
+ "typeSchema": null,
1430
+ "notNull": true,
1431
+ "dimensions": 0,
1432
+ "default": "gen_random_uuid()",
1433
+ "generated": null,
1434
+ "identity": null,
1435
+ "name": "id",
1436
+ "entityType": "columns",
1437
+ "schema": "public",
1438
+ "table": "deals"
1439
+ },
1440
+ {
1441
+ "type": "uuid",
1442
+ "typeSchema": null,
1443
+ "notNull": true,
1444
+ "dimensions": 0,
1445
+ "default": null,
1446
+ "generated": null,
1447
+ "identity": null,
1448
+ "name": "affiliate_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": "commission_id",
1462
+ "entityType": "columns",
1463
+ "schema": "public",
1464
+ "table": "deals"
1465
+ },
1466
+ {
1467
+ "type": "deal_status",
1468
+ "typeSchema": "public",
1469
+ "notNull": true,
1470
+ "dimensions": 0,
1471
+ "default": "'active'",
1472
+ "generated": null,
1473
+ "identity": null,
1474
+ "name": "status",
1475
+ "entityType": "columns",
1476
+ "schema": "public",
1477
+ "table": "deals"
1478
+ },
1479
+ {
1480
+ "type": "timestamp with time zone",
1481
+ "typeSchema": null,
1482
+ "notNull": true,
1483
+ "dimensions": 0,
1484
+ "default": null,
1485
+ "generated": null,
1486
+ "identity": null,
1487
+ "name": "starts_at",
1488
+ "entityType": "columns",
1489
+ "schema": "public",
1490
+ "table": "deals"
1491
+ },
1492
+ {
1493
+ "type": "timestamp with time zone",
1494
+ "typeSchema": null,
1495
+ "notNull": false,
1496
+ "dimensions": 0,
1497
+ "default": null,
1498
+ "generated": null,
1499
+ "identity": null,
1500
+ "name": "ends_at",
1501
+ "entityType": "columns",
1502
+ "schema": "public",
1503
+ "table": "deals"
1504
+ },
1505
+ {
1506
+ "type": "uuid",
1507
+ "typeSchema": null,
1508
+ "notNull": false,
1509
+ "dimensions": 0,
1510
+ "default": null,
1511
+ "generated": null,
1512
+ "identity": null,
1513
+ "name": "assigned_by_id",
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": "parent_deal_id",
1527
+ "entityType": "columns",
1528
+ "schema": "public",
1529
+ "table": "deals"
1530
+ },
1531
+ {
1532
+ "type": "numeric(5,2)",
1533
+ "typeSchema": null,
1534
+ "notNull": false,
1535
+ "dimensions": 0,
1536
+ "default": null,
1537
+ "generated": null,
1538
+ "identity": null,
1539
+ "name": "sub_affiliate_percent",
1540
+ "entityType": "columns",
1541
+ "schema": "public",
1542
+ "table": "deals"
1543
+ },
1544
+ {
1545
+ "type": "timestamp with time zone",
1546
+ "typeSchema": null,
1547
+ "notNull": true,
1548
+ "dimensions": 0,
1549
+ "default": "now()",
1550
+ "generated": null,
1551
+ "identity": null,
1552
+ "name": "created_at",
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": "updated_at",
1566
+ "entityType": "columns",
1567
+ "schema": "public",
1568
+ "table": "deals"
1569
+ },
1570
+ {
1571
+ "type": "uuid",
1572
+ "typeSchema": null,
1573
+ "notNull": true,
1574
+ "dimensions": 0,
1575
+ "default": "gen_random_uuid()",
1576
+ "generated": null,
1577
+ "identity": null,
1578
+ "name": "id",
1579
+ "entityType": "columns",
1580
+ "schema": "public",
1581
+ "table": "earnings_ledger"
1582
+ },
1583
+ {
1584
+ "type": "uuid",
1585
+ "typeSchema": null,
1586
+ "notNull": true,
1587
+ "dimensions": 0,
1588
+ "default": null,
1589
+ "generated": null,
1590
+ "identity": null,
1591
+ "name": "user_id",
1592
+ "entityType": "columns",
1593
+ "schema": "public",
1594
+ "table": "earnings_ledger"
1595
+ },
1596
+ {
1597
+ "type": "uuid",
1598
+ "typeSchema": null,
1599
+ "notNull": false,
1600
+ "dimensions": 0,
1601
+ "default": null,
1602
+ "generated": null,
1603
+ "identity": null,
1604
+ "name": "conversion_id",
1605
+ "entityType": "columns",
1606
+ "schema": "public",
1607
+ "table": "earnings_ledger"
1608
+ },
1609
+ {
1610
+ "type": "uuid",
1611
+ "typeSchema": null,
1612
+ "notNull": true,
1613
+ "dimensions": 0,
1614
+ "default": null,
1615
+ "generated": null,
1616
+ "identity": null,
1617
+ "name": "deal_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": "commission_id",
1631
+ "entityType": "columns",
1632
+ "schema": "public",
1633
+ "table": "earnings_ledger"
1634
+ },
1635
+ {
1636
+ "type": "text",
1637
+ "typeSchema": null,
1638
+ "notNull": true,
1639
+ "dimensions": 0,
1640
+ "default": null,
1641
+ "generated": null,
1642
+ "identity": null,
1643
+ "name": "reward_id",
1644
+ "entityType": "columns",
1645
+ "schema": "public",
1646
+ "table": "earnings_ledger"
1647
+ },
1648
+ {
1649
+ "type": "earning_kind",
1650
+ "typeSchema": "public",
1651
+ "notNull": true,
1652
+ "dimensions": 0,
1653
+ "default": "'direct'",
1654
+ "generated": null,
1655
+ "identity": null,
1656
+ "name": "kind",
1657
+ "entityType": "columns",
1658
+ "schema": "public",
1659
+ "table": "earnings_ledger"
1660
+ },
1661
+ {
1662
+ "type": "numeric(14,2)",
1663
+ "typeSchema": null,
1664
+ "notNull": true,
1665
+ "dimensions": 0,
1666
+ "default": null,
1667
+ "generated": null,
1668
+ "identity": null,
1669
+ "name": "amount",
1670
+ "entityType": "columns",
1671
+ "schema": "public",
1672
+ "table": "earnings_ledger"
1673
+ },
1674
+ {
1675
+ "type": "text",
1676
+ "typeSchema": null,
1677
+ "notNull": true,
1678
+ "dimensions": 0,
1679
+ "default": null,
1680
+ "generated": null,
1681
+ "identity": null,
1682
+ "name": "currency",
1683
+ "entityType": "columns",
1684
+ "schema": "public",
1685
+ "table": "earnings_ledger"
1686
+ },
1687
+ {
1688
+ "type": "earning_status",
1689
+ "typeSchema": "public",
1690
+ "notNull": true,
1691
+ "dimensions": 0,
1692
+ "default": "'pending'",
1693
+ "generated": null,
1694
+ "identity": null,
1695
+ "name": "status",
1696
+ "entityType": "columns",
1697
+ "schema": "public",
1698
+ "table": "earnings_ledger"
1699
+ },
1700
+ {
1701
+ "type": "text",
1702
+ "typeSchema": null,
1703
+ "notNull": true,
1704
+ "dimensions": 0,
1705
+ "default": null,
1706
+ "generated": null,
1707
+ "identity": null,
1708
+ "name": "source_hash",
1709
+ "entityType": "columns",
1710
+ "schema": "public",
1711
+ "table": "earnings_ledger"
1712
+ },
1713
+ {
1714
+ "type": "text",
1715
+ "typeSchema": null,
1716
+ "notNull": false,
1717
+ "dimensions": 0,
1718
+ "default": null,
1719
+ "generated": null,
1720
+ "identity": null,
1721
+ "name": "reconcile_key",
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": "source_affiliate_id",
1735
+ "entityType": "columns",
1736
+ "schema": "public",
1737
+ "table": "earnings_ledger"
1738
+ },
1739
+ {
1740
+ "type": "uuid",
1741
+ "typeSchema": null,
1742
+ "notNull": false,
1743
+ "dimensions": 0,
1744
+ "default": null,
1745
+ "generated": null,
1746
+ "identity": null,
1747
+ "name": "payout_request_id",
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": null,
1758
+ "generated": null,
1759
+ "identity": null,
1760
+ "name": "available_at",
1761
+ "entityType": "columns",
1762
+ "schema": "public",
1763
+ "table": "earnings_ledger"
1764
+ },
1765
+ {
1766
+ "type": "timestamp with time zone",
1767
+ "typeSchema": null,
1768
+ "notNull": true,
1769
+ "dimensions": 0,
1770
+ "default": "now()",
1771
+ "generated": null,
1772
+ "identity": null,
1773
+ "name": "earned_at",
1774
+ "entityType": "columns",
1775
+ "schema": "public",
1776
+ "table": "earnings_ledger"
1777
+ },
1778
+ {
1779
+ "type": "uuid",
1780
+ "typeSchema": null,
1781
+ "notNull": true,
1782
+ "dimensions": 0,
1783
+ "default": null,
1784
+ "generated": null,
1785
+ "identity": null,
1786
+ "name": "group_id",
1787
+ "entityType": "columns",
1788
+ "schema": "public",
1789
+ "table": "group_permissions"
1790
+ },
1791
+ {
1792
+ "type": "text",
1793
+ "typeSchema": null,
1794
+ "notNull": true,
1795
+ "dimensions": 0,
1796
+ "default": null,
1797
+ "generated": null,
1798
+ "identity": null,
1799
+ "name": "permission",
1800
+ "entityType": "columns",
1801
+ "schema": "public",
1802
+ "table": "group_permissions"
1803
+ },
1804
+ {
1805
+ "type": "uuid",
1806
+ "typeSchema": null,
1807
+ "notNull": true,
1808
+ "dimensions": 0,
1809
+ "default": "gen_random_uuid()",
1810
+ "generated": null,
1811
+ "identity": null,
1812
+ "name": "id",
1813
+ "entityType": "columns",
1814
+ "schema": "public",
1815
+ "table": "groups"
1816
+ },
1817
+ {
1818
+ "type": "text",
1819
+ "typeSchema": null,
1820
+ "notNull": true,
1821
+ "dimensions": 0,
1822
+ "default": null,
1823
+ "generated": null,
1824
+ "identity": null,
1825
+ "name": "name",
1826
+ "entityType": "columns",
1827
+ "schema": "public",
1828
+ "table": "groups"
1829
+ },
1830
+ {
1831
+ "type": "text",
1832
+ "typeSchema": null,
1833
+ "notNull": false,
1834
+ "dimensions": 0,
1835
+ "default": null,
1836
+ "generated": null,
1837
+ "identity": null,
1838
+ "name": "description",
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": "created_at",
1852
+ "entityType": "columns",
1853
+ "schema": "public",
1854
+ "table": "groups"
1855
+ },
1856
+ {
1857
+ "type": "timestamp with time zone",
1858
+ "typeSchema": null,
1859
+ "notNull": true,
1860
+ "dimensions": 0,
1861
+ "default": "now()",
1862
+ "generated": null,
1863
+ "identity": null,
1864
+ "name": "updated_at",
1865
+ "entityType": "columns",
1866
+ "schema": "public",
1867
+ "table": "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": "user_id",
1878
+ "entityType": "columns",
1879
+ "schema": "public",
1880
+ "table": "user_groups"
1881
+ },
1882
+ {
1883
+ "type": "uuid",
1884
+ "typeSchema": null,
1885
+ "notNull": true,
1886
+ "dimensions": 0,
1887
+ "default": null,
1888
+ "generated": null,
1889
+ "identity": null,
1890
+ "name": "group_id",
1891
+ "entityType": "columns",
1892
+ "schema": "public",
1893
+ "table": "user_groups"
1894
+ },
1895
+ {
1896
+ "type": "timestamp with time zone",
1897
+ "typeSchema": null,
1898
+ "notNull": true,
1899
+ "dimensions": 0,
1900
+ "default": "now()",
1901
+ "generated": null,
1902
+ "identity": null,
1903
+ "name": "assigned_at",
1904
+ "entityType": "columns",
1905
+ "schema": "public",
1906
+ "table": "user_groups"
1907
+ },
1908
+ {
1909
+ "type": "uuid",
1910
+ "typeSchema": null,
1911
+ "notNull": true,
1912
+ "dimensions": 0,
1913
+ "default": null,
1914
+ "generated": null,
1915
+ "identity": null,
1916
+ "name": "user_id",
1917
+ "entityType": "columns",
1918
+ "schema": "public",
1919
+ "table": "user_permissions"
1920
+ },
1921
+ {
1922
+ "type": "text",
1923
+ "typeSchema": null,
1924
+ "notNull": true,
1925
+ "dimensions": 0,
1926
+ "default": null,
1927
+ "generated": null,
1928
+ "identity": null,
1929
+ "name": "permission",
1930
+ "entityType": "columns",
1931
+ "schema": "public",
1932
+ "table": "user_permissions"
1933
+ },
1934
+ {
1935
+ "type": "uuid",
1936
+ "typeSchema": null,
1937
+ "notNull": true,
1938
+ "dimensions": 0,
1939
+ "default": "gen_random_uuid()",
1940
+ "generated": null,
1941
+ "identity": null,
1942
+ "name": "id",
1943
+ "entityType": "columns",
1944
+ "schema": "public",
1945
+ "table": "payout_requests"
1946
+ },
1947
+ {
1948
+ "type": "uuid",
1949
+ "typeSchema": null,
1950
+ "notNull": true,
1951
+ "dimensions": 0,
1952
+ "default": null,
1953
+ "generated": null,
1954
+ "identity": null,
1955
+ "name": "user_id",
1956
+ "entityType": "columns",
1957
+ "schema": "public",
1958
+ "table": "payout_requests"
1959
+ },
1960
+ {
1961
+ "type": "numeric(14,2)",
1962
+ "typeSchema": null,
1963
+ "notNull": true,
1964
+ "dimensions": 0,
1965
+ "default": null,
1966
+ "generated": null,
1967
+ "identity": null,
1968
+ "name": "amount",
1969
+ "entityType": "columns",
1970
+ "schema": "public",
1971
+ "table": "payout_requests"
1972
+ },
1973
+ {
1974
+ "type": "text",
1975
+ "typeSchema": null,
1976
+ "notNull": true,
1977
+ "dimensions": 0,
1978
+ "default": null,
1979
+ "generated": null,
1980
+ "identity": null,
1981
+ "name": "currency",
1982
+ "entityType": "columns",
1983
+ "schema": "public",
1984
+ "table": "payout_requests"
1985
+ },
1986
+ {
1987
+ "type": "text",
1988
+ "typeSchema": null,
1989
+ "notNull": false,
1990
+ "dimensions": 0,
1991
+ "default": null,
1992
+ "generated": null,
1993
+ "identity": null,
1994
+ "name": "desired_currency",
1995
+ "entityType": "columns",
1996
+ "schema": "public",
1997
+ "table": "payout_requests"
1998
+ },
1999
+ {
2000
+ "type": "payout_request_status",
2001
+ "typeSchema": "public",
2002
+ "notNull": true,
2003
+ "dimensions": 0,
2004
+ "default": "'requested'",
2005
+ "generated": null,
2006
+ "identity": null,
2007
+ "name": "status",
2008
+ "entityType": "columns",
2009
+ "schema": "public",
2010
+ "table": "payout_requests"
2011
+ },
2012
+ {
2013
+ "type": "text",
2014
+ "typeSchema": null,
2015
+ "notNull": false,
2016
+ "dimensions": 0,
2017
+ "default": null,
2018
+ "generated": null,
2019
+ "identity": null,
2020
+ "name": "note",
2021
+ "entityType": "columns",
2022
+ "schema": "public",
2023
+ "table": "payout_requests"
2024
+ },
2025
+ {
2026
+ "type": "uuid",
2027
+ "typeSchema": null,
2028
+ "notNull": false,
2029
+ "dimensions": 0,
2030
+ "default": null,
2031
+ "generated": null,
2032
+ "identity": null,
2033
+ "name": "reviewed_by_id",
2034
+ "entityType": "columns",
2035
+ "schema": "public",
2036
+ "table": "payout_requests"
2037
+ },
2038
+ {
2039
+ "type": "timestamp with time zone",
2040
+ "typeSchema": null,
2041
+ "notNull": false,
2042
+ "dimensions": 0,
2043
+ "default": null,
2044
+ "generated": null,
2045
+ "identity": null,
2046
+ "name": "reviewed_at",
2047
+ "entityType": "columns",
2048
+ "schema": "public",
2049
+ "table": "payout_requests"
2050
+ },
2051
+ {
2052
+ "type": "timestamp with time zone",
2053
+ "typeSchema": null,
2054
+ "notNull": true,
2055
+ "dimensions": 0,
2056
+ "default": "now()",
2057
+ "generated": null,
2058
+ "identity": null,
2059
+ "name": "requested_at",
2060
+ "entityType": "columns",
2061
+ "schema": "public",
2062
+ "table": "payout_requests"
2063
+ },
2064
+ {
2065
+ "type": "boolean",
2066
+ "typeSchema": null,
2067
+ "notNull": true,
2068
+ "dimensions": 0,
2069
+ "default": "true",
2070
+ "generated": null,
2071
+ "identity": null,
2072
+ "name": "id",
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_manager_totp",
2086
+ "entityType": "columns",
2087
+ "schema": "public",
2088
+ "table": "platform_settings"
2089
+ },
2090
+ {
2091
+ "type": "boolean",
2092
+ "typeSchema": null,
2093
+ "notNull": true,
2094
+ "dimensions": 0,
2095
+ "default": "false",
2096
+ "generated": null,
2097
+ "identity": null,
2098
+ "name": "require_affiliate_approval",
2099
+ "entityType": "columns",
2100
+ "schema": "public",
2101
+ "table": "platform_settings"
2102
+ },
2103
+ {
2104
+ "type": "timestamp with time zone",
2105
+ "typeSchema": null,
2106
+ "notNull": true,
2107
+ "dimensions": 0,
2108
+ "default": "now()",
2109
+ "generated": null,
2110
+ "identity": null,
2111
+ "name": "updated_at",
2112
+ "entityType": "columns",
2113
+ "schema": "public",
2114
+ "table": "platform_settings"
2115
+ },
2116
+ {
2117
+ "type": "uuid",
2118
+ "typeSchema": null,
2119
+ "notNull": false,
2120
+ "dimensions": 0,
2121
+ "default": null,
2122
+ "generated": null,
2123
+ "identity": null,
2124
+ "name": "updated_by",
2125
+ "entityType": "columns",
2126
+ "schema": "public",
2127
+ "table": "platform_settings"
2128
+ },
2129
+ {
2130
+ "type": "uuid",
2131
+ "typeSchema": null,
2132
+ "notNull": true,
2133
+ "dimensions": 0,
2134
+ "default": "gen_random_uuid()",
2135
+ "generated": null,
2136
+ "identity": null,
2137
+ "name": "id",
2138
+ "entityType": "columns",
2139
+ "schema": "public",
2140
+ "table": "player_activity"
2141
+ },
2142
+ {
2143
+ "type": "uuid",
2144
+ "typeSchema": null,
2145
+ "notNull": true,
2146
+ "dimensions": 0,
2147
+ "default": null,
2148
+ "generated": null,
2149
+ "identity": null,
2150
+ "name": "casino_id",
2151
+ "entityType": "columns",
2152
+ "schema": "public",
2153
+ "table": "player_activity"
2154
+ },
2155
+ {
2156
+ "type": "text",
2157
+ "typeSchema": null,
2158
+ "notNull": true,
2159
+ "dimensions": 0,
2160
+ "default": null,
2161
+ "generated": null,
2162
+ "identity": null,
2163
+ "name": "player_id",
2164
+ "entityType": "columns",
2165
+ "schema": "public",
2166
+ "table": "player_activity"
2167
+ },
2168
+ {
2169
+ "type": "date",
2170
+ "typeSchema": null,
2171
+ "notNull": true,
2172
+ "dimensions": 0,
2173
+ "default": null,
2174
+ "generated": null,
2175
+ "identity": null,
2176
+ "name": "date",
2177
+ "entityType": "columns",
2178
+ "schema": "public",
2179
+ "table": "player_activity"
2180
+ },
2181
+ {
2182
+ "type": "text",
2183
+ "typeSchema": null,
2184
+ "notNull": true,
2185
+ "dimensions": 0,
2186
+ "default": null,
2187
+ "generated": null,
2188
+ "identity": null,
2189
+ "name": "currency",
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": "deposits",
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": "wager",
2216
+ "entityType": "columns",
2217
+ "schema": "public",
2218
+ "table": "player_activity"
2219
+ },
2220
+ {
2221
+ "type": "numeric(14,2)",
2222
+ "typeSchema": null,
2223
+ "notNull": true,
2224
+ "dimensions": 0,
2225
+ "default": "'0'",
2226
+ "generated": null,
2227
+ "identity": null,
2228
+ "name": "ngr",
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": "created_at",
2242
+ "entityType": "columns",
2243
+ "schema": "public",
2244
+ "table": "player_activity"
2245
+ },
2246
+ {
2247
+ "type": "timestamp with time zone",
2248
+ "typeSchema": null,
2249
+ "notNull": true,
2250
+ "dimensions": 0,
2251
+ "default": "now()",
2252
+ "generated": null,
2253
+ "identity": null,
2254
+ "name": "updated_at",
2255
+ "entityType": "columns",
2256
+ "schema": "public",
2257
+ "table": "player_activity"
2258
+ },
2259
+ {
2260
+ "type": "uuid",
2261
+ "typeSchema": null,
2262
+ "notNull": true,
2263
+ "dimensions": 0,
2264
+ "default": "gen_random_uuid()",
2265
+ "generated": null,
2266
+ "identity": null,
2267
+ "name": "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": "affiliate_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": "commission_id",
2294
+ "entityType": "columns",
2295
+ "schema": "public",
2296
+ "table": "revshare_carryover"
2297
+ },
2298
+ {
2299
+ "type": "uuid",
2300
+ "typeSchema": null,
2301
+ "notNull": true,
2302
+ "dimensions": 0,
2303
+ "default": null,
2304
+ "generated": null,
2305
+ "identity": null,
2306
+ "name": "casino_id",
2307
+ "entityType": "columns",
2308
+ "schema": "public",
2309
+ "table": "revshare_carryover"
2310
+ },
2311
+ {
2312
+ "type": "text",
2313
+ "typeSchema": null,
2314
+ "notNull": true,
2315
+ "dimensions": 0,
2316
+ "default": null,
2317
+ "generated": null,
2318
+ "identity": null,
2319
+ "name": "currency",
2320
+ "entityType": "columns",
2321
+ "schema": "public",
2322
+ "table": "revshare_carryover"
2323
+ },
2324
+ {
2325
+ "type": "numeric(14,2)",
2326
+ "typeSchema": null,
2327
+ "notNull": true,
2328
+ "dimensions": 0,
2329
+ "default": "'0'",
2330
+ "generated": null,
2331
+ "identity": null,
2332
+ "name": "balance",
2333
+ "entityType": "columns",
2334
+ "schema": "public",
2335
+ "table": "revshare_carryover"
2336
+ },
2337
+ {
2338
+ "type": "date",
2339
+ "typeSchema": null,
2340
+ "notNull": false,
2341
+ "dimensions": 0,
2342
+ "default": null,
2343
+ "generated": null,
2344
+ "identity": null,
2345
+ "name": "last_period_start",
2346
+ "entityType": "columns",
2347
+ "schema": "public",
2348
+ "table": "revshare_carryover"
2349
+ },
2350
+ {
2351
+ "type": "timestamp with time zone",
2352
+ "typeSchema": null,
2353
+ "notNull": true,
2354
+ "dimensions": 0,
2355
+ "default": "now()",
2356
+ "generated": null,
2357
+ "identity": null,
2358
+ "name": "updated_at",
2359
+ "entityType": "columns",
2360
+ "schema": "public",
2361
+ "table": "revshare_carryover"
2362
+ },
2363
+ {
2364
+ "type": "uuid",
2365
+ "typeSchema": null,
2366
+ "notNull": true,
2367
+ "dimensions": 0,
2368
+ "default": "gen_random_uuid()",
2369
+ "generated": null,
2370
+ "identity": null,
2371
+ "name": "id",
2372
+ "entityType": "columns",
2373
+ "schema": "public",
2374
+ "table": "refresh_tokens"
2375
+ },
2376
+ {
2377
+ "type": "uuid",
2378
+ "typeSchema": null,
2379
+ "notNull": true,
2380
+ "dimensions": 0,
2381
+ "default": null,
2382
+ "generated": null,
2383
+ "identity": null,
2384
+ "name": "session_id",
2385
+ "entityType": "columns",
2386
+ "schema": "public",
2387
+ "table": "refresh_tokens"
2388
+ },
2389
+ {
2390
+ "type": "text",
2391
+ "typeSchema": null,
2392
+ "notNull": true,
2393
+ "dimensions": 0,
2394
+ "default": null,
2395
+ "generated": null,
2396
+ "identity": null,
2397
+ "name": "token_hash",
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": "now()",
2408
+ "generated": null,
2409
+ "identity": null,
2410
+ "name": "created_at",
2411
+ "entityType": "columns",
2412
+ "schema": "public",
2413
+ "table": "refresh_tokens"
2414
+ },
2415
+ {
2416
+ "type": "timestamp with time zone",
2417
+ "typeSchema": null,
2418
+ "notNull": true,
2419
+ "dimensions": 0,
2420
+ "default": null,
2421
+ "generated": null,
2422
+ "identity": null,
2423
+ "name": "expires_at",
2424
+ "entityType": "columns",
2425
+ "schema": "public",
2426
+ "table": "refresh_tokens"
2427
+ },
2428
+ {
2429
+ "type": "timestamp with time zone",
2430
+ "typeSchema": null,
2431
+ "notNull": false,
2432
+ "dimensions": 0,
2433
+ "default": null,
2434
+ "generated": null,
2435
+ "identity": null,
2436
+ "name": "revoked_at",
2437
+ "entityType": "columns",
2438
+ "schema": "public",
2439
+ "table": "refresh_tokens"
2440
+ },
2441
+ {
2442
+ "type": "uuid",
2443
+ "typeSchema": null,
2444
+ "notNull": true,
2445
+ "dimensions": 0,
2446
+ "default": "gen_random_uuid()",
2447
+ "generated": null,
2448
+ "identity": null,
2449
+ "name": "id",
2450
+ "entityType": "columns",
2451
+ "schema": "public",
2452
+ "table": "sessions"
2453
+ },
2454
+ {
2455
+ "type": "uuid",
2456
+ "typeSchema": null,
2457
+ "notNull": true,
2458
+ "dimensions": 0,
2459
+ "default": null,
2460
+ "generated": null,
2461
+ "identity": null,
2462
+ "name": "user_id",
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": "user_agent",
2476
+ "entityType": "columns",
2477
+ "schema": "public",
2478
+ "table": "sessions"
2479
+ },
2480
+ {
2481
+ "type": "text",
2482
+ "typeSchema": null,
2483
+ "notNull": false,
2484
+ "dimensions": 0,
2485
+ "default": null,
2486
+ "generated": null,
2487
+ "identity": null,
2488
+ "name": "ip_address",
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": "created_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": "now()",
2512
+ "generated": null,
2513
+ "identity": null,
2514
+ "name": "last_seen_at",
2515
+ "entityType": "columns",
2516
+ "schema": "public",
2517
+ "table": "sessions"
2518
+ },
2519
+ {
2520
+ "type": "timestamp with time zone",
2521
+ "typeSchema": null,
2522
+ "notNull": true,
2523
+ "dimensions": 0,
2524
+ "default": null,
2525
+ "generated": null,
2526
+ "identity": null,
2527
+ "name": "expires_at",
2528
+ "entityType": "columns",
2529
+ "schema": "public",
2530
+ "table": "sessions"
2531
+ },
2532
+ {
2533
+ "type": "uuid",
2534
+ "typeSchema": null,
2535
+ "notNull": true,
2536
+ "dimensions": 0,
2537
+ "default": null,
2538
+ "generated": null,
2539
+ "identity": null,
2540
+ "name": "user_id",
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": "locale",
2554
+ "entityType": "columns",
2555
+ "schema": "public",
2556
+ "table": "user_preferences"
2557
+ },
2558
+ {
2559
+ "type": "text",
2560
+ "typeSchema": null,
2561
+ "notNull": false,
2562
+ "dimensions": 0,
2563
+ "default": null,
2564
+ "generated": null,
2565
+ "identity": null,
2566
+ "name": "theme",
2567
+ "entityType": "columns",
2568
+ "schema": "public",
2569
+ "table": "user_preferences"
2570
+ },
2571
+ {
2572
+ "type": "boolean",
2573
+ "typeSchema": null,
2574
+ "notNull": true,
2575
+ "dimensions": 0,
2576
+ "default": "false",
2577
+ "generated": null,
2578
+ "identity": null,
2579
+ "name": "sidebar_collapsed",
2580
+ "entityType": "columns",
2581
+ "schema": "public",
2582
+ "table": "user_preferences"
2583
+ },
2584
+ {
2585
+ "type": "timestamp with time zone",
2586
+ "typeSchema": null,
2587
+ "notNull": true,
2588
+ "dimensions": 0,
2589
+ "default": "now()",
2590
+ "generated": null,
2591
+ "identity": null,
2592
+ "name": "updated_at",
2593
+ "entityType": "columns",
2594
+ "schema": "public",
2595
+ "table": "user_preferences"
2596
+ },
2597
+ {
2598
+ "type": "uuid",
2599
+ "typeSchema": null,
2600
+ "notNull": true,
2601
+ "dimensions": 0,
2602
+ "default": "gen_random_uuid()",
2603
+ "generated": null,
2604
+ "identity": null,
2605
+ "name": "id",
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": "email",
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": "first_name",
2632
+ "entityType": "columns",
2633
+ "schema": "public",
2634
+ "table": "users"
2635
+ },
2636
+ {
2637
+ "type": "text",
2638
+ "typeSchema": null,
2639
+ "notNull": true,
2640
+ "dimensions": 0,
2641
+ "default": null,
2642
+ "generated": null,
2643
+ "identity": null,
2644
+ "name": "last_name",
2645
+ "entityType": "columns",
2646
+ "schema": "public",
2647
+ "table": "users"
2648
+ },
2649
+ {
2650
+ "type": "text",
2651
+ "typeSchema": null,
2652
+ "notNull": false,
2653
+ "dimensions": 0,
2654
+ "default": null,
2655
+ "generated": null,
2656
+ "identity": null,
2657
+ "name": "password_hash",
2658
+ "entityType": "columns",
2659
+ "schema": "public",
2660
+ "table": "users"
2661
+ },
2662
+ {
2663
+ "type": "user_role",
2664
+ "typeSchema": "public",
2665
+ "notNull": true,
2666
+ "dimensions": 0,
2667
+ "default": "'affiliate'",
2668
+ "generated": null,
2669
+ "identity": null,
2670
+ "name": "role",
2671
+ "entityType": "columns",
2672
+ "schema": "public",
2673
+ "table": "users"
2674
+ },
2675
+ {
2676
+ "type": "user_status",
2677
+ "typeSchema": "public",
2678
+ "notNull": true,
2679
+ "dimensions": 0,
2680
+ "default": "'active'",
2681
+ "generated": null,
2682
+ "identity": null,
2683
+ "name": "status",
2684
+ "entityType": "columns",
2685
+ "schema": "public",
2686
+ "table": "users"
2687
+ },
2688
+ {
2689
+ "type": "signup_source",
2690
+ "typeSchema": "public",
2691
+ "notNull": true,
2692
+ "dimensions": 0,
2693
+ "default": "'admin_invite'",
2694
+ "generated": null,
2695
+ "identity": null,
2696
+ "name": "signup_source",
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": "now()",
2707
+ "generated": null,
2708
+ "identity": null,
2709
+ "name": "invite_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": "tos_accepted_at",
2723
+ "entityType": "columns",
2724
+ "schema": "public",
2725
+ "table": "users"
2726
+ },
2727
+ {
2728
+ "type": "timestamp with time zone",
2729
+ "typeSchema": null,
2730
+ "notNull": false,
2731
+ "dimensions": 0,
2732
+ "default": null,
2733
+ "generated": null,
2734
+ "identity": null,
2735
+ "name": "approved_at",
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": "approved_by",
2749
+ "entityType": "columns",
2750
+ "schema": "public",
2751
+ "table": "users"
2752
+ },
2753
+ {
2754
+ "type": "uuid",
2755
+ "typeSchema": null,
2756
+ "notNull": false,
2757
+ "dimensions": 0,
2758
+ "default": null,
2759
+ "generated": null,
2760
+ "identity": null,
2761
+ "name": "parent_affiliate_id",
2762
+ "entityType": "columns",
2763
+ "schema": "public",
2764
+ "table": "users"
2765
+ },
2766
+ {
2767
+ "type": "text",
2768
+ "typeSchema": null,
2769
+ "notNull": false,
2770
+ "dimensions": 0,
2771
+ "default": null,
2772
+ "generated": null,
2773
+ "identity": null,
2774
+ "name": "totp_secret",
2775
+ "entityType": "columns",
2776
+ "schema": "public",
2777
+ "table": "users"
2778
+ },
2779
+ {
2780
+ "type": "timestamp with time zone",
2781
+ "typeSchema": null,
2782
+ "notNull": false,
2783
+ "dimensions": 0,
2784
+ "default": null,
2785
+ "generated": null,
2786
+ "identity": null,
2787
+ "name": "totp_confirmed_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": "created_at",
2801
+ "entityType": "columns",
2802
+ "schema": "public",
2803
+ "table": "users"
2804
+ },
2805
+ {
2806
+ "type": "timestamp with time zone",
2807
+ "typeSchema": null,
2808
+ "notNull": true,
2809
+ "dimensions": 0,
2810
+ "default": "now()",
2811
+ "generated": null,
2812
+ "identity": null,
2813
+ "name": "updated_at",
2814
+ "entityType": "columns",
2815
+ "schema": "public",
2816
+ "table": "users"
2817
+ },
2818
+ {
2819
+ "type": "uuid",
2820
+ "typeSchema": null,
2821
+ "notNull": true,
2822
+ "dimensions": 0,
2823
+ "default": "gen_random_uuid()",
2824
+ "generated": null,
2825
+ "identity": null,
2826
+ "name": "id",
2827
+ "entityType": "columns",
2828
+ "schema": "public",
2829
+ "table": "verification_tokens"
2830
+ },
2831
+ {
2832
+ "type": "uuid",
2833
+ "typeSchema": null,
2834
+ "notNull": true,
2835
+ "dimensions": 0,
2836
+ "default": null,
2837
+ "generated": null,
2838
+ "identity": null,
2839
+ "name": "user_id",
2840
+ "entityType": "columns",
2841
+ "schema": "public",
2842
+ "table": "verification_tokens"
2843
+ },
2844
+ {
2845
+ "type": "verification_token_purpose",
2846
+ "typeSchema": "public",
2847
+ "notNull": true,
2848
+ "dimensions": 0,
2849
+ "default": null,
2850
+ "generated": null,
2851
+ "identity": null,
2852
+ "name": "purpose",
2853
+ "entityType": "columns",
2854
+ "schema": "public",
2855
+ "table": "verification_tokens"
2856
+ },
2857
+ {
2858
+ "type": "text",
2859
+ "typeSchema": null,
2860
+ "notNull": true,
2861
+ "dimensions": 0,
2862
+ "default": null,
2863
+ "generated": null,
2864
+ "identity": null,
2865
+ "name": "token_hash",
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": "now()",
2876
+ "generated": null,
2877
+ "identity": null,
2878
+ "name": "created_at",
2879
+ "entityType": "columns",
2880
+ "schema": "public",
2881
+ "table": "verification_tokens"
2882
+ },
2883
+ {
2884
+ "type": "timestamp with time zone",
2885
+ "typeSchema": null,
2886
+ "notNull": true,
2887
+ "dimensions": 0,
2888
+ "default": null,
2889
+ "generated": null,
2890
+ "identity": null,
2891
+ "name": "expires_at",
2892
+ "entityType": "columns",
2893
+ "schema": "public",
2894
+ "table": "verification_tokens"
2895
+ },
2896
+ {
2897
+ "nameExplicit": true,
2898
+ "columns": [
2899
+ {
2900
+ "value": "available_at",
2901
+ "isExpression": false,
2902
+ "asc": true,
2903
+ "nullsFirst": false,
2904
+ "opclass": null
2905
+ },
2906
+ {
2907
+ "value": "created_at",
2908
+ "isExpression": false,
2909
+ "asc": true,
2910
+ "nullsFirst": false,
2911
+ "opclass": null
2912
+ }
2913
+ ],
2914
+ "isUnique": false,
2915
+ "where": null,
2916
+ "with": "",
2917
+ "method": "btree",
2918
+ "concurrently": false,
2919
+ "name": "analytics_outbox_available_idx",
2920
+ "entityType": "indexes",
2921
+ "schema": "public",
2922
+ "table": "analytics_outbox"
2923
+ },
2924
+ {
2925
+ "nameExplicit": true,
2926
+ "columns": [
2927
+ {
2928
+ "value": "locked_at",
2929
+ "isExpression": false,
2930
+ "asc": true,
2931
+ "nullsFirst": false,
2932
+ "opclass": null
2933
+ }
2934
+ ],
2935
+ "isUnique": false,
2936
+ "where": null,
2937
+ "with": "",
2938
+ "method": "btree",
2939
+ "concurrently": false,
2940
+ "name": "analytics_outbox_lock_idx",
2941
+ "entityType": "indexes",
2942
+ "schema": "public",
2943
+ "table": "analytics_outbox"
2944
+ },
2945
+ {
2946
+ "nameExplicit": true,
2947
+ "columns": [
2948
+ {
2949
+ "value": "event_type",
2950
+ "isExpression": false,
2951
+ "asc": true,
2952
+ "nullsFirst": false,
2953
+ "opclass": null
2954
+ }
2955
+ ],
2956
+ "isUnique": false,
2957
+ "where": null,
2958
+ "with": "",
2959
+ "method": "btree",
2960
+ "concurrently": false,
2961
+ "name": "analytics_outbox_event_type_idx",
2962
+ "entityType": "indexes",
2963
+ "schema": "public",
2964
+ "table": "analytics_outbox"
2965
+ },
2966
+ {
2967
+ "nameExplicit": true,
2968
+ "columns": [
2969
+ {
2970
+ "value": "created_at",
2971
+ "isExpression": false,
2972
+ "asc": false,
2973
+ "nullsFirst": false,
2974
+ "opclass": null
2975
+ }
2976
+ ],
2977
+ "isUnique": false,
2978
+ "where": null,
2979
+ "with": "",
2980
+ "method": "btree",
2981
+ "concurrently": false,
2982
+ "name": "audit_logs_created_at_idx",
2983
+ "entityType": "indexes",
2984
+ "schema": "public",
2985
+ "table": "audit_logs"
2986
+ },
2987
+ {
2988
+ "nameExplicit": true,
2989
+ "columns": [
2990
+ {
2991
+ "value": "actor_id",
2992
+ "isExpression": false,
2993
+ "asc": true,
2994
+ "nullsFirst": false,
2995
+ "opclass": null
2996
+ },
2997
+ {
2998
+ "value": "created_at",
2999
+ "isExpression": false,
3000
+ "asc": false,
3001
+ "nullsFirst": false,
3002
+ "opclass": null
3003
+ }
3004
+ ],
3005
+ "isUnique": false,
3006
+ "where": null,
3007
+ "with": "",
3008
+ "method": "btree",
3009
+ "concurrently": false,
3010
+ "name": "audit_logs_actor_id_created_at_idx",
3011
+ "entityType": "indexes",
3012
+ "schema": "public",
3013
+ "table": "audit_logs"
3014
+ },
3015
+ {
3016
+ "nameExplicit": true,
3017
+ "columns": [
3018
+ {
3019
+ "value": "subject_id",
3020
+ "isExpression": false,
3021
+ "asc": true,
3022
+ "nullsFirst": false,
3023
+ "opclass": null
3024
+ },
3025
+ {
3026
+ "value": "created_at",
3027
+ "isExpression": false,
3028
+ "asc": false,
3029
+ "nullsFirst": false,
3030
+ "opclass": null
3031
+ }
3032
+ ],
3033
+ "isUnique": false,
3034
+ "where": null,
3035
+ "with": "",
3036
+ "method": "btree",
3037
+ "concurrently": false,
3038
+ "name": "audit_logs_subject_id_created_at_idx",
3039
+ "entityType": "indexes",
3040
+ "schema": "public",
3041
+ "table": "audit_logs"
3042
+ },
3043
+ {
3044
+ "nameExplicit": true,
3045
+ "columns": [
3046
+ {
3047
+ "value": "actor_role",
3048
+ "isExpression": false,
3049
+ "asc": true,
3050
+ "nullsFirst": false,
3051
+ "opclass": null
3052
+ },
3053
+ {
3054
+ "value": "created_at",
3055
+ "isExpression": false,
3056
+ "asc": false,
3057
+ "nullsFirst": false,
3058
+ "opclass": null
3059
+ }
3060
+ ],
3061
+ "isUnique": false,
3062
+ "where": null,
3063
+ "with": "",
3064
+ "method": "btree",
3065
+ "concurrently": false,
3066
+ "name": "audit_logs_actor_role_created_at_idx",
3067
+ "entityType": "indexes",
3068
+ "schema": "public",
3069
+ "table": "audit_logs"
3070
+ },
3071
+ {
3072
+ "nameExplicit": true,
3073
+ "columns": [
3074
+ {
3075
+ "value": "target_type",
3076
+ "isExpression": false,
3077
+ "asc": true,
3078
+ "nullsFirst": false,
3079
+ "opclass": null
3080
+ },
3081
+ {
3082
+ "value": "target_id",
3083
+ "isExpression": false,
3084
+ "asc": true,
3085
+ "nullsFirst": false,
3086
+ "opclass": null
3087
+ }
3088
+ ],
3089
+ "isUnique": false,
3090
+ "where": null,
3091
+ "with": "",
3092
+ "method": "btree",
3093
+ "concurrently": false,
3094
+ "name": "audit_logs_target_idx",
3095
+ "entityType": "indexes",
3096
+ "schema": "public",
3097
+ "table": "audit_logs"
3098
+ },
3099
+ {
3100
+ "nameExplicit": true,
3101
+ "columns": [
3102
+ {
3103
+ "value": "action",
3104
+ "isExpression": false,
3105
+ "asc": true,
3106
+ "nullsFirst": false,
3107
+ "opclass": null
3108
+ }
3109
+ ],
3110
+ "isUnique": false,
3111
+ "where": null,
3112
+ "with": "",
3113
+ "method": "btree",
3114
+ "concurrently": false,
3115
+ "name": "audit_logs_action_idx",
3116
+ "entityType": "indexes",
3117
+ "schema": "public",
3118
+ "table": "audit_logs"
3119
+ },
3120
+ {
3121
+ "nameExplicit": true,
3122
+ "columns": [
3123
+ {
3124
+ "value": "affiliate_id",
3125
+ "isExpression": false,
3126
+ "asc": true,
3127
+ "nullsFirst": false,
3128
+ "opclass": null
3129
+ }
3130
+ ],
3131
+ "isUnique": false,
3132
+ "where": null,
3133
+ "with": "",
3134
+ "method": "btree",
3135
+ "concurrently": false,
3136
+ "name": "campaigns_affiliate_id_idx",
3137
+ "entityType": "indexes",
3138
+ "schema": "public",
3139
+ "table": "campaigns"
3140
+ },
3141
+ {
3142
+ "nameExplicit": true,
3143
+ "columns": [
3144
+ {
3145
+ "value": "casino_id",
3146
+ "isExpression": false,
3147
+ "asc": true,
3148
+ "nullsFirst": false,
3149
+ "opclass": null
3150
+ }
3151
+ ],
3152
+ "isUnique": false,
3153
+ "where": null,
3154
+ "with": "",
3155
+ "method": "btree",
3156
+ "concurrently": false,
3157
+ "name": "campaigns_casino_id_idx",
3158
+ "entityType": "indexes",
3159
+ "schema": "public",
3160
+ "table": "campaigns"
3161
+ },
3162
+ {
3163
+ "nameExplicit": true,
3164
+ "columns": [
3165
+ {
3166
+ "value": "commission_id",
3167
+ "isExpression": false,
3168
+ "asc": true,
3169
+ "nullsFirst": false,
3170
+ "opclass": null
3171
+ }
3172
+ ],
3173
+ "isUnique": false,
3174
+ "where": null,
3175
+ "with": "",
3176
+ "method": "btree",
3177
+ "concurrently": false,
3178
+ "name": "campaigns_commission_id_idx",
3179
+ "entityType": "indexes",
3180
+ "schema": "public",
3181
+ "table": "campaigns"
3182
+ },
3183
+ {
3184
+ "nameExplicit": true,
3185
+ "columns": [
3186
+ {
3187
+ "value": "status",
3188
+ "isExpression": false,
3189
+ "asc": true,
3190
+ "nullsFirst": false,
3191
+ "opclass": null
3192
+ }
3193
+ ],
3194
+ "isUnique": false,
3195
+ "where": null,
3196
+ "with": "",
3197
+ "method": "btree",
3198
+ "concurrently": false,
3199
+ "name": "campaigns_status_idx",
3200
+ "entityType": "indexes",
3201
+ "schema": "public",
3202
+ "table": "campaigns"
3203
+ },
3204
+ {
3205
+ "nameExplicit": true,
3206
+ "columns": [
3207
+ {
3208
+ "value": "commission_id",
3209
+ "isExpression": false,
3210
+ "asc": true,
3211
+ "nullsFirst": false,
3212
+ "opclass": null
3213
+ }
3214
+ ],
3215
+ "isUnique": false,
3216
+ "where": null,
3217
+ "with": "",
3218
+ "method": "btree",
3219
+ "concurrently": false,
3220
+ "name": "commission_rule_groups_commission_id_idx",
3221
+ "entityType": "indexes",
3222
+ "schema": "public",
3223
+ "table": "commission_rule_groups"
3224
+ },
3225
+ {
3226
+ "nameExplicit": true,
3227
+ "columns": [
3228
+ {
3229
+ "value": "rule_group_id",
3230
+ "isExpression": false,
3231
+ "asc": true,
3232
+ "nullsFirst": false,
3233
+ "opclass": null
3234
+ }
3235
+ ],
3236
+ "isUnique": false,
3237
+ "where": null,
3238
+ "with": "",
3239
+ "method": "btree",
3240
+ "concurrently": false,
3241
+ "name": "commission_rules_rule_group_id_idx",
3242
+ "entityType": "indexes",
3243
+ "schema": "public",
3244
+ "table": "commission_rules"
3245
+ },
3246
+ {
3247
+ "nameExplicit": true,
3248
+ "columns": [
3249
+ {
3250
+ "value": "casino_id",
3251
+ "isExpression": false,
3252
+ "asc": true,
3253
+ "nullsFirst": false,
3254
+ "opclass": null
3255
+ }
3256
+ ],
3257
+ "isUnique": false,
3258
+ "where": null,
3259
+ "with": "",
3260
+ "method": "btree",
3261
+ "concurrently": false,
3262
+ "name": "commission_casinos_casino_id_idx",
3263
+ "entityType": "indexes",
3264
+ "schema": "public",
3265
+ "table": "commission_casinos"
3266
+ },
3267
+ {
3268
+ "nameExplicit": true,
3269
+ "columns": [
3270
+ {
3271
+ "value": "casino_id",
3272
+ "isExpression": false,
3273
+ "asc": true,
3274
+ "nullsFirst": false,
3275
+ "opclass": null
3276
+ },
3277
+ {
3278
+ "value": "casino_tx_id",
3279
+ "isExpression": false,
3280
+ "asc": true,
3281
+ "nullsFirst": false,
3282
+ "opclass": null
3283
+ }
3284
+ ],
3285
+ "isUnique": true,
3286
+ "where": null,
3287
+ "with": "",
3288
+ "method": "btree",
3289
+ "concurrently": false,
3290
+ "name": "conversions_casino_tx_unique",
3291
+ "entityType": "indexes",
3292
+ "schema": "public",
3293
+ "table": "conversions"
3294
+ },
3295
+ {
3296
+ "nameExplicit": true,
3297
+ "columns": [
3298
+ {
3299
+ "value": "campaign_id",
3300
+ "isExpression": false,
3301
+ "asc": true,
3302
+ "nullsFirst": false,
3303
+ "opclass": null
3304
+ },
3305
+ {
3306
+ "value": "received_at",
3307
+ "isExpression": false,
3308
+ "asc": true,
3309
+ "nullsFirst": false,
3310
+ "opclass": null
3311
+ }
3312
+ ],
3313
+ "isUnique": false,
3314
+ "where": null,
3315
+ "with": "",
3316
+ "method": "btree",
3317
+ "concurrently": false,
3318
+ "name": "conversions_campaign_idx",
3319
+ "entityType": "indexes",
3320
+ "schema": "public",
3321
+ "table": "conversions"
3322
+ },
3323
+ {
3324
+ "nameExplicit": true,
3325
+ "columns": [
3326
+ {
3327
+ "value": "affiliate_id",
3328
+ "isExpression": false,
3329
+ "asc": true,
3330
+ "nullsFirst": false,
3331
+ "opclass": null
3332
+ },
3333
+ {
3334
+ "value": "received_at",
3335
+ "isExpression": false,
3336
+ "asc": true,
3337
+ "nullsFirst": false,
3338
+ "opclass": null
3339
+ }
3340
+ ],
3341
+ "isUnique": false,
3342
+ "where": null,
3343
+ "with": "",
3344
+ "method": "btree",
3345
+ "concurrently": false,
3346
+ "name": "conversions_affiliate_idx",
3347
+ "entityType": "indexes",
3348
+ "schema": "public",
3349
+ "table": "conversions"
3350
+ },
3351
+ {
3352
+ "nameExplicit": true,
3353
+ "columns": [
3354
+ {
3355
+ "value": "status",
3356
+ "isExpression": false,
3357
+ "asc": true,
3358
+ "nullsFirst": false,
3359
+ "opclass": null
3360
+ },
3361
+ {
3362
+ "value": "locked_until",
3363
+ "isExpression": false,
3364
+ "asc": true,
3365
+ "nullsFirst": false,
3366
+ "opclass": null
3367
+ }
3368
+ ],
3369
+ "isUnique": false,
3370
+ "where": null,
3371
+ "with": "",
3372
+ "method": "btree",
3373
+ "concurrently": false,
3374
+ "name": "conversions_status_idx",
3375
+ "entityType": "indexes",
3376
+ "schema": "public",
3377
+ "table": "conversions"
3378
+ },
3379
+ {
3380
+ "nameExplicit": true,
3381
+ "columns": [
3382
+ {
3383
+ "value": "casino_id",
3384
+ "isExpression": false,
3385
+ "asc": true,
3386
+ "nullsFirst": false,
3387
+ "opclass": null
3388
+ },
3389
+ {
3390
+ "value": "player_id",
3391
+ "isExpression": false,
3392
+ "asc": true,
3393
+ "nullsFirst": false,
3394
+ "opclass": null
3395
+ }
3396
+ ],
3397
+ "isUnique": false,
3398
+ "where": null,
3399
+ "with": "",
3400
+ "method": "btree",
3401
+ "concurrently": false,
3402
+ "name": "conversions_player_idx",
3403
+ "entityType": "indexes",
3404
+ "schema": "public",
3405
+ "table": "conversions"
3406
+ },
3407
+ {
3408
+ "nameExplicit": true,
3409
+ "columns": [
3410
+ {
3411
+ "value": "affiliate_id",
3412
+ "isExpression": false,
3413
+ "asc": true,
3414
+ "nullsFirst": false,
3415
+ "opclass": null
3416
+ }
3417
+ ],
3418
+ "isUnique": false,
3419
+ "where": null,
3420
+ "with": "",
3421
+ "method": "btree",
3422
+ "concurrently": false,
3423
+ "name": "deals_affiliate_id_idx",
3424
+ "entityType": "indexes",
3425
+ "schema": "public",
3426
+ "table": "deals"
3427
+ },
3428
+ {
3429
+ "nameExplicit": true,
3430
+ "columns": [
3431
+ {
3432
+ "value": "commission_id",
3433
+ "isExpression": false,
3434
+ "asc": true,
3435
+ "nullsFirst": false,
3436
+ "opclass": null
3437
+ }
3438
+ ],
3439
+ "isUnique": false,
3440
+ "where": null,
3441
+ "with": "",
3442
+ "method": "btree",
3443
+ "concurrently": false,
3444
+ "name": "deals_commission_id_idx",
3445
+ "entityType": "indexes",
3446
+ "schema": "public",
3447
+ "table": "deals"
3448
+ },
3449
+ {
3450
+ "nameExplicit": true,
3451
+ "columns": [
3452
+ {
3453
+ "value": "status",
3454
+ "isExpression": false,
3455
+ "asc": true,
3456
+ "nullsFirst": false,
3457
+ "opclass": null
3458
+ }
3459
+ ],
3460
+ "isUnique": false,
3461
+ "where": null,
3462
+ "with": "",
3463
+ "method": "btree",
3464
+ "concurrently": false,
3465
+ "name": "deals_status_idx",
3466
+ "entityType": "indexes",
3467
+ "schema": "public",
3468
+ "table": "deals"
3469
+ },
3470
+ {
3471
+ "nameExplicit": true,
3472
+ "columns": [
3473
+ {
3474
+ "value": "parent_deal_id",
3475
+ "isExpression": false,
3476
+ "asc": true,
3477
+ "nullsFirst": false,
3478
+ "opclass": null
3479
+ }
3480
+ ],
3481
+ "isUnique": false,
3482
+ "where": null,
3483
+ "with": "",
3484
+ "method": "btree",
3485
+ "concurrently": false,
3486
+ "name": "deals_parent_deal_id_idx",
3487
+ "entityType": "indexes",
3488
+ "schema": "public",
3489
+ "table": "deals"
3490
+ },
3491
+ {
3492
+ "nameExplicit": true,
3493
+ "columns": [
3494
+ {
3495
+ "value": "parent_deal_id",
3496
+ "isExpression": false,
3497
+ "asc": true,
3498
+ "nullsFirst": false,
3499
+ "opclass": null
3500
+ },
3501
+ {
3502
+ "value": "affiliate_id",
3503
+ "isExpression": false,
3504
+ "asc": true,
3505
+ "nullsFirst": false,
3506
+ "opclass": null
3507
+ }
3508
+ ],
3509
+ "isUnique": true,
3510
+ "where": null,
3511
+ "with": "",
3512
+ "method": "btree",
3513
+ "concurrently": false,
3514
+ "name": "deals_parent_deal_affiliate_uniq",
3515
+ "entityType": "indexes",
3516
+ "schema": "public",
3517
+ "table": "deals"
3518
+ },
3519
+ {
3520
+ "nameExplicit": true,
3521
+ "columns": [
3522
+ {
3523
+ "value": "source_hash",
3524
+ "isExpression": false,
3525
+ "asc": true,
3526
+ "nullsFirst": false,
3527
+ "opclass": null
3528
+ }
3529
+ ],
3530
+ "isUnique": true,
3531
+ "where": null,
3532
+ "with": "",
3533
+ "method": "btree",
3534
+ "concurrently": false,
3535
+ "name": "earnings_ledger_source_hash_uniq",
3536
+ "entityType": "indexes",
3537
+ "schema": "public",
3538
+ "table": "earnings_ledger"
3539
+ },
3540
+ {
3541
+ "nameExplicit": true,
3542
+ "columns": [
3543
+ {
3544
+ "value": "user_id",
3545
+ "isExpression": false,
3546
+ "asc": true,
3547
+ "nullsFirst": false,
3548
+ "opclass": null
3549
+ },
3550
+ {
3551
+ "value": "status",
3552
+ "isExpression": false,
3553
+ "asc": true,
3554
+ "nullsFirst": false,
3555
+ "opclass": null
3556
+ }
3557
+ ],
3558
+ "isUnique": false,
3559
+ "where": null,
3560
+ "with": "",
3561
+ "method": "btree",
3562
+ "concurrently": false,
3563
+ "name": "earnings_ledger_user_status_idx",
3564
+ "entityType": "indexes",
3565
+ "schema": "public",
3566
+ "table": "earnings_ledger"
3567
+ },
3568
+ {
3569
+ "nameExplicit": true,
3570
+ "columns": [
3571
+ {
3572
+ "value": "conversion_id",
3573
+ "isExpression": false,
3574
+ "asc": true,
3575
+ "nullsFirst": false,
3576
+ "opclass": null
3577
+ }
3578
+ ],
3579
+ "isUnique": false,
3580
+ "where": null,
3581
+ "with": "",
3582
+ "method": "btree",
3583
+ "concurrently": false,
3584
+ "name": "earnings_ledger_conversion_idx",
3585
+ "entityType": "indexes",
3586
+ "schema": "public",
3587
+ "table": "earnings_ledger"
3588
+ },
3589
+ {
3590
+ "nameExplicit": true,
3591
+ "columns": [
3592
+ {
3593
+ "value": "payout_request_id",
3594
+ "isExpression": false,
3595
+ "asc": true,
3596
+ "nullsFirst": false,
3597
+ "opclass": null
3598
+ }
3599
+ ],
3600
+ "isUnique": false,
3601
+ "where": null,
3602
+ "with": "",
3603
+ "method": "btree",
3604
+ "concurrently": false,
3605
+ "name": "earnings_ledger_payout_request_idx",
3606
+ "entityType": "indexes",
3607
+ "schema": "public",
3608
+ "table": "earnings_ledger"
3609
+ },
3610
+ {
3611
+ "nameExplicit": true,
3612
+ "columns": [
3613
+ {
3614
+ "value": "reconcile_key",
3615
+ "isExpression": false,
3616
+ "asc": true,
3617
+ "nullsFirst": false,
3618
+ "opclass": null
3619
+ }
3620
+ ],
3621
+ "isUnique": false,
3622
+ "where": null,
3623
+ "with": "",
3624
+ "method": "btree",
3625
+ "concurrently": false,
3626
+ "name": "earnings_ledger_reconcile_key_idx",
3627
+ "entityType": "indexes",
3628
+ "schema": "public",
3629
+ "table": "earnings_ledger"
3630
+ },
3631
+ {
3632
+ "nameExplicit": true,
3633
+ "columns": [
3634
+ {
3635
+ "value": "source_affiliate_id",
3636
+ "isExpression": false,
3637
+ "asc": true,
3638
+ "nullsFirst": false,
3639
+ "opclass": null
3640
+ }
3641
+ ],
3642
+ "isUnique": false,
3643
+ "where": null,
3644
+ "with": "",
3645
+ "method": "btree",
3646
+ "concurrently": false,
3647
+ "name": "earnings_ledger_source_affiliate_idx",
3648
+ "entityType": "indexes",
3649
+ "schema": "public",
3650
+ "table": "earnings_ledger"
3651
+ },
3652
+ {
3653
+ "nameExplicit": true,
3654
+ "columns": [
3655
+ {
3656
+ "value": "group_id",
3657
+ "isExpression": false,
3658
+ "asc": true,
3659
+ "nullsFirst": false,
3660
+ "opclass": null
3661
+ }
3662
+ ],
3663
+ "isUnique": false,
3664
+ "where": null,
3665
+ "with": "",
3666
+ "method": "btree",
3667
+ "concurrently": false,
3668
+ "name": "user_groups_group_id_idx",
3669
+ "entityType": "indexes",
3670
+ "schema": "public",
3671
+ "table": "user_groups"
3672
+ },
3673
+ {
3674
+ "nameExplicit": true,
3675
+ "columns": [
3676
+ {
3677
+ "value": "user_id",
3678
+ "isExpression": false,
3679
+ "asc": true,
3680
+ "nullsFirst": false,
3681
+ "opclass": null
3682
+ },
3683
+ {
3684
+ "value": "status",
3685
+ "isExpression": false,
3686
+ "asc": true,
3687
+ "nullsFirst": false,
3688
+ "opclass": null
3689
+ }
3690
+ ],
3691
+ "isUnique": false,
3692
+ "where": null,
3693
+ "with": "",
3694
+ "method": "btree",
3695
+ "concurrently": false,
3696
+ "name": "payout_requests_user_idx",
3697
+ "entityType": "indexes",
3698
+ "schema": "public",
3699
+ "table": "payout_requests"
3700
+ },
3701
+ {
3702
+ "nameExplicit": true,
3703
+ "columns": [
3704
+ {
3705
+ "value": "status",
3706
+ "isExpression": false,
3707
+ "asc": true,
3708
+ "nullsFirst": false,
3709
+ "opclass": null
3710
+ },
3711
+ {
3712
+ "value": "requested_at",
3713
+ "isExpression": false,
3714
+ "asc": true,
3715
+ "nullsFirst": false,
3716
+ "opclass": null
3717
+ }
3718
+ ],
3719
+ "isUnique": false,
3720
+ "where": null,
3721
+ "with": "",
3722
+ "method": "btree",
3723
+ "concurrently": false,
3724
+ "name": "payout_requests_status_idx",
3725
+ "entityType": "indexes",
3726
+ "schema": "public",
3727
+ "table": "payout_requests"
3728
+ },
3729
+ {
3730
+ "nameExplicit": true,
3731
+ "columns": [
3732
+ {
3733
+ "value": "casino_id",
3734
+ "isExpression": false,
3735
+ "asc": true,
3736
+ "nullsFirst": false,
3737
+ "opclass": null
3738
+ },
3739
+ {
3740
+ "value": "player_id",
3741
+ "isExpression": false,
3742
+ "asc": true,
3743
+ "nullsFirst": false,
3744
+ "opclass": null
3745
+ },
3746
+ {
3747
+ "value": "date",
3748
+ "isExpression": false,
3749
+ "asc": true,
3750
+ "nullsFirst": false,
3751
+ "opclass": null
3752
+ }
3753
+ ],
3754
+ "isUnique": true,
3755
+ "where": null,
3756
+ "with": "",
3757
+ "method": "btree",
3758
+ "concurrently": false,
3759
+ "name": "player_activity_unique",
3760
+ "entityType": "indexes",
3761
+ "schema": "public",
3762
+ "table": "player_activity"
3763
+ },
3764
+ {
3765
+ "nameExplicit": true,
3766
+ "columns": [
3767
+ {
3768
+ "value": "casino_id",
3769
+ "isExpression": false,
3770
+ "asc": true,
3771
+ "nullsFirst": false,
3772
+ "opclass": null
3773
+ },
3774
+ {
3775
+ "value": "date",
3776
+ "isExpression": false,
3777
+ "asc": true,
3778
+ "nullsFirst": false,
3779
+ "opclass": null
3780
+ }
3781
+ ],
3782
+ "isUnique": false,
3783
+ "where": null,
3784
+ "with": "",
3785
+ "method": "btree",
3786
+ "concurrently": false,
3787
+ "name": "player_activity_casino_date_idx",
3788
+ "entityType": "indexes",
3789
+ "schema": "public",
3790
+ "table": "player_activity"
3791
+ },
3792
+ {
3793
+ "nameExplicit": true,
3794
+ "columns": [
3795
+ {
3796
+ "value": "affiliate_id",
3797
+ "isExpression": false,
3798
+ "asc": true,
3799
+ "nullsFirst": false,
3800
+ "opclass": null
3801
+ },
3802
+ {
3803
+ "value": "commission_id",
3804
+ "isExpression": false,
3805
+ "asc": true,
3806
+ "nullsFirst": false,
3807
+ "opclass": null
3808
+ },
3809
+ {
3810
+ "value": "casino_id",
3811
+ "isExpression": false,
3812
+ "asc": true,
3813
+ "nullsFirst": false,
3814
+ "opclass": null
3815
+ },
3816
+ {
3817
+ "value": "currency",
3818
+ "isExpression": false,
3819
+ "asc": true,
3820
+ "nullsFirst": false,
3821
+ "opclass": null
3822
+ }
3823
+ ],
3824
+ "isUnique": true,
3825
+ "where": null,
3826
+ "with": "",
3827
+ "method": "btree",
3828
+ "concurrently": false,
3829
+ "name": "revshare_carryover_unique",
3830
+ "entityType": "indexes",
3831
+ "schema": "public",
3832
+ "table": "revshare_carryover"
3833
+ },
3834
+ {
3835
+ "nameExplicit": true,
3836
+ "columns": [
3837
+ {
3838
+ "value": "session_id",
3839
+ "isExpression": false,
3840
+ "asc": true,
3841
+ "nullsFirst": false,
3842
+ "opclass": null
3843
+ }
3844
+ ],
3845
+ "isUnique": false,
3846
+ "where": null,
3847
+ "with": "",
3848
+ "method": "btree",
3849
+ "concurrently": false,
3850
+ "name": "refresh_tokens_session_id_idx",
3851
+ "entityType": "indexes",
3852
+ "schema": "public",
3853
+ "table": "refresh_tokens"
3854
+ },
3855
+ {
3856
+ "nameExplicit": true,
3857
+ "columns": [
3858
+ {
3859
+ "value": "expires_at",
3860
+ "isExpression": false,
3861
+ "asc": true,
3862
+ "nullsFirst": false,
3863
+ "opclass": null
3864
+ }
3865
+ ],
3866
+ "isUnique": false,
3867
+ "where": null,
3868
+ "with": "",
3869
+ "method": "btree",
3870
+ "concurrently": false,
3871
+ "name": "refresh_tokens_expires_at_idx",
3872
+ "entityType": "indexes",
3873
+ "schema": "public",
3874
+ "table": "refresh_tokens"
3875
+ },
3876
+ {
3877
+ "nameExplicit": true,
3878
+ "columns": [
3879
+ {
3880
+ "value": "user_id",
3881
+ "isExpression": false,
3882
+ "asc": true,
3883
+ "nullsFirst": false,
3884
+ "opclass": null
3885
+ }
3886
+ ],
3887
+ "isUnique": false,
3888
+ "where": null,
3889
+ "with": "",
3890
+ "method": "btree",
3891
+ "concurrently": false,
3892
+ "name": "sessions_user_id_idx",
3893
+ "entityType": "indexes",
3894
+ "schema": "public",
3895
+ "table": "sessions"
3896
+ },
3897
+ {
3898
+ "nameExplicit": true,
3899
+ "columns": [
3900
+ {
3901
+ "value": "expires_at",
3902
+ "isExpression": false,
3903
+ "asc": true,
3904
+ "nullsFirst": false,
3905
+ "opclass": null
3906
+ }
3907
+ ],
3908
+ "isUnique": false,
3909
+ "where": null,
3910
+ "with": "",
3911
+ "method": "btree",
3912
+ "concurrently": false,
3913
+ "name": "sessions_expires_at_idx",
3914
+ "entityType": "indexes",
3915
+ "schema": "public",
3916
+ "table": "sessions"
3917
+ },
3918
+ {
3919
+ "nameExplicit": true,
3920
+ "columns": [
3921
+ {
3922
+ "value": "role",
3923
+ "isExpression": false,
3924
+ "asc": true,
3925
+ "nullsFirst": false,
3926
+ "opclass": null
3927
+ },
3928
+ {
3929
+ "value": "created_at",
3930
+ "isExpression": false,
3931
+ "asc": false,
3932
+ "nullsFirst": false,
3933
+ "opclass": null
3934
+ }
3935
+ ],
3936
+ "isUnique": false,
3937
+ "where": null,
3938
+ "with": "",
3939
+ "method": "btree",
3940
+ "concurrently": false,
3941
+ "name": "users_role_created_at_idx",
3942
+ "entityType": "indexes",
3943
+ "schema": "public",
3944
+ "table": "users"
3945
+ },
3946
+ {
3947
+ "nameExplicit": true,
3948
+ "columns": [
3949
+ {
3950
+ "value": "parent_affiliate_id",
3951
+ "isExpression": false,
3952
+ "asc": true,
3953
+ "nullsFirst": false,
3954
+ "opclass": null
3955
+ }
3956
+ ],
3957
+ "isUnique": false,
3958
+ "where": null,
3959
+ "with": "",
3960
+ "method": "btree",
3961
+ "concurrently": false,
3962
+ "name": "users_parent_affiliate_id_idx",
3963
+ "entityType": "indexes",
3964
+ "schema": "public",
3965
+ "table": "users"
3966
+ },
3967
+ {
3968
+ "nameExplicit": true,
3969
+ "columns": [
3970
+ {
3971
+ "value": "user_id",
3972
+ "isExpression": false,
3973
+ "asc": true,
3974
+ "nullsFirst": false,
3975
+ "opclass": null
3976
+ },
3977
+ {
3978
+ "value": "purpose",
3979
+ "isExpression": false,
3980
+ "asc": true,
3981
+ "nullsFirst": false,
3982
+ "opclass": null
3983
+ }
3984
+ ],
3985
+ "isUnique": true,
3986
+ "where": null,
3987
+ "with": "",
3988
+ "method": "btree",
3989
+ "concurrently": false,
3990
+ "name": "verification_tokens_user_purpose_idx",
3991
+ "entityType": "indexes",
3992
+ "schema": "public",
3993
+ "table": "verification_tokens"
3994
+ },
3995
+ {
3996
+ "nameExplicit": false,
3997
+ "columns": [
3998
+ "actor_id"
3999
+ ],
4000
+ "schemaTo": "public",
4001
+ "tableTo": "users",
4002
+ "columnsTo": [
4003
+ "id"
4004
+ ],
4005
+ "onUpdate": "NO ACTION",
4006
+ "onDelete": "SET NULL",
4007
+ "name": "audit_logs_actor_id_users_id_fkey",
4008
+ "entityType": "fks",
4009
+ "schema": "public",
4010
+ "table": "audit_logs"
4011
+ },
4012
+ {
4013
+ "nameExplicit": false,
4014
+ "columns": [
4015
+ "subject_id"
4016
+ ],
4017
+ "schemaTo": "public",
4018
+ "tableTo": "users",
4019
+ "columnsTo": [
4020
+ "id"
4021
+ ],
4022
+ "onUpdate": "NO ACTION",
4023
+ "onDelete": "SET NULL",
4024
+ "name": "audit_logs_subject_id_users_id_fkey",
4025
+ "entityType": "fks",
4026
+ "schema": "public",
4027
+ "table": "audit_logs"
4028
+ },
4029
+ {
4030
+ "nameExplicit": false,
4031
+ "columns": [
4032
+ "affiliate_id"
4033
+ ],
4034
+ "schemaTo": "public",
4035
+ "tableTo": "users",
4036
+ "columnsTo": [
4037
+ "id"
4038
+ ],
4039
+ "onUpdate": "NO ACTION",
4040
+ "onDelete": "CASCADE",
4041
+ "name": "campaigns_affiliate_id_users_id_fkey",
4042
+ "entityType": "fks",
4043
+ "schema": "public",
4044
+ "table": "campaigns"
4045
+ },
4046
+ {
4047
+ "nameExplicit": false,
4048
+ "columns": [
4049
+ "casino_id"
4050
+ ],
4051
+ "schemaTo": "public",
4052
+ "tableTo": "casinos",
4053
+ "columnsTo": [
4054
+ "id"
4055
+ ],
4056
+ "onUpdate": "NO ACTION",
4057
+ "onDelete": "RESTRICT",
4058
+ "name": "campaigns_casino_id_casinos_id_fkey",
4059
+ "entityType": "fks",
4060
+ "schema": "public",
4061
+ "table": "campaigns"
4062
+ },
4063
+ {
4064
+ "nameExplicit": false,
4065
+ "columns": [
4066
+ "commission_id"
4067
+ ],
4068
+ "schemaTo": "public",
4069
+ "tableTo": "commissions",
4070
+ "columnsTo": [
4071
+ "id"
4072
+ ],
4073
+ "onUpdate": "NO ACTION",
4074
+ "onDelete": "RESTRICT",
4075
+ "name": "campaigns_commission_id_commissions_id_fkey",
4076
+ "entityType": "fks",
4077
+ "schema": "public",
4078
+ "table": "campaigns"
4079
+ },
4080
+ {
4081
+ "nameExplicit": false,
4082
+ "columns": [
4083
+ "commission_id"
4084
+ ],
4085
+ "schemaTo": "public",
4086
+ "tableTo": "commissions",
4087
+ "columnsTo": [
4088
+ "id"
4089
+ ],
4090
+ "onUpdate": "NO ACTION",
4091
+ "onDelete": "CASCADE",
4092
+ "name": "commission_rule_groups_commission_id_commissions_id_fkey",
4093
+ "entityType": "fks",
4094
+ "schema": "public",
4095
+ "table": "commission_rule_groups"
4096
+ },
4097
+ {
4098
+ "nameExplicit": false,
4099
+ "columns": [
4100
+ "rule_group_id"
4101
+ ],
4102
+ "schemaTo": "public",
4103
+ "tableTo": "commission_rule_groups",
4104
+ "columnsTo": [
4105
+ "id"
4106
+ ],
4107
+ "onUpdate": "NO ACTION",
4108
+ "onDelete": "CASCADE",
4109
+ "name": "commission_rules_rule_group_id_commission_rule_groups_id_fkey",
4110
+ "entityType": "fks",
4111
+ "schema": "public",
4112
+ "table": "commission_rules"
4113
+ },
4114
+ {
4115
+ "nameExplicit": false,
4116
+ "columns": [
4117
+ "commission_id"
4118
+ ],
4119
+ "schemaTo": "public",
4120
+ "tableTo": "commissions",
4121
+ "columnsTo": [
4122
+ "id"
4123
+ ],
4124
+ "onUpdate": "NO ACTION",
4125
+ "onDelete": "CASCADE",
4126
+ "name": "commission_casinos_commission_id_commissions_id_fkey",
4127
+ "entityType": "fks",
4128
+ "schema": "public",
4129
+ "table": "commission_casinos"
4130
+ },
4131
+ {
4132
+ "nameExplicit": false,
4133
+ "columns": [
4134
+ "casino_id"
4135
+ ],
4136
+ "schemaTo": "public",
4137
+ "tableTo": "casinos",
4138
+ "columnsTo": [
4139
+ "id"
4140
+ ],
4141
+ "onUpdate": "NO ACTION",
4142
+ "onDelete": "RESTRICT",
4143
+ "name": "commission_casinos_casino_id_casinos_id_fkey",
4144
+ "entityType": "fks",
4145
+ "schema": "public",
4146
+ "table": "commission_casinos"
4147
+ },
4148
+ {
4149
+ "nameExplicit": false,
4150
+ "columns": [
4151
+ "campaign_id"
4152
+ ],
4153
+ "schemaTo": "public",
4154
+ "tableTo": "campaigns",
4155
+ "columnsTo": [
4156
+ "id"
4157
+ ],
4158
+ "onUpdate": "NO ACTION",
4159
+ "onDelete": "NO ACTION",
4160
+ "name": "conversions_campaign_id_campaigns_id_fkey",
4161
+ "entityType": "fks",
4162
+ "schema": "public",
4163
+ "table": "conversions"
4164
+ },
4165
+ {
4166
+ "nameExplicit": false,
4167
+ "columns": [
4168
+ "casino_id"
4169
+ ],
4170
+ "schemaTo": "public",
4171
+ "tableTo": "casinos",
4172
+ "columnsTo": [
4173
+ "id"
4174
+ ],
4175
+ "onUpdate": "NO ACTION",
4176
+ "onDelete": "NO ACTION",
4177
+ "name": "conversions_casino_id_casinos_id_fkey",
4178
+ "entityType": "fks",
4179
+ "schema": "public",
4180
+ "table": "conversions"
4181
+ },
4182
+ {
4183
+ "nameExplicit": false,
4184
+ "columns": [
4185
+ "affiliate_id"
4186
+ ],
4187
+ "schemaTo": "public",
4188
+ "tableTo": "users",
4189
+ "columnsTo": [
4190
+ "id"
4191
+ ],
4192
+ "onUpdate": "NO ACTION",
4193
+ "onDelete": "NO ACTION",
4194
+ "name": "conversions_affiliate_id_users_id_fkey",
4195
+ "entityType": "fks",
4196
+ "schema": "public",
4197
+ "table": "conversions"
4198
+ },
4199
+ {
4200
+ "nameExplicit": false,
4201
+ "columns": [
4202
+ "affiliate_id"
4203
+ ],
4204
+ "schemaTo": "public",
4205
+ "tableTo": "users",
4206
+ "columnsTo": [
4207
+ "id"
4208
+ ],
4209
+ "onUpdate": "NO ACTION",
4210
+ "onDelete": "CASCADE",
4211
+ "name": "deals_affiliate_id_users_id_fkey",
4212
+ "entityType": "fks",
4213
+ "schema": "public",
4214
+ "table": "deals"
4215
+ },
4216
+ {
4217
+ "nameExplicit": false,
4218
+ "columns": [
4219
+ "commission_id"
4220
+ ],
4221
+ "schemaTo": "public",
4222
+ "tableTo": "commissions",
4223
+ "columnsTo": [
4224
+ "id"
4225
+ ],
4226
+ "onUpdate": "NO ACTION",
4227
+ "onDelete": "RESTRICT",
4228
+ "name": "deals_commission_id_commissions_id_fkey",
4229
+ "entityType": "fks",
4230
+ "schema": "public",
4231
+ "table": "deals"
4232
+ },
4233
+ {
4234
+ "nameExplicit": false,
4235
+ "columns": [
4236
+ "assigned_by_id"
4237
+ ],
4238
+ "schemaTo": "public",
4239
+ "tableTo": "users",
4240
+ "columnsTo": [
4241
+ "id"
4242
+ ],
4243
+ "onUpdate": "NO ACTION",
4244
+ "onDelete": "SET NULL",
4245
+ "name": "deals_assigned_by_id_users_id_fkey",
4246
+ "entityType": "fks",
4247
+ "schema": "public",
4248
+ "table": "deals"
4249
+ },
4250
+ {
4251
+ "nameExplicit": false,
4252
+ "columns": [
4253
+ "parent_deal_id"
4254
+ ],
4255
+ "schemaTo": "public",
4256
+ "tableTo": "deals",
4257
+ "columnsTo": [
4258
+ "id"
4259
+ ],
4260
+ "onUpdate": "NO ACTION",
4261
+ "onDelete": "CASCADE",
4262
+ "name": "deals_parent_deal_id_deals_id_fkey",
4263
+ "entityType": "fks",
4264
+ "schema": "public",
4265
+ "table": "deals"
4266
+ },
4267
+ {
4268
+ "nameExplicit": false,
4269
+ "columns": [
4270
+ "user_id"
4271
+ ],
4272
+ "schemaTo": "public",
4273
+ "tableTo": "users",
4274
+ "columnsTo": [
4275
+ "id"
4276
+ ],
4277
+ "onUpdate": "NO ACTION",
4278
+ "onDelete": "RESTRICT",
4279
+ "name": "earnings_ledger_user_id_users_id_fkey",
4280
+ "entityType": "fks",
4281
+ "schema": "public",
4282
+ "table": "earnings_ledger"
4283
+ },
4284
+ {
4285
+ "nameExplicit": false,
4286
+ "columns": [
4287
+ "conversion_id"
4288
+ ],
4289
+ "schemaTo": "public",
4290
+ "tableTo": "conversions",
4291
+ "columnsTo": [
4292
+ "id"
4293
+ ],
4294
+ "onUpdate": "NO ACTION",
4295
+ "onDelete": "RESTRICT",
4296
+ "name": "earnings_ledger_conversion_id_conversions_id_fkey",
4297
+ "entityType": "fks",
4298
+ "schema": "public",
4299
+ "table": "earnings_ledger"
4300
+ },
4301
+ {
4302
+ "nameExplicit": false,
4303
+ "columns": [
4304
+ "deal_id"
4305
+ ],
4306
+ "schemaTo": "public",
4307
+ "tableTo": "deals",
4308
+ "columnsTo": [
4309
+ "id"
4310
+ ],
4311
+ "onUpdate": "NO ACTION",
4312
+ "onDelete": "RESTRICT",
4313
+ "name": "earnings_ledger_deal_id_deals_id_fkey",
4314
+ "entityType": "fks",
4315
+ "schema": "public",
4316
+ "table": "earnings_ledger"
4317
+ },
4318
+ {
4319
+ "nameExplicit": false,
4320
+ "columns": [
4321
+ "commission_id"
4322
+ ],
4323
+ "schemaTo": "public",
4324
+ "tableTo": "commissions",
4325
+ "columnsTo": [
4326
+ "id"
4327
+ ],
4328
+ "onUpdate": "NO ACTION",
4329
+ "onDelete": "RESTRICT",
4330
+ "name": "earnings_ledger_commission_id_commissions_id_fkey",
4331
+ "entityType": "fks",
4332
+ "schema": "public",
4333
+ "table": "earnings_ledger"
4334
+ },
4335
+ {
4336
+ "nameExplicit": false,
4337
+ "columns": [
4338
+ "source_affiliate_id"
4339
+ ],
4340
+ "schemaTo": "public",
4341
+ "tableTo": "users",
4342
+ "columnsTo": [
4343
+ "id"
4344
+ ],
4345
+ "onUpdate": "NO ACTION",
4346
+ "onDelete": "RESTRICT",
4347
+ "name": "earnings_ledger_source_affiliate_id_users_id_fkey",
4348
+ "entityType": "fks",
4349
+ "schema": "public",
4350
+ "table": "earnings_ledger"
4351
+ },
4352
+ {
4353
+ "nameExplicit": false,
4354
+ "columns": [
4355
+ "payout_request_id"
4356
+ ],
4357
+ "schemaTo": "public",
4358
+ "tableTo": "payout_requests",
4359
+ "columnsTo": [
4360
+ "id"
4361
+ ],
4362
+ "onUpdate": "NO ACTION",
4363
+ "onDelete": "RESTRICT",
4364
+ "name": "earnings_ledger_payout_request_id_payout_requests_id_fkey",
4365
+ "entityType": "fks",
4366
+ "schema": "public",
4367
+ "table": "earnings_ledger"
4368
+ },
4369
+ {
4370
+ "nameExplicit": false,
4371
+ "columns": [
4372
+ "group_id"
4373
+ ],
4374
+ "schemaTo": "public",
4375
+ "tableTo": "groups",
4376
+ "columnsTo": [
4377
+ "id"
4378
+ ],
4379
+ "onUpdate": "NO ACTION",
4380
+ "onDelete": "CASCADE",
4381
+ "name": "group_permissions_group_id_groups_id_fkey",
4382
+ "entityType": "fks",
4383
+ "schema": "public",
4384
+ "table": "group_permissions"
4385
+ },
4386
+ {
4387
+ "nameExplicit": false,
4388
+ "columns": [
4389
+ "user_id"
4390
+ ],
4391
+ "schemaTo": "public",
4392
+ "tableTo": "users",
4393
+ "columnsTo": [
4394
+ "id"
4395
+ ],
4396
+ "onUpdate": "NO ACTION",
4397
+ "onDelete": "CASCADE",
4398
+ "name": "user_groups_user_id_users_id_fkey",
4399
+ "entityType": "fks",
4400
+ "schema": "public",
4401
+ "table": "user_groups"
4402
+ },
4403
+ {
4404
+ "nameExplicit": false,
4405
+ "columns": [
4406
+ "group_id"
4407
+ ],
4408
+ "schemaTo": "public",
4409
+ "tableTo": "groups",
4410
+ "columnsTo": [
4411
+ "id"
4412
+ ],
4413
+ "onUpdate": "NO ACTION",
4414
+ "onDelete": "CASCADE",
4415
+ "name": "user_groups_group_id_groups_id_fkey",
4416
+ "entityType": "fks",
4417
+ "schema": "public",
4418
+ "table": "user_groups"
4419
+ },
4420
+ {
4421
+ "nameExplicit": false,
4422
+ "columns": [
4423
+ "user_id"
4424
+ ],
4425
+ "schemaTo": "public",
4426
+ "tableTo": "users",
4427
+ "columnsTo": [
4428
+ "id"
4429
+ ],
4430
+ "onUpdate": "NO ACTION",
4431
+ "onDelete": "CASCADE",
4432
+ "name": "user_permissions_user_id_users_id_fkey",
4433
+ "entityType": "fks",
4434
+ "schema": "public",
4435
+ "table": "user_permissions"
4436
+ },
4437
+ {
4438
+ "nameExplicit": false,
4439
+ "columns": [
4440
+ "user_id"
4441
+ ],
4442
+ "schemaTo": "public",
4443
+ "tableTo": "users",
4444
+ "columnsTo": [
4445
+ "id"
4446
+ ],
4447
+ "onUpdate": "NO ACTION",
4448
+ "onDelete": "RESTRICT",
4449
+ "name": "payout_requests_user_id_users_id_fkey",
4450
+ "entityType": "fks",
4451
+ "schema": "public",
4452
+ "table": "payout_requests"
4453
+ },
4454
+ {
4455
+ "nameExplicit": false,
4456
+ "columns": [
4457
+ "reviewed_by_id"
4458
+ ],
4459
+ "schemaTo": "public",
4460
+ "tableTo": "users",
4461
+ "columnsTo": [
4462
+ "id"
4463
+ ],
4464
+ "onUpdate": "NO ACTION",
4465
+ "onDelete": "SET NULL",
4466
+ "name": "payout_requests_reviewed_by_id_users_id_fkey",
4467
+ "entityType": "fks",
4468
+ "schema": "public",
4469
+ "table": "payout_requests"
4470
+ },
4471
+ {
4472
+ "nameExplicit": false,
4473
+ "columns": [
4474
+ "updated_by"
4475
+ ],
4476
+ "schemaTo": "public",
4477
+ "tableTo": "users",
4478
+ "columnsTo": [
4479
+ "id"
4480
+ ],
4481
+ "onUpdate": "NO ACTION",
4482
+ "onDelete": "SET NULL",
4483
+ "name": "platform_settings_updated_by_users_id_fkey",
4484
+ "entityType": "fks",
4485
+ "schema": "public",
4486
+ "table": "platform_settings"
4487
+ },
4488
+ {
4489
+ "nameExplicit": false,
4490
+ "columns": [
4491
+ "casino_id"
4492
+ ],
4493
+ "schemaTo": "public",
4494
+ "tableTo": "casinos",
4495
+ "columnsTo": [
4496
+ "id"
4497
+ ],
4498
+ "onUpdate": "NO ACTION",
4499
+ "onDelete": "RESTRICT",
4500
+ "name": "player_activity_casino_id_casinos_id_fkey",
4501
+ "entityType": "fks",
4502
+ "schema": "public",
4503
+ "table": "player_activity"
4504
+ },
4505
+ {
4506
+ "nameExplicit": false,
4507
+ "columns": [
4508
+ "affiliate_id"
4509
+ ],
4510
+ "schemaTo": "public",
4511
+ "tableTo": "users",
4512
+ "columnsTo": [
4513
+ "id"
4514
+ ],
4515
+ "onUpdate": "NO ACTION",
4516
+ "onDelete": "RESTRICT",
4517
+ "name": "revshare_carryover_affiliate_id_users_id_fkey",
4518
+ "entityType": "fks",
4519
+ "schema": "public",
4520
+ "table": "revshare_carryover"
4521
+ },
4522
+ {
4523
+ "nameExplicit": false,
4524
+ "columns": [
4525
+ "commission_id"
4526
+ ],
4527
+ "schemaTo": "public",
4528
+ "tableTo": "commissions",
4529
+ "columnsTo": [
4530
+ "id"
4531
+ ],
4532
+ "onUpdate": "NO ACTION",
4533
+ "onDelete": "RESTRICT",
4534
+ "name": "revshare_carryover_commission_id_commissions_id_fkey",
4535
+ "entityType": "fks",
4536
+ "schema": "public",
4537
+ "table": "revshare_carryover"
4538
+ },
4539
+ {
4540
+ "nameExplicit": false,
4541
+ "columns": [
4542
+ "casino_id"
4543
+ ],
4544
+ "schemaTo": "public",
4545
+ "tableTo": "casinos",
4546
+ "columnsTo": [
4547
+ "id"
4548
+ ],
4549
+ "onUpdate": "NO ACTION",
4550
+ "onDelete": "RESTRICT",
4551
+ "name": "revshare_carryover_casino_id_casinos_id_fkey",
4552
+ "entityType": "fks",
4553
+ "schema": "public",
4554
+ "table": "revshare_carryover"
4555
+ },
4556
+ {
4557
+ "nameExplicit": false,
4558
+ "columns": [
4559
+ "session_id"
4560
+ ],
4561
+ "schemaTo": "public",
4562
+ "tableTo": "sessions",
4563
+ "columnsTo": [
4564
+ "id"
4565
+ ],
4566
+ "onUpdate": "NO ACTION",
4567
+ "onDelete": "CASCADE",
4568
+ "name": "refresh_tokens_session_id_sessions_id_fkey",
4569
+ "entityType": "fks",
4570
+ "schema": "public",
4571
+ "table": "refresh_tokens"
4572
+ },
4573
+ {
4574
+ "nameExplicit": false,
4575
+ "columns": [
4576
+ "user_id"
4577
+ ],
4578
+ "schemaTo": "public",
4579
+ "tableTo": "users",
4580
+ "columnsTo": [
4581
+ "id"
4582
+ ],
4583
+ "onUpdate": "NO ACTION",
4584
+ "onDelete": "CASCADE",
4585
+ "name": "sessions_user_id_users_id_fkey",
4586
+ "entityType": "fks",
4587
+ "schema": "public",
4588
+ "table": "sessions"
4589
+ },
4590
+ {
4591
+ "nameExplicit": false,
4592
+ "columns": [
4593
+ "user_id"
4594
+ ],
4595
+ "schemaTo": "public",
4596
+ "tableTo": "users",
4597
+ "columnsTo": [
4598
+ "id"
4599
+ ],
4600
+ "onUpdate": "NO ACTION",
4601
+ "onDelete": "CASCADE",
4602
+ "name": "user_preferences_user_id_users_id_fkey",
4603
+ "entityType": "fks",
4604
+ "schema": "public",
4605
+ "table": "user_preferences"
4606
+ },
4607
+ {
4608
+ "nameExplicit": false,
4609
+ "columns": [
4610
+ "approved_by"
4611
+ ],
4612
+ "schemaTo": "public",
4613
+ "tableTo": "users",
4614
+ "columnsTo": [
4615
+ "id"
4616
+ ],
4617
+ "onUpdate": "NO ACTION",
4618
+ "onDelete": "SET NULL",
4619
+ "name": "users_approved_by_users_id_fkey",
4620
+ "entityType": "fks",
4621
+ "schema": "public",
4622
+ "table": "users"
4623
+ },
4624
+ {
4625
+ "nameExplicit": false,
4626
+ "columns": [
4627
+ "parent_affiliate_id"
4628
+ ],
4629
+ "schemaTo": "public",
4630
+ "tableTo": "users",
4631
+ "columnsTo": [
4632
+ "id"
4633
+ ],
4634
+ "onUpdate": "NO ACTION",
4635
+ "onDelete": "SET NULL",
4636
+ "name": "users_parent_affiliate_id_users_id_fkey",
4637
+ "entityType": "fks",
4638
+ "schema": "public",
4639
+ "table": "users"
4640
+ },
4641
+ {
4642
+ "nameExplicit": false,
4643
+ "columns": [
4644
+ "user_id"
4645
+ ],
4646
+ "schemaTo": "public",
4647
+ "tableTo": "users",
4648
+ "columnsTo": [
4649
+ "id"
4650
+ ],
4651
+ "onUpdate": "NO ACTION",
4652
+ "onDelete": "CASCADE",
4653
+ "name": "verification_tokens_user_id_users_id_fkey",
4654
+ "entityType": "fks",
4655
+ "schema": "public",
4656
+ "table": "verification_tokens"
4657
+ },
4658
+ {
4659
+ "columns": [
4660
+ "commission_id",
4661
+ "casino_id"
4662
+ ],
4663
+ "nameExplicit": false,
4664
+ "name": "commission_casinos_pkey",
4665
+ "entityType": "pks",
4666
+ "schema": "public",
4667
+ "table": "commission_casinos"
4668
+ },
4669
+ {
4670
+ "columns": [
4671
+ "group_id",
4672
+ "permission"
4673
+ ],
4674
+ "nameExplicit": false,
4675
+ "name": "group_permissions_pkey",
4676
+ "entityType": "pks",
4677
+ "schema": "public",
4678
+ "table": "group_permissions"
4679
+ },
4680
+ {
4681
+ "columns": [
4682
+ "user_id",
4683
+ "group_id"
4684
+ ],
4685
+ "nameExplicit": false,
4686
+ "name": "user_groups_pkey",
4687
+ "entityType": "pks",
4688
+ "schema": "public",
4689
+ "table": "user_groups"
4690
+ },
4691
+ {
4692
+ "columns": [
4693
+ "user_id",
4694
+ "permission"
4695
+ ],
4696
+ "nameExplicit": false,
4697
+ "name": "user_permissions_pkey",
4698
+ "entityType": "pks",
4699
+ "schema": "public",
4700
+ "table": "user_permissions"
4701
+ },
4702
+ {
4703
+ "columns": [
4704
+ "id"
4705
+ ],
4706
+ "nameExplicit": false,
4707
+ "name": "analytics_outbox_pkey",
4708
+ "schema": "public",
4709
+ "table": "analytics_outbox",
4710
+ "entityType": "pks"
4711
+ },
4712
+ {
4713
+ "columns": [
4714
+ "id"
4715
+ ],
4716
+ "nameExplicit": false,
4717
+ "name": "audit_logs_pkey",
4718
+ "schema": "public",
4719
+ "table": "audit_logs",
4720
+ "entityType": "pks"
4721
+ },
4722
+ {
4723
+ "columns": [
4724
+ "id"
4725
+ ],
4726
+ "nameExplicit": false,
4727
+ "name": "campaigns_pkey",
4728
+ "schema": "public",
4729
+ "table": "campaigns",
4730
+ "entityType": "pks"
4731
+ },
4732
+ {
4733
+ "columns": [
4734
+ "id"
4735
+ ],
4736
+ "nameExplicit": false,
4737
+ "name": "casinos_pkey",
4738
+ "schema": "public",
4739
+ "table": "casinos",
4740
+ "entityType": "pks"
4741
+ },
4742
+ {
4743
+ "columns": [
4744
+ "id"
4745
+ ],
4746
+ "nameExplicit": false,
4747
+ "name": "commission_rule_groups_pkey",
4748
+ "schema": "public",
4749
+ "table": "commission_rule_groups",
4750
+ "entityType": "pks"
4751
+ },
4752
+ {
4753
+ "columns": [
4754
+ "id"
4755
+ ],
4756
+ "nameExplicit": false,
4757
+ "name": "commission_rules_pkey",
4758
+ "schema": "public",
4759
+ "table": "commission_rules",
4760
+ "entityType": "pks"
4761
+ },
4762
+ {
4763
+ "columns": [
4764
+ "id"
4765
+ ],
4766
+ "nameExplicit": false,
4767
+ "name": "commissions_pkey",
4768
+ "schema": "public",
4769
+ "table": "commissions",
4770
+ "entityType": "pks"
4771
+ },
4772
+ {
4773
+ "columns": [
4774
+ "id"
4775
+ ],
4776
+ "nameExplicit": false,
4777
+ "name": "conversions_pkey",
4778
+ "schema": "public",
4779
+ "table": "conversions",
4780
+ "entityType": "pks"
4781
+ },
4782
+ {
4783
+ "columns": [
4784
+ "id"
4785
+ ],
4786
+ "nameExplicit": false,
4787
+ "name": "deals_pkey",
4788
+ "schema": "public",
4789
+ "table": "deals",
4790
+ "entityType": "pks"
4791
+ },
4792
+ {
4793
+ "columns": [
4794
+ "id"
4795
+ ],
4796
+ "nameExplicit": false,
4797
+ "name": "earnings_ledger_pkey",
4798
+ "schema": "public",
4799
+ "table": "earnings_ledger",
4800
+ "entityType": "pks"
4801
+ },
4802
+ {
4803
+ "columns": [
4804
+ "id"
4805
+ ],
4806
+ "nameExplicit": false,
4807
+ "name": "groups_pkey",
4808
+ "schema": "public",
4809
+ "table": "groups",
4810
+ "entityType": "pks"
4811
+ },
4812
+ {
4813
+ "columns": [
4814
+ "id"
4815
+ ],
4816
+ "nameExplicit": false,
4817
+ "name": "payout_requests_pkey",
4818
+ "schema": "public",
4819
+ "table": "payout_requests",
4820
+ "entityType": "pks"
4821
+ },
4822
+ {
4823
+ "columns": [
4824
+ "id"
4825
+ ],
4826
+ "nameExplicit": false,
4827
+ "name": "platform_settings_pkey",
4828
+ "schema": "public",
4829
+ "table": "platform_settings",
4830
+ "entityType": "pks"
4831
+ },
4832
+ {
4833
+ "columns": [
4834
+ "id"
4835
+ ],
4836
+ "nameExplicit": false,
4837
+ "name": "player_activity_pkey",
4838
+ "schema": "public",
4839
+ "table": "player_activity",
4840
+ "entityType": "pks"
4841
+ },
4842
+ {
4843
+ "columns": [
4844
+ "id"
4845
+ ],
4846
+ "nameExplicit": false,
4847
+ "name": "revshare_carryover_pkey",
4848
+ "schema": "public",
4849
+ "table": "revshare_carryover",
4850
+ "entityType": "pks"
4851
+ },
4852
+ {
4853
+ "columns": [
4854
+ "id"
4855
+ ],
4856
+ "nameExplicit": false,
4857
+ "name": "refresh_tokens_pkey",
4858
+ "schema": "public",
4859
+ "table": "refresh_tokens",
4860
+ "entityType": "pks"
4861
+ },
4862
+ {
4863
+ "columns": [
4864
+ "id"
4865
+ ],
4866
+ "nameExplicit": false,
4867
+ "name": "sessions_pkey",
4868
+ "schema": "public",
4869
+ "table": "sessions",
4870
+ "entityType": "pks"
4871
+ },
4872
+ {
4873
+ "columns": [
4874
+ "user_id"
4875
+ ],
4876
+ "nameExplicit": false,
4877
+ "name": "user_preferences_pkey",
4878
+ "schema": "public",
4879
+ "table": "user_preferences",
4880
+ "entityType": "pks"
4881
+ },
4882
+ {
4883
+ "columns": [
4884
+ "id"
4885
+ ],
4886
+ "nameExplicit": false,
4887
+ "name": "users_pkey",
4888
+ "schema": "public",
4889
+ "table": "users",
4890
+ "entityType": "pks"
4891
+ },
4892
+ {
4893
+ "columns": [
4894
+ "id"
4895
+ ],
4896
+ "nameExplicit": false,
4897
+ "name": "verification_tokens_pkey",
4898
+ "schema": "public",
4899
+ "table": "verification_tokens",
4900
+ "entityType": "pks"
4901
+ },
4902
+ {
4903
+ "nameExplicit": false,
4904
+ "columns": [
4905
+ "slug"
4906
+ ],
4907
+ "nullsNotDistinct": false,
4908
+ "name": "campaigns_slug_key",
4909
+ "schema": "public",
4910
+ "table": "campaigns",
4911
+ "entityType": "uniques"
4912
+ },
4913
+ {
4914
+ "nameExplicit": false,
4915
+ "columns": [
4916
+ "name"
4917
+ ],
4918
+ "nullsNotDistinct": false,
4919
+ "name": "casinos_name_key",
4920
+ "schema": "public",
4921
+ "table": "casinos",
4922
+ "entityType": "uniques"
4923
+ },
4924
+ {
4925
+ "nameExplicit": false,
4926
+ "columns": [
4927
+ "name"
4928
+ ],
4929
+ "nullsNotDistinct": false,
4930
+ "name": "groups_name_key",
4931
+ "schema": "public",
4932
+ "table": "groups",
4933
+ "entityType": "uniques"
4934
+ },
4935
+ {
4936
+ "nameExplicit": false,
4937
+ "columns": [
4938
+ "token_hash"
4939
+ ],
4940
+ "nullsNotDistinct": false,
4941
+ "name": "refresh_tokens_token_hash_key",
4942
+ "schema": "public",
4943
+ "table": "refresh_tokens",
4944
+ "entityType": "uniques"
4945
+ },
4946
+ {
4947
+ "nameExplicit": false,
4948
+ "columns": [
4949
+ "email"
4950
+ ],
4951
+ "nullsNotDistinct": false,
4952
+ "name": "users_email_key",
4953
+ "schema": "public",
4954
+ "table": "users",
4955
+ "entityType": "uniques"
4956
+ },
4957
+ {
4958
+ "nameExplicit": false,
4959
+ "columns": [
4960
+ "token_hash"
4961
+ ],
4962
+ "nullsNotDistinct": false,
4963
+ "name": "verification_tokens_token_hash_key",
4964
+ "schema": "public",
4965
+ "table": "verification_tokens",
4966
+ "entityType": "uniques"
4967
+ }
4968
+ ],
4969
+ "renames": []
4970
+ }