--
-- PostgreSQL database dump
--

\restrict fZ7E5vlO9XiQvohu8zwQIQgniHLZPmSMVpaTmvwMuBsOyPCoXRxvwBcHsiIpRdo

-- Dumped from database version 17.6
-- Dumped by pg_dump version 17.6

SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET transaction_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;

--
-- Data for Name: audit_log_entries; Type: TABLE DATA; Schema: auth; Owner: -
--

COPY auth.audit_log_entries (instance_id, id, payload, created_at, ip_address) FROM stdin;
00000000-0000-0000-0000-000000000000	f3a9bb5c-a48b-48da-83b0-5e5f71cc1278	{"action":"login","actor_id":"aaaaaaaa-0002-0002-0002-000000000002","actor_username":"terapeuta@agenciapsi.com.br","actor_via_sso":false,"log_type":"account","traits":{"provider":"email"}}	2026-03-23 10:58:23.661651+00	
00000000-0000-0000-0000-000000000000	015ae6c3-f000-49f5-a05a-7e43256a5ead	{"action":"logout","actor_id":"aaaaaaaa-0002-0002-0002-000000000002","actor_username":"terapeuta@agenciapsi.com.br","actor_via_sso":false,"log_type":"account"}	2026-03-23 10:59:13.173068+00	
00000000-0000-0000-0000-000000000000	2222f6e6-4a78-4c44-88cf-65b677a0bdb6	{"action":"login","actor_id":"aaaaaaaa-0006-0006-0006-000000000006","actor_username":"saas@agenciapsi.com.br","actor_via_sso":false,"log_type":"account","traits":{"provider":"email"}}	2026-03-23 10:59:17.817071+00	
00000000-0000-0000-0000-000000000000	12c8d5f5-46f0-4e67-96d2-7722167c7b3c	{"action":"logout","actor_id":"aaaaaaaa-0006-0006-0006-000000000006","actor_username":"saas@agenciapsi.com.br","actor_via_sso":false,"log_type":"account"}	2026-03-23 11:30:05.361177+00	
00000000-0000-0000-0000-000000000000	4aa98446-9aa8-4442-985a-aae3fbd28cd2	{"action":"login","actor_id":"aaaaaaaa-0002-0002-0002-000000000002","actor_username":"terapeuta@agenciapsi.com.br","actor_via_sso":false,"log_type":"account","traits":{"provider":"email"}}	2026-03-23 11:30:08.832248+00	
00000000-0000-0000-0000-000000000000	4e5e241b-0ba7-4772-a492-5dce48836688	{"action":"token_refreshed","actor_id":"aaaaaaaa-0002-0002-0002-000000000002","actor_username":"terapeuta@agenciapsi.com.br","actor_via_sso":false,"log_type":"token"}	2026-03-23 12:28:24.672784+00	
00000000-0000-0000-0000-000000000000	12c376a9-7e40-4701-b163-173b66bbcc05	{"action":"token_revoked","actor_id":"aaaaaaaa-0002-0002-0002-000000000002","actor_username":"terapeuta@agenciapsi.com.br","actor_via_sso":false,"log_type":"token"}	2026-03-23 12:28:24.674266+00	
00000000-0000-0000-0000-000000000000	54e723ec-3977-4d92-8595-ce7ab53dbd86	{"action":"token_refreshed","actor_id":"aaaaaaaa-0002-0002-0002-000000000002","actor_username":"terapeuta@agenciapsi.com.br","actor_via_sso":false,"log_type":"token"}	2026-03-23 13:30:01.59908+00	
00000000-0000-0000-0000-000000000000	de3c62a2-5771-4cb3-8bc5-a0f2c5cdf7bd	{"action":"token_revoked","actor_id":"aaaaaaaa-0002-0002-0002-000000000002","actor_username":"terapeuta@agenciapsi.com.br","actor_via_sso":false,"log_type":"token"}	2026-03-23 13:30:01.600518+00	
\.


--
-- Data for Name: flow_state; Type: TABLE DATA; Schema: auth; Owner: -
--

COPY auth.flow_state (id, user_id, auth_code, code_challenge_method, code_challenge, provider_type, provider_access_token, provider_refresh_token, created_at, updated_at, authentication_method, auth_code_issued_at, invite_token, referrer, oauth_client_state_id, linking_target_id, email_optional) FROM stdin;
\.


--
-- Data for Name: users; Type: TABLE DATA; Schema: auth; Owner: -
--

COPY auth.users (instance_id, id, aud, role, email, encrypted_password, email_confirmed_at, invited_at, confirmation_token, confirmation_sent_at, recovery_token, recovery_sent_at, email_change_token_new, email_change, email_change_sent_at, last_sign_in_at, raw_app_meta_data, raw_user_meta_data, is_super_admin, created_at, updated_at, phone, phone_confirmed_at, phone_change, phone_change_token, phone_change_sent_at, email_change_token_current, email_change_confirm_status, banned_until, reauthentication_token, reauthentication_sent_at, is_sso_user, deleted_at, is_anonymous) FROM stdin;
00000000-0000-0000-0000-000000000000	aaaaaaaa-0001-0001-0001-000000000001	authenticated	authenticated	paciente@agenciapsi.com.br	$2a$06$ipEc7puaVhQnpusOGhAYgOcrVHq4RnqZeDooS8FaehzHhueScf9S.	2026-03-23 10:46:29.876072+00	\N		\N		\N			\N	\N	{"provider": "email", "providers": ["email"]}	{"name": "Ana Paciente"}	\N	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	\N	\N			\N		0	\N		\N	f	\N	f
00000000-0000-0000-0000-000000000000	aaaaaaaa-0005-0005-0005-000000000005	authenticated	authenticated	clinica3@agenciapsi.com.br	$2a$06$L3aFykCSdduzTHEKsEQ3q.GdHTb5EJBvbIit4k7ZgnbRd5BCGuTxu	2026-03-23 10:46:29.876072+00	\N		\N		\N			\N	\N	{"provider": "email", "providers": ["email"]}	{"name": "Clínica Bem Estar"}	\N	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	\N	\N			\N		0	\N		\N	f	\N	f
00000000-0000-0000-0000-000000000000	aaaaaaaa-0006-0006-0006-000000000006	authenticated	authenticated	saas@agenciapsi.com.br	$2a$06$QsvWGUd7HQTv6kSQDbRsiOkNcLM4O2BnQflXPbx3MK9E4RPGz5FvS	2026-03-23 10:46:29.876072+00	\N		\N		\N			\N	2026-03-23 10:59:17.829375+00	{"provider": "email", "providers": ["email"]}	{"name": "Admin Plataforma"}	\N	2026-03-23 10:46:29.876072+00	2026-03-23 10:59:17.835203+00	\N	\N			\N		0	\N		\N	f	\N	f
00000000-0000-0000-0000-000000000000	aaaaaaaa-0011-0011-0011-000000000011	authenticated	authenticated	secretary@agenciapsi.com.br	$2a$06$O7HeygRYgJViriMFCImLZu7DD.3A9wZWb9y3c5G2PIURgJ65UnqT.	2026-03-23 14:18:06.087973+00	\N		\N		\N			\N	\N	{"provider": "email", "providers": ["email"]}	{"name": "Gabriela Secretária"}	\N	2026-03-23 14:18:06.087973+00	2026-03-23 14:18:06.087973+00	\N	\N			\N		0	\N		\N	f	\N	f
00000000-0000-0000-0000-000000000000	aaaaaaaa-0002-0002-0002-000000000002	authenticated	authenticated	terapeuta@agenciapsi.com.br	$2a$06$CztXijQkaPZa6pUwXmMHWuzSF19GiVtRBdMLp.k4iWf7ftGWNBIg6	2026-03-23 10:46:29.876072+00	\N		\N		\N			\N	2026-03-23 11:30:08.834253+00	{"provider": "email", "providers": ["email"]}	{"name": "Bruno Terapeuta"}	\N	2026-03-23 10:46:29.876072+00	2026-03-23 13:30:01.604245+00	\N	\N			\N		0	\N		\N	f	\N	f
00000000-0000-0000-0000-000000000000	aaaaaaaa-0007-0007-0007-000000000007	authenticated	authenticated	supervisor@agenciapsi.com.br	$2a$06$.kF47/tagPNwSpgGM4ryZOu01L0ykU2IXakM8trZ.Hon1TTUDeqYK	2026-03-23 14:18:05.215881+00	\N		\N		\N			\N	\N	{"provider": "email", "providers": ["email"]}	{"name": "Carlos Supervisor"}	\N	2026-03-23 14:18:05.215881+00	2026-03-23 14:18:05.215881+00	\N	\N			\N		0	\N		\N	f	\N	f
00000000-0000-0000-0000-000000000000	aaaaaaaa-0008-0008-0008-000000000008	authenticated	authenticated	editor@agenciapsi.com.br	$2a$06$lcF3sQOKaQOMwo5OTPPpcODcMtjDoUpHw3rOBhJMYow15LoJFLvH6	2026-03-23 14:18:05.215881+00	\N		\N		\N			\N	\N	{"provider": "email", "providers": ["email"]}	{"name": "Diana Editora"}	\N	2026-03-23 14:18:05.215881+00	2026-03-23 14:18:05.215881+00	\N	\N			\N		0	\N		\N	f	\N	f
00000000-0000-0000-0000-000000000000	aaaaaaaa-0009-0009-0009-000000000009	authenticated	authenticated	therapist2@agenciapsi.com.br	$2a$06$16hf/nUbN0lElm9l8vQI4ek8vIM2T8ymiJTQ8CHXXw/jD1gMuDFJS	2026-03-23 14:18:06.087973+00	\N		\N		\N			\N	\N	{"provider": "email", "providers": ["email"]}	{"name": "Eva Terapeuta"}	\N	2026-03-23 14:18:06.087973+00	2026-03-23 14:18:06.087973+00	\N	\N			\N		0	\N		\N	f	\N	f
00000000-0000-0000-0000-000000000000	aaaaaaaa-0010-0010-0010-000000000010	authenticated	authenticated	therapist3@agenciapsi.com.br	$2a$06$sBJPPHRI/MsrCTEeCK5/vOhASc/SNLeO.B/QEE2MZNWEP8FamyCXW	2026-03-23 14:18:06.087973+00	\N		\N		\N			\N	\N	{"provider": "email", "providers": ["email"]}	{"name": "Felipe Terapeuta"}	\N	2026-03-23 14:18:06.087973+00	2026-03-23 14:18:06.087973+00	\N	\N			\N		0	\N		\N	f	\N	f
00000000-0000-0000-0000-000000000000	aaaaaaaa-0003-0003-0003-000000000003	authenticated	authenticated	clinica1@agenciapsi.com.br	$2a$06$cxZ2uXWIOS9MgzoyzSla8Oocid6wKtEBPA4k9QyC8DvwzmOsI0co2	2026-03-23 10:46:29.876072+00	\N		\N		\N			\N	\N	{"provider": "email", "providers": ["email"]}	{"name": "Clínica Espaço Psi"}	\N	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	\N	\N			\N		0	\N		\N	f	\N	f
00000000-0000-0000-0000-000000000000	aaaaaaaa-0004-0004-0004-000000000004	authenticated	authenticated	clinica2@agenciapsi.com.br	$2a$06$ZSW6FPPCmhO8EkfSM4/QLu/J32HRe/87zoNLvPtCbqTdNBbanaLPi	2026-03-23 10:46:29.876072+00	\N		\N		\N			\N	\N	{"provider": "email", "providers": ["email"]}	{"name": "Clínica Mente Sã"}	\N	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	\N	\N			\N		0	\N		\N	f	\N	f
\.


--
-- Data for Name: identities; Type: TABLE DATA; Schema: auth; Owner: -
--

COPY auth.identities (provider_id, user_id, identity_data, provider, last_sign_in_at, created_at, updated_at, id) FROM stdin;
paciente@agenciapsi.com.br	aaaaaaaa-0001-0001-0001-000000000001	{"sub": "aaaaaaaa-0001-0001-0001-000000000001", "email": "paciente@agenciapsi.com.br", "email_verified": true}	email	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	977a296d-b7ac-4151-8017-3099808e1f7f
terapeuta@agenciapsi.com.br	aaaaaaaa-0002-0002-0002-000000000002	{"sub": "aaaaaaaa-0002-0002-0002-000000000002", "email": "terapeuta@agenciapsi.com.br", "email_verified": true}	email	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	44ccd811-6c51-48e9-81a8-77247022c693
clinica1@agenciapsi.com.br	aaaaaaaa-0003-0003-0003-000000000003	{"sub": "aaaaaaaa-0003-0003-0003-000000000003", "email": "clinica1@agenciapsi.com.br", "email_verified": true}	email	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	433175a2-4065-47ab-96dd-32508c9a7389
clinica2@agenciapsi.com.br	aaaaaaaa-0004-0004-0004-000000000004	{"sub": "aaaaaaaa-0004-0004-0004-000000000004", "email": "clinica2@agenciapsi.com.br", "email_verified": true}	email	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	390305dc-1f61-44e8-9c95-bd9de9591e5a
clinica3@agenciapsi.com.br	aaaaaaaa-0005-0005-0005-000000000005	{"sub": "aaaaaaaa-0005-0005-0005-000000000005", "email": "clinica3@agenciapsi.com.br", "email_verified": true}	email	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	f669ef52-181e-44d5-8649-833d6b133313
saas@agenciapsi.com.br	aaaaaaaa-0006-0006-0006-000000000006	{"sub": "aaaaaaaa-0006-0006-0006-000000000006", "email": "saas@agenciapsi.com.br", "email_verified": true}	email	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	e6af6a5e-55ce-4872-a745-40d688d08982
supervisor@agenciapsi.com.br	aaaaaaaa-0007-0007-0007-000000000007	{"sub": "aaaaaaaa-0007-0007-0007-000000000007", "email": "supervisor@agenciapsi.com.br", "email_verified": true}	email	2026-03-23 14:18:05.215881+00	2026-03-23 14:18:05.215881+00	2026-03-23 14:18:05.215881+00	8dff38d2-1b09-4b88-9038-28b747358645
editor@agenciapsi.com.br	aaaaaaaa-0008-0008-0008-000000000008	{"sub": "aaaaaaaa-0008-0008-0008-000000000008", "email": "editor@agenciapsi.com.br", "email_verified": true}	email	2026-03-23 14:18:05.215881+00	2026-03-23 14:18:05.215881+00	2026-03-23 14:18:05.215881+00	a7856eb7-e96f-4752-84a3-b676503b74ae
therapist2@agenciapsi.com.br	aaaaaaaa-0009-0009-0009-000000000009	{"sub": "aaaaaaaa-0009-0009-0009-000000000009", "email": "therapist2@agenciapsi.com.br", "email_verified": true}	email	2026-03-23 14:18:06.087973+00	2026-03-23 14:18:06.087973+00	2026-03-23 14:18:06.087973+00	8129cc38-db24-4f84-b48e-bf0b46235811
therapist3@agenciapsi.com.br	aaaaaaaa-0010-0010-0010-000000000010	{"sub": "aaaaaaaa-0010-0010-0010-000000000010", "email": "therapist3@agenciapsi.com.br", "email_verified": true}	email	2026-03-23 14:18:06.087973+00	2026-03-23 14:18:06.087973+00	2026-03-23 14:18:06.087973+00	754b015d-3c88-4104-b246-eede6fffabba
secretary@agenciapsi.com.br	aaaaaaaa-0011-0011-0011-000000000011	{"sub": "aaaaaaaa-0011-0011-0011-000000000011", "email": "secretary@agenciapsi.com.br", "email_verified": true}	email	2026-03-23 14:18:06.087973+00	2026-03-23 14:18:06.087973+00	2026-03-23 14:18:06.087973+00	a7aa272b-659f-4bc7-8667-10cf49200410
\.


--
-- Data for Name: instances; Type: TABLE DATA; Schema: auth; Owner: -
--

COPY auth.instances (id, uuid, raw_base_config, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: oauth_clients; Type: TABLE DATA; Schema: auth; Owner: -
--

COPY auth.oauth_clients (id, client_secret_hash, registration_type, redirect_uris, grant_types, client_name, client_uri, logo_uri, created_at, updated_at, deleted_at, client_type, token_endpoint_auth_method) FROM stdin;
\.


--
-- Data for Name: sessions; Type: TABLE DATA; Schema: auth; Owner: -
--

COPY auth.sessions (id, user_id, created_at, updated_at, factor_id, aal, not_after, refreshed_at, user_agent, ip, tag, oauth_client_id, refresh_token_hmac_key, refresh_token_counter, scopes) FROM stdin;
d545b1ef-1cd2-4b5d-8c10-5aaa55b73347	aaaaaaaa-0002-0002-0002-000000000002	2026-03-23 11:30:08.834336+00	2026-03-23 13:30:01.610731+00	\N	aal1	\N	2026-03-23 13:30:01.610654	Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36	172.19.0.1	\N	\N	\N	\N	\N
\.


--
-- Data for Name: mfa_amr_claims; Type: TABLE DATA; Schema: auth; Owner: -
--

COPY auth.mfa_amr_claims (session_id, created_at, updated_at, authentication_method, id) FROM stdin;
d545b1ef-1cd2-4b5d-8c10-5aaa55b73347	2026-03-23 11:30:08.845745+00	2026-03-23 11:30:08.845745+00	password	6fc54c9d-9ad4-478d-a526-d69f1468151d
\.


--
-- Data for Name: mfa_factors; Type: TABLE DATA; Schema: auth; Owner: -
--

COPY auth.mfa_factors (id, user_id, friendly_name, factor_type, status, created_at, updated_at, secret, phone, last_challenged_at, web_authn_credential, web_authn_aaguid, last_webauthn_challenge_data) FROM stdin;
\.


--
-- Data for Name: mfa_challenges; Type: TABLE DATA; Schema: auth; Owner: -
--

COPY auth.mfa_challenges (id, factor_id, created_at, verified_at, ip_address, otp_code, web_authn_session_data) FROM stdin;
\.


--
-- Data for Name: oauth_authorizations; Type: TABLE DATA; Schema: auth; Owner: -
--

COPY auth.oauth_authorizations (id, authorization_id, client_id, user_id, redirect_uri, scope, state, resource, code_challenge, code_challenge_method, response_type, status, authorization_code, created_at, expires_at, approved_at, nonce) FROM stdin;
\.


--
-- Data for Name: oauth_client_states; Type: TABLE DATA; Schema: auth; Owner: -
--

COPY auth.oauth_client_states (id, provider_type, code_verifier, created_at) FROM stdin;
\.


--
-- Data for Name: oauth_consents; Type: TABLE DATA; Schema: auth; Owner: -
--

COPY auth.oauth_consents (id, user_id, client_id, scopes, granted_at, revoked_at) FROM stdin;
\.


--
-- Data for Name: one_time_tokens; Type: TABLE DATA; Schema: auth; Owner: -
--

COPY auth.one_time_tokens (id, user_id, token_type, token_hash, relates_to, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: refresh_tokens; Type: TABLE DATA; Schema: auth; Owner: -
--

COPY auth.refresh_tokens (instance_id, id, token, user_id, revoked, created_at, updated_at, parent, session_id) FROM stdin;
00000000-0000-0000-0000-000000000000	3	oghbb2rkjyup	aaaaaaaa-0002-0002-0002-000000000002	t	2026-03-23 11:30:08.84168+00	2026-03-23 12:28:24.675183+00	\N	d545b1ef-1cd2-4b5d-8c10-5aaa55b73347
00000000-0000-0000-0000-000000000000	4	jnzyuofg2p7m	aaaaaaaa-0002-0002-0002-000000000002	t	2026-03-23 12:28:24.676374+00	2026-03-23 13:30:01.601437+00	oghbb2rkjyup	d545b1ef-1cd2-4b5d-8c10-5aaa55b73347
00000000-0000-0000-0000-000000000000	5	nkklcrhwvr3v	aaaaaaaa-0002-0002-0002-000000000002	f	2026-03-23 13:30:01.602593+00	2026-03-23 13:30:01.602593+00	jnzyuofg2p7m	d545b1ef-1cd2-4b5d-8c10-5aaa55b73347
\.


--
-- Data for Name: sso_providers; Type: TABLE DATA; Schema: auth; Owner: -
--

COPY auth.sso_providers (id, resource_id, created_at, updated_at, disabled) FROM stdin;
\.


--
-- Data for Name: saml_providers; Type: TABLE DATA; Schema: auth; Owner: -
--

COPY auth.saml_providers (id, sso_provider_id, entity_id, metadata_xml, metadata_url, attribute_mapping, created_at, updated_at, name_id_format) FROM stdin;
\.


--
-- Data for Name: saml_relay_states; Type: TABLE DATA; Schema: auth; Owner: -
--

COPY auth.saml_relay_states (id, sso_provider_id, request_id, for_email, redirect_to, created_at, updated_at, flow_state_id) FROM stdin;
\.


--
-- Data for Name: schema_migrations; Type: TABLE DATA; Schema: auth; Owner: -
--

COPY auth.schema_migrations (version) FROM stdin;
20171026211738
20171026211808
20171026211834
20180103212743
20180108183307
20180119214651
20180125194653
00
20210710035447
20210722035447
20210730183235
20210909172000
20210927181326
20211122151130
20211124214934
20211202183645
20220114185221
20220114185340
20220224000811
20220323170000
20220429102000
20220531120530
20220614074223
20220811173540
20221003041349
20221003041400
20221011041400
20221020193600
20221021073300
20221021082433
20221027105023
20221114143122
20221114143410
20221125140132
20221208132122
20221215195500
20221215195800
20221215195900
20230116124310
20230116124412
20230131181311
20230322519590
20230402418590
20230411005111
20230508135423
20230523124323
20230818113222
20230914180801
20231027141322
20231114161723
20231117164230
20240115144230
20240214120130
20240306115329
20240314092811
20240427152123
20240612123726
20240729123726
20240802193726
20240806073726
20241009103726
20250717082212
20250731150234
20250804100000
20250901200500
20250903112500
20250904133000
20250925093508
20251007112900
20251104100000
20251111201300
20251201000000
20260115000000
20260121000000
\.


--
-- Data for Name: sso_domains; Type: TABLE DATA; Schema: auth; Owner: -
--

COPY auth.sso_domains (id, sso_provider_id, domain, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: job; Type: TABLE DATA; Schema: cron; Owner: -
--

COPY cron.job (jobid, schedule, command, nodename, nodeport, database, username, active, jobname) FROM stdin;
\.


--
-- Data for Name: job_run_details; Type: TABLE DATA; Schema: cron; Owner: -
--

COPY cron.job_run_details (jobid, runid, job_pid, database, username, command, status, return_message, start_time, end_time) FROM stdin;
\.


--
-- Data for Name: _db_migrations; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public._db_migrations (id, filename, hash, category, applied_at) FROM stdin;
1	seed_001_fixed.sql	87fc24517f6446f7	seed	2026-03-23 14:15:02.14603+00
2	seed_002.sql	b05d565b35c97300	seed	2026-03-23 14:15:02.45035+00
3	seed_003.sql	257ef8bba4e319a2	seed	2026-03-23 14:15:02.755322+00
4	seed_010_plans.sql	0de612f2301e27d3	seed	2026-03-23 14:15:02.974622+00
5	seed_011_features.sql	e7326ac0e33e4fee	seed	2026-03-23 14:15:03.261589+00
6	seed_012_plan_features.sql	f0e1b4ab684383f7	seed	2026-03-23 14:15:03.553899+00
7	seed_013_subscriptions.sql	b61e4af59262f3ac	seed	2026-03-23 14:15:03.816997+00
8	seed_014_global_data.sql	a7bc086bc6f052ee	seed	2026-03-23 14:15:04.080095+00
9	fix_addon_credits_fk.sql	aaff13facb98e4d8	fix	2026-03-23 14:15:04.372331+00
10	fix_addon_rls_saas_admin.sql	84d85284eb441afc	fix	2026-03-23 14:15:04.630692+00
11	fix_missing_subscriptions.sql	f5740f6eef9e5405	fix	2026-03-23 14:15:04.916745+00
12	fix_notification_templates_rls_admin.sql	ede371cbce54e13e	fix	2026-03-23 14:15:05.15764+00
13	fix_seed_patient_groups.sql	e9b870ba0ad5f359	fix	2026-03-23 14:15:05.485322+00
14	fix_subscriptions_validate_scope.sql	c814a90d768d339c	fix	2026-03-23 14:15:06.461275+00
15	fix_template_keys_match_populate.sql	e0fdd2a420abaeb8	fix	2026-03-23 14:15:06.977464+00
\.


--
-- Data for Name: tenants; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.tenants (id, name, created_at, kind) FROM stdin;
bbbbbbbb-0002-0002-0002-000000000002	Bruno Terapeuta	2026-03-23 10:46:29.876072+00	therapist
bbbbbbbb-0009-0009-0009-000000000009	Eva Terapeuta	2026-03-23 10:47:12.826179+00	therapist
bbbbbbbb-0010-0010-0010-000000000010	Felipe Terapeuta	2026-03-23 10:47:12.826179+00	therapist
bbbbbbbb-0003-0003-0003-000000000003	Clínica Espaço Psi	2026-03-23 10:46:29.876072+00	clinic_coworking
bbbbbbbb-0004-0004-0004-000000000004	Clínica Mente Sã	2026-03-23 10:46:29.876072+00	clinic_reception
bbbbbbbb-0005-0005-0005-000000000005	Clínica Bem Estar	2026-03-23 10:46:29.876072+00	clinic_full
\.


--
-- Data for Name: addon_credits; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.addon_credits (id, tenant_id, owner_id, addon_type, balance, total_purchased, total_consumed, low_balance_threshold, low_balance_notified, daily_limit, hourly_limit, daily_used, hourly_used, daily_reset_at, hourly_reset_at, from_number_override, expires_at, is_active, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: addon_products; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.addon_products (id, slug, name, description, addon_type, icon, credits_amount, price_cents, currency, is_active, is_visible, sort_order, metadata, created_at, updated_at, deleted_at) FROM stdin;
\.


--
-- Data for Name: addon_transactions; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.addon_transactions (id, tenant_id, owner_id, addon_type, type, amount, balance_before, balance_after, product_id, queue_id, description, admin_user_id, payment_method, payment_reference, price_cents, currency, created_at, metadata) FROM stdin;
\.


--
-- Data for Name: agenda_bloqueios; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.agenda_bloqueios (id, owner_id, tenant_id, tipo, titulo, data_inicio, data_fim, hora_inicio, hora_fim, recorrente, dia_semana, observacao, origem, created_at) FROM stdin;
f809fcb6-0369-42fd-985a-5d9976798e88	aaaaaaaa-0002-0002-0002-000000000002	bbbbbbbb-0002-0002-0002-000000000002	bloqueio	Feriado: Sexta-feira Santa	2026-04-03	2026-04-03	\N	\N	f	\N	\N	agenda_feriado	2026-03-23 11:32:18.225845+00
\.


--
-- Data for Name: agenda_configuracoes; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.agenda_configuracoes (owner_id, duracao_padrao_minutos, intervalo_padrao_minutos, timezone, usar_horario_admin_custom, admin_inicio_visualizacao, admin_fim_visualizacao, admin_slot_visual_minutos, online_ativo, online_min_antecedencia_horas, online_max_dias_futuro, online_cancelar_ate_horas, online_reagendar_ate_horas, online_limite_agendamentos_futuros, online_modo, online_buffer_antes_min, online_buffer_depois_min, online_modalidade, created_at, updated_at, usar_granularidade_custom, granularidade_min, setup_concluido, setup_concluido_em, agenda_view_mode, agenda_custom_start, agenda_custom_end, session_duration_min, session_break_min, pausas_semanais, setup_clinica_concluido, setup_clinica_concluido_em, tenant_id, jornada_igual_todos, slot_mode) FROM stdin;
aaaaaaaa-0002-0002-0002-000000000002	50	0	America/Sao_Paulo	f	\N	\N	30	f	24	60	12	12	1	automatico	0	0	ambos	2026-03-23 10:58:31.422764+00	2026-03-23 11:32:02.551544+00	f	\N	t	2026-03-23 11:32:02.465+00	full_24h	\N	\N	50	10	[{"id": "64aae49bb44ef819d1a76b459", "fim": "13:00", "label": "Almoço", "inicio": "12:00", "dia_semana": 0}, {"id": "64aae49bb44ef819d1a76b459", "fim": "13:00", "label": "Almoço", "inicio": "12:00", "dia_semana": 1}, {"id": "64aae49bb44ef819d1a76b459", "fim": "13:00", "label": "Almoço", "inicio": "12:00", "dia_semana": 2}, {"id": "64aae49bb44ef819d1a76b459", "fim": "13:00", "label": "Almoço", "inicio": "12:00", "dia_semana": 3}, {"id": "64aae49bb44ef819d1a76b459", "fim": "13:00", "label": "Almoço", "inicio": "12:00", "dia_semana": 4}, {"id": "64aae49bb44ef819d1a76b459", "fim": "13:00", "label": "Almoço", "inicio": "12:00", "dia_semana": 5}]	f	\N	bbbbbbbb-0002-0002-0002-000000000002	t	fixed
\.


--
-- Data for Name: tenant_members; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.tenant_members (id, tenant_id, user_id, role, status, created_at) FROM stdin;
72be63ef-bc2c-4c8e-8522-0c6d64746bbc	bbbbbbbb-0002-0002-0002-000000000002	aaaaaaaa-0002-0002-0002-000000000002	tenant_admin	active	2026-03-23 10:46:29.876072+00
07974953-677e-4941-b90f-1ae15ffbbbf6	bbbbbbbb-0003-0003-0003-000000000003	aaaaaaaa-0003-0003-0003-000000000003	tenant_admin	active	2026-03-23 10:46:29.876072+00
11417585-46af-4faa-a34a-dc23a36c5704	bbbbbbbb-0004-0004-0004-000000000004	aaaaaaaa-0004-0004-0004-000000000004	tenant_admin	active	2026-03-23 10:46:29.876072+00
cd22a662-2b16-4cfe-a9e6-15ccb8e7d67e	bbbbbbbb-0005-0005-0005-000000000005	aaaaaaaa-0005-0005-0005-000000000005	tenant_admin	active	2026-03-23 10:46:29.876072+00
e40559cd-43af-4547-b447-2cc7bbff5ad7	bbbbbbbb-0005-0005-0005-000000000005	aaaaaaaa-0002-0002-0002-000000000002	therapist	active	2026-03-23 10:46:29.876072+00
0ee00481-77f2-4bc0-ab09-3bc441c03b1b	bbbbbbbb-0005-0005-0005-000000000005	aaaaaaaa-0007-0007-0007-000000000007	supervisor	active	2026-03-23 14:18:05.215881+00
344a6ae3-379a-4776-9441-8ac9f8733c99	bbbbbbbb-0005-0005-0005-000000000005	aaaaaaaa-0008-0008-0008-000000000008	therapist	active	2026-03-23 14:18:05.215881+00
aac8e805-da4f-4089-b2e1-0b32b679d0dd	bbbbbbbb-0009-0009-0009-000000000009	aaaaaaaa-0009-0009-0009-000000000009	tenant_admin	active	2026-03-23 14:18:06.087973+00
2633ed47-76e8-4a30-8e3c-07bec4f7c9cd	bbbbbbbb-0010-0010-0010-000000000010	aaaaaaaa-0010-0010-0010-000000000010	tenant_admin	active	2026-03-23 14:18:06.087973+00
a72fa56d-04e4-4e23-853c-fd4926b263c3	bbbbbbbb-0005-0005-0005-000000000005	aaaaaaaa-0009-0009-0009-000000000009	therapist	active	2026-03-23 14:18:06.087973+00
677f130c-06bd-44d7-b283-844351d65c45	bbbbbbbb-0005-0005-0005-000000000005	aaaaaaaa-0010-0010-0010-000000000010	therapist	active	2026-03-23 14:18:06.087973+00
978ce15a-8dc5-4540-8430-f9e1e19d4952	bbbbbbbb-0004-0004-0004-000000000004	aaaaaaaa-0011-0011-0011-000000000011	clinic_admin	active	2026-03-23 14:18:06.087973+00
\.


--
-- Data for Name: patients; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.patients (id, nome_completo, email_principal, telefone, created_at, owner_id, avatar_url, status, last_attended_at, is_native, naturalidade, data_nascimento, rg, cpf, identification_color, genero, estado_civil, email_alternativo, pais, cep, cidade, estado, endereco, numero, bairro, complemento, escolaridade, profissao, nome_parente, grau_parentesco, telefone_alternativo, onde_nos_conheceu, encaminhado_por, nome_responsavel, telefone_responsavel, cpf_responsavel, observacao_responsavel, cobranca_no_responsavel, observacoes, notas_internas, updated_at, telefone_parente, tenant_id, responsible_member_id, user_id, patient_scope, therapist_member_id) FROM stdin;
6449e64b-050b-419f-8845-029b6f10a17d	Otto Rank	otto.rank.437@example.com	86363331874	2026-03-23 11:33:02.010795+00	aaaaaaaa-0002-0002-0002-000000000002	\N	Ativo	\N	f	\N	\N	\N	\N	\N	\N	\N	\N	Brasil	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	f	\N	\N	2026-03-23 11:33:02.010795+00	\N	bbbbbbbb-0002-0002-0002-000000000002	72be63ef-bc2c-4c8e-8522-0c6d64746bbc	\N	clinic	\N
7029e350-49dd-444e-924f-f884d645dfa2	Christopher Bollas	christopher.bollas.544@example.com	61644344609	2026-03-23 11:33:46.535347+00	aaaaaaaa-0002-0002-0002-000000000002	\N	Ativo	\N	f	\N	\N	\N	\N	\N	\N	\N	\N	Brasil	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	f	\N	\N	2026-03-23 11:33:46.535347+00	\N	bbbbbbbb-0002-0002-0002-000000000002	72be63ef-bc2c-4c8e-8522-0c6d64746bbc	\N	clinic	\N
\.


--
-- Data for Name: billing_contracts; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.billing_contracts (id, owner_id, tenant_id, patient_id, type, total_sessions, sessions_used, package_price, amount, billing_interval, active_from, active_to, status, created_at) FROM stdin;
\.


--
-- Data for Name: determined_commitments; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.determined_commitments (id, tenant_id, created_by, is_native, native_key, is_locked, active, name, description, created_at, updated_at, bg_color, text_color) FROM stdin;
5944e5d9-622d-4db1-b73d-0083a6a4a9a1	bbbbbbbb-0002-0002-0002-000000000002	\N	t	reading	f	t	Leitura	Praticar leitura	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	\N	\N
b3bf589d-4a72-429f-b9bd-ba426c3f42f1	bbbbbbbb-0002-0002-0002-000000000002	\N	t	class	f	f	Aula	Dar aula	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	\N	\N
cd1076b1-0f3d-460e-842f-1585c0ae2a64	bbbbbbbb-0003-0003-0003-000000000003	\N	t	reading	f	t	Leitura	Praticar leitura	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	\N	\N
b82819d4-02a1-40c5-bf57-6e2e0425e62d	bbbbbbbb-0003-0003-0003-000000000003	\N	t	class	f	f	Aula	Dar aula	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	\N	\N
2e5f4151-e259-4261-8954-e3d196a28383	bbbbbbbb-0004-0004-0004-000000000004	\N	t	reading	f	t	Leitura	Praticar leitura	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	\N	\N
bec193c2-172b-40ef-a5fe-91b7c44c841e	bbbbbbbb-0004-0004-0004-000000000004	\N	t	class	f	f	Aula	Dar aula	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	\N	\N
793f5b1d-b218-40a3-aa73-3e1440d9ea66	bbbbbbbb-0005-0005-0005-000000000005	\N	t	reading	f	t	Leitura	Praticar leitura	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	\N	\N
8c1a77a1-b66f-462e-940d-2f60d080149c	bbbbbbbb-0005-0005-0005-000000000005	\N	t	class	f	f	Aula	Dar aula	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	\N	\N
fc6da673-fd7c-4101-b980-54eb3842804c	bbbbbbbb-0009-0009-0009-000000000009	\N	t	reading	f	t	Leitura	Praticar leitura	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00	\N	\N
4c4a8ced-d109-443b-bc83-817c858f9bb6	bbbbbbbb-0009-0009-0009-000000000009	\N	t	class	f	f	Aula	Dar aula	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00	\N	\N
fe52a6b2-e86e-47e0-9dc7-9b7e63599cff	bbbbbbbb-0010-0010-0010-000000000010	\N	t	reading	f	t	Leitura	Praticar leitura	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00	\N	\N
53193b8a-8af1-4824-a7c6-22cbb7459c45	bbbbbbbb-0010-0010-0010-000000000010	\N	t	class	f	f	Aula	Dar aula	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00	\N	\N
e19a2e0e-cd6a-4cee-97e0-50a43ea69df1	bbbbbbbb-0002-0002-0002-000000000002	\N	t	analysis	f	t	Análise Pessoal	Minha an??lise pessoal	2026-03-23 10:46:29.876072+00	2026-03-23 14:21:19.247486+00	\N	\N
d2ea6a5e-e563-434b-950e-2d27bbf445ec	bbbbbbbb-0003-0003-0003-000000000003	\N	t	session	t	t	Sessão	Sess??o com paciente	2026-03-23 10:46:29.876072+00	2026-03-23 14:21:19.247486+00	\N	\N
21f39315-5171-42ce-848c-129c1955206b	bbbbbbbb-0004-0004-0004-000000000004	\N	t	session	t	t	Sessão	Sess??o com paciente	2026-03-23 10:46:29.876072+00	2026-03-23 14:21:19.247486+00	\N	\N
3276b032-6990-4bfc-942d-9155943c241e	bbbbbbbb-0005-0005-0005-000000000005	\N	t	session	t	t	Sessão	Sess??o com paciente	2026-03-23 10:46:29.876072+00	2026-03-23 14:21:19.247486+00	\N	\N
fb194a3e-06ee-4704-a8cb-fe302dd2528e	bbbbbbbb-0009-0009-0009-000000000009	\N	t	session	t	t	Sessão	Sess??o com paciente	2026-03-23 11:27:09.865999+00	2026-03-23 14:21:19.247486+00	\N	\N
1936c4af-5757-4c10-ad8f-8a5988287acc	bbbbbbbb-0010-0010-0010-000000000010	\N	t	session	t	t	Sessão	Sess??o com paciente	2026-03-23 11:27:09.865999+00	2026-03-23 14:21:19.247486+00	\N	\N
42a8c681-8b32-4608-870f-b617acbe249e	bbbbbbbb-0002-0002-0002-000000000002	\N	t	session	t	t	Sessão	Sessão com paciente	2026-03-23 10:46:29.876072+00	2026-03-23 14:21:19.247486+00	6366f1	#ffffff
717e552c-99cc-4375-b7f2-a1b29f3581e3	bbbbbbbb-0002-0002-0002-000000000002	\N	t	supervision	f	t	Supervisão	Supervis??o	2026-03-23 10:46:29.876072+00	2026-03-23 14:21:19.247486+00	\N	\N
9ded91f1-1974-4e56-afc6-12b2e8f9456c	bbbbbbbb-0003-0003-0003-000000000003	\N	t	supervision	f	t	Supervisão	Supervis??o	2026-03-23 10:46:29.876072+00	2026-03-23 14:21:19.247486+00	\N	\N
0d6cb161-8d89-4b18-9323-5631e8cddd8f	bbbbbbbb-0004-0004-0004-000000000004	\N	t	supervision	f	t	Supervisão	Supervis??o	2026-03-23 10:46:29.876072+00	2026-03-23 14:21:19.247486+00	\N	\N
83666a58-2e53-49a6-8b13-73eeb203e5ba	bbbbbbbb-0005-0005-0005-000000000005	\N	t	supervision	f	t	Supervisão	Supervis??o	2026-03-23 10:46:29.876072+00	2026-03-23 14:21:19.247486+00	\N	\N
3dbb8c2f-6fab-478f-b094-5bc13606a504	bbbbbbbb-0009-0009-0009-000000000009	\N	t	supervision	f	t	Supervisão	Supervis??o	2026-03-23 11:27:09.865999+00	2026-03-23 14:21:19.247486+00	\N	\N
fb2724d6-3938-4b3f-b8ec-aeb4417a4057	bbbbbbbb-0010-0010-0010-000000000010	\N	t	supervision	f	t	Supervisão	Supervis??o	2026-03-23 11:27:09.865999+00	2026-03-23 14:21:19.247486+00	\N	\N
b5c43dc2-a3a1-40ca-8b75-02ec649fd914	bbbbbbbb-0003-0003-0003-000000000003	\N	t	analysis	f	t	Análise Pessoal	Minha an??lise pessoal	2026-03-23 10:46:29.876072+00	2026-03-23 14:21:19.247486+00	\N	\N
d11aa6fe-ef08-4610-8a6f-4b472ccd1b64	bbbbbbbb-0004-0004-0004-000000000004	\N	t	analysis	f	t	Análise Pessoal	Minha an??lise pessoal	2026-03-23 10:46:29.876072+00	2026-03-23 14:21:19.247486+00	\N	\N
a72b9eb5-747f-4ec3-8bb4-f9c17925e7ad	bbbbbbbb-0005-0005-0005-000000000005	\N	t	analysis	f	t	Análise Pessoal	Minha an??lise pessoal	2026-03-23 10:46:29.876072+00	2026-03-23 14:21:19.247486+00	\N	\N
b180f6e4-39ad-464c-842e-d42dc60cdf13	bbbbbbbb-0009-0009-0009-000000000009	\N	t	analysis	f	t	Análise Pessoal	Minha an??lise pessoal	2026-03-23 11:27:09.865999+00	2026-03-23 14:21:19.247486+00	\N	\N
29b5f51c-0833-4902-8c03-ee8bb7836a33	bbbbbbbb-0010-0010-0010-000000000010	\N	t	analysis	f	t	Análise Pessoal	Minha an??lise pessoal	2026-03-23 11:27:09.865999+00	2026-03-23 14:21:19.247486+00	\N	\N
\.


--
-- Data for Name: insurance_plans; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.insurance_plans (id, owner_id, tenant_id, name, notes, default_value, active, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: insurance_plan_services; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.insurance_plan_services (id, insurance_plan_id, name, value, active, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: recurrence_rules; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.recurrence_rules (id, tenant_id, owner_id, therapist_id, patient_id, determined_commitment_id, type, "interval", weekdays, start_time, end_time, timezone, duration_min, start_date, end_date, max_occurrences, open_ended, modalidade, titulo_custom, observacoes, extra_fields, status, created_at, updated_at, price, insurance_plan_id, insurance_guide_number, insurance_value, insurance_plan_service_id) FROM stdin;
\.


--
-- Data for Name: agenda_eventos; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.agenda_eventos (id, owner_id, tipo, status, titulo, observacoes, inicio_em, fim_em, created_at, updated_at, terapeuta_id, tenant_id, visibility_scope, mirror_of_event_id, mirror_source, patient_id, determined_commitment_id, link_online, titulo_custom, extra_fields, recurrence_id, recurrence_date, modalidade, price, billing_contract_id, billed, services_customized, insurance_plan_id, insurance_guide_number, insurance_value, insurance_plan_service_id) FROM stdin;
dbf6b44e-24f1-4cd2-86f5-a594fa39f9d3	aaaaaaaa-0002-0002-0002-000000000002	sessao	agendado	Otto Rank [Sess??o]	\N	2026-03-23 13:00:00+00	2026-03-23 13:50:00+00	2026-03-23 11:33:08.0471+00	2026-03-23 11:33:08.0471+00	\N	bbbbbbbb-0002-0002-0002-000000000002	public	\N	\N	6449e64b-050b-419f-8845-029b6f10a17d	42a8c681-8b32-4608-870f-b617acbe249e	\N	\N	\N	\N	\N	presencial	0.00	\N	f	f	\N	\N	\N	\N
\.


--
-- Data for Name: agenda_excecoes; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.agenda_excecoes (id, owner_id, data, hora_inicio, hora_fim, tipo, motivo, created_at, updated_at, status, fonte, aplicavel_online, tenant_id) FROM stdin;
\.


--
-- Data for Name: agenda_online_slots; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.agenda_online_slots (id, owner_id, weekday, "time", enabled, created_at, updated_at, tenant_id) FROM stdin;
\.


--
-- Data for Name: agenda_regras_semanais; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.agenda_regras_semanais (id, owner_id, dia_semana, hora_inicio, hora_fim, modalidade, ativo, created_at, updated_at, tenant_id) FROM stdin;
a3212bcd-fc80-40c3-b3ea-92d31d1d051a	aaaaaaaa-0002-0002-0002-000000000002	0	08:00:00	18:00:00	ambos	t	2026-03-23 11:31:24.019622+00	2026-03-23 11:31:24.019622+00	bbbbbbbb-0002-0002-0002-000000000002
cbeae6bd-1ebd-494d-b5c0-2f3a8bf09e14	aaaaaaaa-0002-0002-0002-000000000002	1	08:00:00	18:00:00	ambos	t	2026-03-23 11:31:24.019622+00	2026-03-23 11:31:24.019622+00	bbbbbbbb-0002-0002-0002-000000000002
dd9ecded-d82c-4d87-a2df-85b89c331001	aaaaaaaa-0002-0002-0002-000000000002	2	08:00:00	18:00:00	ambos	t	2026-03-23 11:31:24.019622+00	2026-03-23 11:31:24.019622+00	bbbbbbbb-0002-0002-0002-000000000002
ce5054c2-f382-4135-8365-06b3dab7ea1c	aaaaaaaa-0002-0002-0002-000000000002	3	08:00:00	18:00:00	ambos	t	2026-03-23 11:31:24.019622+00	2026-03-23 11:31:24.019622+00	bbbbbbbb-0002-0002-0002-000000000002
e8e22a8d-4deb-4eeb-a9e8-e1f906030499	aaaaaaaa-0002-0002-0002-000000000002	4	08:00:00	18:00:00	ambos	t	2026-03-23 11:31:24.019622+00	2026-03-23 11:31:24.019622+00	bbbbbbbb-0002-0002-0002-000000000002
265ff3ab-645f-4dd6-8a91-4a3a4d085ff0	aaaaaaaa-0002-0002-0002-000000000002	5	08:00:00	18:00:00	ambos	t	2026-03-23 11:31:24.019622+00	2026-03-23 11:31:24.019622+00	bbbbbbbb-0002-0002-0002-000000000002
\.


--
-- Data for Name: agenda_slots_bloqueados_semanais; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.agenda_slots_bloqueados_semanais (id, owner_id, dia_semana, hora_inicio, motivo, ativo, created_at, updated_at, tenant_id) FROM stdin;
\.


--
-- Data for Name: agenda_slots_regras; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.agenda_slots_regras (id, owner_id, dia_semana, passo_minutos, offset_minutos, buffer_antes_min, buffer_depois_min, min_antecedencia_horas, ativo, created_at, updated_at, tenant_id) FROM stdin;
\.


--
-- Data for Name: agendador_configuracoes; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.agendador_configuracoes (owner_id, tenant_id, ativo, link_slug, imagem_fundo_url, imagem_header_url, logomarca_url, cor_primaria, nome_exibicao, endereco, botao_como_chegar_ativo, maps_url, modo_aprovacao, modalidade, tipos_habilitados, duracao_sessao_min, antecedencia_minima_horas, prazo_resposta_horas, reserva_horas, pagamento_obrigatorio, pix_chave, pix_countdown_minutos, triagem_motivo, triagem_como_conheceu, verificacao_email, exigir_aceite_lgpd, mensagem_boas_vindas, texto_como_se_preparar, texto_termos_lgpd, created_at, updated_at, pagamento_modo, pagamento_metodos_visiveis) FROM stdin;
\.


--
-- Data for Name: agendador_solicitacoes; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.agendador_solicitacoes (id, owner_id, tenant_id, paciente_nome, paciente_sobrenome, paciente_email, paciente_celular, paciente_cpf, tipo, modalidade, data_solicitada, hora_solicitada, reservado_ate, motivo, como_conheceu, pix_status, pix_pago_em, status, recusado_motivo, autorizado_em, autorizado_por, user_id, patient_id, evento_id, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: services; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.services (id, owner_id, tenant_id, name, description, price, duration_min, active, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: commitment_services; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.commitment_services (id, commitment_id, service_id, quantity, unit_price, discount_pct, discount_flat, final_price, created_at) FROM stdin;
\.


--
-- Data for Name: commitment_time_logs; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.commitment_time_logs (id, tenant_id, commitment_id, calendar_event_id, source, started_at, ended_at, minutes, created_by, created_at) FROM stdin;
\.


--
-- Data for Name: company_profiles; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.company_profiles (id, tenant_id, nome_fantasia, razao_social, tipo_empresa, cnpj, ie, im, cep, logradouro, numero, complemento, bairro, cidade, estado, email, telefone, site, logo_url, redes_sociais, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: determined_commitment_fields; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.determined_commitment_fields (id, tenant_id, commitment_id, key, label, field_type, required, sort_order, created_at, updated_at) FROM stdin;
3f45731e-f025-4a95-b37d-35becf557474	bbbbbbbb-0002-0002-0002-000000000002	5944e5d9-622d-4db1-b73d-0083a6a4a9a1	book	Livro	text	f	10	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
7cb99c51-3de2-4216-be29-1067d1d2a6e8	bbbbbbbb-0002-0002-0002-000000000002	5944e5d9-622d-4db1-b73d-0083a6a4a9a1	author	Autor	text	f	20	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
29a48e4d-b4b9-41e6-8a3f-23e862b11f71	bbbbbbbb-0002-0002-0002-000000000002	5944e5d9-622d-4db1-b73d-0083a6a4a9a1	notes	Observa????o	textarea	f	30	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
de1bf25c-2c6e-4de1-9be2-9976eb26e9e6	bbbbbbbb-0002-0002-0002-000000000002	717e552c-99cc-4375-b7f2-a1b29f3581e3	supervisor	Supervisor	text	f	10	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
0a2f4c96-be82-49a1-b0bc-65d08bf29078	bbbbbbbb-0002-0002-0002-000000000002	717e552c-99cc-4375-b7f2-a1b29f3581e3	topic	Assunto	text	f	20	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
ea018b37-ac9a-49a5-93dd-ebc4f2bcc069	bbbbbbbb-0002-0002-0002-000000000002	717e552c-99cc-4375-b7f2-a1b29f3581e3	notes	Observa????o	textarea	f	30	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
4f4fff30-8b01-46cc-a6c9-25e0c623b03c	bbbbbbbb-0002-0002-0002-000000000002	b3bf589d-4a72-429f-b9bd-ba426c3f42f1	theme	Tema	text	f	10	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
3ddb7185-eea6-43e4-bab7-686aa996f4e6	bbbbbbbb-0002-0002-0002-000000000002	b3bf589d-4a72-429f-b9bd-ba426c3f42f1	group	Turma	text	f	20	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
20c208a1-eae7-4021-916f-a3a45f7d9e84	bbbbbbbb-0002-0002-0002-000000000002	b3bf589d-4a72-429f-b9bd-ba426c3f42f1	notes	Observa????o	textarea	f	30	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
82c2b726-8de7-4bdd-a7ab-0fe519200f2c	bbbbbbbb-0002-0002-0002-000000000002	e19a2e0e-cd6a-4cee-97e0-50a43ea69df1	analyst	Analista	text	f	10	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
88bb598e-44f1-4090-a09a-21a11e628ab0	bbbbbbbb-0002-0002-0002-000000000002	e19a2e0e-cd6a-4cee-97e0-50a43ea69df1	focus	Foco	text	f	20	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
f0aa7c4c-e26d-42c2-8f90-5e4a87308fe9	bbbbbbbb-0002-0002-0002-000000000002	e19a2e0e-cd6a-4cee-97e0-50a43ea69df1	notes	Observa????o	textarea	f	30	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
fa8083ef-7e1f-4e00-84b6-6dd197a31e11	bbbbbbbb-0003-0003-0003-000000000003	cd1076b1-0f3d-460e-842f-1585c0ae2a64	book	Livro	text	f	10	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
2fea846d-3d7f-4946-8b8a-921756d1375d	bbbbbbbb-0003-0003-0003-000000000003	cd1076b1-0f3d-460e-842f-1585c0ae2a64	author	Autor	text	f	20	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
7f71d073-7337-40c3-9f2b-80d359ee6825	bbbbbbbb-0003-0003-0003-000000000003	cd1076b1-0f3d-460e-842f-1585c0ae2a64	notes	Observa????o	textarea	f	30	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
9ea25942-9529-4ffb-99b1-17c8f48fa1b3	bbbbbbbb-0003-0003-0003-000000000003	9ded91f1-1974-4e56-afc6-12b2e8f9456c	supervisor	Supervisor	text	f	10	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
642ee453-276b-4636-808b-0deed8827416	bbbbbbbb-0003-0003-0003-000000000003	9ded91f1-1974-4e56-afc6-12b2e8f9456c	topic	Assunto	text	f	20	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
1107588b-dafc-49f0-adf1-1d478410fbab	bbbbbbbb-0003-0003-0003-000000000003	9ded91f1-1974-4e56-afc6-12b2e8f9456c	notes	Observa????o	textarea	f	30	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
2d00519b-2d66-4b66-9471-4edfd7f03152	bbbbbbbb-0003-0003-0003-000000000003	b82819d4-02a1-40c5-bf57-6e2e0425e62d	theme	Tema	text	f	10	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
6fb9b8f8-0a50-4267-93ff-a154487d0ee2	bbbbbbbb-0003-0003-0003-000000000003	b82819d4-02a1-40c5-bf57-6e2e0425e62d	group	Turma	text	f	20	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
99d0df7d-20f7-49df-acd8-c359b195348d	bbbbbbbb-0003-0003-0003-000000000003	b82819d4-02a1-40c5-bf57-6e2e0425e62d	notes	Observa????o	textarea	f	30	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
241c3b0f-78c1-4485-9f11-c8fc5fdf6650	bbbbbbbb-0003-0003-0003-000000000003	b5c43dc2-a3a1-40ca-8b75-02ec649fd914	analyst	Analista	text	f	10	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
08440a39-027f-4879-8091-7a9b2cf522c1	bbbbbbbb-0003-0003-0003-000000000003	b5c43dc2-a3a1-40ca-8b75-02ec649fd914	focus	Foco	text	f	20	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
d11f4029-c46e-42bf-b7aa-bc3b1cc9874a	bbbbbbbb-0003-0003-0003-000000000003	b5c43dc2-a3a1-40ca-8b75-02ec649fd914	notes	Observa????o	textarea	f	30	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
d2d11b9f-5dcf-4355-bc33-c977ac7591a9	bbbbbbbb-0004-0004-0004-000000000004	2e5f4151-e259-4261-8954-e3d196a28383	book	Livro	text	f	10	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
2d3e3c6e-6ca0-4170-b9ed-e45e470a8738	bbbbbbbb-0004-0004-0004-000000000004	2e5f4151-e259-4261-8954-e3d196a28383	author	Autor	text	f	20	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
a7003c31-46b1-44a2-876e-034f3c61ce8c	bbbbbbbb-0004-0004-0004-000000000004	2e5f4151-e259-4261-8954-e3d196a28383	notes	Observa????o	textarea	f	30	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
29f2cb01-22c2-45c3-ba02-55b908b5ceac	bbbbbbbb-0004-0004-0004-000000000004	0d6cb161-8d89-4b18-9323-5631e8cddd8f	supervisor	Supervisor	text	f	10	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
e0b8f4dd-740c-4162-b988-62fc8216de8c	bbbbbbbb-0004-0004-0004-000000000004	0d6cb161-8d89-4b18-9323-5631e8cddd8f	topic	Assunto	text	f	20	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
187902e7-4497-4ab6-81f7-7dbe177189e9	bbbbbbbb-0004-0004-0004-000000000004	0d6cb161-8d89-4b18-9323-5631e8cddd8f	notes	Observa????o	textarea	f	30	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
4ef4ac8e-adf4-4034-851f-3767ef37a8e4	bbbbbbbb-0004-0004-0004-000000000004	bec193c2-172b-40ef-a5fe-91b7c44c841e	theme	Tema	text	f	10	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
4972b76d-c080-4989-a4f8-3d3c57a9b96e	bbbbbbbb-0004-0004-0004-000000000004	bec193c2-172b-40ef-a5fe-91b7c44c841e	group	Turma	text	f	20	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
fc589056-f8b8-4d96-94f0-7ac49ab53059	bbbbbbbb-0004-0004-0004-000000000004	bec193c2-172b-40ef-a5fe-91b7c44c841e	notes	Observa????o	textarea	f	30	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
4300058b-c0b4-4b86-8f6e-eda6d99553fc	bbbbbbbb-0004-0004-0004-000000000004	d11aa6fe-ef08-4610-8a6f-4b472ccd1b64	analyst	Analista	text	f	10	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
20add80c-2807-42c9-8c42-40291a49e5df	bbbbbbbb-0004-0004-0004-000000000004	d11aa6fe-ef08-4610-8a6f-4b472ccd1b64	focus	Foco	text	f	20	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
4d01680a-733e-4c0c-a26a-e19b962fe9fa	bbbbbbbb-0004-0004-0004-000000000004	d11aa6fe-ef08-4610-8a6f-4b472ccd1b64	notes	Observa????o	textarea	f	30	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
e56ad576-c831-444a-bb21-0bcd74630d48	bbbbbbbb-0005-0005-0005-000000000005	793f5b1d-b218-40a3-aa73-3e1440d9ea66	book	Livro	text	f	10	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
cc36d270-7961-481f-8a8b-99e0b9ef2e64	bbbbbbbb-0005-0005-0005-000000000005	793f5b1d-b218-40a3-aa73-3e1440d9ea66	author	Autor	text	f	20	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
8eb622a4-8ee9-4c34-af09-9dd5c74923fa	bbbbbbbb-0005-0005-0005-000000000005	793f5b1d-b218-40a3-aa73-3e1440d9ea66	notes	Observa????o	textarea	f	30	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
24d0c58f-3382-4ea8-81e7-3dc32f122b90	bbbbbbbb-0005-0005-0005-000000000005	83666a58-2e53-49a6-8b13-73eeb203e5ba	supervisor	Supervisor	text	f	10	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
4993e870-d101-4754-b2bc-18205255d643	bbbbbbbb-0005-0005-0005-000000000005	83666a58-2e53-49a6-8b13-73eeb203e5ba	topic	Assunto	text	f	20	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
b6e403de-e93a-42e0-832a-e6103a935421	bbbbbbbb-0005-0005-0005-000000000005	83666a58-2e53-49a6-8b13-73eeb203e5ba	notes	Observa????o	textarea	f	30	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
a552127c-1b16-464c-a8f3-d7bdf054b0a9	bbbbbbbb-0005-0005-0005-000000000005	8c1a77a1-b66f-462e-940d-2f60d080149c	theme	Tema	text	f	10	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
be9ecf92-2dc8-4f62-94f3-223b0165c0af	bbbbbbbb-0005-0005-0005-000000000005	8c1a77a1-b66f-462e-940d-2f60d080149c	group	Turma	text	f	20	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
7f7a9b35-60f1-4192-bf6c-d91ca42813a1	bbbbbbbb-0005-0005-0005-000000000005	8c1a77a1-b66f-462e-940d-2f60d080149c	notes	Observa????o	textarea	f	30	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
528d426f-23d4-422f-8624-5b4178ce3a8b	bbbbbbbb-0005-0005-0005-000000000005	a72b9eb5-747f-4ec3-8bb4-f9c17925e7ad	analyst	Analista	text	f	10	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
11a02a30-7a0a-4baf-acdd-2525c2f2cf84	bbbbbbbb-0005-0005-0005-000000000005	a72b9eb5-747f-4ec3-8bb4-f9c17925e7ad	focus	Foco	text	f	20	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
f456679b-05d7-4ccc-ae3b-c5f673f8f6f8	bbbbbbbb-0005-0005-0005-000000000005	a72b9eb5-747f-4ec3-8bb4-f9c17925e7ad	notes	Observa????o	textarea	f	30	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00
07ba5c18-9ebb-4b38-bd2f-591b8e4f7f87	bbbbbbbb-0009-0009-0009-000000000009	fc6da673-fd7c-4101-b980-54eb3842804c	book	Livro	text	f	10	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00
92eec7d8-20f3-46e4-8700-c80e9bd90bcb	bbbbbbbb-0009-0009-0009-000000000009	fc6da673-fd7c-4101-b980-54eb3842804c	author	Autor	text	f	20	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00
fdf6b850-b627-494e-9cb0-d1a044409b3c	bbbbbbbb-0009-0009-0009-000000000009	fc6da673-fd7c-4101-b980-54eb3842804c	notes	Observa????o	textarea	f	30	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00
ef9a9605-9b0f-4671-b056-835c56844cf9	bbbbbbbb-0009-0009-0009-000000000009	3dbb8c2f-6fab-478f-b094-5bc13606a504	supervisor	Supervisor	text	f	10	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00
e19f0ad4-fe52-4595-84aa-cf11828a7ecd	bbbbbbbb-0009-0009-0009-000000000009	3dbb8c2f-6fab-478f-b094-5bc13606a504	topic	Assunto	text	f	20	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00
41a085ac-6849-4e29-8728-79e1a47c1ac5	bbbbbbbb-0009-0009-0009-000000000009	3dbb8c2f-6fab-478f-b094-5bc13606a504	notes	Observa????o	textarea	f	30	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00
8fdaad8b-f31c-4510-9b72-7346026103b9	bbbbbbbb-0009-0009-0009-000000000009	4c4a8ced-d109-443b-bc83-817c858f9bb6	theme	Tema	text	f	10	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00
9e53f6f5-6770-4f3e-8b0e-cb18c9df54b7	bbbbbbbb-0009-0009-0009-000000000009	4c4a8ced-d109-443b-bc83-817c858f9bb6	group	Turma	text	f	20	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00
222021b7-6917-4977-a08f-e19532aa2a0e	bbbbbbbb-0009-0009-0009-000000000009	4c4a8ced-d109-443b-bc83-817c858f9bb6	notes	Observa????o	textarea	f	30	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00
329eebff-55c4-49e2-87ee-b3d0f418234b	bbbbbbbb-0009-0009-0009-000000000009	b180f6e4-39ad-464c-842e-d42dc60cdf13	analyst	Analista	text	f	10	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00
e87c45d8-8f5f-476d-811d-5b5b4a764e07	bbbbbbbb-0009-0009-0009-000000000009	b180f6e4-39ad-464c-842e-d42dc60cdf13	focus	Foco	text	f	20	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00
2a8c3eff-4eed-4b2d-98e7-50267ebb910e	bbbbbbbb-0009-0009-0009-000000000009	b180f6e4-39ad-464c-842e-d42dc60cdf13	notes	Observa????o	textarea	f	30	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00
e6109ef3-7409-4268-8ecf-eaff64fa9498	bbbbbbbb-0010-0010-0010-000000000010	fe52a6b2-e86e-47e0-9dc7-9b7e63599cff	book	Livro	text	f	10	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00
2069cb4c-3c49-4a82-ada1-63082d14bba3	bbbbbbbb-0010-0010-0010-000000000010	fe52a6b2-e86e-47e0-9dc7-9b7e63599cff	author	Autor	text	f	20	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00
d8428a90-f534-4794-99a7-1c752d42e0d2	bbbbbbbb-0010-0010-0010-000000000010	fe52a6b2-e86e-47e0-9dc7-9b7e63599cff	notes	Observa????o	textarea	f	30	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00
69435311-e703-4fbb-84b8-d634fd0148fe	bbbbbbbb-0010-0010-0010-000000000010	fb2724d6-3938-4b3f-b8ec-aeb4417a4057	supervisor	Supervisor	text	f	10	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00
2c71883c-dee5-420e-9c7a-d1b1ade908f5	bbbbbbbb-0010-0010-0010-000000000010	fb2724d6-3938-4b3f-b8ec-aeb4417a4057	topic	Assunto	text	f	20	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00
1cf750d0-449d-4780-8828-bffce53cc651	bbbbbbbb-0010-0010-0010-000000000010	fb2724d6-3938-4b3f-b8ec-aeb4417a4057	notes	Observa????o	textarea	f	30	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00
e38226ca-3af4-41c3-a901-9edfc0814e46	bbbbbbbb-0010-0010-0010-000000000010	53193b8a-8af1-4824-a7c6-22cbb7459c45	theme	Tema	text	f	10	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00
6100b0b2-db5c-4aeb-98e3-3c6f6a20f058	bbbbbbbb-0010-0010-0010-000000000010	53193b8a-8af1-4824-a7c6-22cbb7459c45	group	Turma	text	f	20	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00
ef948cc1-4e2b-4c7a-9043-956a6341085a	bbbbbbbb-0010-0010-0010-000000000010	53193b8a-8af1-4824-a7c6-22cbb7459c45	notes	Observa????o	textarea	f	30	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00
9405625b-f781-4b5d-836c-19371fccefab	bbbbbbbb-0010-0010-0010-000000000010	29b5f51c-0833-4902-8c03-ee8bb7836a33	analyst	Analista	text	f	10	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00
cc414a63-c433-4269-be6c-caad9f83408d	bbbbbbbb-0010-0010-0010-000000000010	29b5f51c-0833-4902-8c03-ee8bb7836a33	focus	Foco	text	f	20	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00
c5c4f4c9-2e74-4f65-b5d9-ee1121005cbc	bbbbbbbb-0010-0010-0010-000000000010	29b5f51c-0833-4902-8c03-ee8bb7836a33	notes	Observa????o	textarea	f	30	2026-03-23 11:27:09.865999+00	2026-03-23 11:27:09.865999+00
\.


--
-- Data for Name: dev_user_credentials; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.dev_user_credentials (id, user_id, email, password_dev, kind, note, created_at) FROM stdin;
\.


--
-- Data for Name: email_layout_config; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.email_layout_config (id, tenant_id, header_config, footer_config, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: email_templates_global; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.email_templates_global (id, key, domain, channel, subject, body_html, body_text, version, is_active, variables, created_at, updated_at) FROM stdin;
be1e52ec-0c1d-4cbe-97da-9c47ce052631	session.reminder.email	session	email	Lembrete: sua sessão amanhã às {{session_time}}	\n      <p>Olá, <strong>{{patient_name}}</strong>!</p>\n      <p>Este é um lembrete da sua sessão agendada para <strong>{{session_date}}</strong> às <strong>{{session_time}}</strong>.</p>\n      <p>Modalidade: <strong>{{session_modality}}</strong></p>\n      {{#if session_link}}\n      <p><a href="{{session_link}}">Clique aqui para entrar na sessão online</a></p>\n      {{/if}}\n      <p>Em caso de necessidade de cancelamento, entre em contato com antecedência.</p>\n      <p>Até logo,<br><strong>{{therapist_name}}</strong></p>\n    	Olá, {{patient_name}}! Lembrete da sua sessão: {{session_date}} às {{session_time}} ({{session_modality}}).	2	t	{"patient_name": "Nome completo do paciente", "session_date": "Data da sessão (ex: 20/03/2026)", "session_link": "Link da videochamada (apenas online)", "session_time": "Horário da sessão (ex: 14:00)", "therapist_name": "Nome do terapeuta", "session_modality": "Presencial ou Online"}	2026-03-23 11:27:15.104483+00	2026-03-23 14:18:08.414378+00
bf956245-c79a-4ed0-86f1-e0be57072cc8	session.confirmation.email	session	email	Sessão confirmada — {{session_date}} às {{session_time}}	\n      <p>Olá, <strong>{{patient_name}}</strong>!</p>\n      <p>Sua sessão foi confirmada com sucesso.</p>\n      <ul>\n        <li><strong>Data:</strong> {{session_date}}</li>\n        <li><strong>Horário:</strong> {{session_time}}</li>\n        <li><strong>Modalidade:</strong> {{session_modality}}</li>\n        {{#if session_address}}<li><strong>Local:</strong> {{session_address}}</li>{{/if}}\n      </ul>\n      <p>Até lá,<br><strong>{{therapist_name}}</strong></p>\n    	Sessão confirmada: {{session_date}} às {{session_time}} ({{session_modality}}).	1	t	{"patient_name": "Nome do paciente", "session_date": "Data da sessão", "session_time": "Horário da sessão", "therapist_name": "Nome do terapeuta", "session_address": "Endereço (apenas presencial)", "session_modality": "Presencial ou Online"}	2026-03-23 11:27:15.104483+00	2026-03-23 14:18:08.414378+00
9039f35e-e31f-4bad-a6a5-2b865f1152b3	session.cancellation.email	session	email	Sessão cancelada — {{session_date}}	\n      <p>Olá, <strong>{{patient_name}}</strong>!</p>\n      <p>Informamos que sua sessão do dia <strong>{{session_date}}</strong> às <strong>{{session_time}}</strong> foi cancelada.</p>\n      {{#if cancellation_reason}}<p>Motivo: {{cancellation_reason}}</p>{{/if}}\n      <p>Entre em contato para reagendar.</p>\n      <p><strong>{{therapist_name}}</strong></p>\n    	\N	1	t	{"patient_name": "Nome do paciente", "session_date": "Data cancelada", "session_time": "Horário cancelado", "therapist_name": "Nome do terapeuta", "cancellation_reason": "Motivo do cancelamento (opcional)"}	2026-03-23 11:27:15.104483+00	2026-03-23 14:18:08.414378+00
ff36dccc-6fe1-4391-9eac-bd03927b38f5	session.rescheduled.email	session	email	Sessão reagendada — {{session_date}} às {{session_time}}	\n      <p>Olá, <strong>{{patient_name}}</strong>!</p>\n      <p>Sua sessão foi reagendada para <strong>{{session_date}}</strong> às <strong>{{session_time}}</strong>.</p>\n      <p>Modalidade: <strong>{{session_modality}}</strong></p>\n      <p>Até lá,<br><strong>{{therapist_name}}</strong></p>\n    	\N	1	t	{"patient_name": "Nome do paciente", "session_date": "Nova data", "session_time": "Novo horário", "therapist_name": "Nome do terapeuta", "session_modality": "Presencial ou Online"}	2026-03-23 11:27:15.104483+00	2026-03-23 14:18:08.414378+00
f17b10f8-d811-4f83-bf5e-3ed636262f28	intake.received.email	intake	email	Recebemos seu cadastro — {{clinic_name}}	\n      <p>Olá, <strong>{{patient_name}}</strong>!</p>\n      <p>Recebemos seu cadastro com sucesso. Nossa equipe entrará em contato em breve para dar continuidade ao processo.</p>\n      <p>Obrigado pela confiança,<br><strong>{{clinic_name}}</strong></p>\n    	\N	1	t	{"clinic_name": "Nome da clínica ou terapeuta", "patient_name": "Nome do solicitante"}	2026-03-23 11:27:15.104483+00	2026-03-23 14:18:08.414378+00
5b4a9a8b-bc92-4030-92ec-acbb6f9e7ee0	intake.approved.email	intake	email	Cadastro aprovado — bem-vindo(a)!	\n      <p>Olá, <strong>{{patient_name}}</strong>!</p>\n      <p>Seu cadastro foi aprovado. Você já pode acessar o portal e agendar sua primeira sessão.</p>\n      <p><a href="{{portal_link}}">Acessar portal →</a></p>\n      <p>Qualquer dúvida, estamos à disposição.<br><strong>{{therapist_name}}</strong></p>\n    	\N	1	t	{"portal_link": "Link do portal do paciente", "patient_name": "Nome do paciente", "therapist_name": "Nome do terapeuta"}	2026-03-23 11:27:15.104483+00	2026-03-23 14:18:08.414378+00
04da6880-708a-4018-9b1f-0f398d152e0c	intake.rejected.email	intake	email	Atualização sobre seu cadastro — {{clinic_name}}	\n      <p>Olá, <strong>{{patient_name}}</strong>!</p>\n      <p>Agradecemos seu interesse. Infelizmente não será possível dar continuidade ao seu cadastro no momento.</p>\n      {{#if rejection_reason}}<p>{{rejection_reason}}</p>{{/if}}\n      <p><strong>{{clinic_name}}</strong></p>\n    	\N	1	t	{"clinic_name": "Nome da clínica", "patient_name": "Nome do paciente", "rejection_reason": "Motivo (opcional)"}	2026-03-23 11:27:15.104483+00	2026-03-23 14:18:08.414378+00
3e9ae66a-598c-4763-ab61-f02bb71323a4	scheduler.request_accepted.email	session	email	Sua solicitação foi aceita — {{session_date}} às {{session_time}}	\n      <p>Olá, <strong>{{patient_name}}</strong>!</p>\n      <p>Sua solicitação de agendamento foi aceita.</p>\n      <ul>\n        <li><strong>Data:</strong> {{session_date}}</li>\n        <li><strong>Horário:</strong> {{session_time}}</li>\n        <li><strong>Tipo:</strong> {{session_type}}</li>\n        <li><strong>Modalidade:</strong> {{session_modality}}</li>\n      </ul>\n      <p>Até logo,<br><strong>{{therapist_name}}</strong></p>\n    	\N	1	t	{"patient_name": "Nome do paciente", "session_date": "Data confirmada", "session_time": "Horário confirmado", "session_type": "Primeira consulta / Retorno", "therapist_name": "Nome do terapeuta", "session_modality": "Presencial ou Online"}	2026-03-23 11:27:15.104483+00	2026-03-23 14:18:08.414378+00
7c7f736d-1ddb-46ba-ab41-f66d2267b730	scheduler.request_rejected.email	session	email	Atualização sobre sua solicitação de agendamento	\n      <p>Olá, <strong>{{patient_name}}</strong>!</p>\n      <p>Infelizmente não foi possível confirmar sua solicitação de agendamento para <strong>{{session_date}}</strong>.</p>\n      {{#if rejection_reason}}<p>Motivo: {{rejection_reason}}</p>{{/if}}\n      <p>Entre em contato para verificar outros horários disponíveis.</p>\n      <p><strong>{{therapist_name}}</strong></p>\n    	\N	1	t	{"patient_name": "Nome do paciente", "session_date": "Data solicitada", "therapist_name": "Nome do terapeuta", "rejection_reason": "Motivo (opcional)"}	2026-03-23 11:27:15.104483+00	2026-03-23 14:18:08.414378+00
78a33f29-3428-482f-9b0e-362c69ff20a8	system.welcome.email	system	email	Bem-vindo(a) ao {{clinic_name}}!	\n      <p>Olá, <strong>{{patient_name}}</strong>!</p>\n      <p>Seja bem-vindo(a)! Sua conta foi criada com sucesso.</p>\n      <p><a href="{{portal_link}}">Acessar minha área →</a></p>\n    	\N	1	t	{"clinic_name": "Nome da clínica", "portal_link": "Link do portal", "patient_name": "Nome do paciente"}	2026-03-23 11:27:15.104483+00	2026-03-23 14:18:08.414378+00
21a3fab3-01af-4b16-bd63-50929be5001d	system.password_reset.email	system	email	Redefinição de senha	\n      <p>Olá, <strong>{{patient_name}}</strong>!</p>\n      <p>Recebemos uma solicitação para redefinir sua senha.</p>\n      <p><a href="{{reset_link}}">Clique aqui para redefinir sua senha →</a></p>\n      <p>Se você não solicitou a redefinição, ignore este e-mail.</p>\n    	\N	1	t	{"reset_link": "Link de redefinição de senha", "patient_name": "Nome do usuário"}	2026-03-23 11:27:15.104483+00	2026-03-23 14:18:08.414378+00
\.


--
-- Data for Name: email_templates_tenant; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.email_templates_tenant (id, tenant_id, owner_id, template_key, subject, body_html, body_text, enabled, synced_version, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: entitlements_invalidation; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.entitlements_invalidation (owner_id, changed_at) FROM stdin;
\.


--
-- Data for Name: features; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.features (id, key, description, created_at, descricao, name) FROM stdin;
5e539124-630f-4c2a-a9de-7999317085e6	agenda.view	Visualização da agenda	2026-02-21 02:36:01.562728+00	Visualizar agenda	Agenda - Visualizar
a74fef14-c9d9-4884-ba45-f81c60e0783a	agenda.manage	Gerenciamento completo da agenda	2026-02-21 02:35:50.629667+00	Adicionar Compromissos na agenda	Agenda - Gerenciar
a56482a1-0787-49da-90a7-e1857488734a	patients	Módulo de pacientes	2026-03-02 12:35:19.955748+00	Pacientes	Pacientes
57f631a1-9ebe-480b-a2cb-144ad32ff5f0	patients.view	Visualização de pacientes	2026-02-28 11:15:14.275572+00	Visualizar pacientes	Pacientes - Visualizar
4e5bc50b-e339-42fe-9d91-61e8555f83e7	patients.manage	Gerenciamento completo de pacientes	2026-02-28 11:15:14.275572+00	Gerenciar pacientes	Pacientes - Gerenciar
53a48c3b-0617-4618-adf8-f3a255c51ee4	online_scheduling	Sistema de agendamento online	2026-03-01 09:59:15.432733+00	Agendamento online	Agendamento Online
5739aa27-b089-4b15-b149-31b13d768825	online_scheduling.manage	Gerenciamento do agendamento online	2026-02-15 21:50:02.056357+00	Gerenciar agendamento online (admin)	Agendamento Online - Gerenciar
0bfe0b1c-8c3d-4c0c-af29-2ddc24f31bc7	online_scheduling.public	Página pública do agendador	2026-02-15 21:50:02.056357+00	Página pública de agendamento	Agendamento Online - Público
f5d66212-fd73-4472-a306-07928e5deaec	reminders	Sistema de lembretes automáticos	2026-03-01 09:59:15.432733+00	Lembretes	Lembretes
b3efa25d-60a4-4974-8153-6ec098b3d477	reports_basic	Relatórios básicos	2026-03-01 09:59:15.432733+00	Relatórios básicos	Relatórios Básicos
bf133ad1-da8e-4ea9-bd66-21901cb50075	reports_advanced	Relatórios avançados com exportação	2026-03-01 09:59:15.432733+00	Relatórios avançados	Relatórios Avançados
336aeeba-b18e-4e68-8303-d42ba09f4b20	secretary	Funcionalidade de secretária	2026-03-01 09:59:15.432733+00	Secretaria	Secretária
30c9cdd5-7c8c-44d9-8c0b-614165bb9496	shared_reception	Recepção compartilhada entre terapeutas	2026-03-02 12:35:19.955748+00	Recepção / Secretária	Recepção Compartilhada
74fc1321-4d17-49c3-b72e-db3a7f4be451	rooms	Gerenciamento de salas	2026-03-02 12:35:19.955748+00	Salas / Coworking	Salas
c109ad27-0edf-4774-91a7-94dac4faab49	intake_public	Formulário de intake público	2026-03-02 12:35:19.955748+00	Link externo de cadastro	Intake Público
90e92108-8124-40ee-88a0-f0ecafb57d76	intakes_pro	Funcionalidades avançadas de intake	2026-02-15 23:29:55.845638+00	Formulários PRO	Intakes PRO
f393178c-284d-422f-b096-8793f85428d5	custom_branding	Personalização de marca	2026-03-01 09:59:15.432733+00	Personalização de marca	Branding Personalizado
d6f54674-ea8b-484b-af0e-99127a510da2	api_access	Acesso via API	2026-03-01 09:59:15.432733+00	Integrações/API	Acesso API
a5593d96-dd95-46bb-bef0-bd379b56ad50	audit_log	Log de auditoria completo	2026-03-01 09:59:15.432733+00	Auditoria	Log de Auditoria
8cc81988-d02a-4542-9cb2-ce2ed7c18d60	sms_reminder	Lembretes via SMS	2026-02-15 23:29:55.845638+00	Lembretes por SMS	Lembrete SMS
9b36c65d-b3b3-4bed-b6d5-f7ee8c087c80	clinic_calendar	Visão consolidada do calendário	2026-03-01 09:59:15.432733+00	Agenda da clínica	Calendário da Clínica
a830e45b-3bb4-4b17-812d-fe83777a2377	advanced_reports	Relatórios avançados da clínica	2026-02-15 23:29:55.845638+00	Relatórios avançados	Relatórios Avançados (Clínica)
9ab8bdbb-838b-4946-aa5d-fd9cfdd257b3	supervisor.access	Acesso ao módulo de supervisão	2026-03-05 00:58:17.218326+00	Acesso básico ao espaço de supervisão (sala, lista de supervisionados).	Supervisor - Acesso
1167b54a-0e93-43a2-94d7-c12e64eb56de	supervisor.invite	Convidar supervisionados	2026-03-05 00:58:17.218326+00	Permite convidar terapeutas para participar da sala de supervisão.	Supervisor - Convidar
761e4495-b46a-4791-9519-86ffe48dc47f	supervisor.sessions	Gerenciar sessões de supervisão	2026-03-05 00:58:17.218326+00	Agendamento e registro de sessões de supervisão.	Supervisor - Sessões
7e82ee01-44f6-4b3f-9861-840c58e13f58	supervisor.reports	Relatórios de supervisão	2026-03-05 00:58:17.218326+00	Relatórios avançados de progresso e evolução dos supervisionados.	Supervisor - Relatórios
\.


--
-- Data for Name: feriados; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.feriados (id, tenant_id, owner_id, tipo, nome, data, cidade, estado, observacao, bloqueia_sessoes, criado_em) FROM stdin;
\.


--
-- Data for Name: financial_categories; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.financial_categories (id, user_id, name, type, color, icon, sort_order, created_at) FROM stdin;
\.


--
-- Data for Name: financial_exceptions; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.financial_exceptions (id, owner_id, tenant_id, exception_type, charge_mode, charge_value, charge_pct, min_hours_notice, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: financial_records; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.financial_records (id, owner_id, tenant_id, type, amount, description, category, payment_method, paid_at, due_date, installments, installment_number, installment_group, agenda_evento_id, patient_id, clinic_fee_pct, clinic_fee_amount, insurance_plan_id, notes, tags, created_at, updated_at, deleted_at, discount_amount, final_amount, status, category_id) FROM stdin;
\.


--
-- Data for Name: global_notices; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.global_notices (id, title, message, variant, roles, contexts, starts_at, ends_at, is_active, priority, dismissible, persist_dismiss, dismiss_scope, show_once, max_views, cooldown_minutes, version, action_type, action_label, action_url, action_route, views_count, clicks_count, created_at, updated_at, created_by, content_align, link_target) FROM stdin;
\.


--
-- Data for Name: login_carousel_slides; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.login_carousel_slides (id, title, body, icon, ordem, ativo, created_at, updated_at) FROM stdin;
0af63b3a-1819-4384-bf94-b29cbe84aca3	<strong>Gestão clínica simplificada</strong>	Agendamentos, prontuários e sessões em um único painel. Foco no que importa: <em>seus pacientes</em>.	pi-calendar-clock	0	t	2026-03-23 14:18:08.414378+00	2026-03-23 14:18:08.414378+00
c02309d3-85cf-452f-bb85-363889aea9f3	<strong>Gestão clínica simplificada</strong>	Gerencie agenda, pacientes e financeiro em um só lugar. Simples, rápido e seguro.	pi-users	1	t	2026-03-23 14:18:08.414378+00	2026-03-23 14:18:08.414378+00
763a600e-987c-4e42-8f62-29b5dea59c39	<strong>Múltiplos profissionais, uma só plataforma</strong>	Ideal para clínicas com vários terapeutas. Cada profissional com sua agenda e seus pacientes.	pi-shield	2	t	2026-03-23 14:18:08.414378+00	2026-03-23 14:18:08.414378+00
\.


--
-- Data for Name: modules; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.modules (id, key, name, description, is_active, created_at) FROM stdin;
\.


--
-- Data for Name: module_features; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.module_features (module_id, feature_id, enabled, limits, created_at) FROM stdin;
\.


--
-- Data for Name: notice_dismissals; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.notice_dismissals (id, notice_id, user_id, version, dismissed_at) FROM stdin;
\.


--
-- Data for Name: notification_channels; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.notification_channels (id, tenant_id, owner_id, channel, provider, is_active, display_name, sender_address, credentials, connection_status, last_health_check, metadata, created_at, updated_at, deleted_at) FROM stdin;
\.


--
-- Data for Name: notification_queue; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.notification_queue (id, tenant_id, owner_id, agenda_evento_id, patient_id, channel, template_key, schedule_key, resolved_vars, recipient_address, status, scheduled_at, sent_at, next_retry_at, attempts, max_attempts, last_error, idempotency_key, provider_message_id, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: notification_logs; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.notification_logs (id, tenant_id, owner_id, queue_id, agenda_evento_id, patient_id, channel, template_key, schedule_key, recipient_address, resolved_message, resolved_vars, status, provider, provider_message_id, provider_status, provider_response, sent_at, delivered_at, read_at, failed_at, failure_reason, estimated_cost_brl, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: notification_preferences; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.notification_preferences (id, tenant_id, owner_id, patient_id, whatsapp_opt_in, email_opt_in, sms_opt_in, preferred_time_start, preferred_time_end, lgpd_consent_given, lgpd_consent_date, lgpd_consent_version, lgpd_consent_ip, lgpd_opt_out_date, lgpd_opt_out_reason, created_at, updated_at, deleted_at) FROM stdin;
\.


--
-- Data for Name: notification_schedules; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.notification_schedules (id, tenant_id, owner_id, schedule_key, event_type, trigger_type, offset_minutes, whatsapp_enabled, email_enabled, sms_enabled, allowed_time_start, allowed_time_end, skip_weekends, skip_holidays, is_active, sort_order, created_at, updated_at, deleted_at) FROM stdin;
\.


--
-- Data for Name: notification_templates; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.notification_templates (id, tenant_id, owner_id, key, domain, channel, event_type, body_text, meta_template_name, meta_template_namespace, meta_components, meta_status, variables, version, is_active, is_default, created_at, updated_at, deleted_at) FROM stdin;
37311b1a-2919-4f38-8dbc-7ccf81942062	\N	\N	session.reminder.whatsapp	session	whatsapp	lembrete_sessao	Olá {{nome_paciente}}! 👋\n\nLembrete: você tem sessão agendada para *{{data_sessao}}* às *{{hora_sessao}}* com {{nome_terapeuta}}.\n\n📋 {{modalidade}}\n\nPara confirmar, responda ✅\nPara cancelar, responda ❌\n\nSe precisar remarcar, entre em contato.\n\n_Responda SAIR para não receber mais lembretes._	\N	\N	\N	draft	["nome_paciente", "data_sessao", "hora_sessao", "nome_terapeuta", "modalidade"]	1	t	t	2026-03-23 11:27:15.104483+00	2026-03-23 11:27:15.104483+00	\N
4e61a64d-b2f9-49de-9d27-6496ddba8aef	\N	\N	session.confirmation.whatsapp	session	whatsapp	confirmacao_sessao	✅ Sessão confirmada!\n\nOlá {{nome_paciente}}, sua sessão com {{nome_terapeuta}} foi confirmada:\n\n📅 {{data_sessao}} às {{hora_sessao}}\n📋 {{modalidade}}\n\nTe esperamos!	\N	\N	\N	draft	["nome_paciente", "data_sessao", "hora_sessao", "nome_terapeuta", "modalidade"]	1	t	t	2026-03-23 11:27:15.104483+00	2026-03-23 11:27:15.104483+00	\N
262e9dba-0324-478f-9d76-3faba555ec3c	\N	\N	session.cancellation.whatsapp	session	whatsapp	cancelamento_sessao	Olá {{nome_paciente}},\n\nSua sessão de {{data_sessao}} às {{hora_sessao}} com {{nome_terapeuta}} foi *cancelada*.\n\nSe desejar reagendar, entre em contato.\n\nAtenciosamente,\n{{nome_terapeuta}}	\N	\N	\N	draft	["nome_paciente", "data_sessao", "hora_sessao", "nome_terapeuta"]	1	t	t	2026-03-23 11:27:15.104483+00	2026-03-23 11:27:15.104483+00	\N
2c5331f9-6728-4cea-b4cc-e9b2659f5362	\N	\N	session.reminder.sms	session	sms	lembrete_sessao	Lembrete: sessao em {{data_sessao}} as {{hora_sessao}} com {{nome_terapeuta}}. Confirme respondendo OK.	\N	\N	\N	draft	["data_sessao", "hora_sessao", "nome_terapeuta"]	1	t	t	2026-03-23 11:27:15.104483+00	2026-03-23 11:27:15.104483+00	\N
3e4386ba-2790-41e8-9b92-3b6beab549d8	\N	\N	session.lembrete.whatsapp	session	whatsapp	lembrete_sessao	Olá, {{nome_paciente}}! 👋\n\nLembrete da sua sessão com {{nome_terapeuta}}.\n\n📅 Data: {{data_sessao}}\n🕐 Hora: {{hora_sessao}}\n📍 Modalidade: {{modalidade}}\n\nQualquer dúvida, entre em contato. Até lá! 💚	\N	\N	\N	draft	["nome_paciente", "nome_terapeuta", "data_sessao", "hora_sessao", "modalidade"]	1	t	t	2026-03-23 12:01:07.120095+00	2026-03-23 12:01:07.120095+00	\N
eb218e05-4ea0-4884-acd2-a766d3986d04	\N	\N	session.lembrete_2h.whatsapp	session	whatsapp	lembrete_sessao	Olá, {{nome_paciente}}! Sua sessão com {{nome_terapeuta}} começa em 2 horas.\n\n🕐 Hora: {{hora_sessao}}\n📍 Modalidade: {{modalidade}}\n\nAté já! 😊	\N	\N	\N	draft	["nome_paciente", "nome_terapeuta", "data_sessao", "hora_sessao", "modalidade"]	1	t	t	2026-03-23 12:01:07.120095+00	2026-03-23 12:01:07.120095+00	\N
4574eb97-aeda-4cbb-a7e9-243c8f8c0b17	\N	\N	session.confirmacao.whatsapp	session	whatsapp	confirmacao_sessao	Olá, {{nome_paciente}}! ✅\n\nSua sessão foi confirmada!\n\n📅 Data: {{data_sessao}}\n🕐 Hora: {{hora_sessao}}\n📍 Modalidade: {{modalidade}}\n\nAté lá! 💚	\N	\N	\N	draft	["nome_paciente", "nome_terapeuta", "data_sessao", "hora_sessao", "modalidade", "link_confirmacao"]	1	t	t	2026-03-23 12:01:07.120095+00	2026-03-23 12:01:07.120095+00	\N
b321696c-96e2-4d16-8f8d-aa46d98945b8	\N	\N	session.cancelamento.whatsapp	session	whatsapp	cancelamento_sessao	Olá, {{nome_paciente}}. Infelizmente a sessão do dia {{data_sessao}} às {{hora_sessao}} foi cancelada.\n\nEntre em contato para reagendar. 🙏	\N	\N	\N	draft	["nome_paciente", "nome_terapeuta", "data_sessao", "hora_sessao", "modalidade"]	1	t	t	2026-03-23 12:01:07.120095+00	2026-03-23 12:01:07.120095+00	\N
216c6404-6e6c-4cb6-b5bd-486c8abc3c48	\N	\N	session.reagendamento.whatsapp	session	whatsapp	reagendamento	Olá, {{nome_paciente}}! Sua sessão foi reagendada.\n\n📅 Nova data: {{data_sessao}}\n🕐 Novo horário: {{hora_sessao}}\n📍 Modalidade: {{modalidade}}\n\nAté lá! 😊	\N	\N	\N	draft	["nome_paciente", "nome_terapeuta", "data_sessao", "hora_sessao", "modalidade"]	1	t	t	2026-03-23 12:01:07.120095+00	2026-03-23 12:01:07.120095+00	\N
48a93a15-9675-49a7-a2d7-3b9b589e14f5	\N	\N	cobranca.pendente.whatsapp	billing	whatsapp	cobranca_pendente	Olá, {{nome_paciente}}. Identificamos uma cobrança pendente no valor de {{valor_sessao}} referente à sua sessão do dia {{data_sessao}}.\n\nPor favor, entre em contato para regularizar. 🙏	\N	\N	\N	draft	["nome_paciente", "nome_terapeuta", "data_sessao", "hora_sessao", "modalidade", "valor_sessao"]	1	t	t	2026-03-23 12:01:07.120095+00	2026-03-23 12:01:07.120095+00	\N
26edef88-2d45-4ee2-8496-30f76f35cb77	\N	\N	sistema.boas_vindas.whatsapp	system	whatsapp	boas_vindas_paciente	Olá, {{nome_paciente}}! 🎉\n\nSeja muito bem-vindo(a)! Estamos felizes em ter você aqui.\n\nEm caso de dúvidas, estamos à disposição. Até a nossa primeira sessão! 💚	\N	\N	\N	draft	["nome_paciente", "nome_terapeuta", "data_sessao", "hora_sessao", "modalidade"]	1	t	t	2026-03-23 12:01:07.120095+00	2026-03-23 12:01:07.120095+00	\N
e66ef5f5-ab3a-46c1-8446-25b55487a017	\N	\N	session.confirmation.sms	session	sms	confirmacao_sessao	Sessão confirmada! {{session_date}} às {{session_time}} ({{session_modality}}) com {{therapist_name}}.	\N	\N	\N	draft	["patient_name", "session_date", "session_time", "session_modality", "therapist_name"]	1	t	t	2026-03-23 12:01:07.120095+00	2026-03-23 12:01:07.120095+00	\N
aae09094-82cb-406f-8015-c42cd24afded	\N	\N	session.cancellation.sms	session	sms	cancelamento_sessao	Sua sessão de {{session_date}} às {{session_time}} foi cancelada. Entre em contato para reagendar. — {{therapist_name}}	\N	\N	\N	draft	["patient_name", "session_date", "session_time", "therapist_name"]	1	t	t	2026-03-23 12:01:07.120095+00	2026-03-23 12:01:07.120095+00	\N
c8521ea4-31c0-4015-8923-7ef57b3f8b47	\N	\N	session.rescheduled.sms	session	sms	reagendamento	Sua sessão foi reagendada para {{session_date}} às {{session_time}} ({{session_modality}}). — {{therapist_name}}	\N	\N	\N	draft	["patient_name", "session_date", "session_time", "session_modality", "therapist_name"]	1	t	t	2026-03-23 12:01:07.120095+00	2026-03-23 12:01:07.120095+00	\N
ba32ee4e-6548-48de-bf83-b0cb11a00761	\N	\N	intake.received.sms	intake	sms	intake_recebido	Olá {{patient_name}}, recebemos seu cadastro. Em breve entraremos em contato. — {{clinic_name}}	\N	\N	\N	draft	["patient_name", "clinic_name"]	1	t	t	2026-03-23 12:01:07.120095+00	2026-03-23 12:01:07.120095+00	\N
7ccd6a04-8b89-4238-bb97-d78b0d56312f	\N	\N	intake.approved.sms	intake	sms	intake_aprovado	Olá {{patient_name}}, seu cadastro foi aprovado! Acesse o portal para agendar sua sessão. — {{therapist_name}}	\N	\N	\N	draft	["patient_name", "therapist_name"]	1	t	t	2026-03-23 12:01:07.120095+00	2026-03-23 12:01:07.120095+00	\N
\.


--
-- Data for Name: notifications; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.notifications (id, owner_id, tenant_id, type, ref_id, ref_table, payload, read_at, archived, created_at) FROM stdin;
\.


--
-- Data for Name: owner_users; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.owner_users (owner_id, user_id, role, created_at) FROM stdin;
\.


--
-- Data for Name: patient_discounts; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.patient_discounts (id, owner_id, tenant_id, patient_id, discount_pct, discount_flat, reason, active, active_from, active_to, created_at) FROM stdin;
\.


--
-- Data for Name: patient_group_patient; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.patient_group_patient (patient_group_id, patient_id, created_at, tenant_id) FROM stdin;
\.


--
-- Data for Name: patient_groups; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.patient_groups (id, nome, descricao, cor, is_active, is_system, owner_id, created_at, updated_at, therapist_id, tenant_id) FROM stdin;
\.


--
-- Data for Name: patient_intake_requests; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.patient_intake_requests (id, owner_id, token, consent, status, created_at, converted_patient_id, rejected_reason, updated_at, cpf, rg, cep, nome_completo, email_principal, telefone, pais, cidade, estado, endereco, numero, bairro, complemento, data_nascimento, naturalidade, genero, estado_civil, onde_nos_conheceu, encaminhado_por, observacoes, notas_internas, email_alternativo, telefone_alternativo, profissao, escolaridade, nacionalidade, avatar_url, tenant_id) FROM stdin;
\.


--
-- Data for Name: patient_invites; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.patient_invites (id, owner_id, token, active, expires_at, max_uses, uses, created_at, tenant_id) FROM stdin;
\.


--
-- Data for Name: patient_tags; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.patient_tags (id, owner_id, nome, cor, is_padrao, created_at, updated_at, tenant_id) FROM stdin;
\.


--
-- Data for Name: patient_patient_tag; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.patient_patient_tag (owner_id, patient_id, tag_id, created_at, tenant_id) FROM stdin;
\.


--
-- Data for Name: payment_settings; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.payment_settings (id, owner_id, tenant_id, pix_ativo, pix_tipo, pix_chave, pix_nome_titular, deposito_ativo, deposito_banco, deposito_agencia, deposito_conta, deposito_tipo_conta, deposito_titular, deposito_cpf_cnpj, dinheiro_ativo, cartao_ativo, cartao_instrucao, convenio_ativo, convenio_lista, observacoes_pagamento, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: plans; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.plans (id, key, name, description, is_active, created_at, price_cents, currency, billing_interval, target, max_supervisees) FROM stdin;
984c1f29-a975-4208-93ac-2118ed1039b7	patient_free	Paciente Free	Plano gratuito para pacientes	t	2026-03-03 22:40:11.413107+00	0	BRL	month	patient	\N
c56fe2a8-2c17-4048-adc7-ff7fbd89461a	therapist_free	THERAPIST FREE	Plano gratuito para terapeutas.	t	2026-03-01 09:40:48.439668+00	0	BRL	month	therapist	\N
82067ba7-16f0-4803-b36f-4c4e8919d4b4	therapist_pro	THERAPIST PRO	Plano completo para terapeutas.	t	2026-03-01 09:25:03.878498+00	4900	BRL	month	therapist	\N
01a5867f-0705-4714-ac97-a23470949157	clinic_free	CLINIC FREE	Plano gratuito para clínicas iniciarem.	t	2026-03-01 09:25:03.878498+00	0	BRL	month	clinic	\N
a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	clinic_pro	CLINIC PRO	Plano completo para clínicas.	t	2026-03-01 09:30:06.50975+00	14900	BRL	month	clinic	\N
8c4895a3-e12d-48de-a078-efb8a4ea2eb2	supervisor_free	Supervisor Free	Plano gratuito de supervisão. Até 3 terapeutas supervisionados.	t	2026-03-05 00:58:17.218326+00	0	BRL	month	supervisor	3
ca28e46c-0687-45d5-9406-0a0f56a5b625	supervisor_pro	Supervisor PRO	Plano profissional de supervisão. Até 20 terapeutas supervisionados.	t	2026-03-05 00:58:17.218326+00	0	BRL	month	supervisor	20
\.


--
-- Data for Name: plan_features; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.plan_features (plan_id, feature_id, enabled, limits, created_at) FROM stdin;
a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	5e539124-630f-4c2a-a9de-7999317085e6	t	\N	2026-03-23 14:18:07.731209+00
a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	a74fef14-c9d9-4884-ba45-f81c60e0783a	t	\N	2026-03-23 14:18:07.731209+00
a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	9b36c65d-b3b3-4bed-b6d5-f7ee8c087c80	t	{"max_patients": 9999, "max_therapists": 999}	2026-03-23 14:18:07.731209+00
a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	a56482a1-0787-49da-90a7-e1857488734a	t	\N	2026-03-23 14:18:07.731209+00
a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	57f631a1-9ebe-480b-a2cb-144ad32ff5f0	t	\N	2026-03-23 14:18:07.731209+00
a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	4e5bc50b-e339-42fe-9d91-61e8555f83e7	t	\N	2026-03-23 14:18:07.731209+00
a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	53a48c3b-0617-4618-adf8-f3a255c51ee4	t	{"sessions_per_month": 9999}	2026-03-23 14:18:07.731209+00
a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	5739aa27-b089-4b15-b149-31b13d768825	t	\N	2026-03-23 14:18:07.731209+00
a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	0bfe0b1c-8c3d-4c0c-af29-2ddc24f31bc7	t	\N	2026-03-23 14:18:07.731209+00
a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	b3efa25d-60a4-4974-8153-6ec098b3d477	t	\N	2026-03-23 14:18:07.731209+00
a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	bf133ad1-da8e-4ea9-bd66-21901cb50075	t	\N	2026-03-23 14:18:07.731209+00
a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	a830e45b-3bb4-4b17-812d-fe83777a2377	t	\N	2026-03-23 14:18:07.731209+00
a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	f5d66212-fd73-4472-a306-07928e5deaec	t	{"reminders_per_month": 9999}	2026-03-23 14:18:07.731209+00
a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	8cc81988-d02a-4542-9cb2-ce2ed7c18d60	t	\N	2026-03-23 14:18:07.731209+00
a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	336aeeba-b18e-4e68-8303-d42ba09f4b20	t	\N	2026-03-23 14:18:07.731209+00
a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	30c9cdd5-7c8c-44d9-8c0b-614165bb9496	t	\N	2026-03-23 14:18:07.731209+00
a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	74fc1321-4d17-49c3-b72e-db3a7f4be451	t	\N	2026-03-23 14:18:07.731209+00
a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	c109ad27-0edf-4774-91a7-94dac4faab49	t	\N	2026-03-23 14:18:07.731209+00
a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	90e92108-8124-40ee-88a0-f0ecafb57d76	t	\N	2026-03-23 14:18:07.731209+00
a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	f393178c-284d-422f-b096-8793f85428d5	t	\N	2026-03-23 14:18:07.731209+00
a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	d6f54674-ea8b-484b-af0e-99127a510da2	t	\N	2026-03-23 14:18:07.731209+00
a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	a5593d96-dd95-46bb-bef0-bd379b56ad50	t	\N	2026-03-23 14:18:07.731209+00
01a5867f-0705-4714-ac97-a23470949157	5e539124-630f-4c2a-a9de-7999317085e6	t	\N	2026-03-23 14:18:07.731209+00
01a5867f-0705-4714-ac97-a23470949157	a74fef14-c9d9-4884-ba45-f81c60e0783a	t	\N	2026-03-23 14:18:07.731209+00
01a5867f-0705-4714-ac97-a23470949157	9b36c65d-b3b3-4bed-b6d5-f7ee8c087c80	t	{"max_patients": 30, "max_therapists": 5}	2026-03-23 14:18:07.731209+00
01a5867f-0705-4714-ac97-a23470949157	a56482a1-0787-49da-90a7-e1857488734a	t	\N	2026-03-23 14:18:07.731209+00
01a5867f-0705-4714-ac97-a23470949157	57f631a1-9ebe-480b-a2cb-144ad32ff5f0	t	\N	2026-03-23 14:18:07.731209+00
01a5867f-0705-4714-ac97-a23470949157	4e5bc50b-e339-42fe-9d91-61e8555f83e7	t	\N	2026-03-23 14:18:07.731209+00
01a5867f-0705-4714-ac97-a23470949157	53a48c3b-0617-4618-adf8-f3a255c51ee4	t	{"sessions_per_month": 40}	2026-03-23 14:18:07.731209+00
01a5867f-0705-4714-ac97-a23470949157	5739aa27-b089-4b15-b149-31b13d768825	t	\N	2026-03-23 14:18:07.731209+00
01a5867f-0705-4714-ac97-a23470949157	0bfe0b1c-8c3d-4c0c-af29-2ddc24f31bc7	t	\N	2026-03-23 14:18:07.731209+00
01a5867f-0705-4714-ac97-a23470949157	b3efa25d-60a4-4974-8153-6ec098b3d477	t	\N	2026-03-23 14:18:07.731209+00
01a5867f-0705-4714-ac97-a23470949157	bf133ad1-da8e-4ea9-bd66-21901cb50075	f	\N	2026-03-23 14:18:07.731209+00
01a5867f-0705-4714-ac97-a23470949157	a830e45b-3bb4-4b17-812d-fe83777a2377	f	\N	2026-03-23 14:18:07.731209+00
01a5867f-0705-4714-ac97-a23470949157	f5d66212-fd73-4472-a306-07928e5deaec	t	{"reminders_per_month": 50}	2026-03-23 14:18:07.731209+00
01a5867f-0705-4714-ac97-a23470949157	8cc81988-d02a-4542-9cb2-ce2ed7c18d60	f	\N	2026-03-23 14:18:07.731209+00
01a5867f-0705-4714-ac97-a23470949157	c109ad27-0edf-4774-91a7-94dac4faab49	t	\N	2026-03-23 14:18:07.731209+00
01a5867f-0705-4714-ac97-a23470949157	90e92108-8124-40ee-88a0-f0ecafb57d76	f	\N	2026-03-23 14:18:07.731209+00
01a5867f-0705-4714-ac97-a23470949157	336aeeba-b18e-4e68-8303-d42ba09f4b20	f	\N	2026-03-23 14:18:07.731209+00
01a5867f-0705-4714-ac97-a23470949157	30c9cdd5-7c8c-44d9-8c0b-614165bb9496	f	\N	2026-03-23 14:18:07.731209+00
01a5867f-0705-4714-ac97-a23470949157	74fc1321-4d17-49c3-b72e-db3a7f4be451	f	\N	2026-03-23 14:18:07.731209+00
01a5867f-0705-4714-ac97-a23470949157	f393178c-284d-422f-b096-8793f85428d5	f	\N	2026-03-23 14:18:07.731209+00
01a5867f-0705-4714-ac97-a23470949157	d6f54674-ea8b-484b-af0e-99127a510da2	f	\N	2026-03-23 14:18:07.731209+00
01a5867f-0705-4714-ac97-a23470949157	a5593d96-dd95-46bb-bef0-bd379b56ad50	f	\N	2026-03-23 14:18:07.731209+00
82067ba7-16f0-4803-b36f-4c4e8919d4b4	5e539124-630f-4c2a-a9de-7999317085e6	t	\N	2026-03-23 14:18:07.731209+00
82067ba7-16f0-4803-b36f-4c4e8919d4b4	a74fef14-c9d9-4884-ba45-f81c60e0783a	t	\N	2026-03-23 14:18:07.731209+00
82067ba7-16f0-4803-b36f-4c4e8919d4b4	9b36c65d-b3b3-4bed-b6d5-f7ee8c087c80	t	\N	2026-03-23 14:18:07.731209+00
82067ba7-16f0-4803-b36f-4c4e8919d4b4	57f631a1-9ebe-480b-a2cb-144ad32ff5f0	t	\N	2026-03-23 14:18:07.731209+00
82067ba7-16f0-4803-b36f-4c4e8919d4b4	4e5bc50b-e339-42fe-9d91-61e8555f83e7	t	\N	2026-03-23 14:18:07.731209+00
82067ba7-16f0-4803-b36f-4c4e8919d4b4	53a48c3b-0617-4618-adf8-f3a255c51ee4	t	{"sessions_per_month": 9999}	2026-03-23 14:18:07.731209+00
82067ba7-16f0-4803-b36f-4c4e8919d4b4	5739aa27-b089-4b15-b149-31b13d768825	t	\N	2026-03-23 14:18:07.731209+00
82067ba7-16f0-4803-b36f-4c4e8919d4b4	0bfe0b1c-8c3d-4c0c-af29-2ddc24f31bc7	t	\N	2026-03-23 14:18:07.731209+00
82067ba7-16f0-4803-b36f-4c4e8919d4b4	b3efa25d-60a4-4974-8153-6ec098b3d477	t	\N	2026-03-23 14:18:07.731209+00
82067ba7-16f0-4803-b36f-4c4e8919d4b4	bf133ad1-da8e-4ea9-bd66-21901cb50075	t	\N	2026-03-23 14:18:07.731209+00
82067ba7-16f0-4803-b36f-4c4e8919d4b4	a830e45b-3bb4-4b17-812d-fe83777a2377	t	\N	2026-03-23 14:18:07.731209+00
82067ba7-16f0-4803-b36f-4c4e8919d4b4	f5d66212-fd73-4472-a306-07928e5deaec	t	{"reminders_per_month": 9999}	2026-03-23 14:18:07.731209+00
82067ba7-16f0-4803-b36f-4c4e8919d4b4	8cc81988-d02a-4542-9cb2-ce2ed7c18d60	t	\N	2026-03-23 14:18:07.731209+00
82067ba7-16f0-4803-b36f-4c4e8919d4b4	336aeeba-b18e-4e68-8303-d42ba09f4b20	t	\N	2026-03-23 14:18:07.731209+00
82067ba7-16f0-4803-b36f-4c4e8919d4b4	c109ad27-0edf-4774-91a7-94dac4faab49	t	\N	2026-03-23 14:18:07.731209+00
82067ba7-16f0-4803-b36f-4c4e8919d4b4	90e92108-8124-40ee-88a0-f0ecafb57d76	t	\N	2026-03-23 14:18:07.731209+00
82067ba7-16f0-4803-b36f-4c4e8919d4b4	f393178c-284d-422f-b096-8793f85428d5	t	\N	2026-03-23 14:18:07.731209+00
82067ba7-16f0-4803-b36f-4c4e8919d4b4	d6f54674-ea8b-484b-af0e-99127a510da2	t	\N	2026-03-23 14:18:07.731209+00
82067ba7-16f0-4803-b36f-4c4e8919d4b4	a5593d96-dd95-46bb-bef0-bd379b56ad50	t	\N	2026-03-23 14:18:07.731209+00
c56fe2a8-2c17-4048-adc7-ff7fbd89461a	5e539124-630f-4c2a-a9de-7999317085e6	t	\N	2026-03-23 14:18:07.731209+00
c56fe2a8-2c17-4048-adc7-ff7fbd89461a	a74fef14-c9d9-4884-ba45-f81c60e0783a	t	\N	2026-03-23 14:18:07.731209+00
c56fe2a8-2c17-4048-adc7-ff7fbd89461a	57f631a1-9ebe-480b-a2cb-144ad32ff5f0	t	\N	2026-03-23 14:18:07.731209+00
c56fe2a8-2c17-4048-adc7-ff7fbd89461a	4e5bc50b-e339-42fe-9d91-61e8555f83e7	t	\N	2026-03-23 14:18:07.731209+00
c56fe2a8-2c17-4048-adc7-ff7fbd89461a	53a48c3b-0617-4618-adf8-f3a255c51ee4	t	{"sessions_per_month": 40}	2026-03-23 14:18:07.731209+00
c56fe2a8-2c17-4048-adc7-ff7fbd89461a	5739aa27-b089-4b15-b149-31b13d768825	t	\N	2026-03-23 14:18:07.731209+00
c56fe2a8-2c17-4048-adc7-ff7fbd89461a	0bfe0b1c-8c3d-4c0c-af29-2ddc24f31bc7	t	\N	2026-03-23 14:18:07.731209+00
c56fe2a8-2c17-4048-adc7-ff7fbd89461a	b3efa25d-60a4-4974-8153-6ec098b3d477	t	\N	2026-03-23 14:18:07.731209+00
c56fe2a8-2c17-4048-adc7-ff7fbd89461a	bf133ad1-da8e-4ea9-bd66-21901cb50075	f	\N	2026-03-23 14:18:07.731209+00
c56fe2a8-2c17-4048-adc7-ff7fbd89461a	f5d66212-fd73-4472-a306-07928e5deaec	t	{"reminders_per_month": 50}	2026-03-23 14:18:07.731209+00
c56fe2a8-2c17-4048-adc7-ff7fbd89461a	8cc81988-d02a-4542-9cb2-ce2ed7c18d60	f	\N	2026-03-23 14:18:07.731209+00
c56fe2a8-2c17-4048-adc7-ff7fbd89461a	c109ad27-0edf-4774-91a7-94dac4faab49	t	\N	2026-03-23 14:18:07.731209+00
c56fe2a8-2c17-4048-adc7-ff7fbd89461a	90e92108-8124-40ee-88a0-f0ecafb57d76	f	\N	2026-03-23 14:18:07.731209+00
c56fe2a8-2c17-4048-adc7-ff7fbd89461a	f393178c-284d-422f-b096-8793f85428d5	f	\N	2026-03-23 14:18:07.731209+00
c56fe2a8-2c17-4048-adc7-ff7fbd89461a	d6f54674-ea8b-484b-af0e-99127a510da2	f	\N	2026-03-23 14:18:07.731209+00
c56fe2a8-2c17-4048-adc7-ff7fbd89461a	a5593d96-dd95-46bb-bef0-bd379b56ad50	f	\N	2026-03-23 14:18:07.731209+00
8c4895a3-e12d-48de-a078-efb8a4ea2eb2	9ab8bdbb-838b-4946-aa5d-fd9cfdd257b3	t	\N	2026-03-23 14:18:07.731209+00
8c4895a3-e12d-48de-a078-efb8a4ea2eb2	1167b54a-0e93-43a2-94d7-c12e64eb56de	t	\N	2026-03-23 14:18:07.731209+00
ca28e46c-0687-45d5-9406-0a0f56a5b625	9ab8bdbb-838b-4946-aa5d-fd9cfdd257b3	t	\N	2026-03-23 14:18:07.731209+00
ca28e46c-0687-45d5-9406-0a0f56a5b625	1167b54a-0e93-43a2-94d7-c12e64eb56de	t	\N	2026-03-23 14:18:07.731209+00
ca28e46c-0687-45d5-9406-0a0f56a5b625	761e4495-b46a-4791-9519-86ffe48dc47f	t	\N	2026-03-23 14:18:07.731209+00
ca28e46c-0687-45d5-9406-0a0f56a5b625	7e82ee01-44f6-4b3f-9861-840c58e13f58	t	\N	2026-03-23 14:18:07.731209+00
\.


--
-- Data for Name: plan_prices; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.plan_prices (id, plan_id, currency, "interval", amount_cents, is_active, active_from, active_to, source, provider, provider_price_id, created_at) FROM stdin;
37510504-4617-4421-9979-4249778bd5ae	82067ba7-16f0-4803-b36f-4c4e8919d4b4	BRL	month	4900	t	2026-03-01 09:25:03.878498+00	\N	manual	\N	\N	2026-03-01 09:25:03.878498+00
225afd5a-9f30-46bc-a0df-5eb8f91660cb	82067ba7-16f0-4803-b36f-4c4e8919d4b4	BRL	year	49000	t	2026-03-01 09:25:03.878498+00	\N	manual	\N	\N	2026-03-01 09:25:03.878498+00
124779b4-362d-4890-9631-747021ecc1c0	a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	BRL	month	14900	t	2026-03-01 09:30:06.50975+00	\N	manual	\N	\N	2026-03-01 09:30:06.50975+00
73908784-6299-45c8-b547-e1556b45c292	a74bc2d4-88c6-4cc6-b004-ef2bcb1b5145	BRL	year	149000	t	2026-03-01 09:30:06.50975+00	\N	manual	\N	\N	2026-03-01 09:30:06.50975+00
\.


--
-- Data for Name: plan_public; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.plan_public (plan_id, public_name, public_description, badge, is_featured, is_visible, sort_order, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: plan_public_bullets; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.plan_public_bullets (id, plan_id, text, sort_order, highlight, created_at) FROM stdin;
\.


--
-- Data for Name: professional_pricing; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.professional_pricing (id, owner_id, tenant_id, determined_commitment_id, price, notes, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: profiles; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.profiles (id, role, full_name, created_at, updated_at, avatar_url, phone, bio, language, timezone, notify_system_email, notify_reminders, notify_news, account_type, platform_roles, nickname, work_description, work_description_other, site_url, social_instagram, social_youtube, social_facebook, social_x, social_custom) FROM stdin;
aaaaaaaa-0001-0001-0001-000000000001	portal_user	Ana Paciente	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	\N	\N	\N	pt-BR	America/Sao_Paulo	t	t	f	patient	{}	\N	\N	\N	\N	\N	\N	\N	\N	[]
aaaaaaaa-0002-0002-0002-000000000002	tenant_member	Bruno Terapeuta	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	\N	\N	\N	pt-BR	America/Sao_Paulo	t	t	f	therapist	{}	\N	\N	\N	\N	\N	\N	\N	\N	[]
aaaaaaaa-0006-0006-0006-000000000006	saas_admin	Admin Plataforma	2026-03-23 10:46:29.876072+00	2026-03-23 10:46:29.876072+00	\N	\N	\N	pt-BR	America/Sao_Paulo	t	t	f	free	{}	\N	\N	\N	\N	\N	\N	\N	\N	[]
aaaaaaaa-0007-0007-0007-000000000007	tenant_member	Carlos Supervisor	2026-03-23 14:18:05.215881+00	2026-03-23 14:18:05.215881+00	\N	\N	\N	pt-BR	America/Sao_Paulo	t	t	f	therapist	{}	\N	\N	\N	\N	\N	\N	\N	\N	[]
aaaaaaaa-0008-0008-0008-000000000008	tenant_member	Diana Editora	2026-03-23 14:18:05.215881+00	2026-03-23 14:18:05.215881+00	\N	\N	\N	pt-BR	America/Sao_Paulo	t	t	f	therapist	{editor}	\N	\N	\N	\N	\N	\N	\N	\N	[]
aaaaaaaa-0009-0009-0009-000000000009	tenant_member	Eva Terapeuta	2026-03-23 14:18:06.087973+00	2026-03-23 14:18:06.087973+00	\N	\N	\N	pt-BR	America/Sao_Paulo	t	t	f	therapist	{}	\N	\N	\N	\N	\N	\N	\N	\N	[]
aaaaaaaa-0010-0010-0010-000000000010	tenant_member	Felipe Terapeuta	2026-03-23 14:18:06.087973+00	2026-03-23 14:18:06.087973+00	\N	\N	\N	pt-BR	America/Sao_Paulo	t	t	f	therapist	{}	\N	\N	\N	\N	\N	\N	\N	\N	[]
aaaaaaaa-0011-0011-0011-000000000011	tenant_member	Gabriela Secretária	2026-03-23 14:18:06.087973+00	2026-03-23 14:18:06.087973+00	\N	\N	\N	pt-BR	America/Sao_Paulo	t	t	f	therapist	{}	\N	\N	\N	\N	\N	\N	\N	\N	[]
aaaaaaaa-0003-0003-0003-000000000003	tenant_member	Clínica Espaço Psi	2026-03-23 10:46:29.876072+00	2026-03-23 14:18:43.066684+00	\N	\N	\N	pt-BR	America/Sao_Paulo	t	t	f	clinic	{}	\N	\N	\N	\N	\N	\N	\N	\N	[]
aaaaaaaa-0004-0004-0004-000000000004	tenant_member	Clínica Mente Sã	2026-03-23 10:46:29.876072+00	2026-03-23 14:18:59.312611+00	\N	\N	\N	pt-BR	America/Sao_Paulo	t	t	f	clinic	{}	\N	\N	\N	\N	\N	\N	\N	\N	[]
aaaaaaaa-0005-0005-0005-000000000005	tenant_member	Clínica Bem Estar	2026-03-23 10:46:29.876072+00	2026-03-23 14:21:19.247486+00	\N	\N	\N	pt-BR	America/Sao_Paulo	t	t	f	clinic	{}	\N	\N	\N	\N	\N	\N	\N	\N	[]
\.


--
-- Data for Name: recurrence_exceptions; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.recurrence_exceptions (id, recurrence_id, tenant_id, original_date, type, new_date, new_start_time, new_end_time, modalidade, observacoes, titulo_custom, extra_fields, reason, agenda_evento_id, created_at) FROM stdin;
\.


--
-- Data for Name: recurrence_rule_services; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.recurrence_rule_services (id, rule_id, service_id, quantity, unit_price, discount_pct, discount_flat, final_price, created_at) FROM stdin;
\.


--
-- Data for Name: saas_admins; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.saas_admins (user_id, created_at) FROM stdin;
aaaaaaaa-0006-0006-0006-000000000006	2026-03-23 10:46:29.876072+00
\.


--
-- Data for Name: saas_docs; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.saas_docs (id, titulo, conteudo, medias, tipo_acesso, pagina_path, docs_relacionados, ativo, ordem, created_at, updated_at, categoria, exibir_no_faq, votos_util, votos_nao_util) FROM stdin;
\.


--
-- Data for Name: saas_doc_votos; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.saas_doc_votos (id, doc_id, user_id, util, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: saas_faq; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.saas_faq (id, pergunta, categoria, publico, votos, titulo, conteudo, tipo_acesso, pagina_path, pagina_label, medias, faqs_relacionados, ativo, ordem, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: saas_faq_itens; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.saas_faq_itens (id, doc_id, pergunta, resposta, ordem, ativo, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: subscriptions; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.subscriptions (id, user_id, plan_id, status, current_period_start, current_period_end, cancel_at_period_end, provider, provider_customer_id, provider_subscription_id, created_at, updated_at, tenant_id, plan_key, "interval", source, started_at, canceled_at, activated_at, past_due_since, suspended_at, suspended_reason, cancelled_at, cancel_reason, expired_at) FROM stdin;
61f81f06-c718-4d52-8063-67c38c1c1df9	aaaaaaaa-0001-0001-0001-000000000001	984c1f29-a975-4208-93ac-2118ed1039b7	active	2026-03-23 14:18:08.130849+00	2027-03-23 14:18:08.130849+00	f	manual	\N	\N	2026-03-23 14:18:08.130849+00	2026-03-23 14:18:08.130849+00	\N	patient_free	month	seed	2026-03-23 14:18:08.130849+00	\N	2026-03-23 14:18:08.130849+00	\N	\N	\N	\N	\N	\N
6864f71c-c4d4-4d7e-9897-89a644002b6d	aaaaaaaa-0002-0002-0002-000000000002	c56fe2a8-2c17-4048-adc7-ff7fbd89461a	active	2026-03-23 14:18:08.130849+00	2027-03-23 14:18:08.130849+00	f	manual	\N	\N	2026-03-23 14:18:08.130849+00	2026-03-23 14:18:08.130849+00	\N	therapist_free	month	seed	2026-03-23 14:18:08.130849+00	\N	2026-03-23 14:18:08.130849+00	\N	\N	\N	\N	\N	\N
8716fb6d-372f-4560-98a5-68c40aec96dc	aaaaaaaa-0007-0007-0007-000000000007	8c4895a3-e12d-48de-a078-efb8a4ea2eb2	active	2026-03-23 14:18:08.130849+00	2027-03-23 14:18:08.130849+00	f	manual	\N	\N	2026-03-23 14:18:08.130849+00	2026-03-23 14:18:08.130849+00	\N	supervisor_free	month	seed	2026-03-23 14:18:08.130849+00	\N	2026-03-23 14:18:08.130849+00	\N	\N	\N	\N	\N	\N
3fc090ba-3e9a-47ef-9711-edf9a3fd1795	aaaaaaaa-0008-0008-0008-000000000008	c56fe2a8-2c17-4048-adc7-ff7fbd89461a	active	2026-03-23 14:18:08.130849+00	2027-03-23 14:18:08.130849+00	f	manual	\N	\N	2026-03-23 14:18:08.130849+00	2026-03-23 14:18:08.130849+00	\N	therapist_free	month	seed	2026-03-23 14:18:08.130849+00	\N	2026-03-23 14:18:08.130849+00	\N	\N	\N	\N	\N	\N
cc4c4eb4-c9e5-4ce7-a705-9f5dc415fcb4	aaaaaaaa-0009-0009-0009-000000000009	c56fe2a8-2c17-4048-adc7-ff7fbd89461a	active	2026-03-23 14:18:08.130849+00	2027-03-23 14:18:08.130849+00	f	manual	\N	\N	2026-03-23 14:18:08.130849+00	2026-03-23 14:18:08.130849+00	\N	therapist_free	month	seed	2026-03-23 14:18:08.130849+00	\N	2026-03-23 14:18:08.130849+00	\N	\N	\N	\N	\N	\N
d2516bea-712d-453a-a5ed-9e40456f9aca	aaaaaaaa-0010-0010-0010-000000000010	c56fe2a8-2c17-4048-adc7-ff7fbd89461a	active	2026-03-23 14:18:08.130849+00	2027-03-23 14:18:08.130849+00	f	manual	\N	\N	2026-03-23 14:18:08.130849+00	2026-03-23 14:18:08.130849+00	\N	therapist_free	month	seed	2026-03-23 14:18:08.130849+00	\N	2026-03-23 14:18:08.130849+00	\N	\N	\N	\N	\N	\N
bd6dd2c0-9c50-4939-8fc9-41fd67423a3e	\N	01a5867f-0705-4714-ac97-a23470949157	active	2026-03-23 14:18:08.130849+00	2027-03-23 14:18:08.130849+00	f	manual	\N	\N	2026-03-23 14:18:08.130849+00	2026-03-23 14:18:08.130849+00	bbbbbbbb-0003-0003-0003-000000000003	clinic_free	month	seed	2026-03-23 14:18:08.130849+00	\N	2026-03-23 14:18:08.130849+00	\N	\N	\N	\N	\N	\N
505d05fa-a6db-46b7-8cbf-bb6b12fb8e2b	\N	01a5867f-0705-4714-ac97-a23470949157	active	2026-03-23 14:18:08.130849+00	2027-03-23 14:18:08.130849+00	f	manual	\N	\N	2026-03-23 14:18:08.130849+00	2026-03-23 14:18:08.130849+00	bbbbbbbb-0004-0004-0004-000000000004	clinic_free	month	seed	2026-03-23 14:18:08.130849+00	\N	2026-03-23 14:18:08.130849+00	\N	\N	\N	\N	\N	\N
27eef221-7db2-442a-99f3-989f910cdcb4	\N	01a5867f-0705-4714-ac97-a23470949157	active	2026-03-23 14:18:08.130849+00	2027-03-23 14:18:08.130849+00	f	manual	\N	\N	2026-03-23 14:18:08.130849+00	2026-03-23 14:18:08.130849+00	bbbbbbbb-0005-0005-0005-000000000005	clinic_free	month	seed	2026-03-23 14:18:08.130849+00	\N	2026-03-23 14:18:08.130849+00	\N	\N	\N	\N	\N	\N
\.


--
-- Data for Name: subscription_events; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.subscription_events (id, subscription_id, owner_id, event_type, old_plan_id, new_plan_id, created_at, created_by, source, reason, metadata, owner_type, owner_ref) FROM stdin;
\.


--
-- Data for Name: subscription_intents_legacy; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.subscription_intents_legacy (id, user_id, email, plan_key, "interval", amount_cents, currency, status, source, notes, created_at, paid_at, tenant_id, created_by_user_id) FROM stdin;
\.


--
-- Data for Name: subscription_intents_personal; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.subscription_intents_personal (id, user_id, created_by_user_id, email, plan_id, plan_key, "interval", amount_cents, currency, status, source, notes, created_at, paid_at, subscription_id) FROM stdin;
\.


--
-- Data for Name: subscription_intents_tenant; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.subscription_intents_tenant (id, user_id, created_by_user_id, email, plan_id, plan_key, "interval", amount_cents, currency, status, source, notes, created_at, paid_at, tenant_id, subscription_id) FROM stdin;
\.


--
-- Data for Name: support_sessions; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.support_sessions (id, tenant_id, admin_id, token, expires_at, created_at) FROM stdin;
\.


--
-- Data for Name: tenant_feature_exceptions_log; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.tenant_feature_exceptions_log (id, tenant_id, feature_key, enabled, reason, created_by, created_at) FROM stdin;
\.


--
-- Data for Name: tenant_features; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.tenant_features (tenant_id, feature_key, enabled, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: tenant_invites; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.tenant_invites (id, tenant_id, email, role, token, invited_by, created_at, expires_at, accepted_at, accepted_by, revoked_at, revoked_by) FROM stdin;
\.


--
-- Data for Name: tenant_modules; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.tenant_modules (id, owner_id, module_id, status, settings, provider, provider_item_id, installed_at, updated_at) FROM stdin;
\.


--
-- Data for Name: therapist_payouts; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.therapist_payouts (id, owner_id, tenant_id, period_start, period_end, total_sessions, gross_amount, clinic_fee_total, net_amount, status, paid_at, notes, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: therapist_payout_records; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.therapist_payout_records (payout_id, financial_record_id) FROM stdin;
\.


--
-- Data for Name: user_settings; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.user_settings (user_id, theme_mode, preset, primary_color, surface_color, menu_mode, created_at, updated_at, layout_variant) FROM stdin;
\.


--
-- Name: refresh_tokens_id_seq; Type: SEQUENCE SET; Schema: auth; Owner: -
--

SELECT pg_catalog.setval('auth.refresh_tokens_id_seq', 5, true);


--
-- Name: jobid_seq; Type: SEQUENCE SET; Schema: cron; Owner: -
--

SELECT pg_catalog.setval('cron.jobid_seq', 1, false);


--
-- Name: runid_seq; Type: SEQUENCE SET; Schema: cron; Owner: -
--

SELECT pg_catalog.setval('cron.runid_seq', 1, false);


--
-- Name: _db_migrations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
--

SELECT pg_catalog.setval('public._db_migrations_id_seq', 15, true);


--
-- Name: agenda_online_slots_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
--

SELECT pg_catalog.setval('public.agenda_online_slots_id_seq', 1, false);


--
-- PostgreSQL database dump complete
--

\unrestrict fZ7E5vlO9XiQvohu8zwQIQgniHLZPmSMVpaTmvwMuBsOyPCoXRxvwBcHsiIpRdo

