@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.
- package/package.json +1 -1
- package/types/firestore.ts +1998 -0
- package/types/messagebirdChatWidget.ts +20 -0
- package/types/minVersion.ts +4 -0
- package/types/payoutRule.ts +132 -0
- package/types/supabase/generated.ts +1682 -0
- package/types/supabase/index.ts +36 -0
- package/types/supabase/overwrites/comm.ts +18 -0
- package/types/supabase/overwrites/comm_history.ts +10 -0
- package/types/supabase/overwrites/event.ts +28 -0
- package/types/supabase/overwrites/event_history.ts +10 -0
- package/types/supabase/overwrites/group.ts +49 -0
- package/types/supabase/overwrites/group_history.ts +9 -0
- package/types/supabase/overwrites/index.ts +7 -0
- package/types/supabase/overwrites/offer.ts +15 -0
- package/types/supabase/overwrites/offer_history.ts +10 -0
- package/types/supabase/overwrites/repertoire.ts +12 -0
- package/types/supabase/overwrites/repertoire_history.ts +10 -0
- package/types/supabase/overwrites/utils.ts +4 -0
- package/.firebaserc +0 -7
- package/.husky/pre-commit +0 -4
- package/README.md +0 -70
- package/scripts/setHusky.js +0 -11
- package/supabase/.dev.env +0 -1
- package/supabase/.prod.env +0 -1
- package/supabase/.sample.env +0 -2
- package/supabase/README.md +0 -126
- package/supabase/config.toml +0 -68
- package/supabase/migrations/20231117044943_remote_schema.sql +0 -228
- package/supabase/migrations/20231117124947_event_selection_mode_closed_at_nullable.sql +0 -1
- package/supabase/migrations/20231121002132_remote_schema.sql +0 -31
- package/supabase/migrations/20231121004031_references_nullable.sql +0 -3
- package/supabase/migrations/20231121014339_updated_at_trigger.sql +0 -13
- package/supabase/migrations/20231122111241_remote_schema.sql +0 -25
- package/supabase/migrations/20231124151424_snake_case_to_camel_case.sql +0 -105
- package/supabase/migrations/20231129133721_add_columns_for_sites.sql +0 -11
- package/supabase/migrations/20231129142806_promoter_can_be_null.sql +0 -3
- package/supabase/migrations/20231130125327_group_location_latlon.sql +0 -3
- package/supabase/migrations/20231130150154_error_solvings.sql +0 -9
- package/supabase/migrations/20240405115914_new_columns.sql +0 -9
- package/supabase/migrations/20240405121956_init_offer.sql +0 -81
- package/supabase/migrations/20240503032440_add_columns_to_offer.sql +0 -11
- package/supabase/migrations/20240503101641_add_column_createdOn.sql +0 -19
- package/supabase/migrations/20240506035104_add_groupInfo_to_offer.sql +0 -10
- package/supabase/migrations/20240510110328_add_relationships_to_offer.sql +0 -9
- package/supabase/migrations/20240514100316_offers_public.sql +0 -9
- package/supabase/migrations/20260506013030_add_user_mirror.sql +0 -50
- package/supabase/migrations/20260506013031_add_user_group_mirror.sql +0 -31
- package/supabase/migrations/20260529000000_init_group_payment.sql +0 -79
- package/supabase/migrations/20260529120000_group_payment_realtime.sql +0 -19
- package/supabase/migrations/20260529130000_group_payment_anon_read.sql +0 -16
- package/supabase/migrations/20260601000000_group_payment_concept_norm.sql +0 -20
- package/supabase/migrations/20260605000000_init_partnership_domain.sql +0 -333
- package/supabase/migrations/20260605000100_partnership_recurring_rpc.sql +0 -62
- package/supabase/migrations/20260606000000_partnership_payer.sql +0 -83
- package/supabase/migrations/20260607000000_partnership_partner_number_not_unique.sql +0 -10
- package/supabase/migrations/20260608000000_partnership_payment_method_bizum.sql +0 -2
- package/supabase/migrations/20260609000000_partnership_payment_sepa_end_to_end.sql +0 -13
- package/supabase/migrations/20260617000000_partnership_portal_query_indexes.sql +0 -23
- package/supabase/migrations/20260618000000_partnership_communication_attachments.sql +0 -5
- package/supabase/migrations/20260701000000_partnership_recurring_rpc_drop_ambiguous.sql +0 -29
- package/supabase/migrations/20260713191700_add_personal_calendar_feed.sql +0 -506
- package/supabase/migrations/20260714193734_add_pending_calendar_invitations.sql +0 -403
- package/supabase/migrations/20260714205623_add_event_datetime_end_backfill.sql +0 -64
- package/supabase/migrations/20260729161126_remove_calendar_event_history_dependency.sql +0 -19
- package/supabase/migrations/20260729161202_reconcile_production_remote_schema.sql +0 -135
- package/supabase/migrations/20260804120000_add_calendar_feed_token_cipher.sql +0 -9
- package/supabase/migrations/20260805120000_replace_usergroup_with_group_playerids.sql +0 -363
- package/supabase/seed.sql +0 -2973
- /package/{lib/functions → functions}/auth.d.ts +0 -0
- /package/{lib/functions → functions}/auth.js +0 -0
- /package/{lib/functions → functions}/calendarFeed.d.ts +0 -0
- /package/{lib/functions → functions}/calendarFeed.js +0 -0
- /package/{lib/functions → functions}/communication.d.ts +0 -0
- /package/{lib/functions → functions}/communication.js +0 -0
- /package/{lib/functions → functions}/communicationComment.d.ts +0 -0
- /package/{lib/functions → functions}/communicationComment.js +0 -0
- /package/{lib/functions → functions}/customer.d.ts +0 -0
- /package/{lib/functions → functions}/customer.js +0 -0
- /package/{lib/functions → functions}/customerGroup.d.ts +0 -0
- /package/{lib/functions → functions}/customerGroup.js +0 -0
- /package/{lib/functions → functions}/event.d.ts +0 -0
- /package/{lib/functions → functions}/event.js +0 -0
- /package/{lib/functions → functions}/eventPlayer.d.ts +0 -0
- /package/{lib/functions → functions}/eventPlayer.js +0 -0
- /package/{lib/functions → functions}/eventRepertory.d.ts +0 -0
- /package/{lib/functions → functions}/eventRepertory.js +0 -0
- /package/{lib/functions → functions}/eventoPayout.d.ts +0 -0
- /package/{lib/functions → functions}/eventoPayout.js +0 -0
- /package/{lib/functions → functions}/federation.d.ts +0 -0
- /package/{lib/functions → functions}/federation.js +0 -0
- /package/{lib/functions → functions}/federationPartnership.d.ts +0 -0
- /package/{lib/functions → functions}/federationPartnership.js +0 -0
- /package/{lib/functions → functions}/group.d.ts +0 -0
- /package/{lib/functions → functions}/group.js +0 -0
- /package/{lib/functions → functions}/groupEventStage.d.ts +0 -0
- /package/{lib/functions → functions}/groupEventStage.js +0 -0
- /package/{lib/functions → functions}/groupModule.d.ts +0 -0
- /package/{lib/functions → functions}/groupModule.js +0 -0
- /package/{lib/functions → functions}/groupPayment.d.ts +0 -0
- /package/{lib/functions → functions}/groupPayment.js +0 -0
- /package/{lib/functions → functions}/groupPayoutRule.d.ts +0 -0
- /package/{lib/functions → functions}/groupPayoutRule.js +0 -0
- /package/{lib/functions → functions}/groupPlayer.d.ts +0 -0
- /package/{lib/functions → functions}/groupPlayer.js +0 -0
- /package/{lib/functions → functions}/groupRepertory.d.ts +0 -0
- /package/{lib/functions → functions}/groupRepertory.js +0 -0
- /package/{lib/functions → functions}/index.d.ts +0 -0
- /package/{lib/functions → functions}/index.js +0 -0
- /package/{lib/functions → functions}/inventory.d.ts +0 -0
- /package/{lib/functions → functions}/inventory.js +0 -0
- /package/{lib/functions → functions}/inventoryItem.d.ts +0 -0
- /package/{lib/functions → functions}/inventoryItem.js +0 -0
- /package/{lib/functions → functions}/jwt.d.ts +0 -0
- /package/{lib/functions → functions}/jwt.js +0 -0
- /package/{lib/functions → functions}/misc.d.ts +0 -0
- /package/{lib/functions → functions}/misc.js +0 -0
- /package/{lib/functions → functions}/notification.d.ts +0 -0
- /package/{lib/functions → functions}/notification.js +0 -0
- /package/{lib/functions → functions}/offer.d.ts +0 -0
- /package/{lib/functions → functions}/offer.js +0 -0
- /package/{lib/functions → functions}/offerApplicant.d.ts +0 -0
- /package/{lib/functions → functions}/offerApplicant.js +0 -0
- /package/{lib/functions → functions}/partnership.d.ts +0 -0
- /package/{lib/functions → functions}/partnership.js +0 -0
- /package/{lib/functions → functions}/partnershipCommunication.d.ts +0 -0
- /package/{lib/functions → functions}/partnershipCommunication.js +0 -0
- /package/{lib/functions → functions}/partnershipGroup.d.ts +0 -0
- /package/{lib/functions → functions}/partnershipGroup.js +0 -0
- /package/{lib/functions → functions}/partnershipPartner.d.ts +0 -0
- /package/{lib/functions → functions}/partnershipPartner.js +0 -0
- /package/{lib/functions → functions}/partnershipPayment.d.ts +0 -0
- /package/{lib/functions → functions}/partnershipPayment.js +0 -0
- /package/{lib/functions → functions}/partnershipPlan.d.ts +0 -0
- /package/{lib/functions → functions}/partnershipPlan.js +0 -0
- /package/{lib/functions → functions}/partnershipSepaPaymentGroup.d.ts +0 -0
- /package/{lib/functions → functions}/partnershipSepaPaymentGroup.js +0 -0
- /package/{lib/functions → functions}/partnershipSubscription.d.ts +0 -0
- /package/{lib/functions → functions}/partnershipSubscription.js +0 -0
- /package/{lib/functions → functions}/regions.d.ts +0 -0
- /package/{lib/functions → functions}/regions.js +0 -0
- /package/{lib/functions → functions}/subscription.d.ts +0 -0
- /package/{lib/functions → functions}/subscription.js +0 -0
- /package/{lib/functions → functions}/user.d.ts +0 -0
- /package/{lib/functions → functions}/user.js +0 -0
- /package/{lib/functions → functions}/userNotification.d.ts +0 -0
- /package/{lib/functions → functions}/userNotification.js +0 -0
- /package/{lib/helpers → helpers}/appScenes.d.ts +0 -0
- /package/{lib/helpers → helpers}/appScenes.js +0 -0
- /package/{lib/helpers → helpers}/audios.d.ts +0 -0
- /package/{lib/helpers → helpers}/audios.js +0 -0
- /package/{lib/helpers → helpers}/auth.d.ts +0 -0
- /package/{lib/helpers → helpers}/auth.js +0 -0
- /package/{lib/helpers → helpers}/badges.d.ts +0 -0
- /package/{lib/helpers → helpers}/badges.js +0 -0
- /package/{lib/helpers → helpers}/collections.d.ts +0 -0
- /package/{lib/helpers → helpers}/collections.js +0 -0
- /package/{lib/helpers → helpers}/communicationTemplate/index.d.ts +0 -0
- /package/{lib/helpers → helpers}/communicationTemplate/index.js +0 -0
- /package/{lib/helpers → helpers}/communicationTemplate/newGroup.d.ts +0 -0
- /package/{lib/helpers → helpers}/communicationTemplate/newGroup.js +0 -0
- /package/{lib/helpers → helpers}/communicationTemplate/newMember.d.ts +0 -0
- /package/{lib/helpers → helpers}/communicationTemplate/newMember.js +0 -0
- /package/{lib/helpers → helpers}/countries.d.ts +0 -0
- /package/{lib/helpers → helpers}/countries.js +0 -0
- /package/{lib/helpers → helpers}/currency.d.ts +0 -0
- /package/{lib/helpers → helpers}/currency.js +0 -0
- /package/{lib/helpers → helpers}/dlinks.d.ts +0 -0
- /package/{lib/helpers → helpers}/dlinks.js +0 -0
- /package/{lib/helpers → helpers}/errors.d.ts +0 -0
- /package/{lib/helpers → helpers}/errors.js +0 -0
- /package/{lib/helpers → helpers}/fileSections/index.d.ts +0 -0
- /package/{lib/helpers → helpers}/fileSections/index.js +0 -0
- /package/{lib/helpers → helpers}/fileSections/orders.d.ts +0 -0
- /package/{lib/helpers → helpers}/fileSections/orders.js +0 -0
- /package/{lib/helpers → helpers}/glissandooAdmin.d.ts +0 -0
- /package/{lib/helpers → helpers}/glissandooAdmin.js +0 -0
- /package/{lib/helpers → helpers}/instruments/index.d.ts +0 -0
- /package/{lib/helpers → helpers}/instruments/index.js +0 -0
- /package/{lib/helpers → helpers}/instruments/lists.d.ts +0 -0
- /package/{lib/helpers → helpers}/instruments/lists.js +0 -0
- /package/{lib/helpers → helpers}/instruments/orders.d.ts +0 -0
- /package/{lib/helpers → helpers}/instruments/orders.js +0 -0
- /package/{lib/helpers → helpers}/musicStyles/index.d.ts +0 -0
- /package/{lib/helpers → helpers}/musicStyles/index.js +0 -0
- /package/{lib/helpers → helpers}/musicStyles/orders.d.ts +0 -0
- /package/{lib/helpers → helpers}/musicStyles/orders.js +0 -0
- /package/{lib/helpers → helpers}/notifications/index.d.ts +0 -0
- /package/{lib/helpers → helpers}/notifications/index.js +0 -0
- /package/{lib/helpers → helpers}/notifications/placeholders.d.ts +0 -0
- /package/{lib/helpers → helpers}/notifications/placeholders.js +0 -0
- /package/{lib/helpers → helpers}/objects.d.ts +0 -0
- /package/{lib/helpers → helpers}/objects.js +0 -0
- /package/{lib/helpers → helpers}/paymentForecast.d.ts +0 -0
- /package/{lib/helpers → helpers}/paymentForecast.js +0 -0
- /package/{lib/helpers → helpers}/payoutRules.d.ts +0 -0
- /package/{lib/helpers → helpers}/payoutRules.js +0 -0
- /package/{lib/helpers → helpers}/plans.d.ts +0 -0
- /package/{lib/helpers → helpers}/plans.js +0 -0
- /package/{lib/helpers → helpers}/rates.d.ts +0 -0
- /package/{lib/helpers → helpers}/rates.js +0 -0
- /package/{lib/helpers → helpers}/reasons.d.ts +0 -0
- /package/{lib/helpers → helpers}/reasons.js +0 -0
- /package/{lib/helpers → helpers}/slate.d.ts +0 -0
- /package/{lib/helpers → helpers}/slate.js +0 -0
- /package/{lib/helpers → helpers}/styles.d.ts +0 -0
- /package/{lib/helpers → helpers}/styles.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/array-includes.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/array-includes.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/as-mutable.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/as-mutable.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/assert-error.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/assert-error.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/index.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/index.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-defined.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-defined.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-empty.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-empty.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-finite.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-finite.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-infinite.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-infinite.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-integer.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-integer.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-present.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-present.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-safe-integer.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-safe-integer.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/object-entries.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/object-entries.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/object-from-entries.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/object-from-entries.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/object-has-own.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/object-has-own.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/object-keys.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/object-keys.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/set-has.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/set-has.js +0 -0
- /package/{lib/helpers → helpers}/types.d.ts +0 -0
- /package/{lib/helpers → helpers}/types.js +0 -0
- /package/{lib/helpers → helpers}/utils.d.ts +0 -0
- /package/{lib/helpers → helpers}/utils.js +0 -0
- /package/{lib/index.d.ts → index.d.ts} +0 -0
- /package/{lib/index.js → index.js} +0 -0
- /package/{lib/lang → lang}/ca.json +0 -0
- /package/{lib/lang → lang}/de.json +0 -0
- /package/{lib/lang → lang}/en.json +0 -0
- /package/{lib/lang → lang}/es.json +0 -0
- /package/{lib/lang → lang}/eu.json +0 -0
- /package/{lib/lang → lang}/fr.json +0 -0
- /package/{lib/lang → lang}/gl.json +0 -0
- /package/{lib/lang → lang}/index.d.ts +0 -0
- /package/{lib/lang → lang}/index.js +0 -0
- /package/{lib/lang → lang}/it.json +0 -0
- /package/{lib/lang → lang}/nl.json +0 -0
- /package/{lib/lang → lang}/pt.json +0 -0
- /package/{lib/models → models}/Communication/Comment/index.d.ts +0 -0
- /package/{lib/models → models}/Communication/Comment/index.js +0 -0
- /package/{lib/models → models}/Communication/Comment/types.d.ts +0 -0
- /package/{lib/models → models}/Communication/Comment/types.js +0 -0
- /package/{lib/models → models}/Communication/index.d.ts +0 -0
- /package/{lib/models → models}/Communication/index.js +0 -0
- /package/{lib/models → models}/Communication/types.d.ts +0 -0
- /package/{lib/models → models}/Communication/types.js +0 -0
- /package/{lib/models → models}/Counters/Group/Analytics/index.d.ts +0 -0
- /package/{lib/models → models}/Counters/Group/Analytics/index.js +0 -0
- /package/{lib/models → models}/Counters/Group/Analytics/types.d.ts +0 -0
- /package/{lib/models → models}/Counters/Group/Analytics/types.js +0 -0
- /package/{lib/models → models}/Counters/Group/index.d.ts +0 -0
- /package/{lib/models → models}/Counters/Group/index.js +0 -0
- /package/{lib/models → models}/Counters/Group/types.d.ts +0 -0
- /package/{lib/models → models}/Counters/Group/types.js +0 -0
- /package/{lib/models → models}/Counters/event.d.ts +0 -0
- /package/{lib/models → models}/Counters/event.js +0 -0
- /package/{lib/models → models}/Counters/index.d.ts +0 -0
- /package/{lib/models → models}/Counters/index.js +0 -0
- /package/{lib/models → models}/Counters/types.d.ts +0 -0
- /package/{lib/models → models}/Counters/types.js +0 -0
- /package/{lib/models → models}/Customer/Group/index.d.ts +0 -0
- /package/{lib/models → models}/Customer/Group/index.js +0 -0
- /package/{lib/models → models}/Customer/Group/types.d.ts +0 -0
- /package/{lib/models → models}/Customer/Group/types.js +0 -0
- /package/{lib/models → models}/Customer/basic.d.ts +0 -0
- /package/{lib/models → models}/Customer/basic.js +0 -0
- /package/{lib/models → models}/Customer/index.d.ts +0 -0
- /package/{lib/models → models}/Customer/index.js +0 -0
- /package/{lib/models → models}/Customer/types.d.ts +0 -0
- /package/{lib/models → models}/Customer/types.js +0 -0
- /package/{lib/models → models}/Evento/Player/basic.d.ts +0 -0
- /package/{lib/models → models}/Evento/Player/basic.js +0 -0
- /package/{lib/models → models}/Evento/Player/index.d.ts +0 -0
- /package/{lib/models → models}/Evento/Player/index.js +0 -0
- /package/{lib/models → models}/Evento/Player/types.d.ts +0 -0
- /package/{lib/models → models}/Evento/Player/types.js +0 -0
- /package/{lib/models → models}/Evento/Repertory/index.d.ts +0 -0
- /package/{lib/models → models}/Evento/Repertory/index.js +0 -0
- /package/{lib/models → models}/Evento/Repertory/types.d.ts +0 -0
- /package/{lib/models → models}/Evento/Repertory/types.js +0 -0
- /package/{lib/models → models}/Evento/basic.d.ts +0 -0
- /package/{lib/models → models}/Evento/basic.js +0 -0
- /package/{lib/models → models}/Evento/index.d.ts +0 -0
- /package/{lib/models → models}/Evento/index.js +0 -0
- /package/{lib/models → models}/Evento/promoter.d.ts +0 -0
- /package/{lib/models → models}/Evento/promoter.js +0 -0
- /package/{lib/models → models}/Evento/tiny.d.ts +0 -0
- /package/{lib/models → models}/Evento/tiny.js +0 -0
- /package/{lib/models → models}/Evento/types.d.ts +0 -0
- /package/{lib/models → models}/Evento/types.js +0 -0
- /package/{lib/models → models}/Federation/Partnership/index.d.ts +0 -0
- /package/{lib/models → models}/Federation/Partnership/index.js +0 -0
- /package/{lib/models → models}/Federation/Partnership/types.d.ts +0 -0
- /package/{lib/models → models}/Federation/Partnership/types.js +0 -0
- /package/{lib/models → models}/Federation/index.d.ts +0 -0
- /package/{lib/models → models}/Federation/index.js +0 -0
- /package/{lib/models → models}/Federation/types.d.ts +0 -0
- /package/{lib/models → models}/Federation/types.js +0 -0
- /package/{lib/models → models}/Group/Analytics/index.d.ts +0 -0
- /package/{lib/models → models}/Group/Analytics/index.js +0 -0
- /package/{lib/models → models}/Group/Analytics/types.d.ts +0 -0
- /package/{lib/models → models}/Group/Analytics/types.js +0 -0
- /package/{lib/models → models}/Group/Event/index.d.ts +0 -0
- /package/{lib/models → models}/Group/Event/index.js +0 -0
- /package/{lib/models → models}/Group/Event/types.d.ts +0 -0
- /package/{lib/models → models}/Group/Event/types.js +0 -0
- /package/{lib/models → models}/Group/Payment/index.d.ts +0 -0
- /package/{lib/models → models}/Group/Payment/index.js +0 -0
- /package/{lib/models → models}/Group/Payment/supabase.d.ts +0 -0
- /package/{lib/models → models}/Group/Payment/supabase.js +0 -0
- /package/{lib/models → models}/Group/Payment/types.d.ts +0 -0
- /package/{lib/models → models}/Group/Payment/types.js +0 -0
- /package/{lib/models → models}/Group/Player/Event/index.d.ts +0 -0
- /package/{lib/models → models}/Group/Player/Event/index.js +0 -0
- /package/{lib/models → models}/Group/Player/Event/types.d.ts +0 -0
- /package/{lib/models → models}/Group/Player/Event/types.js +0 -0
- /package/{lib/models → models}/Group/Player/Log/index.d.ts +0 -0
- /package/{lib/models → models}/Group/Player/Log/index.js +0 -0
- /package/{lib/models → models}/Group/Player/Log/types.d.ts +0 -0
- /package/{lib/models → models}/Group/Player/Log/types.js +0 -0
- /package/{lib/models → models}/Group/Player/index.d.ts +0 -0
- /package/{lib/models → models}/Group/Player/index.js +0 -0
- /package/{lib/models → models}/Group/Player/types.d.ts +0 -0
- /package/{lib/models → models}/Group/Player/types.js +0 -0
- /package/{lib/models → models}/Group/Repertory/File/Section/index.d.ts +0 -0
- /package/{lib/models → models}/Group/Repertory/File/Section/index.js +0 -0
- /package/{lib/models → models}/Group/Repertory/File/Section/types.d.ts +0 -0
- /package/{lib/models → models}/Group/Repertory/File/Section/types.js +0 -0
- /package/{lib/models → models}/Group/Repertory/File/index.d.ts +0 -0
- /package/{lib/models → models}/Group/Repertory/File/index.js +0 -0
- /package/{lib/models → models}/Group/Repertory/File/types.d.ts +0 -0
- /package/{lib/models → models}/Group/Repertory/File/types.js +0 -0
- /package/{lib/models → models}/Group/Repertory/FilePath/index.d.ts +0 -0
- /package/{lib/models → models}/Group/Repertory/FilePath/index.js +0 -0
- /package/{lib/models → models}/Group/Repertory/index.d.ts +0 -0
- /package/{lib/models → models}/Group/Repertory/index.js +0 -0
- /package/{lib/models → models}/Group/Repertory/types.d.ts +0 -0
- /package/{lib/models → models}/Group/Repertory/types.js +0 -0
- /package/{lib/models → models}/Group/StageTemplate/index.d.ts +0 -0
- /package/{lib/models → models}/Group/StageTemplate/index.js +0 -0
- /package/{lib/models → models}/Group/StageTemplate/types.d.ts +0 -0
- /package/{lib/models → models}/Group/StageTemplate/types.js +0 -0
- /package/{lib/models → models}/Group/basic.d.ts +0 -0
- /package/{lib/models → models}/Group/basic.js +0 -0
- /package/{lib/models → models}/Group/index.d.ts +0 -0
- /package/{lib/models → models}/Group/index.js +0 -0
- /package/{lib/models → models}/Group/types.d.ts +0 -0
- /package/{lib/models → models}/Group/types.js +0 -0
- /package/{lib/models → models}/Instrument/group.d.ts +0 -0
- /package/{lib/models → models}/Instrument/group.js +0 -0
- /package/{lib/models → models}/Instrument/index.d.ts +0 -0
- /package/{lib/models → models}/Instrument/index.js +0 -0
- /package/{lib/models → models}/Inventory/Item/index.d.ts +0 -0
- /package/{lib/models → models}/Inventory/Item/index.js +0 -0
- /package/{lib/models → models}/Inventory/Item/types.d.ts +0 -0
- /package/{lib/models → models}/Inventory/Item/types.js +0 -0
- /package/{lib/models → models}/Inventory/index.d.ts +0 -0
- /package/{lib/models → models}/Inventory/index.js +0 -0
- /package/{lib/models → models}/Inventory/types.d.ts +0 -0
- /package/{lib/models → models}/Inventory/types.js +0 -0
- /package/{lib/models → models}/Metrics/index.d.ts +0 -0
- /package/{lib/models → models}/Metrics/index.js +0 -0
- /package/{lib/models → models}/Metrics/types.d.ts +0 -0
- /package/{lib/models → models}/Metrics/types.js +0 -0
- /package/{lib/models → models}/Model/index.d.ts +0 -0
- /package/{lib/models → models}/Model/index.js +0 -0
- /package/{lib/models → models}/Model/lang.d.ts +0 -0
- /package/{lib/models → models}/Model/lang.js +0 -0
- /package/{lib/models → models}/MusicStyle/index.d.ts +0 -0
- /package/{lib/models → models}/MusicStyle/index.js +0 -0
- /package/{lib/models → models}/Notification/index.d.ts +0 -0
- /package/{lib/models → models}/Notification/index.js +0 -0
- /package/{lib/models → models}/Notification/types.d.ts +0 -0
- /package/{lib/models → models}/Notification/types.js +0 -0
- /package/{lib/models → models}/Offer/Applicant/index.d.ts +0 -0
- /package/{lib/models → models}/Offer/Applicant/index.js +0 -0
- /package/{lib/models → models}/Offer/Applicant/types.d.ts +0 -0
- /package/{lib/models → models}/Offer/Applicant/types.js +0 -0
- /package/{lib/models → models}/Offer/index.d.ts +0 -0
- /package/{lib/models → models}/Offer/index.js +0 -0
- /package/{lib/models → models}/Offer/types.d.ts +0 -0
- /package/{lib/models → models}/Offer/types.js +0 -0
- /package/{lib/models → models}/Partnership/Communication/index.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Communication/index.js +0 -0
- /package/{lib/models → models}/Partnership/Communication/supabase.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Communication/supabase.js +0 -0
- /package/{lib/models → models}/Partnership/Communication/types.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Communication/types.js +0 -0
- /package/{lib/models → models}/Partnership/Group/index.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Group/index.js +0 -0
- /package/{lib/models → models}/Partnership/Group/supabase.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Group/supabase.js +0 -0
- /package/{lib/models → models}/Partnership/Group/types.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Group/types.js +0 -0
- /package/{lib/models → models}/Partnership/Partner/index.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Partner/index.js +0 -0
- /package/{lib/models → models}/Partnership/Partner/supabase.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Partner/supabase.js +0 -0
- /package/{lib/models → models}/Partnership/Partner/types.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Partner/types.js +0 -0
- /package/{lib/models → models}/Partnership/Payment/index.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Payment/index.js +0 -0
- /package/{lib/models → models}/Partnership/Payment/supabase.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Payment/supabase.js +0 -0
- /package/{lib/models → models}/Partnership/Payment/types.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Payment/types.js +0 -0
- /package/{lib/models → models}/Partnership/Plan/index.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Plan/index.js +0 -0
- /package/{lib/models → models}/Partnership/Plan/supabase.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Plan/supabase.js +0 -0
- /package/{lib/models → models}/Partnership/Plan/types.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Plan/types.js +0 -0
- /package/{lib/models → models}/Partnership/SepaPaymentGroup/index.d.ts +0 -0
- /package/{lib/models → models}/Partnership/SepaPaymentGroup/index.js +0 -0
- /package/{lib/models → models}/Partnership/SepaPaymentGroup/supabase.d.ts +0 -0
- /package/{lib/models → models}/Partnership/SepaPaymentGroup/supabase.js +0 -0
- /package/{lib/models → models}/Partnership/SepaPaymentGroup/types.d.ts +0 -0
- /package/{lib/models → models}/Partnership/SepaPaymentGroup/types.js +0 -0
- /package/{lib/models → models}/Partnership/Subscription/index.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Subscription/index.js +0 -0
- /package/{lib/models → models}/Partnership/Subscription/supabase.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Subscription/supabase.js +0 -0
- /package/{lib/models → models}/Partnership/Subscription/types.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Subscription/types.js +0 -0
- /package/{lib/models → models}/Partnership/basic.d.ts +0 -0
- /package/{lib/models → models}/Partnership/basic.js +0 -0
- /package/{lib/models → models}/Partnership/index.d.ts +0 -0
- /package/{lib/models → models}/Partnership/index.js +0 -0
- /package/{lib/models → models}/Partnership/types.d.ts +0 -0
- /package/{lib/models → models}/Partnership/types.js +0 -0
- /package/{lib/models → models}/Player/basic.d.ts +0 -0
- /package/{lib/models → models}/Player/basic.js +0 -0
- /package/{lib/models → models}/Player/types.d.ts +0 -0
- /package/{lib/models → models}/Player/types.js +0 -0
- /package/{lib/models → models}/Repertory/basic.d.ts +0 -0
- /package/{lib/models → models}/Repertory/basic.js +0 -0
- /package/{lib/models → models}/Repertory/types.d.ts +0 -0
- /package/{lib/models → models}/Repertory/types.js +0 -0
- /package/{lib/models → models}/User/Group/index.d.ts +0 -0
- /package/{lib/models → models}/User/Group/index.js +0 -0
- /package/{lib/models → models}/User/Group/types.d.ts +0 -0
- /package/{lib/models → models}/User/Group/types.js +0 -0
- /package/{lib/models → models}/User/Notification/index.d.ts +0 -0
- /package/{lib/models → models}/User/Notification/index.js +0 -0
- /package/{lib/models → models}/User/Notification/types.d.ts +0 -0
- /package/{lib/models → models}/User/Notification/types.js +0 -0
- /package/{lib/models → models}/User/OfferAlarm/index.d.ts +0 -0
- /package/{lib/models → models}/User/OfferAlarm/index.js +0 -0
- /package/{lib/models → models}/User/OfferAlarm/types.d.ts +0 -0
- /package/{lib/models → models}/User/OfferAlarm/types.js +0 -0
- /package/{lib/models → models}/User/Partnership/index.d.ts +0 -0
- /package/{lib/models → models}/User/Partnership/index.js +0 -0
- /package/{lib/models → models}/User/Partnership/types.d.ts +0 -0
- /package/{lib/models → models}/User/Partnership/types.js +0 -0
- /package/{lib/models → models}/User/basic.d.ts +0 -0
- /package/{lib/models → models}/User/basic.js +0 -0
- /package/{lib/models → models}/User/extended.d.ts +0 -0
- /package/{lib/models → models}/User/extended.js +0 -0
- /package/{lib/models → models}/User/index.d.ts +0 -0
- /package/{lib/models → models}/User/index.js +0 -0
- /package/{lib/models → models}/User/types.d.ts +0 -0
- /package/{lib/models → models}/User/types.js +0 -0
- /package/{lib/models → models}/WebhookEvent/index.d.ts +0 -0
- /package/{lib/models → models}/WebhookEvent/index.js +0 -0
- /package/{lib/models → models}/WebhookEvent/types.d.ts +0 -0
- /package/{lib/models → models}/WebhookEvent/types.js +0 -0
- /package/{lib/types → types}/firestore.d.ts +0 -0
- /package/{lib/types → types}/firestore.js +0 -0
- /package/{lib/types → types}/messagebirdChatWidget.d.ts +0 -0
- /package/{lib/types → types}/messagebirdChatWidget.js +0 -0
- /package/{lib/types → types}/minVersion.d.ts +0 -0
- /package/{lib/types → types}/minVersion.js +0 -0
- /package/{lib/types → types}/payoutRule.d.ts +0 -0
- /package/{lib/types → types}/payoutRule.js +0 -0
- /package/{lib/types → types}/supabase/generated.d.ts +0 -0
- /package/{lib/types → types}/supabase/generated.js +0 -0
- /package/{lib/types → types}/supabase/index.d.ts +0 -0
- /package/{lib/types → types}/supabase/index.js +0 -0
- /package/{lib/types → types}/supabase/overwrites/comm.d.ts +0 -0
- /package/{lib/types → types}/supabase/overwrites/comm.js +0 -0
- /package/{lib/types → types}/supabase/overwrites/comm_history.d.ts +0 -0
- /package/{lib/types → types}/supabase/overwrites/comm_history.js +0 -0
- /package/{lib/types → types}/supabase/overwrites/event.d.ts +0 -0
- /package/{lib/types → types}/supabase/overwrites/event.js +0 -0
- /package/{lib/types → types}/supabase/overwrites/event_history.d.ts +0 -0
- /package/{lib/types → types}/supabase/overwrites/event_history.js +0 -0
- /package/{lib/types → types}/supabase/overwrites/group.d.ts +0 -0
- /package/{lib/types → types}/supabase/overwrites/group.js +0 -0
- /package/{lib/types → types}/supabase/overwrites/group_history.d.ts +0 -0
- /package/{lib/types → types}/supabase/overwrites/group_history.js +0 -0
- /package/{lib/types → types}/supabase/overwrites/index.d.ts +0 -0
- /package/{lib/types → types}/supabase/overwrites/index.js +0 -0
- /package/{lib/types → types}/supabase/overwrites/offer.d.ts +0 -0
- /package/{lib/types → types}/supabase/overwrites/offer.js +0 -0
- /package/{lib/types → types}/supabase/overwrites/offer_history.d.ts +0 -0
- /package/{lib/types → types}/supabase/overwrites/offer_history.js +0 -0
- /package/{lib/types → types}/supabase/overwrites/repertoire.d.ts +0 -0
- /package/{lib/types → types}/supabase/overwrites/repertoire.js +0 -0
- /package/{lib/types → types}/supabase/overwrites/repertoire_history.d.ts +0 -0
- /package/{lib/types → types}/supabase/overwrites/repertoire_history.js +0 -0
- /package/{lib/types → types}/supabase/overwrites/utils.d.ts +0 -0
- /package/{lib/types → types}/supabase/overwrites/utils.js +0 -0
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
SET statement_timeout = 0;
|
|
3
|
-
SET lock_timeout = 0;
|
|
4
|
-
SET idle_in_transaction_session_timeout = 0;
|
|
5
|
-
SET client_encoding = 'UTF8';
|
|
6
|
-
SET standard_conforming_strings = on;
|
|
7
|
-
SELECT pg_catalog.set_config('search_path', '', false);
|
|
8
|
-
SET check_function_bodies = false;
|
|
9
|
-
SET xmloption = content;
|
|
10
|
-
SET client_min_messages = warning;
|
|
11
|
-
SET row_security = off;
|
|
12
|
-
|
|
13
|
-
CREATE EXTENSION IF NOT EXISTS "pg_graphql" WITH SCHEMA "graphql";
|
|
14
|
-
|
|
15
|
-
CREATE EXTENSION IF NOT EXISTS "pg_stat_statements" WITH SCHEMA "extensions";
|
|
16
|
-
|
|
17
|
-
CREATE EXTENSION IF NOT EXISTS "pgcrypto" WITH SCHEMA "extensions";
|
|
18
|
-
|
|
19
|
-
CREATE EXTENSION IF NOT EXISTS "pgjwt" WITH SCHEMA "extensions";
|
|
20
|
-
|
|
21
|
-
CREATE EXTENSION IF NOT EXISTS "postgis" WITH SCHEMA "extensions";
|
|
22
|
-
|
|
23
|
-
CREATE EXTENSION IF NOT EXISTS "supabase_vault" CASCADE;
|
|
24
|
-
|
|
25
|
-
CREATE EXTENSION IF NOT EXISTS "uuid-ossp" WITH SCHEMA "extensions";
|
|
26
|
-
|
|
27
|
-
CREATE TYPE "public"."event_created_on" AS ENUM (
|
|
28
|
-
'app',
|
|
29
|
-
'dashboard',
|
|
30
|
-
'auth'
|
|
31
|
-
);
|
|
32
|
-
|
|
33
|
-
ALTER TYPE "public"."event_created_on" OWNER TO "postgres";
|
|
34
|
-
|
|
35
|
-
CREATE TYPE "public"."event_selection_mode" AS ENUM (
|
|
36
|
-
'open',
|
|
37
|
-
'closed'
|
|
38
|
-
);
|
|
39
|
-
|
|
40
|
-
ALTER TYPE "public"."event_selection_mode" OWNER TO "postgres";
|
|
41
|
-
|
|
42
|
-
CREATE TYPE "public"."event_type" AS ENUM (
|
|
43
|
-
'practice',
|
|
44
|
-
'performance'
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
ALTER TYPE "public"."event_type" OWNER TO "postgres";
|
|
48
|
-
|
|
49
|
-
CREATE TYPE "public"."group_created_on" AS ENUM (
|
|
50
|
-
'web',
|
|
51
|
-
'app',
|
|
52
|
-
'dashboard'
|
|
53
|
-
);
|
|
54
|
-
|
|
55
|
-
ALTER TYPE "public"."group_created_on" OWNER TO "postgres";
|
|
56
|
-
|
|
57
|
-
CREATE TYPE "public"."group_plan" AS ENUM (
|
|
58
|
-
'piano',
|
|
59
|
-
'mezzopiano',
|
|
60
|
-
'mezzoforte',
|
|
61
|
-
'forte',
|
|
62
|
-
'fortissimo',
|
|
63
|
-
'tutti'
|
|
64
|
-
);
|
|
65
|
-
|
|
66
|
-
ALTER TYPE "public"."group_plan" OWNER TO "postgres";
|
|
67
|
-
|
|
68
|
-
CREATE TYPE "public"."group_plan_period" AS ENUM (
|
|
69
|
-
'yearly',
|
|
70
|
-
'monthly'
|
|
71
|
-
);
|
|
72
|
-
|
|
73
|
-
ALTER TYPE "public"."group_plan_period" OWNER TO "postgres";
|
|
74
|
-
|
|
75
|
-
CREATE TYPE "public"."group_status" AS ENUM (
|
|
76
|
-
'premium',
|
|
77
|
-
'trial',
|
|
78
|
-
'inactive',
|
|
79
|
-
'deleted'
|
|
80
|
-
);
|
|
81
|
-
|
|
82
|
-
ALTER TYPE "public"."group_status" OWNER TO "postgres";
|
|
83
|
-
|
|
84
|
-
CREATE TYPE "public"."social_network" AS ENUM (
|
|
85
|
-
'facebook',
|
|
86
|
-
'twitter',
|
|
87
|
-
'instagram',
|
|
88
|
-
'youtube'
|
|
89
|
-
);
|
|
90
|
-
|
|
91
|
-
ALTER TYPE "public"."social_network" OWNER TO "postgres";
|
|
92
|
-
|
|
93
|
-
SET default_tablespace = '';
|
|
94
|
-
|
|
95
|
-
SET default_table_access_method = "heap";
|
|
96
|
-
|
|
97
|
-
CREATE TABLE IF NOT EXISTS "public"."event" (
|
|
98
|
-
"id" "uuid" DEFAULT "gen_random_uuid"() NOT NULL,
|
|
99
|
-
"created_at" timestamp with time zone DEFAULT "now"() NOT NULL,
|
|
100
|
-
"updated_at" timestamp with time zone DEFAULT "now"() NOT NULL,
|
|
101
|
-
"display_name" "text",
|
|
102
|
-
"datetime" timestamp with time zone NOT NULL,
|
|
103
|
-
"type" "public"."event_type" NOT NULL,
|
|
104
|
-
"locality" "text",
|
|
105
|
-
"online" boolean NOT NULL,
|
|
106
|
-
"datetime_end" timestamp with time zone NOT NULL,
|
|
107
|
-
"response_deadline_at" timestamp with time zone NOT NULL,
|
|
108
|
-
"selection_mode" "public"."event_selection_mode",
|
|
109
|
-
"promoter_group_id" "uuid" NOT NULL,
|
|
110
|
-
"cover_url" "text",
|
|
111
|
-
"video_url" "text",
|
|
112
|
-
"description" "text",
|
|
113
|
-
"description_slate" "jsonb"[] NOT NULL,
|
|
114
|
-
"player_ids" "text"[] NOT NULL,
|
|
115
|
-
"players" "jsonb" NOT NULL,
|
|
116
|
-
"repertory_ids" "text"[] NOT NULL,
|
|
117
|
-
"repertory" "jsonb" NOT NULL,
|
|
118
|
-
"rel_events" "text"[] NOT NULL,
|
|
119
|
-
"active_invitation_link" boolean NOT NULL,
|
|
120
|
-
"short_dynamic_link" "text",
|
|
121
|
-
"invitation_link" "text",
|
|
122
|
-
"notify_at" timestamp with time zone NOT NULL,
|
|
123
|
-
"max_attendance" bigint,
|
|
124
|
-
"deleted_at" timestamp with time zone,
|
|
125
|
-
"roll_called_by" "text",
|
|
126
|
-
"roll_called_at" timestamp with time zone,
|
|
127
|
-
"roll_call_reminder_at" timestamp with time zone,
|
|
128
|
-
"roll_call_history" "jsonb"[] NOT NULL,
|
|
129
|
-
"template_id" "text",
|
|
130
|
-
"repeat" "jsonb",
|
|
131
|
-
"stage" "jsonb",
|
|
132
|
-
"stage_template_id" "text",
|
|
133
|
-
"response_deadline" "jsonb" NOT NULL,
|
|
134
|
-
"selection_mode_closed_at" timestamp with time zone NOT NULL,
|
|
135
|
-
"owner_user_id" "uuid" NOT NULL,
|
|
136
|
-
"created_on" "public"."event_created_on" NOT NULL,
|
|
137
|
-
"location" "extensions"."geography" NOT NULL
|
|
138
|
-
);
|
|
139
|
-
|
|
140
|
-
ALTER TABLE "public"."event" OWNER TO "postgres";
|
|
141
|
-
|
|
142
|
-
CREATE TABLE IF NOT EXISTS "public"."group" (
|
|
143
|
-
"id" "uuid" DEFAULT "gen_random_uuid"() NOT NULL,
|
|
144
|
-
"display_name" "text" NOT NULL,
|
|
145
|
-
"photo_url" "text" NOT NULL,
|
|
146
|
-
"username" "text" NOT NULL,
|
|
147
|
-
"music_style" "text" NOT NULL,
|
|
148
|
-
"locality" "text" NOT NULL,
|
|
149
|
-
"location" "extensions"."geography"(Point,4326) NOT NULL,
|
|
150
|
-
"created_at" timestamp with time zone DEFAULT "now"() NOT NULL,
|
|
151
|
-
"updated_at" timestamp with time zone DEFAULT "now"() NOT NULL,
|
|
152
|
-
"players" "jsonb" NOT NULL,
|
|
153
|
-
"templates" "jsonb" NOT NULL,
|
|
154
|
-
"active_invitation_link" boolean NOT NULL,
|
|
155
|
-
"invitation_link" "text",
|
|
156
|
-
"short_dynamic_link" "text",
|
|
157
|
-
"intercom_id" "text",
|
|
158
|
-
"description" "text",
|
|
159
|
-
"deleted_at" timestamp with time zone,
|
|
160
|
-
"social_networks" "jsonb",
|
|
161
|
-
"config" "jsonb" NOT NULL,
|
|
162
|
-
"satisfaction_index" "jsonb" NOT NULL,
|
|
163
|
-
"plan_id" "public"."group_plan" NOT NULL,
|
|
164
|
-
"partnsership_id" "text",
|
|
165
|
-
"customer_id" "text",
|
|
166
|
-
"country" "text" NOT NULL,
|
|
167
|
-
"instruments" "jsonb" NOT NULL,
|
|
168
|
-
"metadata" "jsonb" NOT NULL,
|
|
169
|
-
"repertoire_tags" "jsonb" NOT NULL,
|
|
170
|
-
"trial_end_at" timestamp with time zone,
|
|
171
|
-
"visited_dashboard_at" "jsonb" NOT NULL,
|
|
172
|
-
"created_on" "public"."group_created_on" NOT NULL,
|
|
173
|
-
"owner_user_id" "text" NOT NULL,
|
|
174
|
-
"player_ids" "text"[] NOT NULL,
|
|
175
|
-
"administrators" "text"[] NOT NULL,
|
|
176
|
-
"invitation_emails" "text"[] NOT NULL,
|
|
177
|
-
"status" "public"."group_status" NOT NULL,
|
|
178
|
-
"onboarding_messages" "jsonb"[] NOT NULL,
|
|
179
|
-
"addresses" "jsonb"[] NOT NULL
|
|
180
|
-
);
|
|
181
|
-
|
|
182
|
-
ALTER TABLE "public"."group" OWNER TO "postgres";
|
|
183
|
-
|
|
184
|
-
ALTER TABLE ONLY "public"."event"
|
|
185
|
-
ADD CONSTRAINT "event_pkey" PRIMARY KEY ("id");
|
|
186
|
-
|
|
187
|
-
ALTER TABLE ONLY "public"."group"
|
|
188
|
-
ADD CONSTRAINT "group_pkey" PRIMARY KEY ("id");
|
|
189
|
-
|
|
190
|
-
ALTER TABLE ONLY "public"."group"
|
|
191
|
-
ADD CONSTRAINT "group_username_key" UNIQUE ("username");
|
|
192
|
-
|
|
193
|
-
ALTER TABLE ONLY "public"."event"
|
|
194
|
-
ADD CONSTRAINT "event_promoter_group_id_fkey" FOREIGN KEY ("promoter_group_id") REFERENCES "public"."group"("id") ON UPDATE CASCADE ON DELETE CASCADE;
|
|
195
|
-
|
|
196
|
-
ALTER TABLE "public"."event" ENABLE ROW LEVEL SECURITY;
|
|
197
|
-
|
|
198
|
-
ALTER TABLE "public"."group" ENABLE ROW LEVEL SECURITY;
|
|
199
|
-
|
|
200
|
-
GRANT USAGE ON SCHEMA "public" TO "postgres";
|
|
201
|
-
GRANT USAGE ON SCHEMA "public" TO "anon";
|
|
202
|
-
GRANT USAGE ON SCHEMA "public" TO "authenticated";
|
|
203
|
-
GRANT USAGE ON SCHEMA "public" TO "service_role";
|
|
204
|
-
|
|
205
|
-
GRANT ALL ON TABLE "public"."event" TO "anon";
|
|
206
|
-
GRANT ALL ON TABLE "public"."event" TO "authenticated";
|
|
207
|
-
GRANT ALL ON TABLE "public"."event" TO "service_role";
|
|
208
|
-
|
|
209
|
-
GRANT ALL ON TABLE "public"."group" TO "anon";
|
|
210
|
-
GRANT ALL ON TABLE "public"."group" TO "authenticated";
|
|
211
|
-
GRANT ALL ON TABLE "public"."group" TO "service_role";
|
|
212
|
-
|
|
213
|
-
ALTER DEFAULT PRIVILEGES FOR ROLE "postgres" IN SCHEMA "public" GRANT ALL ON SEQUENCES TO "postgres";
|
|
214
|
-
ALTER DEFAULT PRIVILEGES FOR ROLE "postgres" IN SCHEMA "public" GRANT ALL ON SEQUENCES TO "anon";
|
|
215
|
-
ALTER DEFAULT PRIVILEGES FOR ROLE "postgres" IN SCHEMA "public" GRANT ALL ON SEQUENCES TO "authenticated";
|
|
216
|
-
ALTER DEFAULT PRIVILEGES FOR ROLE "postgres" IN SCHEMA "public" GRANT ALL ON SEQUENCES TO "service_role";
|
|
217
|
-
|
|
218
|
-
ALTER DEFAULT PRIVILEGES FOR ROLE "postgres" IN SCHEMA "public" GRANT ALL ON FUNCTIONS TO "postgres";
|
|
219
|
-
ALTER DEFAULT PRIVILEGES FOR ROLE "postgres" IN SCHEMA "public" GRANT ALL ON FUNCTIONS TO "anon";
|
|
220
|
-
ALTER DEFAULT PRIVILEGES FOR ROLE "postgres" IN SCHEMA "public" GRANT ALL ON FUNCTIONS TO "authenticated";
|
|
221
|
-
ALTER DEFAULT PRIVILEGES FOR ROLE "postgres" IN SCHEMA "public" GRANT ALL ON FUNCTIONS TO "service_role";
|
|
222
|
-
|
|
223
|
-
ALTER DEFAULT PRIVILEGES FOR ROLE "postgres" IN SCHEMA "public" GRANT ALL ON TABLES TO "postgres";
|
|
224
|
-
ALTER DEFAULT PRIVILEGES FOR ROLE "postgres" IN SCHEMA "public" GRANT ALL ON TABLES TO "anon";
|
|
225
|
-
ALTER DEFAULT PRIVILEGES FOR ROLE "postgres" IN SCHEMA "public" GRANT ALL ON TABLES TO "authenticated";
|
|
226
|
-
ALTER DEFAULT PRIVILEGES FOR ROLE "postgres" IN SCHEMA "public" GRANT ALL ON TABLES TO "service_role";
|
|
227
|
-
|
|
228
|
-
RESET ALL;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
alter table "public"."event" alter column "selection_mode_closed_at" drop not null;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
alter table "public"."event" add column "timezone" text not null;
|
|
2
|
-
|
|
3
|
-
alter table "public"."event" alter column "id" drop default;
|
|
4
|
-
|
|
5
|
-
alter table "public"."event" alter column "id" set data type text using "id"::text;
|
|
6
|
-
|
|
7
|
-
alter table "public"."event" alter column "location" set data type geography(Point,4326) using "location"::geography(Point,4326);
|
|
8
|
-
|
|
9
|
-
alter table "public"."event" drop column "promoter_group_id";
|
|
10
|
-
|
|
11
|
-
alter table "public"."group" alter column "id" set data type text using "id"::text;
|
|
12
|
-
|
|
13
|
-
alter table "public"."event" add column "promoter_group_id" text;
|
|
14
|
-
|
|
15
|
-
ALTER TABLE "public"."event"
|
|
16
|
-
ADD CONSTRAINT event_promoter_group_id_fkey FOREIGN KEY (promoter_group_id) REFERENCES "group"(id);
|
|
17
|
-
|
|
18
|
-
alter table "public"."group" drop column "partnsership_id";
|
|
19
|
-
|
|
20
|
-
alter table "public"."group" add column "partnership_id" text;
|
|
21
|
-
|
|
22
|
-
alter table "public"."group" alter column "id" drop default;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
alter table "public"."group" alter column "owner_user_id" drop not null;
|
|
26
|
-
|
|
27
|
-
CREATE INDEX event_geo_index ON public.event USING gist (location);
|
|
28
|
-
|
|
29
|
-
CREATE INDEX group_geo_index ON public."group" USING gist (location);
|
|
30
|
-
|
|
31
|
-
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
create extension if not exists moddatetime schema extensions;
|
|
2
|
-
|
|
3
|
-
create trigger
|
|
4
|
-
handle_group__updated_at before update
|
|
5
|
-
on "group"
|
|
6
|
-
for each row execute
|
|
7
|
-
procedure moddatetime(updated_at);
|
|
8
|
-
|
|
9
|
-
create trigger
|
|
10
|
-
handle_event__updated_at before update
|
|
11
|
-
on "event"
|
|
12
|
-
for each row execute
|
|
13
|
-
procedure moddatetime(updated_at);
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
alter table "public"."event" drop constraint "event_promoter_group_id_fkey";
|
|
2
|
-
|
|
3
|
-
alter table "public"."event" alter column "promoter_group_id" set not null;
|
|
4
|
-
|
|
5
|
-
alter table "public"."event" add constraint "event_promoter_group_id_fkey" FOREIGN KEY (promoter_group_id) REFERENCES "group"(id) ON UPDATE CASCADE ON DELETE CASCADE not valid;
|
|
6
|
-
|
|
7
|
-
alter table "public"."event" validate constraint "event_promoter_group_id_fkey";
|
|
8
|
-
|
|
9
|
-
create policy "Enable read access for all users"
|
|
10
|
-
on "public"."event"
|
|
11
|
-
as permissive
|
|
12
|
-
for select
|
|
13
|
-
to public
|
|
14
|
-
using (true);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
create policy "Enable read access for all users"
|
|
18
|
-
on "public"."group"
|
|
19
|
-
as permissive
|
|
20
|
-
for select
|
|
21
|
-
to public
|
|
22
|
-
using (true);
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
alter table "public"."event" rename column "active_invitation_link" to "activeInvitationLink";
|
|
2
|
-
|
|
3
|
-
alter table "public"."event" rename column "cover_url" to "coverURL";
|
|
4
|
-
|
|
5
|
-
alter table "public"."event" rename column "created_at" to "createdAt";
|
|
6
|
-
|
|
7
|
-
alter table "public"."event" rename column "datetime_end" to "datetimeEnd";
|
|
8
|
-
|
|
9
|
-
alter table "public"."event" rename column "description_slate" to "descriptionSlate";
|
|
10
|
-
|
|
11
|
-
alter table "public"."event" rename column "display_name" to "displayName";
|
|
12
|
-
|
|
13
|
-
alter table "public"."event" rename column "invitation_link" to "invitationLink";
|
|
14
|
-
|
|
15
|
-
alter table "public"."event" rename column "max_attendance" to "maxAttendance";
|
|
16
|
-
|
|
17
|
-
alter table "public"."event" rename column "notify_at" to "notifyAt";
|
|
18
|
-
|
|
19
|
-
alter table "public"."event" rename column "player_ids" to "playerIds";
|
|
20
|
-
|
|
21
|
-
alter table "public"."event" rename column "rel_events" to "relEvents";
|
|
22
|
-
|
|
23
|
-
alter table "public"."event" rename column "repertory_ids" to "repertoryIds";
|
|
24
|
-
|
|
25
|
-
alter table "public"."event" rename column "response_deadline_at" to "responseDeadlineAt";
|
|
26
|
-
|
|
27
|
-
alter table "public"."event" rename column "selection_mode" to "selectionMode";
|
|
28
|
-
|
|
29
|
-
alter table "public"."event" rename column "short_dynamic_link" to "shortDynamicLink";
|
|
30
|
-
|
|
31
|
-
alter table "public"."event" rename column "updated_at" to "updatedAt";
|
|
32
|
-
|
|
33
|
-
alter table "public"."event" rename column "video_url" to "videoURL";
|
|
34
|
-
|
|
35
|
-
alter table "public"."event" rename column "created_on" to "createdOn";
|
|
36
|
-
|
|
37
|
-
alter table "public"."event" rename column "deleted_at" to "deletedAt";
|
|
38
|
-
|
|
39
|
-
alter table "public"."event" rename column "owner_user_id" to "owner";
|
|
40
|
-
|
|
41
|
-
alter table "public"."event" rename column "promoter_group_id" to "promoter";
|
|
42
|
-
|
|
43
|
-
alter table "public"."event" rename column "response_deadline" to "responseDeadline";
|
|
44
|
-
|
|
45
|
-
alter table "public"."event" rename column "roll_call_history" to "rollCallHistory";
|
|
46
|
-
|
|
47
|
-
alter table "public"."event" rename column "roll_call_reminder_at" to "rollCallReminderAt";
|
|
48
|
-
|
|
49
|
-
alter table "public"."event" rename column "roll_called_at" to "rollCalledAt";
|
|
50
|
-
|
|
51
|
-
alter table "public"."event" rename column "roll_called_by" to "rollCalledBy";
|
|
52
|
-
|
|
53
|
-
alter table "public"."event" rename column "selection_mode_closed_at" to "selectionModeClosedAt";
|
|
54
|
-
|
|
55
|
-
alter table "public"."event" rename column "stage_template_id" to "stageTemplateId";
|
|
56
|
-
|
|
57
|
-
alter table "public"."event" rename column "template_id" to "templateId";
|
|
58
|
-
|
|
59
|
-
alter table "public"."group" rename column "active_invitation_link" to "activeInvitationLink";
|
|
60
|
-
|
|
61
|
-
alter table "public"."group" rename column "created_at" to "createdAt";
|
|
62
|
-
|
|
63
|
-
alter table "public"."group" rename column "created_on" to "createdOn";
|
|
64
|
-
|
|
65
|
-
alter table "public"."group" rename column "customer_id" to "customerId";
|
|
66
|
-
|
|
67
|
-
alter table "public"."group" rename column "deleted_at" to "deletedAt";
|
|
68
|
-
|
|
69
|
-
alter table "public"."group" rename column "display_name" to "displayName";
|
|
70
|
-
|
|
71
|
-
alter table "public"."group" rename column "intercom_id" to "intercomId";
|
|
72
|
-
|
|
73
|
-
alter table "public"."group" rename column "invitation_emails" to "invitationEmails";
|
|
74
|
-
|
|
75
|
-
alter table "public"."group" rename column "invitation_link" to "invitationLink";
|
|
76
|
-
|
|
77
|
-
alter table "public"."group" rename column "music_style" to "musicStyle";
|
|
78
|
-
|
|
79
|
-
alter table "public"."group" rename column "onboarding_messages" to "onboardingMessages";
|
|
80
|
-
|
|
81
|
-
alter table "public"."group" rename column "owner_user_id" to "owner";
|
|
82
|
-
|
|
83
|
-
alter table "public"."group" rename column "partnership_id" to "partnershipId";
|
|
84
|
-
|
|
85
|
-
alter table "public"."group" rename column "photo_url" to "photoURL";
|
|
86
|
-
|
|
87
|
-
alter table "public"."group" rename column "plan_id" to "planId";
|
|
88
|
-
|
|
89
|
-
alter table "public"."group" rename column "player_ids" to "playerIds";
|
|
90
|
-
|
|
91
|
-
alter table "public"."group" rename column "repertoire_tags" to "repertoireTags";
|
|
92
|
-
|
|
93
|
-
alter table "public"."group" rename column "satisfaction_index" to "satisfactionIndex";
|
|
94
|
-
|
|
95
|
-
alter table "public"."group" rename column "short_dynamic_link" to "shortDynamicLink";
|
|
96
|
-
|
|
97
|
-
alter table "public"."group" rename column "social_networks" to "socialNetworks";
|
|
98
|
-
|
|
99
|
-
alter table "public"."group" rename column "trial_end_at" to "trialEndAt";
|
|
100
|
-
|
|
101
|
-
alter table "public"."group" rename column "updated_at" to "updatedAt";
|
|
102
|
-
|
|
103
|
-
alter table "public"."group" rename column "visited_dashboard_at" to "visitedDashboardAt";
|
|
104
|
-
|
|
105
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
create type "public"."lonlat" as ("longitude" numeric, "latitude" numeric);
|
|
2
|
-
|
|
3
|
-
alter table "public"."event" add column "location_lonlat" lonlat generated always as (ROW((st_x((location)::geometry))::numeric, (st_y((location)::geometry))::numeric)::lonlat) stored;
|
|
4
|
-
|
|
5
|
-
alter table "public"."event" alter column "location_lonlat" set not null;
|
|
6
|
-
|
|
7
|
-
alter table "public"."event" add column "sites" boolean not null default false;
|
|
8
|
-
|
|
9
|
-
alter table "public"."group" add column "configSites" jsonb not null default '{"active": false, "showEvents": false, "showMembers": false}'::jsonb;
|
|
10
|
-
|
|
11
|
-
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
drop trigger if exists "handle_event__updated_at" on "public"."event";
|
|
2
|
-
|
|
3
|
-
drop trigger if exists "handle_group__updated_at" on "public"."group";
|
|
4
|
-
|
|
5
|
-
CREATE TRIGGER event__handle_updatedat BEFORE UPDATE ON public.event FOR EACH ROW EXECUTE FUNCTION moddatetime('updatedAt');
|
|
6
|
-
|
|
7
|
-
CREATE TRIGGER group__handle_updatedat BEFORE UPDATE ON public."group" FOR EACH ROW EXECUTE FUNCTION moddatetime('updatedAt');
|
|
8
|
-
|
|
9
|
-
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
create type "public"."offer_type" as enum ('group', 'event');
|
|
2
|
-
|
|
3
|
-
create table "public"."offer" (
|
|
4
|
-
"id" text not null,
|
|
5
|
-
"title" text not null,
|
|
6
|
-
"description" text not null,
|
|
7
|
-
"instrument" text not null,
|
|
8
|
-
"type" offer_type not null,
|
|
9
|
-
"group" text not null,
|
|
10
|
-
"event" text,
|
|
11
|
-
"applicantsIds" text[] not null,
|
|
12
|
-
"applicants" jsonb not null,
|
|
13
|
-
"deadlineAt" timestamp with time zone,
|
|
14
|
-
"selectionClosedAt" timestamp with time zone,
|
|
15
|
-
"selectionClosedBy" text,
|
|
16
|
-
"updatedAt" timestamp with time zone not null,
|
|
17
|
-
"updatedBy" text not null,
|
|
18
|
-
"deletedAt" timestamp with time zone,
|
|
19
|
-
"deletedBy" text,
|
|
20
|
-
"createdAt" timestamp with time zone not null,
|
|
21
|
-
"createdBy" text not null
|
|
22
|
-
);
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
alter table "public"."offer" enable row level security;
|
|
26
|
-
|
|
27
|
-
CREATE UNIQUE INDEX offer_pkey ON public.offer USING btree (id);
|
|
28
|
-
|
|
29
|
-
alter table "public"."offer" add constraint "offer_pkey" PRIMARY KEY using index "offer_pkey";
|
|
30
|
-
|
|
31
|
-
alter table "public"."offer" add constraint "public_offer_event_fkey" FOREIGN KEY (event) REFERENCES event(id) ON UPDATE CASCADE ON DELETE CASCADE not valid;
|
|
32
|
-
|
|
33
|
-
alter table "public"."offer" validate constraint "public_offer_event_fkey";
|
|
34
|
-
|
|
35
|
-
alter table "public"."offer" add constraint "public_offer_group_fkey" FOREIGN KEY ("group") REFERENCES "group"(id) ON UPDATE CASCADE ON DELETE CASCADE not valid;
|
|
36
|
-
|
|
37
|
-
alter table "public"."offer" validate constraint "public_offer_group_fkey";
|
|
38
|
-
|
|
39
|
-
grant delete on table "public"."offer" to "anon";
|
|
40
|
-
|
|
41
|
-
grant insert on table "public"."offer" to "anon";
|
|
42
|
-
|
|
43
|
-
grant references on table "public"."offer" to "anon";
|
|
44
|
-
|
|
45
|
-
grant select on table "public"."offer" to "anon";
|
|
46
|
-
|
|
47
|
-
grant trigger on table "public"."offer" to "anon";
|
|
48
|
-
|
|
49
|
-
grant truncate on table "public"."offer" to "anon";
|
|
50
|
-
|
|
51
|
-
grant update on table "public"."offer" to "anon";
|
|
52
|
-
|
|
53
|
-
grant delete on table "public"."offer" to "authenticated";
|
|
54
|
-
|
|
55
|
-
grant insert on table "public"."offer" to "authenticated";
|
|
56
|
-
|
|
57
|
-
grant references on table "public"."offer" to "authenticated";
|
|
58
|
-
|
|
59
|
-
grant select on table "public"."offer" to "authenticated";
|
|
60
|
-
|
|
61
|
-
grant trigger on table "public"."offer" to "authenticated";
|
|
62
|
-
|
|
63
|
-
grant truncate on table "public"."offer" to "authenticated";
|
|
64
|
-
|
|
65
|
-
grant update on table "public"."offer" to "authenticated";
|
|
66
|
-
|
|
67
|
-
grant delete on table "public"."offer" to "service_role";
|
|
68
|
-
|
|
69
|
-
grant insert on table "public"."offer" to "service_role";
|
|
70
|
-
|
|
71
|
-
grant references on table "public"."offer" to "service_role";
|
|
72
|
-
|
|
73
|
-
grant select on table "public"."offer" to "service_role";
|
|
74
|
-
|
|
75
|
-
grant trigger on table "public"."offer" to "service_role";
|
|
76
|
-
|
|
77
|
-
grant truncate on table "public"."offer" to "service_role";
|
|
78
|
-
|
|
79
|
-
grant update on table "public"."offer" to "service_role";
|
|
80
|
-
|
|
81
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
alter table "public"."offer" add column "country" text not null;
|
|
2
|
-
|
|
3
|
-
alter table "public"."offer" add column "locality" text not null;
|
|
4
|
-
|
|
5
|
-
alter table "public"."offer" add column "location" geography not null;
|
|
6
|
-
|
|
7
|
-
alter table "public"."offer" add column "location_lonlat" lonlat not null generated always as (ROW((st_x((location)::geometry))::numeric, (st_y((location)::geometry))::numeric)::lonlat) stored;
|
|
8
|
-
|
|
9
|
-
alter table "public"."offer" add column "timezone" text not null;
|
|
10
|
-
|
|
11
|
-
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
create type "public"."created_on" as enum ('app', 'dashboard', 'auth', 'web');
|
|
2
|
-
|
|
3
|
-
begin;
|
|
4
|
-
|
|
5
|
-
set local statement_timeout = 600000;
|
|
6
|
-
|
|
7
|
-
alter table "public"."event" alter column "createdOn" set data type created_on using "createdOn"::text::created_on;
|
|
8
|
-
|
|
9
|
-
alter table "public"."group" alter column "createdOn" set data type created_on using "createdOn"::text::created_on;
|
|
10
|
-
|
|
11
|
-
alter table "public"."offer" add column "createdOn" created_on not null;
|
|
12
|
-
|
|
13
|
-
commit;
|
|
14
|
-
|
|
15
|
-
drop type "public"."event_created_on";
|
|
16
|
-
|
|
17
|
-
drop type "public"."group_created_on";
|
|
18
|
-
|
|
19
|
-
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
alter table "public"."offer" drop constraint "public_offer_event_fkey";
|
|
2
|
-
|
|
3
|
-
alter table "public"."offer" drop constraint "public_offer_group_fkey";
|
|
4
|
-
|
|
5
|
-
alter table "public"."offer" rename column "event" to "eventId";
|
|
6
|
-
|
|
7
|
-
alter table "public"."offer" rename column "group" to "groupId";
|
|
8
|
-
|
|
9
|
-
alter table "public"."offer" add column "groupInfo" jsonb not null default '{}'::jsonb;
|
|
10
|
-
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
alter table "public"."offer" add constraint "public_offer_eventId_fkey" FOREIGN KEY ("eventId") REFERENCES event(id) ON UPDATE CASCADE ON DELETE CASCADE not valid;
|
|
2
|
-
|
|
3
|
-
alter table "public"."offer" validate constraint "public_offer_eventId_fkey";
|
|
4
|
-
|
|
5
|
-
alter table "public"."offer" add constraint "public_offer_groupId_fkey" FOREIGN KEY ("groupId") REFERENCES "group"(id) ON UPDATE CASCADE ON DELETE CASCADE not valid;
|
|
6
|
-
|
|
7
|
-
alter table "public"."offer" validate constraint "public_offer_groupId_fkey";
|
|
8
|
-
|
|
9
|
-
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
CREATE TABLE IF NOT EXISTS "public"."user" (
|
|
2
|
-
"userId" TEXT PRIMARY KEY,
|
|
3
|
-
"username" TEXT,
|
|
4
|
-
"displayName" TEXT,
|
|
5
|
-
"photoURL" TEXT,
|
|
6
|
-
"name" TEXT,
|
|
7
|
-
"lastname" TEXT,
|
|
8
|
-
"email" TEXT,
|
|
9
|
-
"language" TEXT,
|
|
10
|
-
"role" TEXT,
|
|
11
|
-
"locality" TEXT,
|
|
12
|
-
"description" TEXT,
|
|
13
|
-
"fakeUser" BOOLEAN NOT NULL DEFAULT false,
|
|
14
|
-
"analyticsEnabled" BOOLEAN NOT NULL DEFAULT true,
|
|
15
|
-
"partnershipIds" TEXT[] NOT NULL DEFAULT '{}'::TEXT[],
|
|
16
|
-
"customerIds" TEXT[] NOT NULL DEFAULT '{}'::TEXT[],
|
|
17
|
-
"federationId" TEXT,
|
|
18
|
-
"groups" TEXT[] NOT NULL DEFAULT '{}'::TEXT[],
|
|
19
|
-
"groupsAdmin" TEXT[] NOT NULL DEFAULT '{}'::TEXT[],
|
|
20
|
-
"groupInvites" TEXT[] NOT NULL DEFAULT '{}'::TEXT[],
|
|
21
|
-
"notificationSettings" JSONB NOT NULL DEFAULT '{}'::JSONB,
|
|
22
|
-
"emailSettings" JSONB NOT NULL DEFAULT '{}'::JSONB,
|
|
23
|
-
"dashboardConfig" JSONB NOT NULL DEFAULT '{}'::JSONB,
|
|
24
|
-
"appConfig" JSONB NOT NULL DEFAULT '{}'::JSONB,
|
|
25
|
-
"devices" JSONB NOT NULL DEFAULT '{}'::JSONB,
|
|
26
|
-
"whatsNew" JSONB NOT NULL DEFAULT '{}'::JSONB,
|
|
27
|
-
"rawData" JSONB NOT NULL DEFAULT '{}'::JSONB,
|
|
28
|
-
"createdAt" TIMESTAMPTZ,
|
|
29
|
-
"updatedAt" TIMESTAMPTZ NOT NULL DEFAULT now(),
|
|
30
|
-
"deletedAt" TIMESTAMPTZ,
|
|
31
|
-
"lastAppLoginAt" TIMESTAMPTZ,
|
|
32
|
-
"lastWebLoginAt" TIMESTAMPTZ,
|
|
33
|
-
"lastBiweeklyEmailAt" TIMESTAMPTZ
|
|
34
|
-
);
|
|
35
|
-
|
|
36
|
-
ALTER TABLE "public"."user" ENABLE ROW LEVEL SECURITY;
|
|
37
|
-
|
|
38
|
-
REVOKE ALL ON TABLE "public"."user" FROM "anon";
|
|
39
|
-
REVOKE ALL ON TABLE "public"."user" FROM "authenticated";
|
|
40
|
-
|
|
41
|
-
GRANT SELECT ON TABLE "public"."user" TO "authenticated";
|
|
42
|
-
GRANT ALL ON TABLE "public"."user" TO "service_role";
|
|
43
|
-
|
|
44
|
-
DROP POLICY IF EXISTS "Users can read own user" ON "public"."user";
|
|
45
|
-
|
|
46
|
-
CREATE POLICY "Users can read own user"
|
|
47
|
-
ON "public"."user"
|
|
48
|
-
FOR SELECT
|
|
49
|
-
TO "authenticated"
|
|
50
|
-
USING ("userId" = ((select auth.jwt()) ->> 'sub'));
|