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