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