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