@glissandoo/lib 1.123.2 → 1.123.3

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 (521) hide show
  1. package/package.json +1 -1
  2. package/types/firestore.ts +1998 -0
  3. package/types/messagebirdChatWidget.ts +20 -0
  4. package/types/minVersion.ts +4 -0
  5. package/types/payoutRule.ts +132 -0
  6. package/types/supabase/generated.ts +1682 -0
  7. package/types/supabase/index.ts +36 -0
  8. package/types/supabase/overwrites/comm.ts +18 -0
  9. package/types/supabase/overwrites/comm_history.ts +10 -0
  10. package/types/supabase/overwrites/event.ts +28 -0
  11. package/types/supabase/overwrites/event_history.ts +10 -0
  12. package/types/supabase/overwrites/group.ts +49 -0
  13. package/types/supabase/overwrites/group_history.ts +9 -0
  14. package/types/supabase/overwrites/index.ts +7 -0
  15. package/types/supabase/overwrites/offer.ts +15 -0
  16. package/types/supabase/overwrites/offer_history.ts +10 -0
  17. package/types/supabase/overwrites/repertoire.ts +12 -0
  18. package/types/supabase/overwrites/repertoire_history.ts +10 -0
  19. package/types/supabase/overwrites/utils.ts +4 -0
  20. package/.firebaserc +0 -7
  21. package/.husky/pre-commit +0 -4
  22. package/README.md +0 -70
  23. package/scripts/setHusky.js +0 -11
  24. package/supabase/.dev.env +0 -1
  25. package/supabase/.prod.env +0 -1
  26. package/supabase/.sample.env +0 -2
  27. package/supabase/README.md +0 -126
  28. package/supabase/config.toml +0 -68
  29. package/supabase/migrations/20231117044943_remote_schema.sql +0 -228
  30. package/supabase/migrations/20231117124947_event_selection_mode_closed_at_nullable.sql +0 -1
  31. package/supabase/migrations/20231121002132_remote_schema.sql +0 -31
  32. package/supabase/migrations/20231121004031_references_nullable.sql +0 -3
  33. package/supabase/migrations/20231121014339_updated_at_trigger.sql +0 -13
  34. package/supabase/migrations/20231122111241_remote_schema.sql +0 -25
  35. package/supabase/migrations/20231124151424_snake_case_to_camel_case.sql +0 -105
  36. package/supabase/migrations/20231129133721_add_columns_for_sites.sql +0 -11
  37. package/supabase/migrations/20231129142806_promoter_can_be_null.sql +0 -3
  38. package/supabase/migrations/20231130125327_group_location_latlon.sql +0 -3
  39. package/supabase/migrations/20231130150154_error_solvings.sql +0 -9
  40. package/supabase/migrations/20240405115914_new_columns.sql +0 -9
  41. package/supabase/migrations/20240405121956_init_offer.sql +0 -81
  42. package/supabase/migrations/20240503032440_add_columns_to_offer.sql +0 -11
  43. package/supabase/migrations/20240503101641_add_column_createdOn.sql +0 -19
  44. package/supabase/migrations/20240506035104_add_groupInfo_to_offer.sql +0 -10
  45. package/supabase/migrations/20240510110328_add_relationships_to_offer.sql +0 -9
  46. package/supabase/migrations/20240514100316_offers_public.sql +0 -9
  47. package/supabase/migrations/20260506013030_add_user_mirror.sql +0 -50
  48. package/supabase/migrations/20260506013031_add_user_group_mirror.sql +0 -31
  49. package/supabase/migrations/20260529000000_init_group_payment.sql +0 -79
  50. package/supabase/migrations/20260529120000_group_payment_realtime.sql +0 -19
  51. package/supabase/migrations/20260529130000_group_payment_anon_read.sql +0 -16
  52. package/supabase/migrations/20260601000000_group_payment_concept_norm.sql +0 -20
  53. package/supabase/migrations/20260605000000_init_partnership_domain.sql +0 -333
  54. package/supabase/migrations/20260605000100_partnership_recurring_rpc.sql +0 -62
  55. package/supabase/migrations/20260606000000_partnership_payer.sql +0 -83
  56. package/supabase/migrations/20260607000000_partnership_partner_number_not_unique.sql +0 -10
  57. package/supabase/migrations/20260608000000_partnership_payment_method_bizum.sql +0 -2
  58. package/supabase/migrations/20260609000000_partnership_payment_sepa_end_to_end.sql +0 -13
  59. package/supabase/migrations/20260617000000_partnership_portal_query_indexes.sql +0 -23
  60. package/supabase/migrations/20260618000000_partnership_communication_attachments.sql +0 -5
  61. package/supabase/migrations/20260701000000_partnership_recurring_rpc_drop_ambiguous.sql +0 -29
  62. package/supabase/migrations/20260713191700_add_personal_calendar_feed.sql +0 -506
  63. package/supabase/migrations/20260714193734_add_pending_calendar_invitations.sql +0 -403
  64. package/supabase/migrations/20260714205623_add_event_datetime_end_backfill.sql +0 -64
  65. package/supabase/migrations/20260729161126_remove_calendar_event_history_dependency.sql +0 -19
  66. package/supabase/migrations/20260729161202_reconcile_production_remote_schema.sql +0 -135
  67. package/supabase/migrations/20260804120000_add_calendar_feed_token_cipher.sql +0 -9
  68. package/supabase/migrations/20260805120000_replace_usergroup_with_group_playerids.sql +0 -363
  69. package/supabase/seed.sql +0 -2973
  70. /package/{lib/functions → functions}/auth.d.ts +0 -0
  71. /package/{lib/functions → functions}/auth.js +0 -0
  72. /package/{lib/functions → functions}/calendarFeed.d.ts +0 -0
  73. /package/{lib/functions → functions}/calendarFeed.js +0 -0
  74. /package/{lib/functions → functions}/communication.d.ts +0 -0
  75. /package/{lib/functions → functions}/communication.js +0 -0
  76. /package/{lib/functions → functions}/communicationComment.d.ts +0 -0
  77. /package/{lib/functions → functions}/communicationComment.js +0 -0
  78. /package/{lib/functions → functions}/customer.d.ts +0 -0
  79. /package/{lib/functions → functions}/customer.js +0 -0
  80. /package/{lib/functions → functions}/customerGroup.d.ts +0 -0
  81. /package/{lib/functions → functions}/customerGroup.js +0 -0
  82. /package/{lib/functions → functions}/event.d.ts +0 -0
  83. /package/{lib/functions → functions}/event.js +0 -0
  84. /package/{lib/functions → functions}/eventPlayer.d.ts +0 -0
  85. /package/{lib/functions → functions}/eventPlayer.js +0 -0
  86. /package/{lib/functions → functions}/eventRepertory.d.ts +0 -0
  87. /package/{lib/functions → functions}/eventRepertory.js +0 -0
  88. /package/{lib/functions → functions}/eventoPayout.d.ts +0 -0
  89. /package/{lib/functions → functions}/eventoPayout.js +0 -0
  90. /package/{lib/functions → functions}/federation.d.ts +0 -0
  91. /package/{lib/functions → functions}/federation.js +0 -0
  92. /package/{lib/functions → functions}/federationPartnership.d.ts +0 -0
  93. /package/{lib/functions → functions}/federationPartnership.js +0 -0
  94. /package/{lib/functions → functions}/group.d.ts +0 -0
  95. /package/{lib/functions → functions}/group.js +0 -0
  96. /package/{lib/functions → functions}/groupEventStage.d.ts +0 -0
  97. /package/{lib/functions → functions}/groupEventStage.js +0 -0
  98. /package/{lib/functions → functions}/groupModule.d.ts +0 -0
  99. /package/{lib/functions → functions}/groupModule.js +0 -0
  100. /package/{lib/functions → functions}/groupPayment.d.ts +0 -0
  101. /package/{lib/functions → functions}/groupPayment.js +0 -0
  102. /package/{lib/functions → functions}/groupPayoutRule.d.ts +0 -0
  103. /package/{lib/functions → functions}/groupPayoutRule.js +0 -0
  104. /package/{lib/functions → functions}/groupPlayer.d.ts +0 -0
  105. /package/{lib/functions → functions}/groupPlayer.js +0 -0
  106. /package/{lib/functions → functions}/groupRepertory.d.ts +0 -0
  107. /package/{lib/functions → functions}/groupRepertory.js +0 -0
  108. /package/{lib/functions → functions}/index.d.ts +0 -0
  109. /package/{lib/functions → functions}/index.js +0 -0
  110. /package/{lib/functions → functions}/inventory.d.ts +0 -0
  111. /package/{lib/functions → functions}/inventory.js +0 -0
  112. /package/{lib/functions → functions}/inventoryItem.d.ts +0 -0
  113. /package/{lib/functions → functions}/inventoryItem.js +0 -0
  114. /package/{lib/functions → functions}/jwt.d.ts +0 -0
  115. /package/{lib/functions → functions}/jwt.js +0 -0
  116. /package/{lib/functions → functions}/misc.d.ts +0 -0
  117. /package/{lib/functions → functions}/misc.js +0 -0
  118. /package/{lib/functions → functions}/notification.d.ts +0 -0
  119. /package/{lib/functions → functions}/notification.js +0 -0
  120. /package/{lib/functions → functions}/offer.d.ts +0 -0
  121. /package/{lib/functions → functions}/offer.js +0 -0
  122. /package/{lib/functions → functions}/offerApplicant.d.ts +0 -0
  123. /package/{lib/functions → functions}/offerApplicant.js +0 -0
  124. /package/{lib/functions → functions}/partnership.d.ts +0 -0
  125. /package/{lib/functions → functions}/partnership.js +0 -0
  126. /package/{lib/functions → functions}/partnershipCommunication.d.ts +0 -0
  127. /package/{lib/functions → functions}/partnershipCommunication.js +0 -0
  128. /package/{lib/functions → functions}/partnershipGroup.d.ts +0 -0
  129. /package/{lib/functions → functions}/partnershipGroup.js +0 -0
  130. /package/{lib/functions → functions}/partnershipPartner.d.ts +0 -0
  131. /package/{lib/functions → functions}/partnershipPartner.js +0 -0
  132. /package/{lib/functions → functions}/partnershipPayment.d.ts +0 -0
  133. /package/{lib/functions → functions}/partnershipPayment.js +0 -0
  134. /package/{lib/functions → functions}/partnershipPlan.d.ts +0 -0
  135. /package/{lib/functions → functions}/partnershipPlan.js +0 -0
  136. /package/{lib/functions → functions}/partnershipSepaPaymentGroup.d.ts +0 -0
  137. /package/{lib/functions → functions}/partnershipSepaPaymentGroup.js +0 -0
  138. /package/{lib/functions → functions}/partnershipSubscription.d.ts +0 -0
  139. /package/{lib/functions → functions}/partnershipSubscription.js +0 -0
  140. /package/{lib/functions → functions}/regions.d.ts +0 -0
  141. /package/{lib/functions → functions}/regions.js +0 -0
  142. /package/{lib/functions → functions}/subscription.d.ts +0 -0
  143. /package/{lib/functions → functions}/subscription.js +0 -0
  144. /package/{lib/functions → functions}/user.d.ts +0 -0
  145. /package/{lib/functions → functions}/user.js +0 -0
  146. /package/{lib/functions → functions}/userNotification.d.ts +0 -0
  147. /package/{lib/functions → functions}/userNotification.js +0 -0
  148. /package/{lib/helpers → helpers}/appScenes.d.ts +0 -0
  149. /package/{lib/helpers → helpers}/appScenes.js +0 -0
  150. /package/{lib/helpers → helpers}/audios.d.ts +0 -0
  151. /package/{lib/helpers → helpers}/audios.js +0 -0
  152. /package/{lib/helpers → helpers}/auth.d.ts +0 -0
  153. /package/{lib/helpers → helpers}/auth.js +0 -0
  154. /package/{lib/helpers → helpers}/badges.d.ts +0 -0
  155. /package/{lib/helpers → helpers}/badges.js +0 -0
  156. /package/{lib/helpers → helpers}/collections.d.ts +0 -0
  157. /package/{lib/helpers → helpers}/collections.js +0 -0
  158. /package/{lib/helpers → helpers}/communicationTemplate/index.d.ts +0 -0
  159. /package/{lib/helpers → helpers}/communicationTemplate/index.js +0 -0
  160. /package/{lib/helpers → helpers}/communicationTemplate/newGroup.d.ts +0 -0
  161. /package/{lib/helpers → helpers}/communicationTemplate/newGroup.js +0 -0
  162. /package/{lib/helpers → helpers}/communicationTemplate/newMember.d.ts +0 -0
  163. /package/{lib/helpers → helpers}/communicationTemplate/newMember.js +0 -0
  164. /package/{lib/helpers → helpers}/countries.d.ts +0 -0
  165. /package/{lib/helpers → helpers}/countries.js +0 -0
  166. /package/{lib/helpers → helpers}/currency.d.ts +0 -0
  167. /package/{lib/helpers → helpers}/currency.js +0 -0
  168. /package/{lib/helpers → helpers}/dlinks.d.ts +0 -0
  169. /package/{lib/helpers → helpers}/dlinks.js +0 -0
  170. /package/{lib/helpers → helpers}/errors.d.ts +0 -0
  171. /package/{lib/helpers → helpers}/errors.js +0 -0
  172. /package/{lib/helpers → helpers}/fileSections/index.d.ts +0 -0
  173. /package/{lib/helpers → helpers}/fileSections/index.js +0 -0
  174. /package/{lib/helpers → helpers}/fileSections/orders.d.ts +0 -0
  175. /package/{lib/helpers → helpers}/fileSections/orders.js +0 -0
  176. /package/{lib/helpers → helpers}/glissandooAdmin.d.ts +0 -0
  177. /package/{lib/helpers → helpers}/glissandooAdmin.js +0 -0
  178. /package/{lib/helpers → helpers}/instruments/index.d.ts +0 -0
  179. /package/{lib/helpers → helpers}/instruments/index.js +0 -0
  180. /package/{lib/helpers → helpers}/instruments/lists.d.ts +0 -0
  181. /package/{lib/helpers → helpers}/instruments/lists.js +0 -0
  182. /package/{lib/helpers → helpers}/instruments/orders.d.ts +0 -0
  183. /package/{lib/helpers → helpers}/instruments/orders.js +0 -0
  184. /package/{lib/helpers → helpers}/musicStyles/index.d.ts +0 -0
  185. /package/{lib/helpers → helpers}/musicStyles/index.js +0 -0
  186. /package/{lib/helpers → helpers}/musicStyles/orders.d.ts +0 -0
  187. /package/{lib/helpers → helpers}/musicStyles/orders.js +0 -0
  188. /package/{lib/helpers → helpers}/notifications/index.d.ts +0 -0
  189. /package/{lib/helpers → helpers}/notifications/index.js +0 -0
  190. /package/{lib/helpers → helpers}/notifications/placeholders.d.ts +0 -0
  191. /package/{lib/helpers → helpers}/notifications/placeholders.js +0 -0
  192. /package/{lib/helpers → helpers}/objects.d.ts +0 -0
  193. /package/{lib/helpers → helpers}/objects.js +0 -0
  194. /package/{lib/helpers → helpers}/paymentForecast.d.ts +0 -0
  195. /package/{lib/helpers → helpers}/paymentForecast.js +0 -0
  196. /package/{lib/helpers → helpers}/payoutRules.d.ts +0 -0
  197. /package/{lib/helpers → helpers}/payoutRules.js +0 -0
  198. /package/{lib/helpers → helpers}/plans.d.ts +0 -0
  199. /package/{lib/helpers → helpers}/plans.js +0 -0
  200. /package/{lib/helpers → helpers}/rates.d.ts +0 -0
  201. /package/{lib/helpers → helpers}/rates.js +0 -0
  202. /package/{lib/helpers → helpers}/reasons.d.ts +0 -0
  203. /package/{lib/helpers → helpers}/reasons.js +0 -0
  204. /package/{lib/helpers → helpers}/slate.d.ts +0 -0
  205. /package/{lib/helpers → helpers}/slate.js +0 -0
  206. /package/{lib/helpers → helpers}/styles.d.ts +0 -0
  207. /package/{lib/helpers → helpers}/styles.js +0 -0
  208. /package/{lib/helpers → helpers}/ts-extras/array-includes.d.ts +0 -0
  209. /package/{lib/helpers → helpers}/ts-extras/array-includes.js +0 -0
  210. /package/{lib/helpers → helpers}/ts-extras/as-mutable.d.ts +0 -0
  211. /package/{lib/helpers → helpers}/ts-extras/as-mutable.js +0 -0
  212. /package/{lib/helpers → helpers}/ts-extras/assert-error.d.ts +0 -0
  213. /package/{lib/helpers → helpers}/ts-extras/assert-error.js +0 -0
  214. /package/{lib/helpers → helpers}/ts-extras/index.d.ts +0 -0
  215. /package/{lib/helpers → helpers}/ts-extras/index.js +0 -0
  216. /package/{lib/helpers → helpers}/ts-extras/is-defined.d.ts +0 -0
  217. /package/{lib/helpers → helpers}/ts-extras/is-defined.js +0 -0
  218. /package/{lib/helpers → helpers}/ts-extras/is-empty.d.ts +0 -0
  219. /package/{lib/helpers → helpers}/ts-extras/is-empty.js +0 -0
  220. /package/{lib/helpers → helpers}/ts-extras/is-finite.d.ts +0 -0
  221. /package/{lib/helpers → helpers}/ts-extras/is-finite.js +0 -0
  222. /package/{lib/helpers → helpers}/ts-extras/is-infinite.d.ts +0 -0
  223. /package/{lib/helpers → helpers}/ts-extras/is-infinite.js +0 -0
  224. /package/{lib/helpers → helpers}/ts-extras/is-integer.d.ts +0 -0
  225. /package/{lib/helpers → helpers}/ts-extras/is-integer.js +0 -0
  226. /package/{lib/helpers → helpers}/ts-extras/is-present.d.ts +0 -0
  227. /package/{lib/helpers → helpers}/ts-extras/is-present.js +0 -0
  228. /package/{lib/helpers → helpers}/ts-extras/is-safe-integer.d.ts +0 -0
  229. /package/{lib/helpers → helpers}/ts-extras/is-safe-integer.js +0 -0
  230. /package/{lib/helpers → helpers}/ts-extras/object-entries.d.ts +0 -0
  231. /package/{lib/helpers → helpers}/ts-extras/object-entries.js +0 -0
  232. /package/{lib/helpers → helpers}/ts-extras/object-from-entries.d.ts +0 -0
  233. /package/{lib/helpers → helpers}/ts-extras/object-from-entries.js +0 -0
  234. /package/{lib/helpers → helpers}/ts-extras/object-has-own.d.ts +0 -0
  235. /package/{lib/helpers → helpers}/ts-extras/object-has-own.js +0 -0
  236. /package/{lib/helpers → helpers}/ts-extras/object-keys.d.ts +0 -0
  237. /package/{lib/helpers → helpers}/ts-extras/object-keys.js +0 -0
  238. /package/{lib/helpers → helpers}/ts-extras/set-has.d.ts +0 -0
  239. /package/{lib/helpers → helpers}/ts-extras/set-has.js +0 -0
  240. /package/{lib/helpers → helpers}/types.d.ts +0 -0
  241. /package/{lib/helpers → helpers}/types.js +0 -0
  242. /package/{lib/helpers → helpers}/utils.d.ts +0 -0
  243. /package/{lib/helpers → helpers}/utils.js +0 -0
  244. /package/{lib/index.d.ts → index.d.ts} +0 -0
  245. /package/{lib/index.js → index.js} +0 -0
  246. /package/{lib/lang → lang}/ca.json +0 -0
  247. /package/{lib/lang → lang}/de.json +0 -0
  248. /package/{lib/lang → lang}/en.json +0 -0
  249. /package/{lib/lang → lang}/es.json +0 -0
  250. /package/{lib/lang → lang}/eu.json +0 -0
  251. /package/{lib/lang → lang}/fr.json +0 -0
  252. /package/{lib/lang → lang}/gl.json +0 -0
  253. /package/{lib/lang → lang}/index.d.ts +0 -0
  254. /package/{lib/lang → lang}/index.js +0 -0
  255. /package/{lib/lang → lang}/it.json +0 -0
  256. /package/{lib/lang → lang}/nl.json +0 -0
  257. /package/{lib/lang → lang}/pt.json +0 -0
  258. /package/{lib/models → models}/Communication/Comment/index.d.ts +0 -0
  259. /package/{lib/models → models}/Communication/Comment/index.js +0 -0
  260. /package/{lib/models → models}/Communication/Comment/types.d.ts +0 -0
  261. /package/{lib/models → models}/Communication/Comment/types.js +0 -0
  262. /package/{lib/models → models}/Communication/index.d.ts +0 -0
  263. /package/{lib/models → models}/Communication/index.js +0 -0
  264. /package/{lib/models → models}/Communication/types.d.ts +0 -0
  265. /package/{lib/models → models}/Communication/types.js +0 -0
  266. /package/{lib/models → models}/Counters/Group/Analytics/index.d.ts +0 -0
  267. /package/{lib/models → models}/Counters/Group/Analytics/index.js +0 -0
  268. /package/{lib/models → models}/Counters/Group/Analytics/types.d.ts +0 -0
  269. /package/{lib/models → models}/Counters/Group/Analytics/types.js +0 -0
  270. /package/{lib/models → models}/Counters/Group/index.d.ts +0 -0
  271. /package/{lib/models → models}/Counters/Group/index.js +0 -0
  272. /package/{lib/models → models}/Counters/Group/types.d.ts +0 -0
  273. /package/{lib/models → models}/Counters/Group/types.js +0 -0
  274. /package/{lib/models → models}/Counters/event.d.ts +0 -0
  275. /package/{lib/models → models}/Counters/event.js +0 -0
  276. /package/{lib/models → models}/Counters/index.d.ts +0 -0
  277. /package/{lib/models → models}/Counters/index.js +0 -0
  278. /package/{lib/models → models}/Counters/types.d.ts +0 -0
  279. /package/{lib/models → models}/Counters/types.js +0 -0
  280. /package/{lib/models → models}/Customer/Group/index.d.ts +0 -0
  281. /package/{lib/models → models}/Customer/Group/index.js +0 -0
  282. /package/{lib/models → models}/Customer/Group/types.d.ts +0 -0
  283. /package/{lib/models → models}/Customer/Group/types.js +0 -0
  284. /package/{lib/models → models}/Customer/basic.d.ts +0 -0
  285. /package/{lib/models → models}/Customer/basic.js +0 -0
  286. /package/{lib/models → models}/Customer/index.d.ts +0 -0
  287. /package/{lib/models → models}/Customer/index.js +0 -0
  288. /package/{lib/models → models}/Customer/types.d.ts +0 -0
  289. /package/{lib/models → models}/Customer/types.js +0 -0
  290. /package/{lib/models → models}/Evento/Player/basic.d.ts +0 -0
  291. /package/{lib/models → models}/Evento/Player/basic.js +0 -0
  292. /package/{lib/models → models}/Evento/Player/index.d.ts +0 -0
  293. /package/{lib/models → models}/Evento/Player/index.js +0 -0
  294. /package/{lib/models → models}/Evento/Player/types.d.ts +0 -0
  295. /package/{lib/models → models}/Evento/Player/types.js +0 -0
  296. /package/{lib/models → models}/Evento/Repertory/index.d.ts +0 -0
  297. /package/{lib/models → models}/Evento/Repertory/index.js +0 -0
  298. /package/{lib/models → models}/Evento/Repertory/types.d.ts +0 -0
  299. /package/{lib/models → models}/Evento/Repertory/types.js +0 -0
  300. /package/{lib/models → models}/Evento/basic.d.ts +0 -0
  301. /package/{lib/models → models}/Evento/basic.js +0 -0
  302. /package/{lib/models → models}/Evento/index.d.ts +0 -0
  303. /package/{lib/models → models}/Evento/index.js +0 -0
  304. /package/{lib/models → models}/Evento/promoter.d.ts +0 -0
  305. /package/{lib/models → models}/Evento/promoter.js +0 -0
  306. /package/{lib/models → models}/Evento/tiny.d.ts +0 -0
  307. /package/{lib/models → models}/Evento/tiny.js +0 -0
  308. /package/{lib/models → models}/Evento/types.d.ts +0 -0
  309. /package/{lib/models → models}/Evento/types.js +0 -0
  310. /package/{lib/models → models}/Federation/Partnership/index.d.ts +0 -0
  311. /package/{lib/models → models}/Federation/Partnership/index.js +0 -0
  312. /package/{lib/models → models}/Federation/Partnership/types.d.ts +0 -0
  313. /package/{lib/models → models}/Federation/Partnership/types.js +0 -0
  314. /package/{lib/models → models}/Federation/index.d.ts +0 -0
  315. /package/{lib/models → models}/Federation/index.js +0 -0
  316. /package/{lib/models → models}/Federation/types.d.ts +0 -0
  317. /package/{lib/models → models}/Federation/types.js +0 -0
  318. /package/{lib/models → models}/Group/Analytics/index.d.ts +0 -0
  319. /package/{lib/models → models}/Group/Analytics/index.js +0 -0
  320. /package/{lib/models → models}/Group/Analytics/types.d.ts +0 -0
  321. /package/{lib/models → models}/Group/Analytics/types.js +0 -0
  322. /package/{lib/models → models}/Group/Event/index.d.ts +0 -0
  323. /package/{lib/models → models}/Group/Event/index.js +0 -0
  324. /package/{lib/models → models}/Group/Event/types.d.ts +0 -0
  325. /package/{lib/models → models}/Group/Event/types.js +0 -0
  326. /package/{lib/models → models}/Group/Payment/index.d.ts +0 -0
  327. /package/{lib/models → models}/Group/Payment/index.js +0 -0
  328. /package/{lib/models → models}/Group/Payment/supabase.d.ts +0 -0
  329. /package/{lib/models → models}/Group/Payment/supabase.js +0 -0
  330. /package/{lib/models → models}/Group/Payment/types.d.ts +0 -0
  331. /package/{lib/models → models}/Group/Payment/types.js +0 -0
  332. /package/{lib/models → models}/Group/Player/Event/index.d.ts +0 -0
  333. /package/{lib/models → models}/Group/Player/Event/index.js +0 -0
  334. /package/{lib/models → models}/Group/Player/Event/types.d.ts +0 -0
  335. /package/{lib/models → models}/Group/Player/Event/types.js +0 -0
  336. /package/{lib/models → models}/Group/Player/Log/index.d.ts +0 -0
  337. /package/{lib/models → models}/Group/Player/Log/index.js +0 -0
  338. /package/{lib/models → models}/Group/Player/Log/types.d.ts +0 -0
  339. /package/{lib/models → models}/Group/Player/Log/types.js +0 -0
  340. /package/{lib/models → models}/Group/Player/index.d.ts +0 -0
  341. /package/{lib/models → models}/Group/Player/index.js +0 -0
  342. /package/{lib/models → models}/Group/Player/types.d.ts +0 -0
  343. /package/{lib/models → models}/Group/Player/types.js +0 -0
  344. /package/{lib/models → models}/Group/Repertory/File/Section/index.d.ts +0 -0
  345. /package/{lib/models → models}/Group/Repertory/File/Section/index.js +0 -0
  346. /package/{lib/models → models}/Group/Repertory/File/Section/types.d.ts +0 -0
  347. /package/{lib/models → models}/Group/Repertory/File/Section/types.js +0 -0
  348. /package/{lib/models → models}/Group/Repertory/File/index.d.ts +0 -0
  349. /package/{lib/models → models}/Group/Repertory/File/index.js +0 -0
  350. /package/{lib/models → models}/Group/Repertory/File/types.d.ts +0 -0
  351. /package/{lib/models → models}/Group/Repertory/File/types.js +0 -0
  352. /package/{lib/models → models}/Group/Repertory/FilePath/index.d.ts +0 -0
  353. /package/{lib/models → models}/Group/Repertory/FilePath/index.js +0 -0
  354. /package/{lib/models → models}/Group/Repertory/index.d.ts +0 -0
  355. /package/{lib/models → models}/Group/Repertory/index.js +0 -0
  356. /package/{lib/models → models}/Group/Repertory/types.d.ts +0 -0
  357. /package/{lib/models → models}/Group/Repertory/types.js +0 -0
  358. /package/{lib/models → models}/Group/StageTemplate/index.d.ts +0 -0
  359. /package/{lib/models → models}/Group/StageTemplate/index.js +0 -0
  360. /package/{lib/models → models}/Group/StageTemplate/types.d.ts +0 -0
  361. /package/{lib/models → models}/Group/StageTemplate/types.js +0 -0
  362. /package/{lib/models → models}/Group/basic.d.ts +0 -0
  363. /package/{lib/models → models}/Group/basic.js +0 -0
  364. /package/{lib/models → models}/Group/index.d.ts +0 -0
  365. /package/{lib/models → models}/Group/index.js +0 -0
  366. /package/{lib/models → models}/Group/types.d.ts +0 -0
  367. /package/{lib/models → models}/Group/types.js +0 -0
  368. /package/{lib/models → models}/Instrument/group.d.ts +0 -0
  369. /package/{lib/models → models}/Instrument/group.js +0 -0
  370. /package/{lib/models → models}/Instrument/index.d.ts +0 -0
  371. /package/{lib/models → models}/Instrument/index.js +0 -0
  372. /package/{lib/models → models}/Inventory/Item/index.d.ts +0 -0
  373. /package/{lib/models → models}/Inventory/Item/index.js +0 -0
  374. /package/{lib/models → models}/Inventory/Item/types.d.ts +0 -0
  375. /package/{lib/models → models}/Inventory/Item/types.js +0 -0
  376. /package/{lib/models → models}/Inventory/index.d.ts +0 -0
  377. /package/{lib/models → models}/Inventory/index.js +0 -0
  378. /package/{lib/models → models}/Inventory/types.d.ts +0 -0
  379. /package/{lib/models → models}/Inventory/types.js +0 -0
  380. /package/{lib/models → models}/Metrics/index.d.ts +0 -0
  381. /package/{lib/models → models}/Metrics/index.js +0 -0
  382. /package/{lib/models → models}/Metrics/types.d.ts +0 -0
  383. /package/{lib/models → models}/Metrics/types.js +0 -0
  384. /package/{lib/models → models}/Model/index.d.ts +0 -0
  385. /package/{lib/models → models}/Model/index.js +0 -0
  386. /package/{lib/models → models}/Model/lang.d.ts +0 -0
  387. /package/{lib/models → models}/Model/lang.js +0 -0
  388. /package/{lib/models → models}/MusicStyle/index.d.ts +0 -0
  389. /package/{lib/models → models}/MusicStyle/index.js +0 -0
  390. /package/{lib/models → models}/Notification/index.d.ts +0 -0
  391. /package/{lib/models → models}/Notification/index.js +0 -0
  392. /package/{lib/models → models}/Notification/types.d.ts +0 -0
  393. /package/{lib/models → models}/Notification/types.js +0 -0
  394. /package/{lib/models → models}/Offer/Applicant/index.d.ts +0 -0
  395. /package/{lib/models → models}/Offer/Applicant/index.js +0 -0
  396. /package/{lib/models → models}/Offer/Applicant/types.d.ts +0 -0
  397. /package/{lib/models → models}/Offer/Applicant/types.js +0 -0
  398. /package/{lib/models → models}/Offer/index.d.ts +0 -0
  399. /package/{lib/models → models}/Offer/index.js +0 -0
  400. /package/{lib/models → models}/Offer/types.d.ts +0 -0
  401. /package/{lib/models → models}/Offer/types.js +0 -0
  402. /package/{lib/models → models}/Partnership/Communication/index.d.ts +0 -0
  403. /package/{lib/models → models}/Partnership/Communication/index.js +0 -0
  404. /package/{lib/models → models}/Partnership/Communication/supabase.d.ts +0 -0
  405. /package/{lib/models → models}/Partnership/Communication/supabase.js +0 -0
  406. /package/{lib/models → models}/Partnership/Communication/types.d.ts +0 -0
  407. /package/{lib/models → models}/Partnership/Communication/types.js +0 -0
  408. /package/{lib/models → models}/Partnership/Group/index.d.ts +0 -0
  409. /package/{lib/models → models}/Partnership/Group/index.js +0 -0
  410. /package/{lib/models → models}/Partnership/Group/supabase.d.ts +0 -0
  411. /package/{lib/models → models}/Partnership/Group/supabase.js +0 -0
  412. /package/{lib/models → models}/Partnership/Group/types.d.ts +0 -0
  413. /package/{lib/models → models}/Partnership/Group/types.js +0 -0
  414. /package/{lib/models → models}/Partnership/Partner/index.d.ts +0 -0
  415. /package/{lib/models → models}/Partnership/Partner/index.js +0 -0
  416. /package/{lib/models → models}/Partnership/Partner/supabase.d.ts +0 -0
  417. /package/{lib/models → models}/Partnership/Partner/supabase.js +0 -0
  418. /package/{lib/models → models}/Partnership/Partner/types.d.ts +0 -0
  419. /package/{lib/models → models}/Partnership/Partner/types.js +0 -0
  420. /package/{lib/models → models}/Partnership/Payment/index.d.ts +0 -0
  421. /package/{lib/models → models}/Partnership/Payment/index.js +0 -0
  422. /package/{lib/models → models}/Partnership/Payment/supabase.d.ts +0 -0
  423. /package/{lib/models → models}/Partnership/Payment/supabase.js +0 -0
  424. /package/{lib/models → models}/Partnership/Payment/types.d.ts +0 -0
  425. /package/{lib/models → models}/Partnership/Payment/types.js +0 -0
  426. /package/{lib/models → models}/Partnership/Plan/index.d.ts +0 -0
  427. /package/{lib/models → models}/Partnership/Plan/index.js +0 -0
  428. /package/{lib/models → models}/Partnership/Plan/supabase.d.ts +0 -0
  429. /package/{lib/models → models}/Partnership/Plan/supabase.js +0 -0
  430. /package/{lib/models → models}/Partnership/Plan/types.d.ts +0 -0
  431. /package/{lib/models → models}/Partnership/Plan/types.js +0 -0
  432. /package/{lib/models → models}/Partnership/SepaPaymentGroup/index.d.ts +0 -0
  433. /package/{lib/models → models}/Partnership/SepaPaymentGroup/index.js +0 -0
  434. /package/{lib/models → models}/Partnership/SepaPaymentGroup/supabase.d.ts +0 -0
  435. /package/{lib/models → models}/Partnership/SepaPaymentGroup/supabase.js +0 -0
  436. /package/{lib/models → models}/Partnership/SepaPaymentGroup/types.d.ts +0 -0
  437. /package/{lib/models → models}/Partnership/SepaPaymentGroup/types.js +0 -0
  438. /package/{lib/models → models}/Partnership/Subscription/index.d.ts +0 -0
  439. /package/{lib/models → models}/Partnership/Subscription/index.js +0 -0
  440. /package/{lib/models → models}/Partnership/Subscription/supabase.d.ts +0 -0
  441. /package/{lib/models → models}/Partnership/Subscription/supabase.js +0 -0
  442. /package/{lib/models → models}/Partnership/Subscription/types.d.ts +0 -0
  443. /package/{lib/models → models}/Partnership/Subscription/types.js +0 -0
  444. /package/{lib/models → models}/Partnership/basic.d.ts +0 -0
  445. /package/{lib/models → models}/Partnership/basic.js +0 -0
  446. /package/{lib/models → models}/Partnership/index.d.ts +0 -0
  447. /package/{lib/models → models}/Partnership/index.js +0 -0
  448. /package/{lib/models → models}/Partnership/types.d.ts +0 -0
  449. /package/{lib/models → models}/Partnership/types.js +0 -0
  450. /package/{lib/models → models}/Player/basic.d.ts +0 -0
  451. /package/{lib/models → models}/Player/basic.js +0 -0
  452. /package/{lib/models → models}/Player/types.d.ts +0 -0
  453. /package/{lib/models → models}/Player/types.js +0 -0
  454. /package/{lib/models → models}/Repertory/basic.d.ts +0 -0
  455. /package/{lib/models → models}/Repertory/basic.js +0 -0
  456. /package/{lib/models → models}/Repertory/types.d.ts +0 -0
  457. /package/{lib/models → models}/Repertory/types.js +0 -0
  458. /package/{lib/models → models}/User/Group/index.d.ts +0 -0
  459. /package/{lib/models → models}/User/Group/index.js +0 -0
  460. /package/{lib/models → models}/User/Group/types.d.ts +0 -0
  461. /package/{lib/models → models}/User/Group/types.js +0 -0
  462. /package/{lib/models → models}/User/Notification/index.d.ts +0 -0
  463. /package/{lib/models → models}/User/Notification/index.js +0 -0
  464. /package/{lib/models → models}/User/Notification/types.d.ts +0 -0
  465. /package/{lib/models → models}/User/Notification/types.js +0 -0
  466. /package/{lib/models → models}/User/OfferAlarm/index.d.ts +0 -0
  467. /package/{lib/models → models}/User/OfferAlarm/index.js +0 -0
  468. /package/{lib/models → models}/User/OfferAlarm/types.d.ts +0 -0
  469. /package/{lib/models → models}/User/OfferAlarm/types.js +0 -0
  470. /package/{lib/models → models}/User/Partnership/index.d.ts +0 -0
  471. /package/{lib/models → models}/User/Partnership/index.js +0 -0
  472. /package/{lib/models → models}/User/Partnership/types.d.ts +0 -0
  473. /package/{lib/models → models}/User/Partnership/types.js +0 -0
  474. /package/{lib/models → models}/User/basic.d.ts +0 -0
  475. /package/{lib/models → models}/User/basic.js +0 -0
  476. /package/{lib/models → models}/User/extended.d.ts +0 -0
  477. /package/{lib/models → models}/User/extended.js +0 -0
  478. /package/{lib/models → models}/User/index.d.ts +0 -0
  479. /package/{lib/models → models}/User/index.js +0 -0
  480. /package/{lib/models → models}/User/types.d.ts +0 -0
  481. /package/{lib/models → models}/User/types.js +0 -0
  482. /package/{lib/models → models}/WebhookEvent/index.d.ts +0 -0
  483. /package/{lib/models → models}/WebhookEvent/index.js +0 -0
  484. /package/{lib/models → models}/WebhookEvent/types.d.ts +0 -0
  485. /package/{lib/models → models}/WebhookEvent/types.js +0 -0
  486. /package/{lib/types → types}/firestore.d.ts +0 -0
  487. /package/{lib/types → types}/firestore.js +0 -0
  488. /package/{lib/types → types}/messagebirdChatWidget.d.ts +0 -0
  489. /package/{lib/types → types}/messagebirdChatWidget.js +0 -0
  490. /package/{lib/types → types}/minVersion.d.ts +0 -0
  491. /package/{lib/types → types}/minVersion.js +0 -0
  492. /package/{lib/types → types}/payoutRule.d.ts +0 -0
  493. /package/{lib/types → types}/payoutRule.js +0 -0
  494. /package/{lib/types → types}/supabase/generated.d.ts +0 -0
  495. /package/{lib/types → types}/supabase/generated.js +0 -0
  496. /package/{lib/types → types}/supabase/index.d.ts +0 -0
  497. /package/{lib/types → types}/supabase/index.js +0 -0
  498. /package/{lib/types → types}/supabase/overwrites/comm.d.ts +0 -0
  499. /package/{lib/types → types}/supabase/overwrites/comm.js +0 -0
  500. /package/{lib/types → types}/supabase/overwrites/comm_history.d.ts +0 -0
  501. /package/{lib/types → types}/supabase/overwrites/comm_history.js +0 -0
  502. /package/{lib/types → types}/supabase/overwrites/event.d.ts +0 -0
  503. /package/{lib/types → types}/supabase/overwrites/event.js +0 -0
  504. /package/{lib/types → types}/supabase/overwrites/event_history.d.ts +0 -0
  505. /package/{lib/types → types}/supabase/overwrites/event_history.js +0 -0
  506. /package/{lib/types → types}/supabase/overwrites/group.d.ts +0 -0
  507. /package/{lib/types → types}/supabase/overwrites/group.js +0 -0
  508. /package/{lib/types → types}/supabase/overwrites/group_history.d.ts +0 -0
  509. /package/{lib/types → types}/supabase/overwrites/group_history.js +0 -0
  510. /package/{lib/types → types}/supabase/overwrites/index.d.ts +0 -0
  511. /package/{lib/types → types}/supabase/overwrites/index.js +0 -0
  512. /package/{lib/types → types}/supabase/overwrites/offer.d.ts +0 -0
  513. /package/{lib/types → types}/supabase/overwrites/offer.js +0 -0
  514. /package/{lib/types → types}/supabase/overwrites/offer_history.d.ts +0 -0
  515. /package/{lib/types → types}/supabase/overwrites/offer_history.js +0 -0
  516. /package/{lib/types → types}/supabase/overwrites/repertoire.d.ts +0 -0
  517. /package/{lib/types → types}/supabase/overwrites/repertoire.js +0 -0
  518. /package/{lib/types → types}/supabase/overwrites/repertoire_history.d.ts +0 -0
  519. /package/{lib/types → types}/supabase/overwrites/repertoire_history.js +0 -0
  520. /package/{lib/types → types}/supabase/overwrites/utils.d.ts +0 -0
  521. /package/{lib/types → types}/supabase/overwrites/utils.js +0 -0
@@ -1,31 +0,0 @@
1
- CREATE TABLE IF NOT EXISTS "public"."userGroup" (
2
- "userId" TEXT NOT NULL,
3
- "groupId" TEXT NOT NULL,
4
- "role" TEXT NOT NULL CHECK ("role" IN ('admin', 'member', 'guest')),
5
- "isAdmin" BOOLEAN NOT NULL DEFAULT false,
6
- "permissions" TEXT[] NOT NULL DEFAULT '{}'::TEXT[],
7
- "mainInstrument" TEXT,
8
- "instruments" TEXT[] NOT NULL DEFAULT '{}'::TEXT[],
9
- "joinedAt" TIMESTAMPTZ,
10
- "updatedAt" TIMESTAMPTZ NOT NULL DEFAULT now(),
11
- PRIMARY KEY ("userId", "groupId")
12
- );
13
-
14
- CREATE INDEX IF NOT EXISTS "userGroup_groupId_idx"
15
- ON "public"."userGroup" ("groupId");
16
-
17
- ALTER TABLE "public"."userGroup" ENABLE ROW LEVEL SECURITY;
18
-
19
- REVOKE ALL ON TABLE "public"."userGroup" FROM "anon";
20
- REVOKE ALL ON TABLE "public"."userGroup" FROM "authenticated";
21
-
22
- GRANT SELECT ON TABLE "public"."userGroup" TO "authenticated";
23
- GRANT ALL ON TABLE "public"."userGroup" TO "service_role";
24
-
25
- DROP POLICY IF EXISTS "Users can read own user groups" ON "public"."userGroup";
26
-
27
- CREATE POLICY "Users can read own user groups"
28
- ON "public"."userGroup"
29
- FOR SELECT
30
- TO "authenticated"
31
- USING ("userId" = ((select auth.jwt()) ->> 'sub'));
@@ -1,79 +0,0 @@
1
- create type "public"."group_payment_type" as enum ('income', 'expense');
2
- create type "public"."group_payment_status" as enum ('pending', 'paid', 'cancelled');
3
- create type "public"."group_payment_method" as enum ('cash', 'transfer');
4
- create type "public"."group_payment_history_action" as enum ('status', 'amount', 'concept', 'method');
5
-
6
- create table "public"."group_payment" (
7
- "id" uuid not null default gen_random_uuid(),
8
- "groupId" text not null,
9
- "type" group_payment_type not null,
10
- "status" group_payment_status not null,
11
- "eventId" text,
12
- "playerId" text,
13
- "concept" text not null,
14
- "assignedTo" text not null,
15
- "totalAmount" numeric(12, 2),
16
- "baseAmount" numeric(12, 2),
17
- "appliedRules" jsonb not null default '[]'::jsonb,
18
- "currency" text not null default 'EUR',
19
- "paymentMethod" group_payment_method,
20
- "paidAt" timestamp with time zone,
21
- "paidBy" text,
22
- "note" text,
23
- "createdAt" timestamp with time zone not null default now(),
24
- "createdBy" text not null,
25
- "updatedAt" timestamp with time zone not null default now(),
26
- "editedBy" text
27
- );
28
-
29
- alter table "public"."group_payment" enable row level security;
30
-
31
- CREATE UNIQUE INDEX group_payment_pkey ON public.group_payment USING btree (id);
32
- alter table "public"."group_payment" add constraint "group_payment_pkey" PRIMARY KEY using index "group_payment_pkey";
33
-
34
- CREATE INDEX group_payment_group_created_idx
35
- ON public.group_payment USING btree ("groupId", "createdAt" desc);
36
- CREATE INDEX group_payment_group_event_idx
37
- ON public.group_payment USING btree ("groupId", "eventId")
38
- WHERE "eventId" is not null;
39
- CREATE INDEX group_payment_group_player_idx
40
- ON public.group_payment USING btree ("groupId", "playerId")
41
- WHERE "playerId" is not null;
42
- CREATE INDEX group_payment_group_status_idx
43
- ON public.group_payment USING btree ("groupId", "status");
44
- CREATE INDEX group_payment_group_paid_idx
45
- ON public.group_payment USING btree ("groupId", "paidAt" desc)
46
- WHERE "paidAt" is not null;
47
-
48
- CREATE TRIGGER group_payment__handle_updatedat
49
- BEFORE UPDATE ON public.group_payment
50
- FOR EACH ROW EXECUTE FUNCTION extensions.moddatetime('updatedAt');
51
-
52
- create table "public"."group_payment_history" (
53
- "id" uuid not null default gen_random_uuid(),
54
- "payment_id" uuid not null,
55
- "action" group_payment_history_action not null,
56
- "old_value" text,
57
- "new_value" text,
58
- "changed_at" timestamp with time zone not null default now(),
59
- "changed_by" text not null
60
- );
61
-
62
- alter table "public"."group_payment_history" enable row level security;
63
-
64
- CREATE UNIQUE INDEX group_payment_history_pkey ON public.group_payment_history USING btree (id);
65
- alter table "public"."group_payment_history" add constraint "group_payment_history_pkey" PRIMARY KEY using index "group_payment_history_pkey";
66
-
67
- alter table "public"."group_payment_history"
68
- add constraint "group_payment_history_payment_id_fkey"
69
- FOREIGN KEY ("payment_id") REFERENCES public.group_payment(id)
70
- ON UPDATE CASCADE ON DELETE CASCADE;
71
-
72
- CREATE INDEX group_payment_history_payment_idx
73
- ON public.group_payment_history USING btree ("payment_id", "changed_at" desc);
74
-
75
- -- Grants (sin políticas RLS → solo service_role accede a los datos)
76
- grant delete, insert, references, select, trigger, truncate, update
77
- on table "public"."group_payment" to "anon", "authenticated", "service_role";
78
- grant delete, insert, references, select, trigger, truncate, update
79
- on table "public"."group_payment_history" to "anon", "authenticated", "service_role";
@@ -1,19 +0,0 @@
1
- -- Permitir lectura desde el dashboard (cliente autenticado con JWT).
2
- -- Las escrituras siguen exclusivamente vía Cloud Functions con service_role,
3
- -- que ignora RLS por definición.
4
- create policy "Authenticated can read group_payment"
5
- on "public"."group_payment"
6
- as permissive
7
- for select
8
- to authenticated
9
- using (true);
10
-
11
- create policy "Authenticated can read group_payment_history"
12
- on "public"."group_payment_history"
13
- as permissive
14
- for select
15
- to authenticated
16
- using (true);
17
-
18
- -- Habilitar Postgres Changes (Realtime) sobre la tabla principal.
19
- alter publication supabase_realtime add table public.group_payment;
@@ -1,16 +0,0 @@
1
- -- La app m\u00f3vil (React Native) y el dashboard cuando no est\u00e1n autenticados contra
2
- -- Supabase Auth acceden con la clave anon. Las escrituras siguen yendo
3
- -- exclusivamente v\u00eda Cloud Functions con service_role.
4
- create policy "Anon can read group_payment"
5
- on "public"."group_payment"
6
- as permissive
7
- for select
8
- to anon
9
- using (true);
10
-
11
- create policy "Anon can read group_payment_history"
12
- on "public"."group_payment_history"
13
- as permissive
14
- for select
15
- to anon
16
- using (true);
@@ -1,20 +0,0 @@
1
- create extension if not exists unaccent;
2
- create extension if not exists pg_trgm;
3
-
4
- create or replace function public.immutable_unaccent(text)
5
- returns text
6
- language sql
7
- immutable
8
- parallel safe
9
- strict
10
- as $$
11
- select public.unaccent('public.unaccent', $1);
12
- $$;
13
-
14
- alter table "public"."group_payment"
15
- add column "conceptNorm" text
16
- generated always as (lower(public.immutable_unaccent("concept"))) stored;
17
-
18
- create index group_payment_concept_norm_trgm_idx
19
- on "public"."group_payment"
20
- using gin ("conceptNorm" gin_trgm_ops);
@@ -1,333 +0,0 @@
1
- -- =============================================================================
2
- -- Migración del dominio Partnership de Firestore a Postgres/Supabase.
3
- -- Tablas: partner, plan, subscription, payment (+ history), sepa_payment_group,
4
- -- communication y group (join table sin denormalización).
5
- -- Las escrituras van vía Cloud Functions con service_role (ignora RLS); el
6
- -- dashboard/app leen con anon/authenticated mediante políticas `select`.
7
- -- =============================================================================
8
-
9
- -- ---------- Enums -----------------------------------------------------------
10
- create type "public"."partnership_payment_method" as enum ('CASH', 'TRANSFER', 'SEPA');
11
- create type "public"."partnership_payment_status" as enum ('pending', 'charged', 'returned', 'canceled');
12
- create type "public"."partnership_partner_status" as enum ('active', 'pending', 'inactive');
13
- create type "public"."partnership_communication_status" as enum ('sent', 'scheduled');
14
-
15
- -- ---------- partnership_partner ---------------------------------------------
16
- create table "public"."partnership_partner" (
17
- "id" uuid not null default gen_random_uuid(),
18
- "partnershipId" text not null,
19
- "userId" text,
20
- "partnerNumber" integer not null,
21
- "email" text,
22
- "name" text not null,
23
- "lastname" text not null default '',
24
- "photoURL" text not null default '',
25
- "birthDate" timestamp with time zone,
26
- "address" jsonb,
27
- "phone" text,
28
- "NIF" text,
29
- "sepaMandate" jsonb,
30
- "paymentMethod" partnership_payment_method,
31
- "groupIds" text[] not null default '{}',
32
- "tagIds" text[] not null default '{}',
33
- "subscriptionIds" text[] not null default '{}',
34
- "subscriptions" jsonb not null default '{}'::jsonb,
35
- "customFields" jsonb not null default '{}'::jsonb,
36
- "acceptsCommunications" boolean not null default false,
37
- "status" partnership_partner_status not null default 'pending',
38
- "createdAt" timestamp with time zone not null default now(),
39
- "createdBy" text not null,
40
- "updatedAt" timestamp with time zone not null default now(),
41
- "editedBy" text,
42
- "acceptedAt" timestamp with time zone,
43
- "acceptedBy" text,
44
- "deletedAt" timestamp with time zone,
45
- "deletedBy" text
46
- );
47
-
48
- alter table "public"."partnership_partner" enable row level security;
49
-
50
- CREATE UNIQUE INDEX partnership_partner_pkey ON public.partnership_partner USING btree (id);
51
- alter table "public"."partnership_partner" add constraint "partnership_partner_pkey" PRIMARY KEY using index "partnership_partner_pkey";
52
-
53
- -- partnerNumber es el número de socio interno de cada asociación; NO es único
54
- -- (puede haber duplicados/ausencias). Índice no único solo para búsquedas.
55
- CREATE INDEX partnership_partner_number_idx
56
- ON public.partnership_partner USING btree ("partnershipId", "partnerNumber");
57
- CREATE INDEX partnership_partner_partnership_idx
58
- ON public.partnership_partner USING btree ("partnershipId");
59
- CREATE INDEX partnership_partner_user_idx
60
- ON public.partnership_partner USING btree ("partnershipId", "userId")
61
- WHERE "userId" is not null;
62
-
63
- CREATE TRIGGER partnership_partner__handle_updatedat
64
- BEFORE UPDATE ON public.partnership_partner
65
- FOR EACH ROW EXECUTE FUNCTION extensions.moddatetime('updatedAt');
66
-
67
- -- ---------- partnership_plan ------------------------------------------------
68
- create table "public"."partnership_plan" (
69
- "id" uuid not null default gen_random_uuid(),
70
- "partnershipId" text not null,
71
- "name" text not null,
72
- "description" text not null default '',
73
- "price" numeric(12, 2) not null,
74
- "schedule" jsonb not null,
75
- "subscriptionsCount" integer not null default 0,
76
- "createdAt" timestamp with time zone not null default now(),
77
- "createdBy" text not null,
78
- "updatedAt" timestamp with time zone not null default now(),
79
- "editedBy" text,
80
- "deletedAt" timestamp with time zone,
81
- "deletedBy" text
82
- );
83
-
84
- alter table "public"."partnership_plan" enable row level security;
85
-
86
- CREATE UNIQUE INDEX partnership_plan_pkey ON public.partnership_plan USING btree (id);
87
- alter table "public"."partnership_plan" add constraint "partnership_plan_pkey" PRIMARY KEY using index "partnership_plan_pkey";
88
-
89
- CREATE INDEX partnership_plan_partnership_idx
90
- ON public.partnership_plan USING btree ("partnershipId")
91
- WHERE "deletedAt" is null;
92
-
93
- CREATE TRIGGER partnership_plan__handle_updatedat
94
- BEFORE UPDATE ON public.partnership_plan
95
- FOR EACH ROW EXECUTE FUNCTION extensions.moddatetime('updatedAt');
96
-
97
- -- ---------- partnership_subscription ----------------------------------------
98
- create table "public"."partnership_subscription" (
99
- "id" uuid not null default gen_random_uuid(),
100
- "partnershipId" text not null,
101
- "planId" uuid not null,
102
- "partnerId" text not null,
103
- "partnerInfo" jsonb not null,
104
- "planInfo" jsonb not null,
105
- "nextPaymentDate" timestamp with time zone,
106
- "endDate" timestamp with time zone,
107
- "createdAt" timestamp with time zone not null default now(),
108
- "createdBy" text not null,
109
- "updatedAt" timestamp with time zone not null default now(),
110
- "editedBy" text,
111
- "deletedAt" timestamp with time zone,
112
- "deletedBy" text
113
- );
114
-
115
- alter table "public"."partnership_subscription" enable row level security;
116
-
117
- CREATE UNIQUE INDEX partnership_subscription_pkey ON public.partnership_subscription USING btree (id);
118
- alter table "public"."partnership_subscription" add constraint "partnership_subscription_pkey" PRIMARY KEY using index "partnership_subscription_pkey";
119
-
120
- alter table "public"."partnership_subscription"
121
- add constraint "partnership_subscription_plan_id_fkey"
122
- FOREIGN KEY ("planId") REFERENCES public.partnership_plan(id)
123
- ON UPDATE CASCADE ON DELETE CASCADE;
124
-
125
- CREATE INDEX partnership_subscription_partnership_idx
126
- ON public.partnership_subscription USING btree ("partnershipId")
127
- WHERE "deletedAt" is null;
128
- CREATE INDEX partnership_subscription_plan_idx
129
- ON public.partnership_subscription USING btree ("planId")
130
- WHERE "deletedAt" is null;
131
- CREATE INDEX partnership_subscription_next_payment_idx
132
- ON public.partnership_subscription USING btree ("nextPaymentDate")
133
- WHERE "deletedAt" is null;
134
-
135
- CREATE TRIGGER partnership_subscription__handle_updatedat
136
- BEFORE UPDATE ON public.partnership_subscription
137
- FOR EACH ROW EXECUTE FUNCTION extensions.moddatetime('updatedAt');
138
-
139
- -- ---------- partnership_sepa_payment_group ----------------------------------
140
- create table "public"."partnership_sepa_payment_group" (
141
- "id" uuid not null default gen_random_uuid(),
142
- "partnershipId" text not null,
143
- "creditorInfo" jsonb not null,
144
- "paymentsIds" text[] not null default '{}',
145
- "filePath" text,
146
- "createdAt" timestamp with time zone not null default now(),
147
- "createdBy" text not null,
148
- "updatedAt" timestamp with time zone not null default now(),
149
- "editedBy" text
150
- );
151
-
152
- alter table "public"."partnership_sepa_payment_group" enable row level security;
153
-
154
- CREATE UNIQUE INDEX partnership_sepa_payment_group_pkey ON public.partnership_sepa_payment_group USING btree (id);
155
- alter table "public"."partnership_sepa_payment_group" add constraint "partnership_sepa_payment_group_pkey" PRIMARY KEY using index "partnership_sepa_payment_group_pkey";
156
-
157
- CREATE INDEX partnership_sepa_payment_group_partnership_idx
158
- ON public.partnership_sepa_payment_group USING btree ("partnershipId");
159
-
160
- CREATE TRIGGER partnership_sepa_payment_group__handle_updatedat
161
- BEFORE UPDATE ON public.partnership_sepa_payment_group
162
- FOR EACH ROW EXECUTE FUNCTION extensions.moddatetime('updatedAt');
163
-
164
- -- ---------- partnership_payment ---------------------------------------------
165
- create table "public"."partnership_payment" (
166
- "id" uuid not null default gen_random_uuid(),
167
- "partnershipId" text not null,
168
- "title" text not null,
169
- "amount" numeric(12, 2) not null,
170
- "paymentMethod" partnership_payment_method,
171
- "subscriptionId" uuid,
172
- "partnerId" text not null,
173
- "status" partnership_payment_status not null default 'pending',
174
- "sepaPaymentGroupId" uuid,
175
- "sepaEndToEndId" text,
176
- "dueDate" timestamp with time zone not null,
177
- "receiptFilePath" text,
178
- "createdAt" timestamp with time zone not null default now(),
179
- "createdBy" text,
180
- "updatedAt" timestamp with time zone not null default now(),
181
- "editedBy" text
182
- );
183
-
184
- alter table "public"."partnership_payment" enable row level security;
185
-
186
- CREATE UNIQUE INDEX partnership_payment_pkey ON public.partnership_payment USING btree (id);
187
- alter table "public"."partnership_payment" add constraint "partnership_payment_pkey" PRIMARY KEY using index "partnership_payment_pkey";
188
-
189
- -- Idempotencia de la generación recurrente: misma subscription + mismo dueDate
190
- -- nunca produce dos pagos. Sustituye al id determinista `subscriptionId_yyyy-MM-dd`.
191
- CREATE UNIQUE INDEX partnership_payment_subscription_due_idx
192
- ON public.partnership_payment USING btree ("subscriptionId", "dueDate")
193
- WHERE "subscriptionId" is not null;
194
-
195
- alter table "public"."partnership_payment"
196
- add constraint "partnership_payment_subscription_id_fkey"
197
- FOREIGN KEY ("subscriptionId") REFERENCES public.partnership_subscription(id)
198
- ON UPDATE CASCADE ON DELETE SET NULL;
199
-
200
- alter table "public"."partnership_payment"
201
- add constraint "partnership_payment_sepa_group_id_fkey"
202
- FOREIGN KEY ("sepaPaymentGroupId") REFERENCES public.partnership_sepa_payment_group(id)
203
- ON UPDATE CASCADE ON DELETE SET NULL;
204
-
205
- CREATE INDEX partnership_payment_partnership_created_idx
206
- ON public.partnership_payment USING btree ("partnershipId", "createdAt" desc);
207
- CREATE INDEX partnership_payment_partnership_status_idx
208
- ON public.partnership_payment USING btree ("partnershipId", "status");
209
- CREATE INDEX partnership_payment_partnership_partner_idx
210
- ON public.partnership_payment USING btree ("partnershipId", "partnerId");
211
-
212
- CREATE TRIGGER partnership_payment__handle_updatedat
213
- BEFORE UPDATE ON public.partnership_payment
214
- FOR EACH ROW EXECUTE FUNCTION extensions.moddatetime('updatedAt');
215
-
216
- -- ---------- partnership_payment_history -------------------------------------
217
- create table "public"."partnership_payment_history" (
218
- "id" uuid not null default gen_random_uuid(),
219
- "payment_id" uuid not null,
220
- "status" partnership_payment_status not null,
221
- "changed_at" timestamp with time zone not null default now(),
222
- "changed_by" text not null
223
- );
224
-
225
- alter table "public"."partnership_payment_history" enable row level security;
226
-
227
- CREATE UNIQUE INDEX partnership_payment_history_pkey ON public.partnership_payment_history USING btree (id);
228
- alter table "public"."partnership_payment_history" add constraint "partnership_payment_history_pkey" PRIMARY KEY using index "partnership_payment_history_pkey";
229
-
230
- alter table "public"."partnership_payment_history"
231
- add constraint "partnership_payment_history_payment_id_fkey"
232
- FOREIGN KEY ("payment_id") REFERENCES public.partnership_payment(id)
233
- ON UPDATE CASCADE ON DELETE CASCADE;
234
-
235
- CREATE INDEX partnership_payment_history_payment_idx
236
- ON public.partnership_payment_history USING btree ("payment_id", "changed_at" desc);
237
-
238
- -- ---------- partnership_communication ---------------------------------------
239
- create table "public"."partnership_communication" (
240
- "id" uuid not null default gen_random_uuid(),
241
- "partnershipId" text not null,
242
- "title" text not null,
243
- "message" jsonb not null default '[]'::jsonb,
244
- "messageHtml" text not null default '',
245
- "imageURL" text,
246
- "ownerName" text not null,
247
- "ownerId" text not null,
248
- "recipients" text[] not null default '{}',
249
- "recipientsCount" integer not null default 0,
250
- "imagesPath" text[] not null default '{}',
251
- "status" partnership_communication_status not null,
252
- "scheduledAt" timestamp with time zone,
253
- "createdAt" timestamp with time zone not null default now(),
254
- "deletedAt" timestamp with time zone
255
- );
256
-
257
- alter table "public"."partnership_communication" enable row level security;
258
-
259
- CREATE UNIQUE INDEX partnership_communication_pkey ON public.partnership_communication USING btree (id);
260
- alter table "public"."partnership_communication" add constraint "partnership_communication_pkey" PRIMARY KEY using index "partnership_communication_pkey";
261
-
262
- CREATE INDEX partnership_communication_partnership_idx
263
- ON public.partnership_communication USING btree ("partnershipId", "createdAt" desc);
264
- CREATE INDEX partnership_communication_scheduled_idx
265
- ON public.partnership_communication USING btree ("scheduledAt")
266
- WHERE "status" = 'scheduled';
267
-
268
- -- ---------- partnership_group (join table, sin denormalización) --------------
269
- create table "public"."partnership_group" (
270
- "partnershipId" text not null,
271
- "groupId" text not null,
272
- "linkedBy" text,
273
- "linkedAt" timestamp with time zone not null default now()
274
- );
275
-
276
- alter table "public"."partnership_group" enable row level security;
277
-
278
- CREATE UNIQUE INDEX partnership_group_pkey ON public.partnership_group USING btree ("partnershipId", "groupId");
279
- alter table "public"."partnership_group" add constraint "partnership_group_pkey" PRIMARY KEY using index "partnership_group_pkey";
280
-
281
- alter table "public"."partnership_group"
282
- add constraint "partnership_group_group_id_fkey"
283
- FOREIGN KEY ("groupId") REFERENCES public."group"(id)
284
- ON UPDATE CASCADE ON DELETE CASCADE;
285
-
286
- CREATE INDEX partnership_group_group_idx
287
- ON public.partnership_group USING btree ("groupId");
288
-
289
- -- ---------- Grants ----------------------------------------------------------
290
- grant delete, insert, references, select, trigger, truncate, update
291
- on table "public"."partnership_partner" to "anon", "authenticated", "service_role";
292
- grant delete, insert, references, select, trigger, truncate, update
293
- on table "public"."partnership_plan" to "anon", "authenticated", "service_role";
294
- grant delete, insert, references, select, trigger, truncate, update
295
- on table "public"."partnership_subscription" to "anon", "authenticated", "service_role";
296
- grant delete, insert, references, select, trigger, truncate, update
297
- on table "public"."partnership_payment" to "anon", "authenticated", "service_role";
298
- grant delete, insert, references, select, trigger, truncate, update
299
- on table "public"."partnership_payment_history" to "anon", "authenticated", "service_role";
300
- grant delete, insert, references, select, trigger, truncate, update
301
- on table "public"."partnership_sepa_payment_group" to "anon", "authenticated", "service_role";
302
- grant delete, insert, references, select, trigger, truncate, update
303
- on table "public"."partnership_communication" to "anon", "authenticated", "service_role";
304
- grant delete, insert, references, select, trigger, truncate, update
305
- on table "public"."partnership_group" to "anon", "authenticated", "service_role";
306
-
307
- -- ---------- RLS: solo lectura para anon/authenticated -----------------------
308
- -- (Las escrituras van exclusivamente vía Cloud Functions con service_role.)
309
- create policy "Authenticated can read partnership_partner" on "public"."partnership_partner" as permissive for select to authenticated using (true);
310
- create policy "Anon can read partnership_partner" on "public"."partnership_partner" as permissive for select to anon using (true);
311
- create policy "Authenticated can read partnership_plan" on "public"."partnership_plan" as permissive for select to authenticated using (true);
312
- create policy "Anon can read partnership_plan" on "public"."partnership_plan" as permissive for select to anon using (true);
313
- create policy "Authenticated can read partnership_subscription" on "public"."partnership_subscription" as permissive for select to authenticated using (true);
314
- create policy "Anon can read partnership_subscription" on "public"."partnership_subscription" as permissive for select to anon using (true);
315
- create policy "Authenticated can read partnership_payment" on "public"."partnership_payment" as permissive for select to authenticated using (true);
316
- create policy "Anon can read partnership_payment" on "public"."partnership_payment" as permissive for select to anon using (true);
317
- create policy "Authenticated can read partnership_payment_history" on "public"."partnership_payment_history" as permissive for select to authenticated using (true);
318
- create policy "Anon can read partnership_payment_history" on "public"."partnership_payment_history" as permissive for select to anon using (true);
319
- create policy "Authenticated can read partnership_sepa_payment_group" on "public"."partnership_sepa_payment_group" as permissive for select to authenticated using (true);
320
- create policy "Anon can read partnership_sepa_payment_group" on "public"."partnership_sepa_payment_group" as permissive for select to anon using (true);
321
- create policy "Authenticated can read partnership_communication" on "public"."partnership_communication" as permissive for select to authenticated using (true);
322
- create policy "Anon can read partnership_communication" on "public"."partnership_communication" as permissive for select to anon using (true);
323
- create policy "Authenticated can read partnership_group" on "public"."partnership_group" as permissive for select to authenticated using (true);
324
- create policy "Anon can read partnership_group" on "public"."partnership_group" as permissive for select to anon using (true);
325
-
326
- -- ---------- Realtime --------------------------------------------------------
327
- alter publication supabase_realtime add table public.partnership_partner;
328
- alter publication supabase_realtime add table public.partnership_plan;
329
- alter publication supabase_realtime add table public.partnership_subscription;
330
- alter publication supabase_realtime add table public.partnership_payment;
331
- alter publication supabase_realtime add table public.partnership_sepa_payment_group;
332
- alter publication supabase_realtime add table public.partnership_communication;
333
- alter publication supabase_realtime add table public.partnership_group;
@@ -1,62 +0,0 @@
1
- -- =============================================================================
2
- -- RPC atómica para la generación de pagos recurrentes.
3
- -- Reemplaza la transacción Firestore de PartnershipPayment.Creates#setRecurring:
4
- -- inserta el pago (idempotente por unique (subscriptionId, dueDate)), crea su
5
- -- entrada de historial y, solo si insertó, avanza nextPaymentDate de la
6
- -- subscription. Todo en una única transacción Postgres.
7
- -- =============================================================================
8
-
9
- create or replace function public.generate_partnership_recurring_payment(
10
- p_partnership_id text,
11
- p_subscription_id uuid,
12
- p_partner_id text,
13
- p_title text,
14
- p_amount numeric,
15
- p_payment_method partnership_payment_method,
16
- p_due_date timestamptz,
17
- p_next_payment_date timestamptz
18
- )
19
- returns table (created boolean, payment_id uuid)
20
- language plpgsql
21
- security definer
22
- set search_path = public
23
- as $$
24
- declare
25
- v_payment_id uuid;
26
- v_now timestamptz := now();
27
- begin
28
- insert into public.partnership_payment (
29
- "partnershipId", "title", "amount", "paymentMethod", "subscriptionId",
30
- "partnerId", "status", "dueDate", "createdAt", "createdBy"
31
- ) values (
32
- p_partnership_id, p_title, p_amount, p_payment_method, p_subscription_id,
33
- p_partner_id, 'pending', p_due_date, v_now, 'system'
34
- )
35
- on conflict ("subscriptionId", "dueDate") where "subscriptionId" is not null
36
- do nothing
37
- returning id into v_payment_id;
38
-
39
- if v_payment_id is null then
40
- -- Ya existía para esta subscription + dueDate: no-op idempotente.
41
- return query
42
- select false as created,
43
- (select id from public.partnership_payment
44
- where "subscriptionId" = p_subscription_id and "dueDate" = p_due_date
45
- limit 1) as payment_id;
46
- return;
47
- end if;
48
-
49
- insert into public.partnership_payment_history ("payment_id", "status", "changed_at", "changed_by")
50
- values (v_payment_id, 'pending', v_now, 'system');
51
-
52
- update public.partnership_subscription
53
- set "nextPaymentDate" = p_next_payment_date
54
- where id = p_subscription_id;
55
-
56
- return query select true as created, v_payment_id as payment_id;
57
- end;
58
- $$;
59
-
60
- grant execute on function public.generate_partnership_recurring_payment(
61
- text, uuid, text, text, numeric, partnership_payment_method, timestamptz, timestamptz
62
- ) to "service_role";
@@ -1,83 +0,0 @@
1
- -- =============================================================================
2
- -- Pagador familiar: un socio puede cobrarse al método/mandato de otro socio.
3
- -- `payerId` en partnership_partner apunta a otro socio del mismo partnership.
4
- -- `payerId` en partnership_payment es un snapshot del pagador resuelto en la
5
- -- generación del cobro (para que el XML SEPA y el recibo giren al deudor correcto
6
- -- aunque luego cambie el pagador del socio).
7
- -- =============================================================================
8
-
9
- alter table "public"."partnership_partner"
10
- add column "payerId" uuid;
11
-
12
- alter table "public"."partnership_partner"
13
- add constraint "partnership_partner_payer_id_fkey"
14
- FOREIGN KEY ("payerId") REFERENCES public.partnership_partner(id)
15
- ON UPDATE CASCADE ON DELETE SET NULL;
16
-
17
- CREATE INDEX partnership_partner_payer_idx
18
- ON public.partnership_partner USING btree ("payerId")
19
- WHERE "payerId" is not null;
20
-
21
- alter table "public"."partnership_payment"
22
- add column "payerId" uuid;
23
-
24
- alter table "public"."partnership_payment"
25
- add constraint "partnership_payment_payer_id_fkey"
26
- FOREIGN KEY ("payerId") REFERENCES public.partnership_partner(id)
27
- ON UPDATE CASCADE ON DELETE SET NULL;
28
-
29
- -- ---------- RPC: añade p_payer_id ------------------------------------------
30
- create or replace function public.generate_partnership_recurring_payment(
31
- p_partnership_id text,
32
- p_subscription_id uuid,
33
- p_partner_id text,
34
- p_title text,
35
- p_amount numeric,
36
- p_payment_method partnership_payment_method,
37
- p_due_date timestamptz,
38
- p_next_payment_date timestamptz,
39
- p_payer_id uuid default null
40
- )
41
- returns table (created boolean, payment_id uuid)
42
- language plpgsql
43
- security definer
44
- set search_path = public
45
- as $$
46
- declare
47
- v_payment_id uuid;
48
- v_now timestamptz := now();
49
- begin
50
- insert into public.partnership_payment (
51
- "partnershipId", "title", "amount", "paymentMethod", "subscriptionId",
52
- "partnerId", "payerId", "status", "dueDate", "createdAt", "createdBy"
53
- ) values (
54
- p_partnership_id, p_title, p_amount, p_payment_method, p_subscription_id,
55
- p_partner_id, p_payer_id, 'pending', p_due_date, v_now, 'system'
56
- )
57
- on conflict ("subscriptionId", "dueDate") where "subscriptionId" is not null
58
- do nothing
59
- returning id into v_payment_id;
60
-
61
- if v_payment_id is null then
62
- return query
63
- select false as created,
64
- (select id from public.partnership_payment
65
- where "subscriptionId" = p_subscription_id and "dueDate" = p_due_date
66
- limit 1) as payment_id;
67
- return;
68
- end if;
69
-
70
- insert into public.partnership_payment_history ("payment_id", "status", "changed_at", "changed_by")
71
- values (v_payment_id, 'pending', v_now, 'system');
72
-
73
- update public.partnership_subscription
74
- set "nextPaymentDate" = p_next_payment_date
75
- where id = p_subscription_id;
76
-
77
- return query select true as created, v_payment_id as payment_id;
78
- end;
79
- $$;
80
-
81
- grant execute on function public.generate_partnership_recurring_payment(
82
- text, uuid, text, text, numeric, partnership_payment_method, timestamptz, timestamptz, uuid
83
- ) to "service_role";
@@ -1,10 +0,0 @@
1
- -- =============================================================================
2
- -- partnerNumber es el número de socio interno de cada asociación: NO debe ser
3
- -- único (puede haber duplicados o ausencias). Se sustituye el índice único por
4
- -- uno normal (para búsquedas) en BDs donde ya se aplicó el init.
5
- -- =============================================================================
6
-
7
- drop index if exists public.partnership_partner_number_idx;
8
-
9
- create index partnership_partner_number_idx
10
- on public.partnership_partner using btree ("partnershipId", "partnerNumber");
@@ -1,2 +0,0 @@
1
- -- Añade el valor BIZUM al enum partnership_payment_method.
2
- alter type "public"."partnership_payment_method" add value if not exists 'BIZUM';