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