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,3750 @@
1
+ {
2
+ "version": "8",
3
+ "dialect": "postgres",
4
+ "id": "0392449c-c721-461b-ab8b-99e82ae40f69",
5
+ "prevIds": [
6
+ "00000000-0000-0000-0000-000000000000"
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": "conversion_status",
1282
+ "typeSchema": "public",
1283
+ "notNull": true,
1284
+ "dimensions": 0,
1285
+ "default": "'pending'",
1286
+ "generated": null,
1287
+ "identity": null,
1288
+ "name": "status",
1289
+ "entityType": "columns",
1290
+ "schema": "public",
1291
+ "table": "conversions"
1292
+ },
1293
+ {
1294
+ "type": "timestamp with time zone",
1295
+ "typeSchema": null,
1296
+ "notNull": false,
1297
+ "dimensions": 0,
1298
+ "default": null,
1299
+ "generated": null,
1300
+ "identity": null,
1301
+ "name": "locked_until",
1302
+ "entityType": "columns",
1303
+ "schema": "public",
1304
+ "table": "conversions"
1305
+ },
1306
+ {
1307
+ "type": "uuid",
1308
+ "typeSchema": null,
1309
+ "notNull": false,
1310
+ "dimensions": 0,
1311
+ "default": null,
1312
+ "generated": null,
1313
+ "identity": null,
1314
+ "name": "payout_id",
1315
+ "entityType": "columns",
1316
+ "schema": "public",
1317
+ "table": "conversions"
1318
+ },
1319
+ {
1320
+ "type": "jsonb",
1321
+ "typeSchema": null,
1322
+ "notNull": true,
1323
+ "dimensions": 0,
1324
+ "default": null,
1325
+ "generated": null,
1326
+ "identity": null,
1327
+ "name": "raw_postback",
1328
+ "entityType": "columns",
1329
+ "schema": "public",
1330
+ "table": "conversions"
1331
+ },
1332
+ {
1333
+ "type": "timestamp with time zone",
1334
+ "typeSchema": null,
1335
+ "notNull": true,
1336
+ "dimensions": 0,
1337
+ "default": "now()",
1338
+ "generated": null,
1339
+ "identity": null,
1340
+ "name": "received_at",
1341
+ "entityType": "columns",
1342
+ "schema": "public",
1343
+ "table": "conversions"
1344
+ },
1345
+ {
1346
+ "type": "uuid",
1347
+ "typeSchema": null,
1348
+ "notNull": true,
1349
+ "dimensions": 0,
1350
+ "default": "gen_random_uuid()",
1351
+ "generated": null,
1352
+ "identity": null,
1353
+ "name": "id",
1354
+ "entityType": "columns",
1355
+ "schema": "public",
1356
+ "table": "deals"
1357
+ },
1358
+ {
1359
+ "type": "uuid",
1360
+ "typeSchema": null,
1361
+ "notNull": true,
1362
+ "dimensions": 0,
1363
+ "default": null,
1364
+ "generated": null,
1365
+ "identity": null,
1366
+ "name": "affiliate_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": "commission_id",
1380
+ "entityType": "columns",
1381
+ "schema": "public",
1382
+ "table": "deals"
1383
+ },
1384
+ {
1385
+ "type": "deal_status",
1386
+ "typeSchema": "public",
1387
+ "notNull": true,
1388
+ "dimensions": 0,
1389
+ "default": "'active'",
1390
+ "generated": null,
1391
+ "identity": null,
1392
+ "name": "status",
1393
+ "entityType": "columns",
1394
+ "schema": "public",
1395
+ "table": "deals"
1396
+ },
1397
+ {
1398
+ "type": "timestamp with time zone",
1399
+ "typeSchema": null,
1400
+ "notNull": true,
1401
+ "dimensions": 0,
1402
+ "default": null,
1403
+ "generated": null,
1404
+ "identity": null,
1405
+ "name": "starts_at",
1406
+ "entityType": "columns",
1407
+ "schema": "public",
1408
+ "table": "deals"
1409
+ },
1410
+ {
1411
+ "type": "timestamp with time zone",
1412
+ "typeSchema": null,
1413
+ "notNull": false,
1414
+ "dimensions": 0,
1415
+ "default": null,
1416
+ "generated": null,
1417
+ "identity": null,
1418
+ "name": "ends_at",
1419
+ "entityType": "columns",
1420
+ "schema": "public",
1421
+ "table": "deals"
1422
+ },
1423
+ {
1424
+ "type": "uuid",
1425
+ "typeSchema": null,
1426
+ "notNull": false,
1427
+ "dimensions": 0,
1428
+ "default": null,
1429
+ "generated": null,
1430
+ "identity": null,
1431
+ "name": "assigned_by_id",
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": "parent_deal_id",
1445
+ "entityType": "columns",
1446
+ "schema": "public",
1447
+ "table": "deals"
1448
+ },
1449
+ {
1450
+ "type": "numeric(5,2)",
1451
+ "typeSchema": null,
1452
+ "notNull": false,
1453
+ "dimensions": 0,
1454
+ "default": null,
1455
+ "generated": null,
1456
+ "identity": null,
1457
+ "name": "sub_affiliate_percent",
1458
+ "entityType": "columns",
1459
+ "schema": "public",
1460
+ "table": "deals"
1461
+ },
1462
+ {
1463
+ "type": "timestamp with time zone",
1464
+ "typeSchema": null,
1465
+ "notNull": true,
1466
+ "dimensions": 0,
1467
+ "default": "now()",
1468
+ "generated": null,
1469
+ "identity": null,
1470
+ "name": "created_at",
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": "updated_at",
1484
+ "entityType": "columns",
1485
+ "schema": "public",
1486
+ "table": "deals"
1487
+ },
1488
+ {
1489
+ "type": "uuid",
1490
+ "typeSchema": null,
1491
+ "notNull": true,
1492
+ "dimensions": 0,
1493
+ "default": null,
1494
+ "generated": null,
1495
+ "identity": null,
1496
+ "name": "group_id",
1497
+ "entityType": "columns",
1498
+ "schema": "public",
1499
+ "table": "group_permissions"
1500
+ },
1501
+ {
1502
+ "type": "text",
1503
+ "typeSchema": null,
1504
+ "notNull": true,
1505
+ "dimensions": 0,
1506
+ "default": null,
1507
+ "generated": null,
1508
+ "identity": null,
1509
+ "name": "permission",
1510
+ "entityType": "columns",
1511
+ "schema": "public",
1512
+ "table": "group_permissions"
1513
+ },
1514
+ {
1515
+ "type": "uuid",
1516
+ "typeSchema": null,
1517
+ "notNull": true,
1518
+ "dimensions": 0,
1519
+ "default": "gen_random_uuid()",
1520
+ "generated": null,
1521
+ "identity": null,
1522
+ "name": "id",
1523
+ "entityType": "columns",
1524
+ "schema": "public",
1525
+ "table": "groups"
1526
+ },
1527
+ {
1528
+ "type": "text",
1529
+ "typeSchema": null,
1530
+ "notNull": true,
1531
+ "dimensions": 0,
1532
+ "default": null,
1533
+ "generated": null,
1534
+ "identity": null,
1535
+ "name": "name",
1536
+ "entityType": "columns",
1537
+ "schema": "public",
1538
+ "table": "groups"
1539
+ },
1540
+ {
1541
+ "type": "text",
1542
+ "typeSchema": null,
1543
+ "notNull": false,
1544
+ "dimensions": 0,
1545
+ "default": null,
1546
+ "generated": null,
1547
+ "identity": null,
1548
+ "name": "description",
1549
+ "entityType": "columns",
1550
+ "schema": "public",
1551
+ "table": "groups"
1552
+ },
1553
+ {
1554
+ "type": "timestamp with time zone",
1555
+ "typeSchema": null,
1556
+ "notNull": true,
1557
+ "dimensions": 0,
1558
+ "default": "now()",
1559
+ "generated": null,
1560
+ "identity": null,
1561
+ "name": "created_at",
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": "updated_at",
1575
+ "entityType": "columns",
1576
+ "schema": "public",
1577
+ "table": "groups"
1578
+ },
1579
+ {
1580
+ "type": "uuid",
1581
+ "typeSchema": null,
1582
+ "notNull": true,
1583
+ "dimensions": 0,
1584
+ "default": null,
1585
+ "generated": null,
1586
+ "identity": null,
1587
+ "name": "user_id",
1588
+ "entityType": "columns",
1589
+ "schema": "public",
1590
+ "table": "user_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": "group_id",
1601
+ "entityType": "columns",
1602
+ "schema": "public",
1603
+ "table": "user_groups"
1604
+ },
1605
+ {
1606
+ "type": "timestamp with time zone",
1607
+ "typeSchema": null,
1608
+ "notNull": true,
1609
+ "dimensions": 0,
1610
+ "default": "now()",
1611
+ "generated": null,
1612
+ "identity": null,
1613
+ "name": "assigned_at",
1614
+ "entityType": "columns",
1615
+ "schema": "public",
1616
+ "table": "user_groups"
1617
+ },
1618
+ {
1619
+ "type": "uuid",
1620
+ "typeSchema": null,
1621
+ "notNull": true,
1622
+ "dimensions": 0,
1623
+ "default": null,
1624
+ "generated": null,
1625
+ "identity": null,
1626
+ "name": "user_id",
1627
+ "entityType": "columns",
1628
+ "schema": "public",
1629
+ "table": "user_permissions"
1630
+ },
1631
+ {
1632
+ "type": "text",
1633
+ "typeSchema": null,
1634
+ "notNull": true,
1635
+ "dimensions": 0,
1636
+ "default": null,
1637
+ "generated": null,
1638
+ "identity": null,
1639
+ "name": "permission",
1640
+ "entityType": "columns",
1641
+ "schema": "public",
1642
+ "table": "user_permissions"
1643
+ },
1644
+ {
1645
+ "type": "boolean",
1646
+ "typeSchema": null,
1647
+ "notNull": true,
1648
+ "dimensions": 0,
1649
+ "default": "true",
1650
+ "generated": null,
1651
+ "identity": null,
1652
+ "name": "id",
1653
+ "entityType": "columns",
1654
+ "schema": "public",
1655
+ "table": "platform_settings"
1656
+ },
1657
+ {
1658
+ "type": "boolean",
1659
+ "typeSchema": null,
1660
+ "notNull": true,
1661
+ "dimensions": 0,
1662
+ "default": "false",
1663
+ "generated": null,
1664
+ "identity": null,
1665
+ "name": "require_manager_totp",
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_affiliate_approval",
1679
+ "entityType": "columns",
1680
+ "schema": "public",
1681
+ "table": "platform_settings"
1682
+ },
1683
+ {
1684
+ "type": "timestamp with time zone",
1685
+ "typeSchema": null,
1686
+ "notNull": true,
1687
+ "dimensions": 0,
1688
+ "default": "now()",
1689
+ "generated": null,
1690
+ "identity": null,
1691
+ "name": "updated_at",
1692
+ "entityType": "columns",
1693
+ "schema": "public",
1694
+ "table": "platform_settings"
1695
+ },
1696
+ {
1697
+ "type": "uuid",
1698
+ "typeSchema": null,
1699
+ "notNull": false,
1700
+ "dimensions": 0,
1701
+ "default": null,
1702
+ "generated": null,
1703
+ "identity": null,
1704
+ "name": "updated_by",
1705
+ "entityType": "columns",
1706
+ "schema": "public",
1707
+ "table": "platform_settings"
1708
+ },
1709
+ {
1710
+ "type": "uuid",
1711
+ "typeSchema": null,
1712
+ "notNull": true,
1713
+ "dimensions": 0,
1714
+ "default": "gen_random_uuid()",
1715
+ "generated": null,
1716
+ "identity": null,
1717
+ "name": "id",
1718
+ "entityType": "columns",
1719
+ "schema": "public",
1720
+ "table": "refresh_tokens"
1721
+ },
1722
+ {
1723
+ "type": "uuid",
1724
+ "typeSchema": null,
1725
+ "notNull": true,
1726
+ "dimensions": 0,
1727
+ "default": null,
1728
+ "generated": null,
1729
+ "identity": null,
1730
+ "name": "session_id",
1731
+ "entityType": "columns",
1732
+ "schema": "public",
1733
+ "table": "refresh_tokens"
1734
+ },
1735
+ {
1736
+ "type": "text",
1737
+ "typeSchema": null,
1738
+ "notNull": true,
1739
+ "dimensions": 0,
1740
+ "default": null,
1741
+ "generated": null,
1742
+ "identity": null,
1743
+ "name": "token_hash",
1744
+ "entityType": "columns",
1745
+ "schema": "public",
1746
+ "table": "refresh_tokens"
1747
+ },
1748
+ {
1749
+ "type": "timestamp with time zone",
1750
+ "typeSchema": null,
1751
+ "notNull": true,
1752
+ "dimensions": 0,
1753
+ "default": "now()",
1754
+ "generated": null,
1755
+ "identity": null,
1756
+ "name": "created_at",
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": null,
1767
+ "generated": null,
1768
+ "identity": null,
1769
+ "name": "expires_at",
1770
+ "entityType": "columns",
1771
+ "schema": "public",
1772
+ "table": "refresh_tokens"
1773
+ },
1774
+ {
1775
+ "type": "timestamp with time zone",
1776
+ "typeSchema": null,
1777
+ "notNull": false,
1778
+ "dimensions": 0,
1779
+ "default": null,
1780
+ "generated": null,
1781
+ "identity": null,
1782
+ "name": "revoked_at",
1783
+ "entityType": "columns",
1784
+ "schema": "public",
1785
+ "table": "refresh_tokens"
1786
+ },
1787
+ {
1788
+ "type": "uuid",
1789
+ "typeSchema": null,
1790
+ "notNull": true,
1791
+ "dimensions": 0,
1792
+ "default": "gen_random_uuid()",
1793
+ "generated": null,
1794
+ "identity": null,
1795
+ "name": "id",
1796
+ "entityType": "columns",
1797
+ "schema": "public",
1798
+ "table": "sessions"
1799
+ },
1800
+ {
1801
+ "type": "uuid",
1802
+ "typeSchema": null,
1803
+ "notNull": true,
1804
+ "dimensions": 0,
1805
+ "default": null,
1806
+ "generated": null,
1807
+ "identity": null,
1808
+ "name": "user_id",
1809
+ "entityType": "columns",
1810
+ "schema": "public",
1811
+ "table": "sessions"
1812
+ },
1813
+ {
1814
+ "type": "text",
1815
+ "typeSchema": null,
1816
+ "notNull": false,
1817
+ "dimensions": 0,
1818
+ "default": null,
1819
+ "generated": null,
1820
+ "identity": null,
1821
+ "name": "user_agent",
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": "ip_address",
1835
+ "entityType": "columns",
1836
+ "schema": "public",
1837
+ "table": "sessions"
1838
+ },
1839
+ {
1840
+ "type": "timestamp with time zone",
1841
+ "typeSchema": null,
1842
+ "notNull": true,
1843
+ "dimensions": 0,
1844
+ "default": "now()",
1845
+ "generated": null,
1846
+ "identity": null,
1847
+ "name": "created_at",
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": "last_seen_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": null,
1871
+ "generated": null,
1872
+ "identity": null,
1873
+ "name": "expires_at",
1874
+ "entityType": "columns",
1875
+ "schema": "public",
1876
+ "table": "sessions"
1877
+ },
1878
+ {
1879
+ "type": "uuid",
1880
+ "typeSchema": null,
1881
+ "notNull": true,
1882
+ "dimensions": 0,
1883
+ "default": null,
1884
+ "generated": null,
1885
+ "identity": null,
1886
+ "name": "user_id",
1887
+ "entityType": "columns",
1888
+ "schema": "public",
1889
+ "table": "user_preferences"
1890
+ },
1891
+ {
1892
+ "type": "text",
1893
+ "typeSchema": null,
1894
+ "notNull": false,
1895
+ "dimensions": 0,
1896
+ "default": null,
1897
+ "generated": null,
1898
+ "identity": null,
1899
+ "name": "locale",
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": "theme",
1913
+ "entityType": "columns",
1914
+ "schema": "public",
1915
+ "table": "user_preferences"
1916
+ },
1917
+ {
1918
+ "type": "boolean",
1919
+ "typeSchema": null,
1920
+ "notNull": true,
1921
+ "dimensions": 0,
1922
+ "default": "false",
1923
+ "generated": null,
1924
+ "identity": null,
1925
+ "name": "sidebar_collapsed",
1926
+ "entityType": "columns",
1927
+ "schema": "public",
1928
+ "table": "user_preferences"
1929
+ },
1930
+ {
1931
+ "type": "timestamp with time zone",
1932
+ "typeSchema": null,
1933
+ "notNull": true,
1934
+ "dimensions": 0,
1935
+ "default": "now()",
1936
+ "generated": null,
1937
+ "identity": null,
1938
+ "name": "updated_at",
1939
+ "entityType": "columns",
1940
+ "schema": "public",
1941
+ "table": "user_preferences"
1942
+ },
1943
+ {
1944
+ "type": "uuid",
1945
+ "typeSchema": null,
1946
+ "notNull": true,
1947
+ "dimensions": 0,
1948
+ "default": "gen_random_uuid()",
1949
+ "generated": null,
1950
+ "identity": null,
1951
+ "name": "id",
1952
+ "entityType": "columns",
1953
+ "schema": "public",
1954
+ "table": "users"
1955
+ },
1956
+ {
1957
+ "type": "text",
1958
+ "typeSchema": null,
1959
+ "notNull": true,
1960
+ "dimensions": 0,
1961
+ "default": null,
1962
+ "generated": null,
1963
+ "identity": null,
1964
+ "name": "email",
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": "first_name",
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": "last_name",
1991
+ "entityType": "columns",
1992
+ "schema": "public",
1993
+ "table": "users"
1994
+ },
1995
+ {
1996
+ "type": "text",
1997
+ "typeSchema": null,
1998
+ "notNull": false,
1999
+ "dimensions": 0,
2000
+ "default": null,
2001
+ "generated": null,
2002
+ "identity": null,
2003
+ "name": "password_hash",
2004
+ "entityType": "columns",
2005
+ "schema": "public",
2006
+ "table": "users"
2007
+ },
2008
+ {
2009
+ "type": "user_role",
2010
+ "typeSchema": "public",
2011
+ "notNull": true,
2012
+ "dimensions": 0,
2013
+ "default": "'affiliate'",
2014
+ "generated": null,
2015
+ "identity": null,
2016
+ "name": "role",
2017
+ "entityType": "columns",
2018
+ "schema": "public",
2019
+ "table": "users"
2020
+ },
2021
+ {
2022
+ "type": "user_status",
2023
+ "typeSchema": "public",
2024
+ "notNull": true,
2025
+ "dimensions": 0,
2026
+ "default": "'active'",
2027
+ "generated": null,
2028
+ "identity": null,
2029
+ "name": "status",
2030
+ "entityType": "columns",
2031
+ "schema": "public",
2032
+ "table": "users"
2033
+ },
2034
+ {
2035
+ "type": "signup_source",
2036
+ "typeSchema": "public",
2037
+ "notNull": true,
2038
+ "dimensions": 0,
2039
+ "default": "'admin_invite'",
2040
+ "generated": null,
2041
+ "identity": null,
2042
+ "name": "signup_source",
2043
+ "entityType": "columns",
2044
+ "schema": "public",
2045
+ "table": "users"
2046
+ },
2047
+ {
2048
+ "type": "timestamp with time zone",
2049
+ "typeSchema": null,
2050
+ "notNull": false,
2051
+ "dimensions": 0,
2052
+ "default": "now()",
2053
+ "generated": null,
2054
+ "identity": null,
2055
+ "name": "invite_accepted_at",
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": null,
2066
+ "generated": null,
2067
+ "identity": null,
2068
+ "name": "tos_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": "approved_at",
2082
+ "entityType": "columns",
2083
+ "schema": "public",
2084
+ "table": "users"
2085
+ },
2086
+ {
2087
+ "type": "uuid",
2088
+ "typeSchema": null,
2089
+ "notNull": false,
2090
+ "dimensions": 0,
2091
+ "default": null,
2092
+ "generated": null,
2093
+ "identity": null,
2094
+ "name": "approved_by",
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": "parent_affiliate_id",
2108
+ "entityType": "columns",
2109
+ "schema": "public",
2110
+ "table": "users"
2111
+ },
2112
+ {
2113
+ "type": "text",
2114
+ "typeSchema": null,
2115
+ "notNull": false,
2116
+ "dimensions": 0,
2117
+ "default": null,
2118
+ "generated": null,
2119
+ "identity": null,
2120
+ "name": "totp_secret",
2121
+ "entityType": "columns",
2122
+ "schema": "public",
2123
+ "table": "users"
2124
+ },
2125
+ {
2126
+ "type": "timestamp with time zone",
2127
+ "typeSchema": null,
2128
+ "notNull": false,
2129
+ "dimensions": 0,
2130
+ "default": null,
2131
+ "generated": null,
2132
+ "identity": null,
2133
+ "name": "totp_confirmed_at",
2134
+ "entityType": "columns",
2135
+ "schema": "public",
2136
+ "table": "users"
2137
+ },
2138
+ {
2139
+ "type": "timestamp with time zone",
2140
+ "typeSchema": null,
2141
+ "notNull": true,
2142
+ "dimensions": 0,
2143
+ "default": "now()",
2144
+ "generated": null,
2145
+ "identity": null,
2146
+ "name": "created_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": "updated_at",
2160
+ "entityType": "columns",
2161
+ "schema": "public",
2162
+ "table": "users"
2163
+ },
2164
+ {
2165
+ "type": "uuid",
2166
+ "typeSchema": null,
2167
+ "notNull": true,
2168
+ "dimensions": 0,
2169
+ "default": "gen_random_uuid()",
2170
+ "generated": null,
2171
+ "identity": null,
2172
+ "name": "id",
2173
+ "entityType": "columns",
2174
+ "schema": "public",
2175
+ "table": "verification_tokens"
2176
+ },
2177
+ {
2178
+ "type": "uuid",
2179
+ "typeSchema": null,
2180
+ "notNull": true,
2181
+ "dimensions": 0,
2182
+ "default": null,
2183
+ "generated": null,
2184
+ "identity": null,
2185
+ "name": "user_id",
2186
+ "entityType": "columns",
2187
+ "schema": "public",
2188
+ "table": "verification_tokens"
2189
+ },
2190
+ {
2191
+ "type": "verification_token_purpose",
2192
+ "typeSchema": "public",
2193
+ "notNull": true,
2194
+ "dimensions": 0,
2195
+ "default": null,
2196
+ "generated": null,
2197
+ "identity": null,
2198
+ "name": "purpose",
2199
+ "entityType": "columns",
2200
+ "schema": "public",
2201
+ "table": "verification_tokens"
2202
+ },
2203
+ {
2204
+ "type": "text",
2205
+ "typeSchema": null,
2206
+ "notNull": true,
2207
+ "dimensions": 0,
2208
+ "default": null,
2209
+ "generated": null,
2210
+ "identity": null,
2211
+ "name": "token_hash",
2212
+ "entityType": "columns",
2213
+ "schema": "public",
2214
+ "table": "verification_tokens"
2215
+ },
2216
+ {
2217
+ "type": "timestamp with time zone",
2218
+ "typeSchema": null,
2219
+ "notNull": true,
2220
+ "dimensions": 0,
2221
+ "default": "now()",
2222
+ "generated": null,
2223
+ "identity": null,
2224
+ "name": "created_at",
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": null,
2235
+ "generated": null,
2236
+ "identity": null,
2237
+ "name": "expires_at",
2238
+ "entityType": "columns",
2239
+ "schema": "public",
2240
+ "table": "verification_tokens"
2241
+ },
2242
+ {
2243
+ "nameExplicit": true,
2244
+ "columns": [
2245
+ {
2246
+ "value": "available_at",
2247
+ "isExpression": false,
2248
+ "asc": true,
2249
+ "nullsFirst": false,
2250
+ "opclass": null
2251
+ },
2252
+ {
2253
+ "value": "created_at",
2254
+ "isExpression": false,
2255
+ "asc": true,
2256
+ "nullsFirst": false,
2257
+ "opclass": null
2258
+ }
2259
+ ],
2260
+ "isUnique": false,
2261
+ "where": null,
2262
+ "with": "",
2263
+ "method": "btree",
2264
+ "concurrently": false,
2265
+ "name": "analytics_outbox_available_idx",
2266
+ "entityType": "indexes",
2267
+ "schema": "public",
2268
+ "table": "analytics_outbox"
2269
+ },
2270
+ {
2271
+ "nameExplicit": true,
2272
+ "columns": [
2273
+ {
2274
+ "value": "locked_at",
2275
+ "isExpression": false,
2276
+ "asc": true,
2277
+ "nullsFirst": false,
2278
+ "opclass": null
2279
+ }
2280
+ ],
2281
+ "isUnique": false,
2282
+ "where": null,
2283
+ "with": "",
2284
+ "method": "btree",
2285
+ "concurrently": false,
2286
+ "name": "analytics_outbox_lock_idx",
2287
+ "entityType": "indexes",
2288
+ "schema": "public",
2289
+ "table": "analytics_outbox"
2290
+ },
2291
+ {
2292
+ "nameExplicit": true,
2293
+ "columns": [
2294
+ {
2295
+ "value": "event_type",
2296
+ "isExpression": false,
2297
+ "asc": true,
2298
+ "nullsFirst": false,
2299
+ "opclass": null
2300
+ }
2301
+ ],
2302
+ "isUnique": false,
2303
+ "where": null,
2304
+ "with": "",
2305
+ "method": "btree",
2306
+ "concurrently": false,
2307
+ "name": "analytics_outbox_event_type_idx",
2308
+ "entityType": "indexes",
2309
+ "schema": "public",
2310
+ "table": "analytics_outbox"
2311
+ },
2312
+ {
2313
+ "nameExplicit": true,
2314
+ "columns": [
2315
+ {
2316
+ "value": "created_at",
2317
+ "isExpression": false,
2318
+ "asc": false,
2319
+ "nullsFirst": false,
2320
+ "opclass": null
2321
+ }
2322
+ ],
2323
+ "isUnique": false,
2324
+ "where": null,
2325
+ "with": "",
2326
+ "method": "btree",
2327
+ "concurrently": false,
2328
+ "name": "audit_logs_created_at_idx",
2329
+ "entityType": "indexes",
2330
+ "schema": "public",
2331
+ "table": "audit_logs"
2332
+ },
2333
+ {
2334
+ "nameExplicit": true,
2335
+ "columns": [
2336
+ {
2337
+ "value": "actor_id",
2338
+ "isExpression": false,
2339
+ "asc": true,
2340
+ "nullsFirst": false,
2341
+ "opclass": null
2342
+ },
2343
+ {
2344
+ "value": "created_at",
2345
+ "isExpression": false,
2346
+ "asc": false,
2347
+ "nullsFirst": false,
2348
+ "opclass": null
2349
+ }
2350
+ ],
2351
+ "isUnique": false,
2352
+ "where": null,
2353
+ "with": "",
2354
+ "method": "btree",
2355
+ "concurrently": false,
2356
+ "name": "audit_logs_actor_id_created_at_idx",
2357
+ "entityType": "indexes",
2358
+ "schema": "public",
2359
+ "table": "audit_logs"
2360
+ },
2361
+ {
2362
+ "nameExplicit": true,
2363
+ "columns": [
2364
+ {
2365
+ "value": "subject_id",
2366
+ "isExpression": false,
2367
+ "asc": true,
2368
+ "nullsFirst": false,
2369
+ "opclass": null
2370
+ },
2371
+ {
2372
+ "value": "created_at",
2373
+ "isExpression": false,
2374
+ "asc": false,
2375
+ "nullsFirst": false,
2376
+ "opclass": null
2377
+ }
2378
+ ],
2379
+ "isUnique": false,
2380
+ "where": null,
2381
+ "with": "",
2382
+ "method": "btree",
2383
+ "concurrently": false,
2384
+ "name": "audit_logs_subject_id_created_at_idx",
2385
+ "entityType": "indexes",
2386
+ "schema": "public",
2387
+ "table": "audit_logs"
2388
+ },
2389
+ {
2390
+ "nameExplicit": true,
2391
+ "columns": [
2392
+ {
2393
+ "value": "actor_role",
2394
+ "isExpression": false,
2395
+ "asc": true,
2396
+ "nullsFirst": false,
2397
+ "opclass": null
2398
+ },
2399
+ {
2400
+ "value": "created_at",
2401
+ "isExpression": false,
2402
+ "asc": false,
2403
+ "nullsFirst": false,
2404
+ "opclass": null
2405
+ }
2406
+ ],
2407
+ "isUnique": false,
2408
+ "where": null,
2409
+ "with": "",
2410
+ "method": "btree",
2411
+ "concurrently": false,
2412
+ "name": "audit_logs_actor_role_created_at_idx",
2413
+ "entityType": "indexes",
2414
+ "schema": "public",
2415
+ "table": "audit_logs"
2416
+ },
2417
+ {
2418
+ "nameExplicit": true,
2419
+ "columns": [
2420
+ {
2421
+ "value": "target_type",
2422
+ "isExpression": false,
2423
+ "asc": true,
2424
+ "nullsFirst": false,
2425
+ "opclass": null
2426
+ },
2427
+ {
2428
+ "value": "target_id",
2429
+ "isExpression": false,
2430
+ "asc": true,
2431
+ "nullsFirst": false,
2432
+ "opclass": null
2433
+ }
2434
+ ],
2435
+ "isUnique": false,
2436
+ "where": null,
2437
+ "with": "",
2438
+ "method": "btree",
2439
+ "concurrently": false,
2440
+ "name": "audit_logs_target_idx",
2441
+ "entityType": "indexes",
2442
+ "schema": "public",
2443
+ "table": "audit_logs"
2444
+ },
2445
+ {
2446
+ "nameExplicit": true,
2447
+ "columns": [
2448
+ {
2449
+ "value": "action",
2450
+ "isExpression": false,
2451
+ "asc": true,
2452
+ "nullsFirst": false,
2453
+ "opclass": null
2454
+ }
2455
+ ],
2456
+ "isUnique": false,
2457
+ "where": null,
2458
+ "with": "",
2459
+ "method": "btree",
2460
+ "concurrently": false,
2461
+ "name": "audit_logs_action_idx",
2462
+ "entityType": "indexes",
2463
+ "schema": "public",
2464
+ "table": "audit_logs"
2465
+ },
2466
+ {
2467
+ "nameExplicit": true,
2468
+ "columns": [
2469
+ {
2470
+ "value": "affiliate_id",
2471
+ "isExpression": false,
2472
+ "asc": true,
2473
+ "nullsFirst": false,
2474
+ "opclass": null
2475
+ }
2476
+ ],
2477
+ "isUnique": false,
2478
+ "where": null,
2479
+ "with": "",
2480
+ "method": "btree",
2481
+ "concurrently": false,
2482
+ "name": "campaigns_affiliate_id_idx",
2483
+ "entityType": "indexes",
2484
+ "schema": "public",
2485
+ "table": "campaigns"
2486
+ },
2487
+ {
2488
+ "nameExplicit": true,
2489
+ "columns": [
2490
+ {
2491
+ "value": "casino_id",
2492
+ "isExpression": false,
2493
+ "asc": true,
2494
+ "nullsFirst": false,
2495
+ "opclass": null
2496
+ }
2497
+ ],
2498
+ "isUnique": false,
2499
+ "where": null,
2500
+ "with": "",
2501
+ "method": "btree",
2502
+ "concurrently": false,
2503
+ "name": "campaigns_casino_id_idx",
2504
+ "entityType": "indexes",
2505
+ "schema": "public",
2506
+ "table": "campaigns"
2507
+ },
2508
+ {
2509
+ "nameExplicit": true,
2510
+ "columns": [
2511
+ {
2512
+ "value": "commission_id",
2513
+ "isExpression": false,
2514
+ "asc": true,
2515
+ "nullsFirst": false,
2516
+ "opclass": null
2517
+ }
2518
+ ],
2519
+ "isUnique": false,
2520
+ "where": null,
2521
+ "with": "",
2522
+ "method": "btree",
2523
+ "concurrently": false,
2524
+ "name": "campaigns_commission_id_idx",
2525
+ "entityType": "indexes",
2526
+ "schema": "public",
2527
+ "table": "campaigns"
2528
+ },
2529
+ {
2530
+ "nameExplicit": true,
2531
+ "columns": [
2532
+ {
2533
+ "value": "status",
2534
+ "isExpression": false,
2535
+ "asc": true,
2536
+ "nullsFirst": false,
2537
+ "opclass": null
2538
+ }
2539
+ ],
2540
+ "isUnique": false,
2541
+ "where": null,
2542
+ "with": "",
2543
+ "method": "btree",
2544
+ "concurrently": false,
2545
+ "name": "campaigns_status_idx",
2546
+ "entityType": "indexes",
2547
+ "schema": "public",
2548
+ "table": "campaigns"
2549
+ },
2550
+ {
2551
+ "nameExplicit": true,
2552
+ "columns": [
2553
+ {
2554
+ "value": "commission_id",
2555
+ "isExpression": false,
2556
+ "asc": true,
2557
+ "nullsFirst": false,
2558
+ "opclass": null
2559
+ }
2560
+ ],
2561
+ "isUnique": false,
2562
+ "where": null,
2563
+ "with": "",
2564
+ "method": "btree",
2565
+ "concurrently": false,
2566
+ "name": "commission_rule_groups_commission_id_idx",
2567
+ "entityType": "indexes",
2568
+ "schema": "public",
2569
+ "table": "commission_rule_groups"
2570
+ },
2571
+ {
2572
+ "nameExplicit": true,
2573
+ "columns": [
2574
+ {
2575
+ "value": "rule_group_id",
2576
+ "isExpression": false,
2577
+ "asc": true,
2578
+ "nullsFirst": false,
2579
+ "opclass": null
2580
+ }
2581
+ ],
2582
+ "isUnique": false,
2583
+ "where": null,
2584
+ "with": "",
2585
+ "method": "btree",
2586
+ "concurrently": false,
2587
+ "name": "commission_rules_rule_group_id_idx",
2588
+ "entityType": "indexes",
2589
+ "schema": "public",
2590
+ "table": "commission_rules"
2591
+ },
2592
+ {
2593
+ "nameExplicit": true,
2594
+ "columns": [
2595
+ {
2596
+ "value": "casino_id",
2597
+ "isExpression": false,
2598
+ "asc": true,
2599
+ "nullsFirst": false,
2600
+ "opclass": null
2601
+ }
2602
+ ],
2603
+ "isUnique": false,
2604
+ "where": null,
2605
+ "with": "",
2606
+ "method": "btree",
2607
+ "concurrently": false,
2608
+ "name": "commission_casinos_casino_id_idx",
2609
+ "entityType": "indexes",
2610
+ "schema": "public",
2611
+ "table": "commission_casinos"
2612
+ },
2613
+ {
2614
+ "nameExplicit": true,
2615
+ "columns": [
2616
+ {
2617
+ "value": "casino_id",
2618
+ "isExpression": false,
2619
+ "asc": true,
2620
+ "nullsFirst": false,
2621
+ "opclass": null
2622
+ },
2623
+ {
2624
+ "value": "casino_tx_id",
2625
+ "isExpression": false,
2626
+ "asc": true,
2627
+ "nullsFirst": false,
2628
+ "opclass": null
2629
+ }
2630
+ ],
2631
+ "isUnique": true,
2632
+ "where": null,
2633
+ "with": "",
2634
+ "method": "btree",
2635
+ "concurrently": false,
2636
+ "name": "conversions_casino_tx_unique",
2637
+ "entityType": "indexes",
2638
+ "schema": "public",
2639
+ "table": "conversions"
2640
+ },
2641
+ {
2642
+ "nameExplicit": true,
2643
+ "columns": [
2644
+ {
2645
+ "value": "campaign_id",
2646
+ "isExpression": false,
2647
+ "asc": true,
2648
+ "nullsFirst": false,
2649
+ "opclass": null
2650
+ },
2651
+ {
2652
+ "value": "received_at",
2653
+ "isExpression": false,
2654
+ "asc": true,
2655
+ "nullsFirst": false,
2656
+ "opclass": null
2657
+ }
2658
+ ],
2659
+ "isUnique": false,
2660
+ "where": null,
2661
+ "with": "",
2662
+ "method": "btree",
2663
+ "concurrently": false,
2664
+ "name": "conversions_campaign_idx",
2665
+ "entityType": "indexes",
2666
+ "schema": "public",
2667
+ "table": "conversions"
2668
+ },
2669
+ {
2670
+ "nameExplicit": true,
2671
+ "columns": [
2672
+ {
2673
+ "value": "affiliate_id",
2674
+ "isExpression": false,
2675
+ "asc": true,
2676
+ "nullsFirst": false,
2677
+ "opclass": null
2678
+ },
2679
+ {
2680
+ "value": "received_at",
2681
+ "isExpression": false,
2682
+ "asc": true,
2683
+ "nullsFirst": false,
2684
+ "opclass": null
2685
+ }
2686
+ ],
2687
+ "isUnique": false,
2688
+ "where": null,
2689
+ "with": "",
2690
+ "method": "btree",
2691
+ "concurrently": false,
2692
+ "name": "conversions_affiliate_idx",
2693
+ "entityType": "indexes",
2694
+ "schema": "public",
2695
+ "table": "conversions"
2696
+ },
2697
+ {
2698
+ "nameExplicit": true,
2699
+ "columns": [
2700
+ {
2701
+ "value": "status",
2702
+ "isExpression": false,
2703
+ "asc": true,
2704
+ "nullsFirst": false,
2705
+ "opclass": null
2706
+ },
2707
+ {
2708
+ "value": "locked_until",
2709
+ "isExpression": false,
2710
+ "asc": true,
2711
+ "nullsFirst": false,
2712
+ "opclass": null
2713
+ }
2714
+ ],
2715
+ "isUnique": false,
2716
+ "where": null,
2717
+ "with": "",
2718
+ "method": "btree",
2719
+ "concurrently": false,
2720
+ "name": "conversions_status_idx",
2721
+ "entityType": "indexes",
2722
+ "schema": "public",
2723
+ "table": "conversions"
2724
+ },
2725
+ {
2726
+ "nameExplicit": true,
2727
+ "columns": [
2728
+ {
2729
+ "value": "affiliate_id",
2730
+ "isExpression": false,
2731
+ "asc": true,
2732
+ "nullsFirst": false,
2733
+ "opclass": null
2734
+ }
2735
+ ],
2736
+ "isUnique": false,
2737
+ "where": null,
2738
+ "with": "",
2739
+ "method": "btree",
2740
+ "concurrently": false,
2741
+ "name": "deals_affiliate_id_idx",
2742
+ "entityType": "indexes",
2743
+ "schema": "public",
2744
+ "table": "deals"
2745
+ },
2746
+ {
2747
+ "nameExplicit": true,
2748
+ "columns": [
2749
+ {
2750
+ "value": "commission_id",
2751
+ "isExpression": false,
2752
+ "asc": true,
2753
+ "nullsFirst": false,
2754
+ "opclass": null
2755
+ }
2756
+ ],
2757
+ "isUnique": false,
2758
+ "where": null,
2759
+ "with": "",
2760
+ "method": "btree",
2761
+ "concurrently": false,
2762
+ "name": "deals_commission_id_idx",
2763
+ "entityType": "indexes",
2764
+ "schema": "public",
2765
+ "table": "deals"
2766
+ },
2767
+ {
2768
+ "nameExplicit": true,
2769
+ "columns": [
2770
+ {
2771
+ "value": "status",
2772
+ "isExpression": false,
2773
+ "asc": true,
2774
+ "nullsFirst": false,
2775
+ "opclass": null
2776
+ }
2777
+ ],
2778
+ "isUnique": false,
2779
+ "where": null,
2780
+ "with": "",
2781
+ "method": "btree",
2782
+ "concurrently": false,
2783
+ "name": "deals_status_idx",
2784
+ "entityType": "indexes",
2785
+ "schema": "public",
2786
+ "table": "deals"
2787
+ },
2788
+ {
2789
+ "nameExplicit": true,
2790
+ "columns": [
2791
+ {
2792
+ "value": "parent_deal_id",
2793
+ "isExpression": false,
2794
+ "asc": true,
2795
+ "nullsFirst": false,
2796
+ "opclass": null
2797
+ }
2798
+ ],
2799
+ "isUnique": false,
2800
+ "where": null,
2801
+ "with": "",
2802
+ "method": "btree",
2803
+ "concurrently": false,
2804
+ "name": "deals_parent_deal_id_idx",
2805
+ "entityType": "indexes",
2806
+ "schema": "public",
2807
+ "table": "deals"
2808
+ },
2809
+ {
2810
+ "nameExplicit": true,
2811
+ "columns": [
2812
+ {
2813
+ "value": "parent_deal_id",
2814
+ "isExpression": false,
2815
+ "asc": true,
2816
+ "nullsFirst": false,
2817
+ "opclass": null
2818
+ },
2819
+ {
2820
+ "value": "affiliate_id",
2821
+ "isExpression": false,
2822
+ "asc": true,
2823
+ "nullsFirst": false,
2824
+ "opclass": null
2825
+ }
2826
+ ],
2827
+ "isUnique": true,
2828
+ "where": null,
2829
+ "with": "",
2830
+ "method": "btree",
2831
+ "concurrently": false,
2832
+ "name": "deals_parent_deal_affiliate_uniq",
2833
+ "entityType": "indexes",
2834
+ "schema": "public",
2835
+ "table": "deals"
2836
+ },
2837
+ {
2838
+ "nameExplicit": true,
2839
+ "columns": [
2840
+ {
2841
+ "value": "group_id",
2842
+ "isExpression": false,
2843
+ "asc": true,
2844
+ "nullsFirst": false,
2845
+ "opclass": null
2846
+ }
2847
+ ],
2848
+ "isUnique": false,
2849
+ "where": null,
2850
+ "with": "",
2851
+ "method": "btree",
2852
+ "concurrently": false,
2853
+ "name": "user_groups_group_id_idx",
2854
+ "entityType": "indexes",
2855
+ "schema": "public",
2856
+ "table": "user_groups"
2857
+ },
2858
+ {
2859
+ "nameExplicit": true,
2860
+ "columns": [
2861
+ {
2862
+ "value": "session_id",
2863
+ "isExpression": false,
2864
+ "asc": true,
2865
+ "nullsFirst": false,
2866
+ "opclass": null
2867
+ }
2868
+ ],
2869
+ "isUnique": false,
2870
+ "where": null,
2871
+ "with": "",
2872
+ "method": "btree",
2873
+ "concurrently": false,
2874
+ "name": "refresh_tokens_session_id_idx",
2875
+ "entityType": "indexes",
2876
+ "schema": "public",
2877
+ "table": "refresh_tokens"
2878
+ },
2879
+ {
2880
+ "nameExplicit": true,
2881
+ "columns": [
2882
+ {
2883
+ "value": "expires_at",
2884
+ "isExpression": false,
2885
+ "asc": true,
2886
+ "nullsFirst": false,
2887
+ "opclass": null
2888
+ }
2889
+ ],
2890
+ "isUnique": false,
2891
+ "where": null,
2892
+ "with": "",
2893
+ "method": "btree",
2894
+ "concurrently": false,
2895
+ "name": "refresh_tokens_expires_at_idx",
2896
+ "entityType": "indexes",
2897
+ "schema": "public",
2898
+ "table": "refresh_tokens"
2899
+ },
2900
+ {
2901
+ "nameExplicit": true,
2902
+ "columns": [
2903
+ {
2904
+ "value": "user_id",
2905
+ "isExpression": false,
2906
+ "asc": true,
2907
+ "nullsFirst": false,
2908
+ "opclass": null
2909
+ }
2910
+ ],
2911
+ "isUnique": false,
2912
+ "where": null,
2913
+ "with": "",
2914
+ "method": "btree",
2915
+ "concurrently": false,
2916
+ "name": "sessions_user_id_idx",
2917
+ "entityType": "indexes",
2918
+ "schema": "public",
2919
+ "table": "sessions"
2920
+ },
2921
+ {
2922
+ "nameExplicit": true,
2923
+ "columns": [
2924
+ {
2925
+ "value": "expires_at",
2926
+ "isExpression": false,
2927
+ "asc": true,
2928
+ "nullsFirst": false,
2929
+ "opclass": null
2930
+ }
2931
+ ],
2932
+ "isUnique": false,
2933
+ "where": null,
2934
+ "with": "",
2935
+ "method": "btree",
2936
+ "concurrently": false,
2937
+ "name": "sessions_expires_at_idx",
2938
+ "entityType": "indexes",
2939
+ "schema": "public",
2940
+ "table": "sessions"
2941
+ },
2942
+ {
2943
+ "nameExplicit": true,
2944
+ "columns": [
2945
+ {
2946
+ "value": "role",
2947
+ "isExpression": false,
2948
+ "asc": true,
2949
+ "nullsFirst": false,
2950
+ "opclass": null
2951
+ },
2952
+ {
2953
+ "value": "created_at",
2954
+ "isExpression": false,
2955
+ "asc": false,
2956
+ "nullsFirst": false,
2957
+ "opclass": null
2958
+ }
2959
+ ],
2960
+ "isUnique": false,
2961
+ "where": null,
2962
+ "with": "",
2963
+ "method": "btree",
2964
+ "concurrently": false,
2965
+ "name": "users_role_created_at_idx",
2966
+ "entityType": "indexes",
2967
+ "schema": "public",
2968
+ "table": "users"
2969
+ },
2970
+ {
2971
+ "nameExplicit": true,
2972
+ "columns": [
2973
+ {
2974
+ "value": "parent_affiliate_id",
2975
+ "isExpression": false,
2976
+ "asc": true,
2977
+ "nullsFirst": false,
2978
+ "opclass": null
2979
+ }
2980
+ ],
2981
+ "isUnique": false,
2982
+ "where": null,
2983
+ "with": "",
2984
+ "method": "btree",
2985
+ "concurrently": false,
2986
+ "name": "users_parent_affiliate_id_idx",
2987
+ "entityType": "indexes",
2988
+ "schema": "public",
2989
+ "table": "users"
2990
+ },
2991
+ {
2992
+ "nameExplicit": true,
2993
+ "columns": [
2994
+ {
2995
+ "value": "user_id",
2996
+ "isExpression": false,
2997
+ "asc": true,
2998
+ "nullsFirst": false,
2999
+ "opclass": null
3000
+ },
3001
+ {
3002
+ "value": "purpose",
3003
+ "isExpression": false,
3004
+ "asc": true,
3005
+ "nullsFirst": false,
3006
+ "opclass": null
3007
+ }
3008
+ ],
3009
+ "isUnique": true,
3010
+ "where": null,
3011
+ "with": "",
3012
+ "method": "btree",
3013
+ "concurrently": false,
3014
+ "name": "verification_tokens_user_purpose_idx",
3015
+ "entityType": "indexes",
3016
+ "schema": "public",
3017
+ "table": "verification_tokens"
3018
+ },
3019
+ {
3020
+ "nameExplicit": false,
3021
+ "columns": [
3022
+ "actor_id"
3023
+ ],
3024
+ "schemaTo": "public",
3025
+ "tableTo": "users",
3026
+ "columnsTo": [
3027
+ "id"
3028
+ ],
3029
+ "onUpdate": "NO ACTION",
3030
+ "onDelete": "SET NULL",
3031
+ "name": "audit_logs_actor_id_users_id_fkey",
3032
+ "entityType": "fks",
3033
+ "schema": "public",
3034
+ "table": "audit_logs"
3035
+ },
3036
+ {
3037
+ "nameExplicit": false,
3038
+ "columns": [
3039
+ "subject_id"
3040
+ ],
3041
+ "schemaTo": "public",
3042
+ "tableTo": "users",
3043
+ "columnsTo": [
3044
+ "id"
3045
+ ],
3046
+ "onUpdate": "NO ACTION",
3047
+ "onDelete": "SET NULL",
3048
+ "name": "audit_logs_subject_id_users_id_fkey",
3049
+ "entityType": "fks",
3050
+ "schema": "public",
3051
+ "table": "audit_logs"
3052
+ },
3053
+ {
3054
+ "nameExplicit": false,
3055
+ "columns": [
3056
+ "affiliate_id"
3057
+ ],
3058
+ "schemaTo": "public",
3059
+ "tableTo": "users",
3060
+ "columnsTo": [
3061
+ "id"
3062
+ ],
3063
+ "onUpdate": "NO ACTION",
3064
+ "onDelete": "CASCADE",
3065
+ "name": "campaigns_affiliate_id_users_id_fkey",
3066
+ "entityType": "fks",
3067
+ "schema": "public",
3068
+ "table": "campaigns"
3069
+ },
3070
+ {
3071
+ "nameExplicit": false,
3072
+ "columns": [
3073
+ "casino_id"
3074
+ ],
3075
+ "schemaTo": "public",
3076
+ "tableTo": "casinos",
3077
+ "columnsTo": [
3078
+ "id"
3079
+ ],
3080
+ "onUpdate": "NO ACTION",
3081
+ "onDelete": "RESTRICT",
3082
+ "name": "campaigns_casino_id_casinos_id_fkey",
3083
+ "entityType": "fks",
3084
+ "schema": "public",
3085
+ "table": "campaigns"
3086
+ },
3087
+ {
3088
+ "nameExplicit": false,
3089
+ "columns": [
3090
+ "commission_id"
3091
+ ],
3092
+ "schemaTo": "public",
3093
+ "tableTo": "commissions",
3094
+ "columnsTo": [
3095
+ "id"
3096
+ ],
3097
+ "onUpdate": "NO ACTION",
3098
+ "onDelete": "RESTRICT",
3099
+ "name": "campaigns_commission_id_commissions_id_fkey",
3100
+ "entityType": "fks",
3101
+ "schema": "public",
3102
+ "table": "campaigns"
3103
+ },
3104
+ {
3105
+ "nameExplicit": false,
3106
+ "columns": [
3107
+ "commission_id"
3108
+ ],
3109
+ "schemaTo": "public",
3110
+ "tableTo": "commissions",
3111
+ "columnsTo": [
3112
+ "id"
3113
+ ],
3114
+ "onUpdate": "NO ACTION",
3115
+ "onDelete": "CASCADE",
3116
+ "name": "commission_rule_groups_commission_id_commissions_id_fkey",
3117
+ "entityType": "fks",
3118
+ "schema": "public",
3119
+ "table": "commission_rule_groups"
3120
+ },
3121
+ {
3122
+ "nameExplicit": false,
3123
+ "columns": [
3124
+ "rule_group_id"
3125
+ ],
3126
+ "schemaTo": "public",
3127
+ "tableTo": "commission_rule_groups",
3128
+ "columnsTo": [
3129
+ "id"
3130
+ ],
3131
+ "onUpdate": "NO ACTION",
3132
+ "onDelete": "CASCADE",
3133
+ "name": "commission_rules_rule_group_id_commission_rule_groups_id_fkey",
3134
+ "entityType": "fks",
3135
+ "schema": "public",
3136
+ "table": "commission_rules"
3137
+ },
3138
+ {
3139
+ "nameExplicit": false,
3140
+ "columns": [
3141
+ "commission_id"
3142
+ ],
3143
+ "schemaTo": "public",
3144
+ "tableTo": "commissions",
3145
+ "columnsTo": [
3146
+ "id"
3147
+ ],
3148
+ "onUpdate": "NO ACTION",
3149
+ "onDelete": "CASCADE",
3150
+ "name": "commission_casinos_commission_id_commissions_id_fkey",
3151
+ "entityType": "fks",
3152
+ "schema": "public",
3153
+ "table": "commission_casinos"
3154
+ },
3155
+ {
3156
+ "nameExplicit": false,
3157
+ "columns": [
3158
+ "casino_id"
3159
+ ],
3160
+ "schemaTo": "public",
3161
+ "tableTo": "casinos",
3162
+ "columnsTo": [
3163
+ "id"
3164
+ ],
3165
+ "onUpdate": "NO ACTION",
3166
+ "onDelete": "RESTRICT",
3167
+ "name": "commission_casinos_casino_id_casinos_id_fkey",
3168
+ "entityType": "fks",
3169
+ "schema": "public",
3170
+ "table": "commission_casinos"
3171
+ },
3172
+ {
3173
+ "nameExplicit": false,
3174
+ "columns": [
3175
+ "campaign_id"
3176
+ ],
3177
+ "schemaTo": "public",
3178
+ "tableTo": "campaigns",
3179
+ "columnsTo": [
3180
+ "id"
3181
+ ],
3182
+ "onUpdate": "NO ACTION",
3183
+ "onDelete": "NO ACTION",
3184
+ "name": "conversions_campaign_id_campaigns_id_fkey",
3185
+ "entityType": "fks",
3186
+ "schema": "public",
3187
+ "table": "conversions"
3188
+ },
3189
+ {
3190
+ "nameExplicit": false,
3191
+ "columns": [
3192
+ "casino_id"
3193
+ ],
3194
+ "schemaTo": "public",
3195
+ "tableTo": "casinos",
3196
+ "columnsTo": [
3197
+ "id"
3198
+ ],
3199
+ "onUpdate": "NO ACTION",
3200
+ "onDelete": "NO ACTION",
3201
+ "name": "conversions_casino_id_casinos_id_fkey",
3202
+ "entityType": "fks",
3203
+ "schema": "public",
3204
+ "table": "conversions"
3205
+ },
3206
+ {
3207
+ "nameExplicit": false,
3208
+ "columns": [
3209
+ "affiliate_id"
3210
+ ],
3211
+ "schemaTo": "public",
3212
+ "tableTo": "users",
3213
+ "columnsTo": [
3214
+ "id"
3215
+ ],
3216
+ "onUpdate": "NO ACTION",
3217
+ "onDelete": "NO ACTION",
3218
+ "name": "conversions_affiliate_id_users_id_fkey",
3219
+ "entityType": "fks",
3220
+ "schema": "public",
3221
+ "table": "conversions"
3222
+ },
3223
+ {
3224
+ "nameExplicit": false,
3225
+ "columns": [
3226
+ "affiliate_id"
3227
+ ],
3228
+ "schemaTo": "public",
3229
+ "tableTo": "users",
3230
+ "columnsTo": [
3231
+ "id"
3232
+ ],
3233
+ "onUpdate": "NO ACTION",
3234
+ "onDelete": "CASCADE",
3235
+ "name": "deals_affiliate_id_users_id_fkey",
3236
+ "entityType": "fks",
3237
+ "schema": "public",
3238
+ "table": "deals"
3239
+ },
3240
+ {
3241
+ "nameExplicit": false,
3242
+ "columns": [
3243
+ "commission_id"
3244
+ ],
3245
+ "schemaTo": "public",
3246
+ "tableTo": "commissions",
3247
+ "columnsTo": [
3248
+ "id"
3249
+ ],
3250
+ "onUpdate": "NO ACTION",
3251
+ "onDelete": "RESTRICT",
3252
+ "name": "deals_commission_id_commissions_id_fkey",
3253
+ "entityType": "fks",
3254
+ "schema": "public",
3255
+ "table": "deals"
3256
+ },
3257
+ {
3258
+ "nameExplicit": false,
3259
+ "columns": [
3260
+ "assigned_by_id"
3261
+ ],
3262
+ "schemaTo": "public",
3263
+ "tableTo": "users",
3264
+ "columnsTo": [
3265
+ "id"
3266
+ ],
3267
+ "onUpdate": "NO ACTION",
3268
+ "onDelete": "SET NULL",
3269
+ "name": "deals_assigned_by_id_users_id_fkey",
3270
+ "entityType": "fks",
3271
+ "schema": "public",
3272
+ "table": "deals"
3273
+ },
3274
+ {
3275
+ "nameExplicit": false,
3276
+ "columns": [
3277
+ "parent_deal_id"
3278
+ ],
3279
+ "schemaTo": "public",
3280
+ "tableTo": "deals",
3281
+ "columnsTo": [
3282
+ "id"
3283
+ ],
3284
+ "onUpdate": "NO ACTION",
3285
+ "onDelete": "CASCADE",
3286
+ "name": "deals_parent_deal_id_deals_id_fkey",
3287
+ "entityType": "fks",
3288
+ "schema": "public",
3289
+ "table": "deals"
3290
+ },
3291
+ {
3292
+ "nameExplicit": false,
3293
+ "columns": [
3294
+ "group_id"
3295
+ ],
3296
+ "schemaTo": "public",
3297
+ "tableTo": "groups",
3298
+ "columnsTo": [
3299
+ "id"
3300
+ ],
3301
+ "onUpdate": "NO ACTION",
3302
+ "onDelete": "CASCADE",
3303
+ "name": "group_permissions_group_id_groups_id_fkey",
3304
+ "entityType": "fks",
3305
+ "schema": "public",
3306
+ "table": "group_permissions"
3307
+ },
3308
+ {
3309
+ "nameExplicit": false,
3310
+ "columns": [
3311
+ "user_id"
3312
+ ],
3313
+ "schemaTo": "public",
3314
+ "tableTo": "users",
3315
+ "columnsTo": [
3316
+ "id"
3317
+ ],
3318
+ "onUpdate": "NO ACTION",
3319
+ "onDelete": "CASCADE",
3320
+ "name": "user_groups_user_id_users_id_fkey",
3321
+ "entityType": "fks",
3322
+ "schema": "public",
3323
+ "table": "user_groups"
3324
+ },
3325
+ {
3326
+ "nameExplicit": false,
3327
+ "columns": [
3328
+ "group_id"
3329
+ ],
3330
+ "schemaTo": "public",
3331
+ "tableTo": "groups",
3332
+ "columnsTo": [
3333
+ "id"
3334
+ ],
3335
+ "onUpdate": "NO ACTION",
3336
+ "onDelete": "CASCADE",
3337
+ "name": "user_groups_group_id_groups_id_fkey",
3338
+ "entityType": "fks",
3339
+ "schema": "public",
3340
+ "table": "user_groups"
3341
+ },
3342
+ {
3343
+ "nameExplicit": false,
3344
+ "columns": [
3345
+ "user_id"
3346
+ ],
3347
+ "schemaTo": "public",
3348
+ "tableTo": "users",
3349
+ "columnsTo": [
3350
+ "id"
3351
+ ],
3352
+ "onUpdate": "NO ACTION",
3353
+ "onDelete": "CASCADE",
3354
+ "name": "user_permissions_user_id_users_id_fkey",
3355
+ "entityType": "fks",
3356
+ "schema": "public",
3357
+ "table": "user_permissions"
3358
+ },
3359
+ {
3360
+ "nameExplicit": false,
3361
+ "columns": [
3362
+ "updated_by"
3363
+ ],
3364
+ "schemaTo": "public",
3365
+ "tableTo": "users",
3366
+ "columnsTo": [
3367
+ "id"
3368
+ ],
3369
+ "onUpdate": "NO ACTION",
3370
+ "onDelete": "SET NULL",
3371
+ "name": "platform_settings_updated_by_users_id_fkey",
3372
+ "entityType": "fks",
3373
+ "schema": "public",
3374
+ "table": "platform_settings"
3375
+ },
3376
+ {
3377
+ "nameExplicit": false,
3378
+ "columns": [
3379
+ "session_id"
3380
+ ],
3381
+ "schemaTo": "public",
3382
+ "tableTo": "sessions",
3383
+ "columnsTo": [
3384
+ "id"
3385
+ ],
3386
+ "onUpdate": "NO ACTION",
3387
+ "onDelete": "CASCADE",
3388
+ "name": "refresh_tokens_session_id_sessions_id_fkey",
3389
+ "entityType": "fks",
3390
+ "schema": "public",
3391
+ "table": "refresh_tokens"
3392
+ },
3393
+ {
3394
+ "nameExplicit": false,
3395
+ "columns": [
3396
+ "user_id"
3397
+ ],
3398
+ "schemaTo": "public",
3399
+ "tableTo": "users",
3400
+ "columnsTo": [
3401
+ "id"
3402
+ ],
3403
+ "onUpdate": "NO ACTION",
3404
+ "onDelete": "CASCADE",
3405
+ "name": "sessions_user_id_users_id_fkey",
3406
+ "entityType": "fks",
3407
+ "schema": "public",
3408
+ "table": "sessions"
3409
+ },
3410
+ {
3411
+ "nameExplicit": false,
3412
+ "columns": [
3413
+ "user_id"
3414
+ ],
3415
+ "schemaTo": "public",
3416
+ "tableTo": "users",
3417
+ "columnsTo": [
3418
+ "id"
3419
+ ],
3420
+ "onUpdate": "NO ACTION",
3421
+ "onDelete": "CASCADE",
3422
+ "name": "user_preferences_user_id_users_id_fkey",
3423
+ "entityType": "fks",
3424
+ "schema": "public",
3425
+ "table": "user_preferences"
3426
+ },
3427
+ {
3428
+ "nameExplicit": false,
3429
+ "columns": [
3430
+ "approved_by"
3431
+ ],
3432
+ "schemaTo": "public",
3433
+ "tableTo": "users",
3434
+ "columnsTo": [
3435
+ "id"
3436
+ ],
3437
+ "onUpdate": "NO ACTION",
3438
+ "onDelete": "SET NULL",
3439
+ "name": "users_approved_by_users_id_fkey",
3440
+ "entityType": "fks",
3441
+ "schema": "public",
3442
+ "table": "users"
3443
+ },
3444
+ {
3445
+ "nameExplicit": false,
3446
+ "columns": [
3447
+ "parent_affiliate_id"
3448
+ ],
3449
+ "schemaTo": "public",
3450
+ "tableTo": "users",
3451
+ "columnsTo": [
3452
+ "id"
3453
+ ],
3454
+ "onUpdate": "NO ACTION",
3455
+ "onDelete": "SET NULL",
3456
+ "name": "users_parent_affiliate_id_users_id_fkey",
3457
+ "entityType": "fks",
3458
+ "schema": "public",
3459
+ "table": "users"
3460
+ },
3461
+ {
3462
+ "nameExplicit": false,
3463
+ "columns": [
3464
+ "user_id"
3465
+ ],
3466
+ "schemaTo": "public",
3467
+ "tableTo": "users",
3468
+ "columnsTo": [
3469
+ "id"
3470
+ ],
3471
+ "onUpdate": "NO ACTION",
3472
+ "onDelete": "CASCADE",
3473
+ "name": "verification_tokens_user_id_users_id_fkey",
3474
+ "entityType": "fks",
3475
+ "schema": "public",
3476
+ "table": "verification_tokens"
3477
+ },
3478
+ {
3479
+ "columns": [
3480
+ "commission_id",
3481
+ "casino_id"
3482
+ ],
3483
+ "nameExplicit": false,
3484
+ "name": "commission_casinos_pkey",
3485
+ "entityType": "pks",
3486
+ "schema": "public",
3487
+ "table": "commission_casinos"
3488
+ },
3489
+ {
3490
+ "columns": [
3491
+ "group_id",
3492
+ "permission"
3493
+ ],
3494
+ "nameExplicit": false,
3495
+ "name": "group_permissions_pkey",
3496
+ "entityType": "pks",
3497
+ "schema": "public",
3498
+ "table": "group_permissions"
3499
+ },
3500
+ {
3501
+ "columns": [
3502
+ "user_id",
3503
+ "group_id"
3504
+ ],
3505
+ "nameExplicit": false,
3506
+ "name": "user_groups_pkey",
3507
+ "entityType": "pks",
3508
+ "schema": "public",
3509
+ "table": "user_groups"
3510
+ },
3511
+ {
3512
+ "columns": [
3513
+ "user_id",
3514
+ "permission"
3515
+ ],
3516
+ "nameExplicit": false,
3517
+ "name": "user_permissions_pkey",
3518
+ "entityType": "pks",
3519
+ "schema": "public",
3520
+ "table": "user_permissions"
3521
+ },
3522
+ {
3523
+ "columns": [
3524
+ "id"
3525
+ ],
3526
+ "nameExplicit": false,
3527
+ "name": "analytics_outbox_pkey",
3528
+ "schema": "public",
3529
+ "table": "analytics_outbox",
3530
+ "entityType": "pks"
3531
+ },
3532
+ {
3533
+ "columns": [
3534
+ "id"
3535
+ ],
3536
+ "nameExplicit": false,
3537
+ "name": "audit_logs_pkey",
3538
+ "schema": "public",
3539
+ "table": "audit_logs",
3540
+ "entityType": "pks"
3541
+ },
3542
+ {
3543
+ "columns": [
3544
+ "id"
3545
+ ],
3546
+ "nameExplicit": false,
3547
+ "name": "campaigns_pkey",
3548
+ "schema": "public",
3549
+ "table": "campaigns",
3550
+ "entityType": "pks"
3551
+ },
3552
+ {
3553
+ "columns": [
3554
+ "id"
3555
+ ],
3556
+ "nameExplicit": false,
3557
+ "name": "casinos_pkey",
3558
+ "schema": "public",
3559
+ "table": "casinos",
3560
+ "entityType": "pks"
3561
+ },
3562
+ {
3563
+ "columns": [
3564
+ "id"
3565
+ ],
3566
+ "nameExplicit": false,
3567
+ "name": "commission_rule_groups_pkey",
3568
+ "schema": "public",
3569
+ "table": "commission_rule_groups",
3570
+ "entityType": "pks"
3571
+ },
3572
+ {
3573
+ "columns": [
3574
+ "id"
3575
+ ],
3576
+ "nameExplicit": false,
3577
+ "name": "commission_rules_pkey",
3578
+ "schema": "public",
3579
+ "table": "commission_rules",
3580
+ "entityType": "pks"
3581
+ },
3582
+ {
3583
+ "columns": [
3584
+ "id"
3585
+ ],
3586
+ "nameExplicit": false,
3587
+ "name": "commissions_pkey",
3588
+ "schema": "public",
3589
+ "table": "commissions",
3590
+ "entityType": "pks"
3591
+ },
3592
+ {
3593
+ "columns": [
3594
+ "id"
3595
+ ],
3596
+ "nameExplicit": false,
3597
+ "name": "conversions_pkey",
3598
+ "schema": "public",
3599
+ "table": "conversions",
3600
+ "entityType": "pks"
3601
+ },
3602
+ {
3603
+ "columns": [
3604
+ "id"
3605
+ ],
3606
+ "nameExplicit": false,
3607
+ "name": "deals_pkey",
3608
+ "schema": "public",
3609
+ "table": "deals",
3610
+ "entityType": "pks"
3611
+ },
3612
+ {
3613
+ "columns": [
3614
+ "id"
3615
+ ],
3616
+ "nameExplicit": false,
3617
+ "name": "groups_pkey",
3618
+ "schema": "public",
3619
+ "table": "groups",
3620
+ "entityType": "pks"
3621
+ },
3622
+ {
3623
+ "columns": [
3624
+ "id"
3625
+ ],
3626
+ "nameExplicit": false,
3627
+ "name": "platform_settings_pkey",
3628
+ "schema": "public",
3629
+ "table": "platform_settings",
3630
+ "entityType": "pks"
3631
+ },
3632
+ {
3633
+ "columns": [
3634
+ "id"
3635
+ ],
3636
+ "nameExplicit": false,
3637
+ "name": "refresh_tokens_pkey",
3638
+ "schema": "public",
3639
+ "table": "refresh_tokens",
3640
+ "entityType": "pks"
3641
+ },
3642
+ {
3643
+ "columns": [
3644
+ "id"
3645
+ ],
3646
+ "nameExplicit": false,
3647
+ "name": "sessions_pkey",
3648
+ "schema": "public",
3649
+ "table": "sessions",
3650
+ "entityType": "pks"
3651
+ },
3652
+ {
3653
+ "columns": [
3654
+ "user_id"
3655
+ ],
3656
+ "nameExplicit": false,
3657
+ "name": "user_preferences_pkey",
3658
+ "schema": "public",
3659
+ "table": "user_preferences",
3660
+ "entityType": "pks"
3661
+ },
3662
+ {
3663
+ "columns": [
3664
+ "id"
3665
+ ],
3666
+ "nameExplicit": false,
3667
+ "name": "users_pkey",
3668
+ "schema": "public",
3669
+ "table": "users",
3670
+ "entityType": "pks"
3671
+ },
3672
+ {
3673
+ "columns": [
3674
+ "id"
3675
+ ],
3676
+ "nameExplicit": false,
3677
+ "name": "verification_tokens_pkey",
3678
+ "schema": "public",
3679
+ "table": "verification_tokens",
3680
+ "entityType": "pks"
3681
+ },
3682
+ {
3683
+ "nameExplicit": false,
3684
+ "columns": [
3685
+ "slug"
3686
+ ],
3687
+ "nullsNotDistinct": false,
3688
+ "name": "campaigns_slug_key",
3689
+ "schema": "public",
3690
+ "table": "campaigns",
3691
+ "entityType": "uniques"
3692
+ },
3693
+ {
3694
+ "nameExplicit": false,
3695
+ "columns": [
3696
+ "name"
3697
+ ],
3698
+ "nullsNotDistinct": false,
3699
+ "name": "casinos_name_key",
3700
+ "schema": "public",
3701
+ "table": "casinos",
3702
+ "entityType": "uniques"
3703
+ },
3704
+ {
3705
+ "nameExplicit": false,
3706
+ "columns": [
3707
+ "name"
3708
+ ],
3709
+ "nullsNotDistinct": false,
3710
+ "name": "groups_name_key",
3711
+ "schema": "public",
3712
+ "table": "groups",
3713
+ "entityType": "uniques"
3714
+ },
3715
+ {
3716
+ "nameExplicit": false,
3717
+ "columns": [
3718
+ "token_hash"
3719
+ ],
3720
+ "nullsNotDistinct": false,
3721
+ "name": "refresh_tokens_token_hash_key",
3722
+ "schema": "public",
3723
+ "table": "refresh_tokens",
3724
+ "entityType": "uniques"
3725
+ },
3726
+ {
3727
+ "nameExplicit": false,
3728
+ "columns": [
3729
+ "email"
3730
+ ],
3731
+ "nullsNotDistinct": false,
3732
+ "name": "users_email_key",
3733
+ "schema": "public",
3734
+ "table": "users",
3735
+ "entityType": "uniques"
3736
+ },
3737
+ {
3738
+ "nameExplicit": false,
3739
+ "columns": [
3740
+ "token_hash"
3741
+ ],
3742
+ "nullsNotDistinct": false,
3743
+ "name": "verification_tokens_token_hash_key",
3744
+ "schema": "public",
3745
+ "table": "verification_tokens",
3746
+ "entityType": "uniques"
3747
+ }
3748
+ ],
3749
+ "renames": []
3750
+ }