-- Data for Name: atc_status; Type: TABLE DATA; Schema: tzzr_storage; Owner: tzzr
--

COPY tzzr_storage.atc_status (mrf, num, status, bucket_mrf) FROM stdin;
\.


--
-- Data for Name: bucket_access_log; Type: TABLE DATA; Schema: tzzr_storage; Owner: postgres
--

COPY tzzr_storage.bucket_access_log (id, bucket_mrf, operation, mrf, path, server, success, error_msg, bytes_transferred, "timestamp") FROM stdin;
\.


--
-- Data for Name: buckets; Type: TABLE DATA; Schema: tzzr_storage; Owner: tzzr
--

COPY tzzr_storage.buckets (bucket_mrf, name, endpoint, active, created_at, access_key_id, secret_access_key) FROM stdin;
d830325906c3d540ae219e6aba0f243d52cd708feea68355a3f63f76aff8da33	deck	https://7dedae6030f5554d99d37e98a5232996.r2.cloudflarestorage.com	t	2026-01-17 18:08:46.365667+00	55125dca442b0f3517d194a5bc0502b8	9b69de7a4e7fc0fe1348df55aee12662ae0b60b494dc7398447d9ffe0990671f
c1b0e6f97fd29083ec38ee6e91d10b4f8dd5a8d4a05aa151f255bb98af661842	personaldeck	https://7dedae6030f5554d99d37e98a5232996.r2.cloudflarestorage.com	t	2026-01-17 18:08:46.365667+00	55125dca442b0f3517d194a5bc0502b8	9b69de7a4e7fc0fe1348df55aee12662ae0b60b494dc7398447d9ffe0990671f
031ce09763a14e96728974acf9234aca7983edcf31f00d6d90994d8de04d9119	lumalia	https://7dedae6030f5554d99d37e98a5232996.r2.cloudflarestorage.com	t	2026-02-28 21:25:49.379501+00	82c92644abbc3bc381a5c68941e29ae0	5db5e40da7fc63ac9cc99fc439fc0750a88a1c5fe19c6da07956ea386c092a57
a96ff4b109c23e050c9bc4dea8e883a81b8a9c826bce09b9121453d08bf8e4ea	lumaliabck	https://7dedae6030f5554d99d37e98a5232996.r2.cloudflarestorage.com	t	2026-03-01 01:06:17.70979+00	82c92644abbc3bc381a5c68941e29ae0	5db5e40da7fc63ac9cc99fc439fc0750a88a1c5fe19c6da07956ea386c092a57
\.


--
-- Data for Name: graph_atc; Type: TABLE DATA; Schema: tzzr_storage; Owner: postgres
--

COPY tzzr_storage.graph_atc (num, mrf_a, mrf_b, weight, edge_type, created_at) FROM stdin;
\.


--
-- Data for Name: library_atc; Type: TABLE DATA; Schema: tzzr_storage; Owner: postgres
--

COPY tzzr_storage.library_atc (num, mrf_library, mrf_child, created_at) FROM stdin;
\.


--
-- Data for Name: tree_atc; Type: TABLE DATA; Schema: tzzr_storage; Owner: postgres
--

COPY tzzr_storage.tree_atc (num, mrf_parent, mrf_child, created_at) FROM stdin;
\.


--
-- Data for Name: endpoints; Type: TABLE DATA; Schema: tzzr_system; Owner: postgres
--

COPY tzzr_system.endpoints (service, name, endpoint, type, status, created_at) FROM stdin;
directus	Directus DECK	https://directus.tzzrdeck.me	api	active	2026-01-18 00:25:32.324386+00
nextcloud	Nextcloud DECK	https://cloud.tzzrdeck.me	storage	active	2026-01-18 00:25:32.324386+00
postgrest	PostgREST DECK	https://api.tzzrdeck.me	api	active	2026-01-18 00:25:32.324386+00
r2_deck	R2 Bucket DECK	https://7dedae6030f5554d99d37e98a5232996.r2.cloudflarestorage.com	storage	active	2026-01-18 00:25:32.324386+00
cloudflare_dns	Cloudflare DNS API	https://api.cloudflare.com/client/v4	api	active	2026-01-18 00:39:19.228893+00
nextcloud_architect	Nextcloud ARCHITECT	https://cloud.tzzrarchitect.me	storage	active	2026-01-18 00:39:19.228893+00
windmill	Windmill Flow	https://flow.tzzrdeck.me	api	active	2026-01-18 00:39:19.228893+00
gitea	Gitea ARCHITECT	https://git.tzzrarchitect.me	api	active	2026-01-18 00:39:19.228893+00
nextcloud	Nextcloud PROJECT	https://cloud.tzzr.org	storage	active	2026-01-20 12:38:57.908856+00
directus	Directus PROJECT	https://directus.tzzr.org	api	active	2026-01-20 12:38:57.908856+00
nextcloud_hst	Nextcloud HST	https://cloud.tzzr.tech	storage	active	2026-01-21 11:56:26.640298+00
stalwart	Stalwart Mail Server	https://mail.tzzrdeck.me:8899	mail	active	2026-01-21 12:23:28.198314+00
snappymail	Snappymail Webmail	https://mail.tzzrdeck.me	webmail	active	2026-01-21 12:23:28.198314+00
ntfy	Ntfy Notifications	https://ntfy.tzzrdeck.me	notifications	active	2026-01-21 12:23:28.198314+00
vaultwarden	Vaultwarden	https://key.tzzrdeck.me	security	active	2026-01-21 12:32:07.972867+00
shlink	Shlink URL Shortener	https://short.tzzrdeck.me	utility	active	2026-01-21 12:32:07.972867+00
gptsapi	GPTsAPI - Proxy OpenAI/Anthropic/Gemini	https://api.gptsapi.net	api	active	2026-02-23 23:20:34.365224+00
openrouter	OpenRouter API	https://openrouter.ai/api/v1	api	active	2026-02-27 13:23:46.28739+00
runpod	RunPod API v2	https://api.runpod.ai/v2	api	active	2026-02-27 23:32:10.632898+00
aimlapi	AIMLAPI API v1	https://api.aimlapi.com/v1	api	active	2026-02-28 12:51:42.973852+00
packet_clara_pablo	Clara Ingest - Pablo	https://clara.tzzr.me	api	inactive	2026-02-28 15:40:48.024064+00
packet_clara_mc	Clara Ingest - Modelo Cero	https://clara.tzzrdeck.me	api	inactive	2026-02-28 15:40:48.024064+00
packet_clara_tuzzaro	Clara Ingest - Tuzzaro	https://clara.tzzr.org/tuzzaro	api	inactive	2026-02-28 15:40:48.024064+00
packet_clara_lumalia	Clara Ingest - Lumalia	https://clara.tzzr.org/lumalia	api	inactive	2026-02-28 15:40:48.024064+00
packet_clara_surmountor	Clara Ingest - Surmountor	https://clara.tzzr.org/surmountor	api	inactive	2026-02-28 15:40:48.024064+00
packet_clara_bestart	Clara Ingest - BestArt	https://clara.tzzr.org/bestart	api	inactive	2026-02-28 15:40:48.024064+00
\.


--
-- Data for Name: keys; Type: TABLE DATA; Schema: tzzr_system; Owner: postgres
--

COPY tzzr_system.keys (id, service, endpoint, username, password, api_key, access_key_id, secret_access_key, config, enabled, created_at, name) FROM stdin;
2	directus	https://directus.tzzrdeck.me	directus@tzr.systems	From5-Caution8-Backfire4-Unsigned3-Everyday5	\N	\N	\N	{}	t	2026-01-17 19:51:46.443636+00	Directus CMS
3	nextcloud	https://cloud.tzzrdeck.me	deck	Lagging4-Curliness0-Pettiness4-Founder0-Handwrite9	\N	\N	\N	{}	t	2026-01-17 19:51:46.443636+00	Nextcloud
18	nextcloud_hst	https://cloud.tzzr.tech	hst	Passenger4-Escapade2-Woozy1-Sudoku9-Colonize2		\N	\N	{}	t	2026-01-18 00:39:34.683432+00	Nextcloud HST
30	stalwart	https://mail.tzzrdeck.me:8899	admin	St4lw4rtAdm1n2024!	\N	\N	\N	{}	t	2026-01-21 12:23:28.198314+00	Stalwart Mail Server
31	snappymail	https://mail.tzzrdeck.me	\N	\N	\N	\N	\N	{}	t	2026-01-21 12:23:28.198314+00	Snappymail Webmail
38	runpod	https://api.runpod.ai/v2	rpd@tzr.systems	ditmyj-vardi0-Fovgis	rpa_JVC1R3II6TC5OU2JBGJRGEN9CT6ZTBAPIBRMFU0E1gweo9	\N	\N	{"gpu": "L4 24GB", "mode": "serverless", "models": {"3d": [{"name": "TRELLIS.2-4B", "task": "3D generation", "vram": "16 GB", "params": "4B"}], "nlp": [{"name": "GLiNER v2.5 XXL", "task": "NER", "vram": "5 GB", "params": "800M"}, {"name": "siebert/sentiment-roberta-large", "task": "sentiment", "vram": "2 GB", "params": "355M"}], "ocr": [{"name": "LightOnOCR-2-1B", "task": "OCR", "vram": "4 GB", "params": "1B"}], "audio": [{"name": "MusicGen-large", "task": "music generation", "vram": "14 GB", "params": "3.3B"}], "image": [{"name": "FLUX.2 klein 4B", "task": "generation", "vram": "8 GB", "params": "4B"}, {"name": "FLUX.1 Fill dev", "task": "inpainting", "vram": "20 GB"}, {"name": "SUPIR", "task": "super-resolution", "vram": "12 GB"}], "video": [{"name": "Wan 2.1 T2V-1.3B", "task": "text-to-video", "vram": "8 GB", "params": "1.3B"}], "vision": [{"name": "Grounding DINO base", "task": "object detection", "vram": "2 GB", "params": "172M"}, {"name": "SAM 3", "task": "segmentation", "vram": "12 GB", "params": "840M"}, {"name": "Qwen3-VL-8B-Instruct", "task": "VLM", "vram": "18 GB", "params": "8B"}], "embeddings": [{"name": "Qwen3-Embedding-0.6B", "task": "embeddings", "vram": "2 GB", "params": "0.6B"}]}, "storage_gb": 85, "legacy_endpoints": {"grace": "rfltzijgn1jno4", "penny": "zsu7eah0fo7xt6", "factory": "hffu4q5pywjzng"}, "storage_cost_month": 6}	t	2026-02-27 23:32:10.636355+00	RunPod GPU Serverless
16	cloudflare_dns	https://api.cloudflare.com/client/v4	cloudflare@tzr.systems		5883505d6b37f534a2908ca829b33d681c3ae	\N	\N	{}	t	2026-01-18 00:39:34.683432+00	Cloudflare DNS API
17	nextcloud_architect	https://cloud.tzzrarchitect.me	architect	Breeder6-Pond3-Accompany3-Kilometer2-Tingly6		\N	\N	{}	t	2026-01-18 00:39:34.683432+00	Nextcloud ARCHITECT
20	gitea	https://git.tzzrarchitect.me				\N	\N	{}	t	2026-01-18 00:39:34.683432+00	Gitea ARCHITECT
19	windmill	https://flow.tzzrdeck.me	windmill@tzzr.pro	Windmill7IKIqSm6Wod92026		\N	\N	{}	t	2026-01-18 00:39:34.683432+00	Windmill Flow
22	cloudflare_r2_architect	https://7dedae6030f5554d99d37e98a5232996.r2.cloudflarestorage.com	\N	\N	\N	e6af7c99e6251457fa84a7a896d7e2f6	1ba5155d9c0be6ea5930871c8cf9bb0c1b6cad3f9f7f0602b2697dad2bd893e1	{}	t	2026-01-18 15:48:11.072454+00	R2 Bucket: architect
23	cloudflare_r2_deck	https://7dedae6030f5554d99d37e98a5232996.r2.cloudflarestorage.com	\N	\N	\N	0f54ae54ed4558e17f9b6ba16897afe2	5601a48dce78c2eb85ceeccb3be6338143aeb589d0998ef472ffaabd0c8f9133	{}	t	2026-01-18 15:48:11.072454+00	R2 Bucket: deck
24	cloudflare_r2_personaldeck	https://7dedae6030f5554d99d37e98a5232996.r2.cloudflarestorage.com	\N	\N	\N	5ceb4e606fd7305414c0df8705fc9844	27f5c0d6447c58178ae52c29fb13a75a021b7eddd060aea36452c5ddc6d5c65d	{}	t	2026-01-18 15:48:11.072454+00	R2 Bucket: personaldeck
26	ssh_architect_user	\N	architect	Architect2026Tzzr	\N	\N	\N	{}	t	2026-01-18 17:11:06.168182+00	ARCHITECT Server - User architect
28	nextcloud_project	https://cloud.tzzr.org	project	Sprain4-Nicotine8-Mutate1-Rearrange4-Skirmish4	\N	\N	\N	{}	t	2026-01-20 12:39:22.008619+00	Nextcloud PROJECT
29	directus_project	https://directus.tzzr.org	directus@tzr.systems	From5-Caution8-Backfire4-Unsigned3-Everyday5	\N	\N	\N	{}	t	2026-01-20 12:39:22.008619+00	Directus PROJECT
32	ntfy	https://ntfy.tzzrdeck.me	\N	\N	\N	\N	\N	{}	t	2026-01-21 12:23:28.198314+00	Ntfy Notifications
39	aimlapi	https://api.aimlapi.com/v1	aiml@tzr.systems	bessu6-pIpzuj-sorbas	6fe0c4bf6e724ae88842cc77c4601134	\N	\N	{"plan": "free", "limits": "10 req/h free, 50K credits/day", "dashboard": "https://aimlapi.com/app/", "registered": "260228", "openai_compatible": true}	t	2026-02-28 12:51:42.973852+00	AIMLAPI - Multi-model AI API (400+ models)
40	packet_clara_pablo	https://clara.tzzr.me	\N	\N	1ac1e8e654ab830f817db8ebc8e3686ad160eaca72e5bea44d99673b423447c2	\N	\N	{"context": "pablo"}	t	2026-02-28 15:41:05.30868+00	Packet → Clara Pablo
4	shlink	https://short.tzzrdeck.me	\N	\N	f2d123ce-ad3f-4159-bb71-9feb25eb1c71	\N	\N	{}	t	2026-01-17 19:51:46.443636+00	Shlink URL Shortener
8	vaultwarden	https://key.tzzrdeck.me	key@tzr.systems	Relapse9-Subsidize4-Extradite1-Unknowing1-Shopper8	SydBmfmiHHtpdSYZQxMGciBOzrd00k4F4JMx0AUu	\N	\N	{}	t	2026-01-17 19:57:50.714302+00	Vaultwarden
41	packet_clara_mc	https://clara.tzzrdeck.me	\N	\N	43b128949f7a9a4897e202792b3ae6e989eff59d94da83f3f0d215ae17bcf725	\N	\N	{"context": "mc"}	t	2026-02-28 15:41:05.30868+00	Packet → Clara MC
34	openrouter	https://openrouter.ai/api/v1	openrouter@tzr.systems	\N	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	\N	\N	{"format": "openai", "model_prefix": true, "default_model": "anthropic/claude-sonnet-4-6"}	t	2026-02-27 13:23:54.051757+00	OpenRouter - Multi-provider AI API
35	postgrest	https://api.tzzrdeck.me	authenticator	AAGuXLPnN3QM26TF0WTbMd61	\N	\N	\N	{}	t	2026-02-27 19:40:54.46892+00	PostgREST API - MC
33	gptsapi	https://api.gptsapi.net	wild@tzzr.pro	Zaxfyg-5qutga-cahcyg	sk-pyWa2310d8c35bad9ca089d8b3888a577a3ce5ad148diVEK	\N	\N	{"format": "openai", "models": [{"id": "gpt-4o-mini", "name": "GPT-4o Mini", "tier": "fast", "provider": "OpenAI"}, {"id": "gpt-4o", "name": "GPT-4o", "tier": "fast", "provider": "OpenAI"}, {"id": "gpt-4.1-nano", "name": "GPT-4.1 Nano", "tier": "fast", "provider": "OpenAI"}, {"id": "gpt-4.1-mini", "name": "GPT-4.1 Mini", "tier": "fast", "provider": "OpenAI"}, {"id": "gpt-4.1", "name": "GPT-4.1", "tier": "standard", "provider": "OpenAI"}, {"id": "gpt-5-nano", "name": "GPT-5 Nano", "tier": "standard", "provider": "OpenAI"}, {"id": "gpt-5-mini", "name": "GPT-5 Mini", "tier": "premium", "provider": "OpenAI"}, {"id": "gpt-5", "name": "GPT-5", "tier": "premium", "provider": "OpenAI"}, {"id": "o3-mini", "name": "o3-mini", "tier": "reasoning", "provider": "OpenAI"}, {"id": "deepseek-r1", "name": "DeepSeek R1", "tier": "reasoning", "provider": "DeepSeek"}, {"id": "gemini-2.5-flash-lite", "name": "Gemini 2.5 Flash Lite", "tier": "fast", "provider": "Google"}, {"id": "gemini-2.5-flash", "name": "Gemini 2.5 Flash", "tier": "standard", "provider": "Google"}, {"id": "gemini-3.1-pro-preview", "name": "Gemini 3.1 Pro", "tier": "premium", "provider": "Google"}, {"id": "grok-3-mini", "name": "Grok 3 Mini", "tier": "standard", "provider": "xAI"}, {"id": "grok-4", "name": "Grok 4", "tier": "premium", "provider": "xAI"}, {"id": "claude-sonnet-4-6", "name": "Claude Sonnet 4.6", "tier": "premium", "enabled": false, "provider": "Anthropic"}, {"id": "claude-haiku-4-5-20251001", "name": "Claude Haiku 4.5", "tier": "fast", "enabled": false, "provider": "Anthropic"}, {"id": "claude-opus-4-6", "name": "Claude Opus 4.6", "tier": "premium", "enabled": false, "provider": "Anthropic"}], "default_model": "claude-sonnet-4-20250514"}	t	2026-02-23 23:20:42.190196+00	GPTsAPI - Proxy OpenAI/Anthropic/Gemini
42	packet_clara_tuzzaro	https://clara.tzzr.org/tuzzaro	\N	\N	0b61eac965726b2c158d4f4d70a1f3d9cd440ca20f42b53331cd75b9213651ee	\N	\N	{"context": "tuzzaro"}	t	2026-02-28 15:41:05.30868+00	Packet → Clara Tuzzaro
43	packet_clara_lumalia	https://clara.tzzr.org/lumalia	\N	\N	d992afa0b86eb783da7f6bdea8f92a1bf0e499c1764b07d86f0b7ebd30100537	\N	\N	{"context": "lumalia"}	t	2026-02-28 15:41:05.30868+00	Packet → Clara Lumalia
44	packet_clara_surmountor	https://clara.tzzr.org/surmountor	\N	\N	8fafca23e9d827d912f816ee5d515ff43348a2d3c86c10a8a0cf629b6b4b8c0e	\N	\N	{"context": "surmountor"}	t	2026-02-28 15:41:05.30868+00	Packet → Clara Surmountor
45	packet_clara_bestart	https://clara.tzzr.org/bestart	\N	\N	2fbad0486cfe0537ee301e2684bd0285b56ecfb11600254646b26a4d664e139e	\N	\N	{"context": "bestart"}	t	2026-02-28 15:41:05.30868+00	Packet → Clara BestArt
46	mail_info_password	\N	\N	Info2024Deck	\N	\N	\N	{}	t	2026-03-04 11:00:46.027869+00	Password cuenta info@tzzrdeck.me
47	snappymail_admin_password	\N	\N	cp9niU2vWoTi	\N	\N	\N	{}	t	2026-03-04 11:00:46.027869+00	Password admin Snappymail - https://mail.tzzrdeck.me/?admin
\.


--
-- Data for Name: user_keys; Type: TABLE DATA; Schema: tzzr_system; Owner: tzzr
--

COPY tzzr_system.user_keys (id, name, value, description, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: user_notes; Type: TABLE DATA; Schema: tzzr_system; Owner: tzzr
--

COPY tzzr_system.user_notes (id, note, created_at, start_date, end_date, status) FROM stdin;
\.


--
-- Data for Name: gate_key; Type: TABLE DATA; Schema: usr; Owner: postgres
--

COPY usr.gate_key (id, label, method, secret, active, created_at, last_used, token_hash, metadata) FROM stdin;
4891a022a31a6245	test	static	159d5a6434e5bd9818155e5b19ab38763a7825771b81eb301cd71d16540defe6	f	2026-03-14 04:00:35.752986+00	2026-03-14 04:01:03.328292+00	\N	\N
garmin-fenix-001	Garmin Fenix 7 Test	totp	FC6DTCXABACIP5WRF7UXKHZJPB65OZCU	t	2026-03-14 04:08:39.802626+00	2026-03-14 04:21:48.389656+00	39da81a2b58b61f17c2544cf2a460136fd18b35259640b734f80ac37de826697	{"device": "Garmin Fenix 7"}
master-key	Llave Maestra	static	9db86e64e4edccea1bd95987d4ab4c4b215c938852dc90d59389f4f7c00552aa	t	2026-03-14 15:51:20.606537+00	\N	\N	{"code": "251820"}
rotating-seed	Rotating Code Seed	rotating	tzzr2024rotatingsecret	t	2026-03-14 15:51:20.609815+00	\N	\N	{"chars": "alpha", "length": 6, "period": 30}
\.


--
-- Data for Name: gate_session; Type: TABLE DATA; Schema: usr; Owner: postgres
--

COPY usr.gate_session (ip, created_at, expires_at, key_id, method, session_id, allowed_domains, user_id) FROM stdin;
10.0.0.2	2026-03-14 16:02:26.822583+00	2026-03-21 16:02:26.747997+00	\N	rotating	vVyPo6Q_GEXEkRnuKoMdTPukjzcGW4q-LkbpbCiRIbI	\N	\N
\.


--
-- Data for Name: gate_user; Type: TABLE DATA; Schema: usr; Owner: postgres
--

COPY usr.gate_user (id, name, mrf, master_code_hash, rotating_seed, allowed_domains, active, created_at, last_used) FROM stdin;
2	Pablo	u-a1681b0041bc	f4ba7b9d9235f0c84c629665c0a260f6b42ab7fc23d600d9b7d25889796aa8b7	88d5805005e67c7e1719330f33417d12	{}	t	2026-03-15 06:43:30.643193+00	\N
\.


--
-- Data for Name: key; Type: TABLE DATA; Schema: usr; Owner: postgres
--

COPY usr.key (mrf, username, password, service, enabled, description, created_at) FROM stdin;
a32825d3ea2db4760a13633a2f4affd9	55125dca442b0f3517d194a5bc0502b8	9b69de7a4e7fc0fe1348df55aee12662ae0b60b494dc7398447d9ffe0990671f	r2	t	R2 key: deck + personaldeck	2026-03-13 17:19:42.850956+00
90a95de964eb4a808a93be1252af80e4	82c92644abbc3bc381a5c68941e29ae0	5db5e40da7fc63ac9cc99fc439fc0750a88a1c5fe19c6da07956ea386c092a57	r2	t	R2 key: lumalia + lumaliabck	2026-03-13 17:19:42.850956+00
fee0a7f8963dc0a80d7854033b7d38d6	directus@tzr.systems	From5-Caution8-Backfire4-Unsigned3-Everyday5	directus	t	Directus CMS admin login. Endpoint: https://directus.tzzrdeck.me	2026-03-14 21:14:24.72435+00
c59cf7fa39d4ed2cdaf1997cc16f902e	deck	Lagging4-Curliness0-Pettiness4-Founder0-Handwrite9	nextcloud	t	Nextcloud MC user deck. Endpoint: https://cloud.tzzrdeck.me	2026-03-14 21:14:24.72435+00
fc1adea83c34c38f20fffd224ca8a357	shlink_api	f2d123ce-ad3f-4159-bb71-9feb25eb1c71	shlink	t	Shlink URL Shortener API key. Endpoint: https://short.tzzrdeck.me	2026-03-14 21:14:24.72435+00
b8a95e27cf7d476829cdb6ecb3e836af	key@tzr.systems	Relapse9-Subsidize4-Extradite1-Unknowing1-Shopper8	vaultwarden	t	Vaultwarden login. Admin token: SydBmfmiHHtpdSYZQxMGciBOzrd00k4F4JMx0AUu. Endpoint: https://key.tzzrdeck.me	2026-03-14 21:14:24.72435+00
86bafd23f5a599aadda70602482a7dbf	cloudflare@tzr.systems	5883505d6b37f534a2908ca829b33d681c3ae	cloudflare_dns	t	Cloudflare DNS API key. Endpoint: https://api.cloudflare.com/client/v4	2026-03-14 21:14:24.72435+00
c5dce6baf79073210dfcbc733e16e9b3	architect	Breeder6-Pond3-Accompany3-Kilometer2-Tingly6	nextcloud_architect	t	Nextcloud ARCHITECT. Endpoint: https://cloud.tzzrarchitect.me	2026-03-14 21:14:24.72435+00
56d2485c2c16e75048ced5b161c09037	hst	Passenger4-Escapade2-Woozy1-Sudoku9-Colonize2	nextcloud_hst	t	Nextcloud HST. Endpoint: https://cloud.tzzr.tech	2026-03-14 21:14:24.72435+00
22aa6c72ded7094d57ff4837f307fc7f	windmill@tzzr.pro	Windmill7IKIqSm6Wod92026	windmill	t	Windmill Flow. Endpoint: https://flow.tzzrdeck.me	2026-03-14 21:14:24.72435+00
e3bef03c5f3b7f6b3ab3e3053ed71e9c	gitea_admin	\N	gitea	t	Gitea ARCHITECT. Endpoint: https://git.tzzrarchitect.me	2026-03-14 21:14:24.72435+00
85d28bb4732e6b0c250a9809f26df7cd	e6af7c99e6251457fa84a7a896d7e2f6	1ba5155d9c0be6ea5930871c8cf9bb0c1b6cad3f9f7f0602b2697dad2bd893e1	cloudflare_r2_architect	t	R2 Bucket: architect. Endpoint: https://7dedae6030f5554d99d37e98a5232996.r2.cloudflarestorage.com	2026-03-14 21:14:24.72435+00
56d4382c66f887275535c79d1b227e97	0f54ae54ed4558e17f9b6ba16897afe2	5601a48dce78c2eb85ceeccb3be6338143aeb589d0998ef472ffaabd0c8f9133	cloudflare_r2_deck	t	R2 Bucket: deck. Endpoint: https://7dedae6030f5554d99d37e98a5232996.r2.cloudflarestorage.com	2026-03-14 21:14:24.72435+00
f88f532ace1409bbbc1fe0cb5af4efd4	5ceb4e606fd7305414c0df8705fc9844	27f5c0d6447c58178ae52c29fb13a75a021b7eddd060aea36452c5ddc6d5c65d	cloudflare_r2_personaldeck	t	R2 Bucket: personaldeck. Endpoint: https://7dedae6030f5554d99d37e98a5232996.r2.cloudflarestorage.com	2026-03-14 21:14:24.72435+00
48c074875af8b024e3a7614c5d7c0b1f	architect_ssh	Architect2026Tzzr	ssh_architect_user	t	ARCHITECT Server SSH user	2026-03-14 21:14:24.72435+00
fa4dc0903f0c199809e45b4f1fd6e691	project	Sprain4-Nicotine8-Mutate1-Rearrange4-Skirmish4	nextcloud_project	t	Nextcloud PROJECT. Endpoint: https://cloud.tzzr.org	2026-03-14 21:14:24.72435+00
b71fd06c806dfd113276151188b3a9ef	directus_project_admin	From5-Caution8-Backfire4-Unsigned3-Everyday5	directus_project	t	Directus PROJECT admin. Endpoint: https://directus.tzzr.org	2026-03-14 21:14:24.72435+00
e51f5a8f58f33ad7663bdf5a403ebf8b	stalwart_admin	St4lw4rtAdm1n2024!	stalwart	t	Stalwart Mail Server admin. Endpoint: https://mail.tzzrdeck.me:8899	2026-03-14 21:14:24.72435+00
44693007192a8a0cabb2b2da56b88ffd	snappymail_user	\N	snappymail	t	Snappymail Webmail. Endpoint: https://mail.tzzrdeck.me	2026-03-14 21:14:24.72435+00
bb69402fe4623fabc27216ac245a7301	ntfy_user	\N	ntfy	t	Ntfy Notifications. Endpoint: https://ntfy.tzzrdeck.me	2026-03-14 21:14:24.72435+00
62d6c1c85f2f1bf5c70cd0ec5107ba3e	wild@tzzr.pro	Zaxfyg-5qutga-cahcyg	gptsapi	t	GPTsAPI proxy. API key: sk-pyWa2310d8c35bad9ca089d8b3888a577a3ce5ad148diVEK. Endpoint: https://api.gptsapi.net	2026-03-14 21:14:24.72435+00
d8b3be131b3b89db2d177ada2ffde273	openrouter@tzr.systems	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	openrouter	t	OpenRouter multi-provider AI API. Endpoint: https://openrouter.ai/api/v1	2026-03-14 21:14:24.72435+00
9163627094df4ddb7bbfae45d6a73dba	authenticator	AAGuXLPnN3QM26TF0WTbMd61	postgrest	t	PostgREST API MC. Endpoint: https://api.tzzrdeck.me	2026-03-14 21:14:24.72435+00
c6e1d2cbd723895051083351b1e426e5	rpd@tzr.systems	ditmyj-vardi0-Fovgis	runpod	t	RunPod GPU. API key: rpa_JVC1R3II6TC5OU2JBGJRGEN9CT6ZTBAPIBRMFU0E1gweo9. Endpoint: https://api.runpod.ai/v2	2026-03-14 21:14:24.72435+00
669b6143011e375ff06bf60d04d8a8f2	aiml@tzr.systems	bessu6-pIpzuj-sorbas	aimlapi	t	AIMLAPI 400+ models. API key: 6fe0c4bf6e724ae88842cc77c4601134. Endpoint: https://api.aimlapi.com/v1	2026-03-14 21:14:24.72435+00
a51d0341e14bf285590505cd343bc533	packet_pablo	1ac1e8e654ab830f817db8ebc8e3686ad160eaca72e5bea44d99673b423447c2	packet_clara_pablo	t	Packet Clara Pablo. Endpoint: https://clara.tzzr.me	2026-03-14 21:14:24.72435+00
42cf8d706aed3de9278f4265701e8d93	packet_mc	43b128949f7a9a4897e202792b3ae6e989eff59d94da83f3f0d215ae17bcf725	packet_clara_mc	t	Packet Clara MC. Endpoint: https://clara.tzzrdeck.me	2026-03-14 21:14:24.72435+00
c9739fb5670ef1ce83b0019d9aebcd98	packet_tuzzaro	0b61eac965726b2c158d4f4d70a1f3d9cd440ca20f42b53331cd75b9213651ee	packet_clara_tuzzaro	t	Packet Clara Tuzzaro. Endpoint: https://clara.tzzr.org/tuzzaro	2026-03-14 21:14:24.72435+00
ef74b0a4d318d9016ee8ceab209e8955	packet_lumalia	d992afa0b86eb783da7f6bdea8f92a1bf0e499c1764b07d86f0b7ebd30100537	packet_clara_lumalia	t	Packet Clara Lumalia. Endpoint: https://clara.tzzr.org/lumalia	2026-03-14 21:14:24.72435+00
e3624ef555241e6307724e256ed1efa2	packet_surmountor	8fafca23e9d827d912f816ee5d515ff43348a2d3c86c10a8a0cf629b6b4b8c0e	packet_clara_surmountor	t	Packet Clara Surmountor. Endpoint: https://clara.tzzr.org/surmountor	2026-03-14 21:14:24.72435+00
7ef82bd92422c732725ef36a0f999694	packet_bestart	2fbad0486cfe0537ee301e2684bd0285b56ecfb11600254646b26a4d664e139e	packet_clara_bestart	t	Packet Clara BestArt. Endpoint: https://clara.tzzr.org/bestart	2026-03-14 21:14:24.72435+00
f1eb9eb95821fd4748f2531b8a6c6b9f	info@tzzrdeck.me	Info2024Deck	mail_info_password	t	Password cuenta info@tzzrdeck.me	2026-03-14 21:14:24.72435+00
c1da736975b4a80304a6a7489da80aae	snappymail_admin	cp9niU2vWoTi	snappymail_admin_password	t	Password admin Snappymail https://mail.tzzrdeck.me/?admin	2026-03-14 21:14:24.72435+00
e8a48653851e28c69d0506508fb27fc5	tzzr_pg	TzzrPostgres-2024	postgres	t	PostgreSQL main database MC	2026-03-14 21:14:24.72435+00
e709e53918edeb1841fea3c72493c550	directus_db_user	TzzrDB-2024-Secure	directus_db	t	Directus DB password MC	2026-03-14 21:14:24.72435+00
ccc17f698016d562a3fd5e43a292e3ae	directus_enc_key	d8f4a2e1b5c9f0a3e6d7c8b9a0e1f2d3	directus_key	t	Directus encryption key (SHARED)	2026-03-14 21:14:24.72435+00
ee0e27e42e33e84065b3d2e4fdb004d2	directus_secret_mc	a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8	directus_secret	t	Directus secret MC	2026-03-14 21:14:24.72435+00
b75883e4ed5ca2cf03f77c6dc9e196a6	vaultwarden_admin_token	SydBmfmiHHtpdSYZQxMGciBOzrd00k4F4JMx0AUu	vaultwarden_admin	t	Vaultwarden admin token	2026-03-14 21:14:24.72435+00
bd30aeeb5befe72a251b733c457bef45	shlink_db_user	TzzrDB-2024-Secure	shlink_db	t	Shlink database password	2026-03-14 21:14:24.72435+00
4abb3635d1e921984723abfe296d0037	shlink_api_key	dd5aff73-d30c-41c7-bf13-a85bce2afd52	shlink_api	t	Shlink API key. Endpoint: https://short.tzzrdeck.me	2026-03-14 21:14:24.72435+00
\.


--
-- Data for Name: storage; Type: TABLE DATA; Schema: usr; Owner: postgres
--

COPY usr.storage (mrf, name, type, endpoint, key_mrf, config, active, created_at) FROM stdin;
d830325906c3d540ae219e6aba0f243d52cd708feea68355a3f63f76aff8da33	deck	r2	https://7dedae6030f5554d99d37e98a5232996.r2.cloudflarestorage.com	a32825d3ea2db4760a13633a2f4affd9	{"context": "deck"}	t	2026-01-17 18:08:46.365667+00
c1b0e6f97fd29083ec38ee6e91d10b4f8dd5a8d4a05aa151f255bb98af661842	personaldeck	r2	https://7dedae6030f5554d99d37e98a5232996.r2.cloudflarestorage.com	a32825d3ea2db4760a13633a2f4affd9	{"context": "deck", "personal": true}	t	2026-01-17 18:08:46.365667+00
031ce09763a14e96728974acf9234aca7983edcf31f00d6d90994d8de04d9119	lumalia	r2	https://7dedae6030f5554d99d37e98a5232996.r2.cloudflarestorage.com	90a95de964eb4a808a93be1252af80e4	{"context": "lumalia"}	t	2026-02-28 21:25:49.379501+00
a96ff4b109c23e050c9bc4dea8e883a81b8a9c826bce09b9121453d08bf8e4ea	lumaliabck	r2	https://7dedae6030f5554d99d37e98a5232996.r2.cloudflarestorage.com	90a95de964eb4a808a93be1252af80e4	{"backup": true, "context": "lumalia"}	t	2026-03-01 01:06:17.70979+00
\.


--
-- Name: exe_num_seq; Type: SEQUENCE SET; Schema: production_alfred; Owner: postgres
--

SELECT pg_catalog.setval('production_alfred.exe_num_seq', 1, false);


--
-- Name: rule_log_num_seq; Type: SEQUENCE SET; Schema: production_alfred; Owner: postgres
--

SELECT pg_catalog.setval('production_alfred.rule_log_num_seq', 1, false);


--
-- Name: rules_num_seq; Type: SEQUENCE SET; Schema: production_alfred; Owner: postgres
--

SELECT pg_catalog.setval('production_alfred.rules_num_seq', 1, false);


--
-- Name: agent_description_num_seq; Type: SEQUENCE SET; Schema: tzzr_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_ai.agent_description_num_seq', 1, false);


--
-- Name: dataset_num_seq; Type: SEQUENCE SET; Schema: tzzr_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_ai.dataset_num_seq', 1, false);


--
-- Name: library_agent_num_seq; Type: SEQUENCE SET; Schema: tzzr_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_ai.library_agent_num_seq', 1, false);


--
-- Name: library_model_num_seq; Type: SEQUENCE SET; Schema: tzzr_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_ai.library_model_num_seq', 23, true);


--
-- Name: library_setup_agent_num_seq; Type: SEQUENCE SET; Schema: tzzr_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_ai.library_setup_agent_num_seq', 1, false);


--
-- Name: library_setup_model_num_seq; Type: SEQUENCE SET; Schema: tzzr_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_ai.library_setup_model_num_seq', 23, true);


--
-- Name: model_num_seq; Type: SEQUENCE SET; Schema: tzzr_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_ai.model_num_seq', 57, true);


--
-- Name: model_usage_num_seq; Type: SEQUENCE SET; Schema: tzzr_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_ai.model_usage_num_seq', 1, false);


--
-- Name: provider_num_seq; Type: SEQUENCE SET; Schema: tzzr_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_ai.provider_num_seq', 4, true);


--
-- Name: setup_num_seq; Type: SEQUENCE SET; Schema: tzzr_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_ai.setup_num_seq', 11, true);


--
-- Name: actions_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_chat_ai.actions_num_seq', 1, false);


--
-- Name: curated_context_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_chat_ai.curated_context_num_seq', 2, true);


--
-- Name: embeddings_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_chat_ai.embeddings_num_seq', 1, false);


--
-- Name: enrichment_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_chat_ai.enrichment_num_seq', 1, false);


--
-- Name: extracted_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_chat_ai.extracted_num_seq', 1, false);


--
-- Name: graph_actions_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_chat_ai.graph_actions_num_seq', 1, false);


--
-- Name: graph_curated_context_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_chat_ai.graph_curated_context_num_seq', 1, false);


--
-- Name: graph_embeddings_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_chat_ai.graph_embeddings_num_seq', 1, false);


--
-- Name: graph_enrichment_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_chat_ai.graph_enrichment_num_seq', 1, false);


--
-- Name: graph_extracted_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_chat_ai.graph_extracted_num_seq', 1, false);


--
-- Name: graph_threads_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_chat_ai.graph_threads_num_seq', 1, false);


--
-- Name: graph_workspace_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_chat_ai.graph_workspace_num_seq', 1, false);


--
-- Name: library_actions_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_chat_ai.library_actions_num_seq', 1, false);


--
-- Name: library_curated_context_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_chat_ai.library_curated_context_num_seq', 1, false);


--
-- Name: library_embeddings_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_chat_ai.library_embeddings_num_seq', 1, false);


--
-- Name: library_enrichment_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_chat_ai.library_enrichment_num_seq', 1, false);


--
-- Name: library_extracted_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_chat_ai.library_extracted_num_seq', 1, false);


--
-- Name: library_threads_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_chat_ai.library_threads_num_seq', 1, false);


--
-- Name: library_workspace_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_chat_ai.library_workspace_num_seq', 1, false);


--
-- Name: tree_actions_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_chat_ai.tree_actions_num_seq', 1, false);


--
-- Name: tree_curated_context_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_chat_ai.tree_curated_context_num_seq', 1, false);


--
-- Name: tree_embeddings_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_chat_ai.tree_embeddings_num_seq', 1, false);


--
-- Name: tree_enrichment_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_chat_ai.tree_enrichment_num_seq', 1, false);


--
-- Name: tree_extracted_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_chat_ai.tree_extracted_num_seq', 1, false);


--
-- Name: tree_threads_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_chat_ai.tree_threads_num_seq', 1, false);


--
-- Name: tree_workspace_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_chat_ai.tree_workspace_num_seq', 1, false);


--
-- Name: workspace_num_seq; Type: SEQUENCE SET; Schema: tzzr_chat_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_chat_ai.workspace_num_seq', 1, false);


--
-- Name: mail_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications.mail_num_seq', 32, true);


--
-- Name: draft_profile_rules_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.draft_profile_rules_num_seq', 1, false);


--
-- Name: draft_profiles_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.draft_profiles_num_seq', 1, false);


--
-- Name: draft_tones_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.draft_tones_num_seq', 1, false);


--
-- Name: graph_actions_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.graph_actions_num_seq', 1, false);


--
-- Name: graph_drafts_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.graph_drafts_num_seq', 1, false);


--
-- Name: graph_embeddings_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.graph_embeddings_num_seq', 1, false);


--
-- Name: graph_enrichment_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.graph_enrichment_num_seq', 1, false);


--
-- Name: graph_extracted_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.graph_extracted_num_seq', 1, false);


--
-- Name: graph_source_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.graph_source_num_seq', 1, false);


--
-- Name: graph_workspace_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.graph_workspace_num_seq', 1, false);


--
-- Name: library_actions_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.library_actions_num_seq', 1, false);


--
-- Name: library_drafts_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.library_drafts_num_seq', 1, false);


--
-- Name: library_embeddings_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.library_embeddings_num_seq', 1, false);


--
-- Name: library_enrichment_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.library_enrichment_num_seq', 1, false);


--
-- Name: library_extracted_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.library_extracted_num_seq', 1, false);


--
-- Name: library_source_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.library_source_num_seq', 1, false);


--
-- Name: library_workspace_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.library_workspace_num_seq', 1, false);


--
-- Name: mail_actions_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.mail_actions_num_seq', 1, false);


--
-- Name: mail_ai_workspace_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.mail_ai_workspace_num_seq', 1, false);


--
-- Name: mail_drafts_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.mail_drafts_num_seq', 1, false);


--
-- Name: mail_embeddings_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.mail_embeddings_num_seq', 1, false);


--
-- Name: mail_enrichment_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.mail_enrichment_num_seq', 182, true);


--
-- Name: mail_extracted_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.mail_extracted_num_seq', 1, false);


--
-- Name: mail_source_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.mail_source_num_seq', 1, false);


--
-- Name: tree_actions_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.tree_actions_num_seq', 1, false);


--
-- Name: tree_drafts_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.tree_drafts_num_seq', 1, false);


--
-- Name: tree_embeddings_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.tree_embeddings_num_seq', 1, false);


--
-- Name: tree_enrichment_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.tree_enrichment_num_seq', 1, false);


--
-- Name: tree_extracted_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.tree_extracted_num_seq', 1, false);


--
-- Name: tree_source_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.tree_source_num_seq', 1, false);


--
-- Name: tree_workspace_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_ai; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_communications_ai.tree_workspace_num_seq', 1, false);


--
-- Name: collection_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_str; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_communications_str.collection_num_seq', 16, true);


--
-- Name: domains_id_seq; Type: SEQUENCE SET; Schema: tzzr_communications_str; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_communications_str.domains_id_seq', 1, false);


--
-- Name: folders_id_seq; Type: SEQUENCE SET; Schema: tzzr_communications_str; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_communications_str.folders_id_seq', 1, false);


--
-- Name: graph_chat_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_str; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_communications_str.graph_chat_num_seq', 1, false);


--
-- Name: graph_mail_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_str; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_communications_str.graph_mail_num_seq', 16, true);


--
-- Name: inbox_id_seq; Type: SEQUENCE SET; Schema: tzzr_communications_str; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_communications_str.inbox_id_seq', 1, false);


--
-- Name: library_chat_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_str; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_communications_str.library_chat_num_seq', 1, false);


--
-- Name: library_mail_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_str; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_communications_str.library_mail_num_seq', 32, true);


--
-- Name: mail_accounts_id_seq; Type: SEQUENCE SET; Schema: tzzr_communications_str; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_communications_str.mail_accounts_id_seq', 4, true);


--
-- Name: mail_aliases_id_seq; Type: SEQUENCE SET; Schema: tzzr_communications_str; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_communications_str.mail_aliases_id_seq', 4, true);


--
-- Name: mail_group_members_id_seq; Type: SEQUENCE SET; Schema: tzzr_communications_str; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_communications_str.mail_group_members_id_seq', 1, false);


--
-- Name: mail_groups_id_seq; Type: SEQUENCE SET; Schema: tzzr_communications_str; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_communications_str.mail_groups_id_seq', 1, false);


--
-- Name: mail_identity_id_seq; Type: SEQUENCE SET; Schema: tzzr_communications_str; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_communications_str.mail_identity_id_seq', 1, false);


--
-- Name: mail_permissions_id_seq; Type: SEQUENCE SET; Schema: tzzr_communications_str; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_communications_str.mail_permissions_id_seq', 1, true);


--
-- Name: short_urls_id_seq; Type: SEQUENCE SET; Schema: tzzr_communications_str; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_communications_str.short_urls_id_seq', 1, false);


--
-- Name: tree_chat_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_str; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_communications_str.tree_chat_num_seq', 1, false);


--
-- Name: tree_mail_num_seq; Type: SEQUENCE SET; Schema: tzzr_communications_str; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_communications_str.tree_mail_num_seq', 1, false);


--
-- Name: ai_services_id_seq; Type: SEQUENCE SET; Schema: tzzr_connection; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_connection.ai_services_id_seq', 20, true);


--
-- Name: bck_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_administracion; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_core_administracion.bck_num_seq', 1, false);


--
-- Name: graph_bck_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_administracion; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_administracion.graph_bck_num_seq', 1, false);


--
-- Name: graph_mst_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_administracion; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_administracion.graph_mst_num_seq', 1, false);


--
-- Name: library_bck_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_administracion; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_administracion.library_bck_num_seq', 1, false);


--
-- Name: library_mst_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_administracion; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_administracion.library_mst_num_seq', 1, false);


--
-- Name: mst_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_administracion; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_administracion.mst_num_seq', 1, false);


--
-- Name: tree_bck_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_administracion; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_administracion.tree_bck_num_seq', 1, false);


--
-- Name: tree_mst_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_administracion; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_administracion.tree_mst_num_seq', 1, false);


--
-- Name: bck_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_contabilidad; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_core_contabilidad.bck_num_seq', 1, false);


--
-- Name: graph_bck_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_contabilidad; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_contabilidad.graph_bck_num_seq', 1, false);


--
-- Name: graph_mst_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_contabilidad; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_contabilidad.graph_mst_num_seq', 1, false);


--
-- Name: library_bck_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_contabilidad; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_contabilidad.library_bck_num_seq', 1, false);


--
-- Name: library_mst_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_contabilidad; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_contabilidad.library_mst_num_seq', 1, false);


--
-- Name: mst_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_contabilidad; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_contabilidad.mst_num_seq', 1, false);


--
-- Name: tree_bck_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_contabilidad; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_contabilidad.tree_bck_num_seq', 1, false);


--
-- Name: tree_mst_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_contabilidad; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_contabilidad.tree_mst_num_seq', 1, false);


--
-- Name: flg_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_hst; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_core_hst.flg_num_seq', 231, true);


--
-- Name: graph_flg_id_seq; Type: SEQUENCE SET; Schema: tzzr_core_hst; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_core_hst.graph_flg_id_seq', 1, false);


--
-- Name: graph_id_seq; Type: SEQUENCE SET; Schema: tzzr_core_hst; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_core_hst.graph_id_seq', 819, true);


--
-- Name: group_flg_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_hst; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_hst.group_flg_num_seq', 145, false);


--
-- Name: group_hst_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_hst; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_hst.group_hst_num_seq', 1076, false);


--
-- Name: hst_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_hst; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_core_hst.hst_num_seq', 1305, true);


--
-- Name: library_flg_id_seq; Type: SEQUENCE SET; Schema: tzzr_core_hst; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_core_hst.library_flg_id_seq', 63, true);


--
-- Name: library_id_seq; Type: SEQUENCE SET; Schema: tzzr_core_hst; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_core_hst.library_id_seq', 752, true);


--
-- Name: tree_flg_id_seq; Type: SEQUENCE SET; Schema: tzzr_core_hst; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_core_hst.tree_flg_id_seq', 63, true);


--
-- Name: tree_id_seq; Type: SEQUENCE SET; Schema: tzzr_core_hst; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_core_hst.tree_id_seq', 1003, true);


--
-- Name: graph_itm_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_itm_base; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_core_itm_base.graph_itm_num_seq', 9648, true);


--
-- Name: graph_loc_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_itm_base; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_core_itm_base.graph_loc_num_seq', 1, false);


--
-- Name: graph_ply_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_itm_base; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_core_itm_base.graph_ply_num_seq', 183, true);


--
-- Name: group_itm_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_itm_base; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_itm_base.group_itm_num_seq', 12564, true);


--
-- Name: group_loc_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_itm_base; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_itm_base.group_loc_num_seq', 133, true);


--
-- Name: group_ply_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_itm_base; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_itm_base.group_ply_num_seq', 814, true);


--
-- Name: itm_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_itm_base; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_core_itm_base.itm_num_seq', 13187, true);


--
-- Name: library_itm_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_itm_base; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_core_itm_base.library_itm_num_seq', 2504, true);


--
-- Name: library_loc_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_itm_base; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_core_itm_base.library_loc_num_seq', 68, true);


--
-- Name: library_ply_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_itm_base; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_core_itm_base.library_ply_num_seq', 940, true);


--
-- Name: loc_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_itm_base; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_core_itm_base.loc_num_seq', 73, true);


--
-- Name: ply_agent_llm_map_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_itm_base; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_itm_base.ply_agent_llm_map_num_seq', 14, true);


--
-- Name: ply_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_itm_base; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_core_itm_base.ply_num_seq', 1319, true);


--
-- Name: tree_itm_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_itm_base; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_core_itm_base.tree_itm_num_seq', 38, true);


--
-- Name: tree_loc_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_itm_base; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_core_itm_base.tree_loc_num_seq', 1, false);


--
-- Name: tree_ply_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_itm_base; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_core_itm_base.tree_ply_num_seq', 1, false);


--
-- Name: graph_bck_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_oracle; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_oracle.graph_bck_num_seq', 1, false);


--
-- Name: graph_mst_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_oracle; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_oracle.graph_mst_num_seq', 1, false);


--
-- Name: library_bck_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_oracle; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_oracle.library_bck_num_seq', 1, false);


--
-- Name: library_mst_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_oracle; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_oracle.library_mst_num_seq', 1, false);


--
-- Name: mst_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_oracle; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_oracle.mst_num_seq', 1, false);


--
-- Name: tree_bck_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_oracle; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_oracle.tree_bck_num_seq', 1, false);


--
-- Name: tree_mst_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_oracle; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_oracle.tree_mst_num_seq', 1, false);


--
-- Name: graph_mth_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_produccion; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_produccion.graph_mth_num_seq', 1, false);


--
-- Name: library_mth_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_produccion; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_produccion.library_mth_num_seq', 1, false);


--
-- Name: mth_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_produccion; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_produccion.mth_num_seq', 1, false);


--
-- Name: tree_mth_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_produccion; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_produccion.tree_mth_num_seq', 1, false);


--
-- Name: bck_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_secretaria; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_core_secretaria.bck_num_seq', 1, false);


--
-- Name: graph_bck_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_secretaria; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_secretaria.graph_bck_num_seq', 1, false);


--
-- Name: graph_mst_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_secretaria; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_secretaria.graph_mst_num_seq', 1, false);


--
-- Name: library_bck_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_secretaria; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_secretaria.library_bck_num_seq', 1, false);


--
-- Name: library_mst_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_secretaria; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_secretaria.library_mst_num_seq', 1, false);


--
-- Name: mst_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_secretaria; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_secretaria.mst_num_seq', 1, false);


--
-- Name: tree_bck_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_secretaria; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_secretaria.tree_bck_num_seq', 1, false);


--
-- Name: tree_mst_num_seq; Type: SEQUENCE SET; Schema: tzzr_core_secretaria; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_core_secretaria.tree_mst_num_seq', 1, false);


--
-- Name: agent_llm_num_seq; Type: SEQUENCE SET; Schema: tzzr_iachat; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_iachat.agent_llm_num_seq', 49, true);


--
-- Name: flow_edge_num_seq; Type: SEQUENCE SET; Schema: tzzr_iachat; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_iachat.flow_edge_num_seq', 5, true);


--
-- Name: flow_execution_num_seq; Type: SEQUENCE SET; Schema: tzzr_iachat; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_iachat.flow_execution_num_seq', 3, true);


--
-- Name: flow_num_seq; Type: SEQUENCE SET; Schema: tzzr_iachat; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_iachat.flow_num_seq', 14, true);


--
-- Name: flow_step_execution_num_seq; Type: SEQUENCE SET; Schema: tzzr_iachat; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_iachat.flow_step_execution_num_seq', 1, false);


--
-- Name: flow_step_num_seq; Type: SEQUENCE SET; Schema: tzzr_iachat; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_iachat.flow_step_num_seq', 16, true);


--
-- Name: message_num_seq; Type: SEQUENCE SET; Schema: tzzr_iachat; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_iachat.message_num_seq', 25, true);


--
-- Name: project_num_seq; Type: SEQUENCE SET; Schema: tzzr_iachat; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_iachat.project_num_seq', 5, true);


--
-- Name: session_dataset_num_seq; Type: SEQUENCE SET; Schema: tzzr_iachat; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_iachat.session_dataset_num_seq', 1, false);


--
-- Name: session_num_seq; Type: SEQUENCE SET; Schema: tzzr_iachat; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_iachat.session_num_seq', 11, true);


--
-- Name: terminal_whitelist_num_seq; Type: SEQUENCE SET; Schema: tzzr_iachat; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_iachat.terminal_whitelist_num_seq', 6, true);


--
-- Name: threads_num_seq; Type: SEQUENCE SET; Schema: tzzr_iachat; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_iachat.threads_num_seq', 1, false);


--
-- Name: attachment_id_seq; Type: SEQUENCE SET; Schema: tzzr_list; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_list.attachment_id_seq', 1, false);


--
-- Name: item_id_seq; Type: SEQUENCE SET; Schema: tzzr_list; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_list.item_id_seq', 1, false);


--
-- Name: list_id_seq; Type: SEQUENCE SET; Schema: tzzr_list; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_list.list_id_seq', 1, false);


--
-- Name: atc_num_seq; Type: SEQUENCE SET; Schema: tzzr_storage; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_storage.atc_num_seq', 34304, true);


--
-- Name: bucket_access_log_id_seq; Type: SEQUENCE SET; Schema: tzzr_storage; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_storage.bucket_access_log_id_seq', 1, false);


--
-- Name: graph_atc_num_seq; Type: SEQUENCE SET; Schema: tzzr_storage; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_storage.graph_atc_num_seq', 1, false);


--
-- Name: library_atc_num_seq; Type: SEQUENCE SET; Schema: tzzr_storage; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_storage.library_atc_num_seq', 1, false);


--
-- Name: tree_atc_num_seq; Type: SEQUENCE SET; Schema: tzzr_storage; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_storage.tree_atc_num_seq', 1, false);


--
-- Name: keys_id_seq; Type: SEQUENCE SET; Schema: tzzr_system; Owner: postgres
--

SELECT pg_catalog.setval('tzzr_system.keys_id_seq', 47, true);


--
-- Name: user_keys_id_seq; Type: SEQUENCE SET; Schema: tzzr_system; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_system.user_keys_id_seq', 1, false);


--
-- Name: user_notes_id_seq; Type: SEQUENCE SET; Schema: tzzr_system; Owner: tzzr
--

SELECT pg_catalog.setval('tzzr_system.user_notes_id_seq', 1, false);


--
-- Name: gate_user_id_seq; Type: SEQUENCE SET; Schema: usr; Owner: postgres
--

SELECT pg_catalog.setval('usr.gate_user_id_seq', 2, true);


--
-- Name: context_weights context_weights_pkey; Type: CONSTRAINT; Schema: cto; Owner: tzzr
--

ALTER TABLE ONLY cto.context_weights
    ADD CONSTRAINT context_weights_pkey PRIMARY KEY (uuid);


--
-- Name: messages messages_pkey; Type: CONSTRAINT; Schema: cto; Owner: tzzr
--

ALTER TABLE ONLY cto.messages
    ADD CONSTRAINT messages_pkey PRIMARY KEY (uuid);


--
-- Name: players players_pkey; Type: CONSTRAINT; Schema: cto; Owner: tzzr
--

ALTER TABLE ONLY cto.players
    ADD CONSTRAINT players_pkey PRIMARY KEY (uuid);


--
-- Name: thread_documents thread_documents_pkey; Type: CONSTRAINT; Schema: cto; Owner: tzzr
--

ALTER TABLE ONLY cto.thread_documents
    ADD CONSTRAINT thread_documents_pkey PRIMARY KEY (uuid);


--
-- Name: threads threads_pkey; Type: CONSTRAINT; Schema: cto; Owner: tzzr
--

ALTER TABLE ONLY cto.threads
    ADD CONSTRAINT threads_pkey PRIMARY KEY (uuid);


--
-- Name: exe exe_mrf_key; Type: CONSTRAINT; Schema: production_alfred; Owner: postgres
--

ALTER TABLE ONLY production_alfred.exe
    ADD CONSTRAINT exe_mrf_key UNIQUE (mrf);


--
-- Name: exe exe_pkey; Type: CONSTRAINT; Schema: production_alfred; Owner: postgres
--

ALTER TABLE ONLY production_alfred.exe
    ADD CONSTRAINT exe_pkey PRIMARY KEY (num);


--
-- Name: rule_log rule_log_pkey; Type: CONSTRAINT; Schema: production_alfred; Owner: postgres
--

ALTER TABLE ONLY production_alfred.rule_log
    ADD CONSTRAINT rule_log_pkey PRIMARY KEY (num);


--
-- Name: rules rules_mrf_key; Type: CONSTRAINT; Schema: production_alfred; Owner: postgres
--

ALTER TABLE ONLY production_alfred.rules
    ADD CONSTRAINT rules_mrf_key UNIQUE (mrf);


--
-- Name: rules rules_pkey; Type: CONSTRAINT; Schema: production_alfred; Owner: postgres
--

ALTER TABLE ONLY production_alfred.rules
    ADD CONSTRAINT rules_pkey PRIMARY KEY (num);


--
-- Name: agent_description agent_description_agent_mrf_version_key; Type: CONSTRAINT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.agent_description
    ADD CONSTRAINT agent_description_agent_mrf_version_key UNIQUE (agent_mrf, version);


--
-- Name: agent_description agent_description_mrf_key; Type: CONSTRAINT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.agent_description
    ADD CONSTRAINT agent_description_mrf_key UNIQUE (mrf);


--
-- Name: agent_description agent_description_pkey; Type: CONSTRAINT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.agent_description
    ADD CONSTRAINT agent_description_pkey PRIMARY KEY (num);


--
-- Name: dataset dataset_mrf_key; Type: CONSTRAINT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.dataset
    ADD CONSTRAINT dataset_mrf_key UNIQUE (mrf);


--
-- Name: dataset dataset_pkey; Type: CONSTRAINT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.dataset
    ADD CONSTRAINT dataset_pkey PRIMARY KEY (num);


--
-- Name: library_agent library_agent_pkey; Type: CONSTRAINT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.library_agent
    ADD CONSTRAINT library_agent_pkey PRIMARY KEY (num);


--
-- Name: library_model library_model_pkey; Type: CONSTRAINT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.library_model
    ADD CONSTRAINT library_model_pkey PRIMARY KEY (num);


--
-- Name: library_setup_agent library_setup_agent_mrf_library_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.library_setup_agent
    ADD CONSTRAINT library_setup_agent_mrf_library_mrf_child_key UNIQUE (mrf_library, mrf_child);


--
-- Name: library_setup_agent library_setup_agent_pkey; Type: CONSTRAINT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.library_setup_agent
    ADD CONSTRAINT library_setup_agent_pkey PRIMARY KEY (num);


--
-- Name: library_setup_model library_setup_model_mrf_library_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.library_setup_model
    ADD CONSTRAINT library_setup_model_mrf_library_mrf_child_key UNIQUE (mrf_library, mrf_child);


--
-- Name: library_setup_model library_setup_model_pkey; Type: CONSTRAINT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.library_setup_model
    ADD CONSTRAINT library_setup_model_pkey PRIMARY KEY (num);


--
-- Name: model model_mrf_key; Type: CONSTRAINT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.model
    ADD CONSTRAINT model_mrf_key UNIQUE (mrf);


--
-- Name: model model_pkey; Type: CONSTRAINT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.model
    ADD CONSTRAINT model_pkey PRIMARY KEY (num);


--
-- Name: model_usage model_usage_pkey; Type: CONSTRAINT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.model_usage
    ADD CONSTRAINT model_usage_pkey PRIMARY KEY (num);


--
-- Name: provider provider_mrf_key; Type: CONSTRAINT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.provider
    ADD CONSTRAINT provider_mrf_key UNIQUE (mrf);


--
-- Name: provider provider_pkey; Type: CONSTRAINT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.provider
    ADD CONSTRAINT provider_pkey PRIMARY KEY (num);


--
-- Name: setup setup_mrf_key; Type: CONSTRAINT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.setup
    ADD CONSTRAINT setup_mrf_key UNIQUE (mrf);


--
-- Name: setup setup_pkey; Type: CONSTRAINT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.setup
    ADD CONSTRAINT setup_pkey PRIMARY KEY (num);


--
-- Name: setup setup_ref_key; Type: CONSTRAINT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.setup
    ADD CONSTRAINT setup_ref_key UNIQUE (ref);


--
-- Name: actions actions_mrf_key; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.actions
    ADD CONSTRAINT actions_mrf_key UNIQUE (mrf);


--
-- Name: actions actions_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.actions
    ADD CONSTRAINT actions_pkey PRIMARY KEY (num);


--
-- Name: curated_context curated_context_mrf_key; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.curated_context
    ADD CONSTRAINT curated_context_mrf_key UNIQUE (mrf);


--
-- Name: curated_context curated_context_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.curated_context
    ADD CONSTRAINT curated_context_pkey PRIMARY KEY (num);


--
-- Name: embeddings embeddings_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.embeddings
    ADD CONSTRAINT embeddings_pkey PRIMARY KEY (num);


--
-- Name: enrichment enrichment_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.enrichment
    ADD CONSTRAINT enrichment_pkey PRIMARY KEY (num);


--
-- Name: enrichment enrichment_session_mrf_key; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.enrichment
    ADD CONSTRAINT enrichment_session_mrf_key UNIQUE (session_mrf);


--
-- Name: extracted extracted_mrf_key; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.extracted
    ADD CONSTRAINT extracted_mrf_key UNIQUE (mrf);


--
-- Name: extracted extracted_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.extracted
    ADD CONSTRAINT extracted_pkey PRIMARY KEY (num);


--
-- Name: graph_actions graph_actions_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.graph_actions
    ADD CONSTRAINT graph_actions_pkey PRIMARY KEY (num);


--
-- Name: graph_curated_context graph_curated_context_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.graph_curated_context
    ADD CONSTRAINT graph_curated_context_pkey PRIMARY KEY (num);


--
-- Name: graph_embeddings graph_embeddings_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.graph_embeddings
    ADD CONSTRAINT graph_embeddings_pkey PRIMARY KEY (num);


--
-- Name: graph_enrichment graph_enrichment_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.graph_enrichment
    ADD CONSTRAINT graph_enrichment_pkey PRIMARY KEY (num);


--
-- Name: graph_extracted graph_extracted_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.graph_extracted
    ADD CONSTRAINT graph_extracted_pkey PRIMARY KEY (num);


--
-- Name: graph_threads graph_threads_mrf_a_mrf_b_edge_type_key; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: tzzr
--

ALTER TABLE ONLY tzzr_chat_ai.graph_threads
    ADD CONSTRAINT graph_threads_mrf_a_mrf_b_edge_type_key UNIQUE (mrf_a, mrf_b, edge_type);


--
-- Name: graph_threads graph_threads_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: tzzr
--

ALTER TABLE ONLY tzzr_chat_ai.graph_threads
    ADD CONSTRAINT graph_threads_pkey PRIMARY KEY (num);


--
-- Name: graph_workspace graph_workspace_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.graph_workspace
    ADD CONSTRAINT graph_workspace_pkey PRIMARY KEY (num);


--
-- Name: library_actions library_actions_mrf_library_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.library_actions
    ADD CONSTRAINT library_actions_mrf_library_mrf_child_key UNIQUE (mrf_library, mrf_child);


--
-- Name: library_actions library_actions_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.library_actions
    ADD CONSTRAINT library_actions_pkey PRIMARY KEY (num);


--
-- Name: library_curated_context library_curated_context_mrf_library_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.library_curated_context
    ADD CONSTRAINT library_curated_context_mrf_library_mrf_child_key UNIQUE (mrf_library, mrf_child);


--
-- Name: library_curated_context library_curated_context_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.library_curated_context
    ADD CONSTRAINT library_curated_context_pkey PRIMARY KEY (num);


--
-- Name: library_embeddings library_embeddings_mrf_library_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.library_embeddings
    ADD CONSTRAINT library_embeddings_mrf_library_mrf_child_key UNIQUE (mrf_library, mrf_child);


--
-- Name: library_embeddings library_embeddings_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.library_embeddings
    ADD CONSTRAINT library_embeddings_pkey PRIMARY KEY (num);


--
-- Name: library_enrichment library_enrichment_mrf_library_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.library_enrichment
    ADD CONSTRAINT library_enrichment_mrf_library_mrf_child_key UNIQUE (mrf_library, mrf_child);


--
-- Name: library_enrichment library_enrichment_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.library_enrichment
    ADD CONSTRAINT library_enrichment_pkey PRIMARY KEY (num);


--
-- Name: library_extracted library_extracted_mrf_library_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.library_extracted
    ADD CONSTRAINT library_extracted_mrf_library_mrf_child_key UNIQUE (mrf_library, mrf_child);


--
-- Name: library_extracted library_extracted_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.library_extracted
    ADD CONSTRAINT library_extracted_pkey PRIMARY KEY (num);


--
-- Name: library_threads library_threads_mrf_library_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: tzzr
--

ALTER TABLE ONLY tzzr_chat_ai.library_threads
    ADD CONSTRAINT library_threads_mrf_library_mrf_child_key UNIQUE (mrf_library, mrf_child);


--
-- Name: library_threads library_threads_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: tzzr
--

ALTER TABLE ONLY tzzr_chat_ai.library_threads
    ADD CONSTRAINT library_threads_pkey PRIMARY KEY (num);


--
-- Name: library_workspace library_workspace_mrf_library_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.library_workspace
    ADD CONSTRAINT library_workspace_mrf_library_mrf_child_key UNIQUE (mrf_library, mrf_child);


--
-- Name: library_workspace library_workspace_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.library_workspace
    ADD CONSTRAINT library_workspace_pkey PRIMARY KEY (num);


--
-- Name: tree_actions tree_actions_mrf_parent_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.tree_actions
    ADD CONSTRAINT tree_actions_mrf_parent_mrf_child_key UNIQUE (mrf_parent, mrf_child);


--
-- Name: tree_actions tree_actions_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.tree_actions
    ADD CONSTRAINT tree_actions_pkey PRIMARY KEY (num);


--
-- Name: tree_curated_context tree_curated_context_mrf_parent_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.tree_curated_context
    ADD CONSTRAINT tree_curated_context_mrf_parent_mrf_child_key UNIQUE (mrf_parent, mrf_child);


--
-- Name: tree_curated_context tree_curated_context_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.tree_curated_context
    ADD CONSTRAINT tree_curated_context_pkey PRIMARY KEY (num);


--
-- Name: tree_embeddings tree_embeddings_mrf_parent_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.tree_embeddings
    ADD CONSTRAINT tree_embeddings_mrf_parent_mrf_child_key UNIQUE (mrf_parent, mrf_child);


--
-- Name: tree_embeddings tree_embeddings_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.tree_embeddings
    ADD CONSTRAINT tree_embeddings_pkey PRIMARY KEY (num);


--
-- Name: tree_enrichment tree_enrichment_mrf_parent_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.tree_enrichment
    ADD CONSTRAINT tree_enrichment_mrf_parent_mrf_child_key UNIQUE (mrf_parent, mrf_child);


--
-- Name: tree_enrichment tree_enrichment_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.tree_enrichment
    ADD CONSTRAINT tree_enrichment_pkey PRIMARY KEY (num);


--
-- Name: tree_extracted tree_extracted_mrf_parent_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.tree_extracted
    ADD CONSTRAINT tree_extracted_mrf_parent_mrf_child_key UNIQUE (mrf_parent, mrf_child);


--
-- Name: tree_extracted tree_extracted_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.tree_extracted
    ADD CONSTRAINT tree_extracted_pkey PRIMARY KEY (num);


--
-- Name: tree_threads tree_threads_mrf_parent_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: tzzr
--

ALTER TABLE ONLY tzzr_chat_ai.tree_threads
    ADD CONSTRAINT tree_threads_mrf_parent_mrf_child_key UNIQUE (mrf_parent, mrf_child);


--
-- Name: tree_threads tree_threads_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: tzzr
--

ALTER TABLE ONLY tzzr_chat_ai.tree_threads
    ADD CONSTRAINT tree_threads_pkey PRIMARY KEY (num);


--
-- Name: tree_workspace tree_workspace_mrf_parent_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.tree_workspace
    ADD CONSTRAINT tree_workspace_mrf_parent_mrf_child_key UNIQUE (mrf_parent, mrf_child);


--
-- Name: tree_workspace tree_workspace_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.tree_workspace
    ADD CONSTRAINT tree_workspace_pkey PRIMARY KEY (num);


--
-- Name: workspace workspace_mrf_key; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.workspace
    ADD CONSTRAINT workspace_mrf_key UNIQUE (mrf);


--
-- Name: workspace workspace_pkey; Type: CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.workspace
    ADD CONSTRAINT workspace_pkey PRIMARY KEY (num);


--
-- Name: chat chat_pkey; Type: CONSTRAINT; Schema: tzzr_communications; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications.chat
    ADD CONSTRAINT chat_pkey PRIMARY KEY (mrf);


--
-- Name: mail_attachment_links mail_attachment_links_pkey; Type: CONSTRAINT; Schema: tzzr_communications; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications.mail_attachment_links
    ADD CONSTRAINT mail_attachment_links_pkey PRIMARY KEY (mrf, hash);


--
-- Name: mail_attachments mail_attachments_pkey; Type: CONSTRAINT; Schema: tzzr_communications; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications.mail_attachments
    ADD CONSTRAINT mail_attachments_pkey PRIMARY KEY (hash);


--
-- Name: mail mail_pkey; Type: CONSTRAINT; Schema: tzzr_communications; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications.mail
    ADD CONSTRAINT mail_pkey PRIMARY KEY (mrf);


--
-- Name: draft_profile_rules draft_profile_rules_mrf_key; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.draft_profile_rules
    ADD CONSTRAINT draft_profile_rules_mrf_key UNIQUE (mrf);


--
-- Name: draft_profile_rules draft_profile_rules_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.draft_profile_rules
    ADD CONSTRAINT draft_profile_rules_pkey PRIMARY KEY (num);


--
-- Name: draft_profiles draft_profiles_mrf_key; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.draft_profiles
    ADD CONSTRAINT draft_profiles_mrf_key UNIQUE (mrf);


--
-- Name: draft_profiles draft_profiles_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.draft_profiles
    ADD CONSTRAINT draft_profiles_pkey PRIMARY KEY (num);


--
-- Name: draft_settings draft_settings_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.draft_settings
    ADD CONSTRAINT draft_settings_pkey PRIMARY KEY (key);


--
-- Name: draft_tones draft_tones_mrf_key; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.draft_tones
    ADD CONSTRAINT draft_tones_mrf_key UNIQUE (mrf);


--
-- Name: draft_tones draft_tones_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.draft_tones
    ADD CONSTRAINT draft_tones_pkey PRIMARY KEY (num);


--
-- Name: graph_actions graph_actions_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.graph_actions
    ADD CONSTRAINT graph_actions_pkey PRIMARY KEY (num);


--
-- Name: graph_drafts graph_drafts_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.graph_drafts
    ADD CONSTRAINT graph_drafts_pkey PRIMARY KEY (num);


--
-- Name: graph_embeddings graph_embeddings_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.graph_embeddings
    ADD CONSTRAINT graph_embeddings_pkey PRIMARY KEY (num);


--
-- Name: graph_enrichment graph_enrichment_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.graph_enrichment
    ADD CONSTRAINT graph_enrichment_pkey PRIMARY KEY (num);


--
-- Name: graph_extracted graph_extracted_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.graph_extracted
    ADD CONSTRAINT graph_extracted_pkey PRIMARY KEY (num);


--
-- Name: graph_source graph_source_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.graph_source
    ADD CONSTRAINT graph_source_pkey PRIMARY KEY (num);


--
-- Name: graph_workspace graph_workspace_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.graph_workspace
    ADD CONSTRAINT graph_workspace_pkey PRIMARY KEY (num);


--
-- Name: library_actions library_actions_mrf_library_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.library_actions
    ADD CONSTRAINT library_actions_mrf_library_mrf_child_key UNIQUE (mrf_library, mrf_child);


--
-- Name: library_actions library_actions_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.library_actions
    ADD CONSTRAINT library_actions_pkey PRIMARY KEY (num);


--
-- Name: library_drafts library_drafts_mrf_library_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.library_drafts
    ADD CONSTRAINT library_drafts_mrf_library_mrf_child_key UNIQUE (mrf_library, mrf_child);


--
-- Name: library_drafts library_drafts_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.library_drafts
    ADD CONSTRAINT library_drafts_pkey PRIMARY KEY (num);


--
-- Name: library_embeddings library_embeddings_mrf_library_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.library_embeddings
    ADD CONSTRAINT library_embeddings_mrf_library_mrf_child_key UNIQUE (mrf_library, mrf_child);


--
-- Name: library_embeddings library_embeddings_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.library_embeddings
    ADD CONSTRAINT library_embeddings_pkey PRIMARY KEY (num);


--
-- Name: library_enrichment library_enrichment_mrf_library_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.library_enrichment
    ADD CONSTRAINT library_enrichment_mrf_library_mrf_child_key UNIQUE (mrf_library, mrf_child);


--
-- Name: library_enrichment library_enrichment_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.library_enrichment
    ADD CONSTRAINT library_enrichment_pkey PRIMARY KEY (num);


--
-- Name: library_extracted library_extracted_mrf_library_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.library_extracted
    ADD CONSTRAINT library_extracted_mrf_library_mrf_child_key UNIQUE (mrf_library, mrf_child);


--
-- Name: library_extracted library_extracted_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.library_extracted
    ADD CONSTRAINT library_extracted_pkey PRIMARY KEY (num);


--
-- Name: library_source library_source_mrf_library_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.library_source
    ADD CONSTRAINT library_source_mrf_library_mrf_child_key UNIQUE (mrf_library, mrf_child);


--
-- Name: library_source library_source_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.library_source
    ADD CONSTRAINT library_source_pkey PRIMARY KEY (num);


--
-- Name: library_workspace library_workspace_mrf_library_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.library_workspace
    ADD CONSTRAINT library_workspace_mrf_library_mrf_child_key UNIQUE (mrf_library, mrf_child);


--
-- Name: library_workspace library_workspace_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.library_workspace
    ADD CONSTRAINT library_workspace_pkey PRIMARY KEY (num);


--
-- Name: mail_actions mail_actions_ai_mrf_key; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_actions
    ADD CONSTRAINT mail_actions_ai_mrf_key UNIQUE (mrf);


--
-- Name: mail_actions mail_actions_ai_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_actions
    ADD CONSTRAINT mail_actions_ai_pkey PRIMARY KEY (num);


--
-- Name: mail_ai_workspace mail_ai_workspace_mrf_key; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_ai_workspace
    ADD CONSTRAINT mail_ai_workspace_mrf_key UNIQUE (mrf);


--
-- Name: mail_ai_workspace mail_ai_workspace_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_ai_workspace
    ADD CONSTRAINT mail_ai_workspace_pkey PRIMARY KEY (num);


--
-- Name: mail_drafts mail_drafts_mrf_key; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_drafts
    ADD CONSTRAINT mail_drafts_mrf_key UNIQUE (mrf);


--
-- Name: mail_drafts mail_drafts_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_drafts
    ADD CONSTRAINT mail_drafts_pkey PRIMARY KEY (num);


--
-- Name: mail_embeddings mail_embeddings_mail_mrf_chunk_type_chunk_index_key; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_embeddings
    ADD CONSTRAINT mail_embeddings_mail_mrf_chunk_type_chunk_index_key UNIQUE (mail_mrf, chunk_type, chunk_index);


--
-- Name: mail_embeddings mail_embeddings_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_embeddings
    ADD CONSTRAINT mail_embeddings_pkey PRIMARY KEY (num);


--
-- Name: mail_enrichment mail_enrichment_mrf_key; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_enrichment
    ADD CONSTRAINT mail_enrichment_mrf_key UNIQUE (mrf);


--
-- Name: mail_enrichment mail_enrichment_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_enrichment
    ADD CONSTRAINT mail_enrichment_pkey PRIMARY KEY (num);


--
-- Name: mail_extracted mail_extracted_mail_mrf_key; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_extracted
    ADD CONSTRAINT mail_extracted_mail_mrf_key UNIQUE (mail_mrf);


--
-- Name: mail_extracted mail_extracted_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_extracted
    ADD CONSTRAINT mail_extracted_pkey PRIMARY KEY (num);


--
-- Name: mail_source mail_source_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_source
    ADD CONSTRAINT mail_source_pkey PRIMARY KEY (num);


--
-- Name: tree_actions tree_actions_mrf_parent_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.tree_actions
    ADD CONSTRAINT tree_actions_mrf_parent_mrf_child_key UNIQUE (mrf_parent, mrf_child);


--
-- Name: tree_actions tree_actions_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.tree_actions
    ADD CONSTRAINT tree_actions_pkey PRIMARY KEY (num);


--
-- Name: tree_drafts tree_drafts_mrf_parent_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.tree_drafts
    ADD CONSTRAINT tree_drafts_mrf_parent_mrf_child_key UNIQUE (mrf_parent, mrf_child);


--
-- Name: tree_drafts tree_drafts_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.tree_drafts
    ADD CONSTRAINT tree_drafts_pkey PRIMARY KEY (num);


--
-- Name: tree_embeddings tree_embeddings_mrf_parent_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.tree_embeddings
    ADD CONSTRAINT tree_embeddings_mrf_parent_mrf_child_key UNIQUE (mrf_parent, mrf_child);


--
-- Name: tree_embeddings tree_embeddings_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.tree_embeddings
    ADD CONSTRAINT tree_embeddings_pkey PRIMARY KEY (num);


--
-- Name: tree_enrichment tree_enrichment_mrf_parent_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.tree_enrichment
    ADD CONSTRAINT tree_enrichment_mrf_parent_mrf_child_key UNIQUE (mrf_parent, mrf_child);


--
-- Name: tree_enrichment tree_enrichment_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.tree_enrichment
    ADD CONSTRAINT tree_enrichment_pkey PRIMARY KEY (num);


--
-- Name: tree_extracted tree_extracted_mrf_parent_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.tree_extracted
    ADD CONSTRAINT tree_extracted_mrf_parent_mrf_child_key UNIQUE (mrf_parent, mrf_child);


--
-- Name: tree_extracted tree_extracted_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.tree_extracted
    ADD CONSTRAINT tree_extracted_pkey PRIMARY KEY (num);


--
-- Name: tree_source tree_source_mrf_parent_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.tree_source
    ADD CONSTRAINT tree_source_mrf_parent_mrf_child_key UNIQUE (mrf_parent, mrf_child);


--
-- Name: tree_source tree_source_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.tree_source
    ADD CONSTRAINT tree_source_pkey PRIMARY KEY (num);


--
-- Name: tree_workspace tree_workspace_mrf_parent_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.tree_workspace
    ADD CONSTRAINT tree_workspace_mrf_parent_mrf_child_key UNIQUE (mrf_parent, mrf_child);


--
-- Name: tree_workspace tree_workspace_pkey; Type: CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.tree_workspace
    ADD CONSTRAINT tree_workspace_pkey PRIMARY KEY (num);


--
-- Name: collection collection_mrf_key; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.collection
    ADD CONSTRAINT collection_mrf_key UNIQUE (mrf);


--
-- Name: collection collection_pkey; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.collection
    ADD CONSTRAINT collection_pkey PRIMARY KEY (num);


--
-- Name: domains domains_authority_key; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.domains
    ADD CONSTRAINT domains_authority_key UNIQUE (authority);


--
-- Name: domains domains_pkey; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.domains
    ADD CONSTRAINT domains_pkey PRIMARY KEY (id);


--
-- Name: folders folders_pkey; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.folders
    ADD CONSTRAINT folders_pkey PRIMARY KEY (id);


--
-- Name: graph_chat graph_chat_pkey; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.graph_chat
    ADD CONSTRAINT graph_chat_pkey PRIMARY KEY (num);


--
-- Name: graph_mail graph_mail_pkey; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.graph_mail
    ADD CONSTRAINT graph_mail_pkey PRIMARY KEY (num);


--
-- Name: inbox inbox_email_key; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.inbox
    ADD CONSTRAINT inbox_email_key UNIQUE (email);


--
-- Name: inbox inbox_pkey; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.inbox
    ADD CONSTRAINT inbox_pkey PRIMARY KEY (id);


--
-- Name: library_chat library_chat_mrf_library_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.library_chat
    ADD CONSTRAINT library_chat_mrf_library_mrf_child_key UNIQUE (mrf_library, mrf_child);


--
-- Name: library_chat library_chat_pkey; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.library_chat
    ADD CONSTRAINT library_chat_pkey PRIMARY KEY (num);


--
-- Name: library_mail library_mail_mrf_library_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.library_mail
    ADD CONSTRAINT library_mail_mrf_library_mrf_child_key UNIQUE (mrf_library, mrf_child);


--
-- Name: library_mail library_mail_pkey; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.library_mail
    ADD CONSTRAINT library_mail_pkey PRIMARY KEY (num);


--
-- Name: mail_accounts mail_accounts_email_key; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.mail_accounts
    ADD CONSTRAINT mail_accounts_email_key UNIQUE (email);


--
-- Name: mail_accounts mail_accounts_pkey; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.mail_accounts
    ADD CONSTRAINT mail_accounts_pkey PRIMARY KEY (id);


--
-- Name: mail_aliases mail_aliases_alias_key; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.mail_aliases
    ADD CONSTRAINT mail_aliases_alias_key UNIQUE (alias);


--
-- Name: mail_aliases mail_aliases_pkey; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.mail_aliases
    ADD CONSTRAINT mail_aliases_pkey PRIMARY KEY (id);


--
-- Name: mail_folder_assignment mail_folder_assignment_pkey; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.mail_folder_assignment
    ADD CONSTRAINT mail_folder_assignment_pkey PRIMARY KEY (mail_mrf, folder_id);


--
-- Name: mail_group_members mail_group_members_pkey; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.mail_group_members
    ADD CONSTRAINT mail_group_members_pkey PRIMARY KEY (id);


--
-- Name: mail_groups mail_groups_email_key; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.mail_groups
    ADD CONSTRAINT mail_groups_email_key UNIQUE (email);


--
-- Name: mail_groups mail_groups_pkey; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.mail_groups
    ADD CONSTRAINT mail_groups_pkey PRIMARY KEY (id);


--
-- Name: mail_identity mail_identity_pkey; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.mail_identity
    ADD CONSTRAINT mail_identity_pkey PRIMARY KEY (id);


--
-- Name: mail_permissions mail_permissions_account_email_key; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.mail_permissions
    ADD CONSTRAINT mail_permissions_account_email_key UNIQUE (account_email);


--
-- Name: mail_permissions mail_permissions_pkey; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.mail_permissions
    ADD CONSTRAINT mail_permissions_pkey PRIMARY KEY (id);


--
-- Name: mail_state mail_state_pkey; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.mail_state
    ADD CONSTRAINT mail_state_pkey PRIMARY KEY (mail_mrf, account);


--
-- Name: short_urls short_urls_pkey; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.short_urls
    ADD CONSTRAINT short_urls_pkey PRIMARY KEY (id);


--
-- Name: short_urls short_urls_short_code_key; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.short_urls
    ADD CONSTRAINT short_urls_short_code_key UNIQUE (short_code);


--
-- Name: tree_chat tree_chat_mrf_parent_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.tree_chat
    ADD CONSTRAINT tree_chat_mrf_parent_mrf_child_key UNIQUE (mrf_parent, mrf_child);


--
-- Name: tree_chat tree_chat_pkey; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.tree_chat
    ADD CONSTRAINT tree_chat_pkey PRIMARY KEY (num);


--
-- Name: tree_mail tree_mail_mrf_parent_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.tree_mail
    ADD CONSTRAINT tree_mail_mrf_parent_mrf_child_key UNIQUE (mrf_parent, mrf_child);


--
-- Name: tree_mail tree_mail_pkey; Type: CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.tree_mail
    ADD CONSTRAINT tree_mail_pkey PRIMARY KEY (num);


--
-- Name: ai_services ai_services_pkey; Type: CONSTRAINT; Schema: tzzr_connection; Owner: postgres
--

ALTER TABLE ONLY tzzr_connection.ai_services
    ADD CONSTRAINT ai_services_pkey PRIMARY KEY (id);


--
-- Name: ai_services ai_services_slug_key; Type: CONSTRAINT; Schema: tzzr_connection; Owner: postgres
--

ALTER TABLE ONLY tzzr_connection.ai_services
    ADD CONSTRAINT ai_services_slug_key UNIQUE (slug);


--
-- Name: bck bck_pkey; Type: CONSTRAINT; Schema: tzzr_core_administracion; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_administracion.bck
    ADD CONSTRAINT bck_pkey PRIMARY KEY (mrf);


--
-- Name: graph_bck graph_bck_pkey; Type: CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.graph_bck
    ADD CONSTRAINT graph_bck_pkey PRIMARY KEY (num);


--
-- Name: graph_bck graph_bck_unique; Type: CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.graph_bck
    ADD CONSTRAINT graph_bck_unique UNIQUE (mrf_a, mrf_b);


--
-- Name: graph_mst graph_mst_pkey; Type: CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.graph_mst
    ADD CONSTRAINT graph_mst_pkey PRIMARY KEY (num);


--
-- Name: graph_mst graph_mst_unique; Type: CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.graph_mst
    ADD CONSTRAINT graph_mst_unique UNIQUE (mrf_a, mrf_b);


--
-- Name: library_bck library_bck_pkey; Type: CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.library_bck
    ADD CONSTRAINT library_bck_pkey PRIMARY KEY (num);


--
-- Name: library_bck library_bck_unique; Type: CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.library_bck
    ADD CONSTRAINT library_bck_unique UNIQUE (mrf_library, mrf_child);


--
-- Name: library_mst library_mst_pkey; Type: CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.library_mst
    ADD CONSTRAINT library_mst_pkey PRIMARY KEY (num);


--
-- Name: library_mst library_mst_unique; Type: CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.library_mst
    ADD CONSTRAINT library_mst_unique UNIQUE (mrf_library, mrf_child);


--
-- Name: mst mst_pkey; Type: CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.mst
    ADD CONSTRAINT mst_pkey PRIMARY KEY (mrf);


--
-- Name: tree_bck tree_bck_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.tree_bck
    ADD CONSTRAINT tree_bck_mrf_child_key UNIQUE (mrf_child);


--
-- Name: tree_bck tree_bck_pkey; Type: CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.tree_bck
    ADD CONSTRAINT tree_bck_pkey PRIMARY KEY (num);


--
-- Name: tree_mst tree_mst_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.tree_mst
    ADD CONSTRAINT tree_mst_mrf_child_key UNIQUE (mrf_child);


--
-- Name: tree_mst tree_mst_pkey; Type: CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.tree_mst
    ADD CONSTRAINT tree_mst_pkey PRIMARY KEY (num);


--
-- Name: bck bck_pkey; Type: CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_contabilidad.bck
    ADD CONSTRAINT bck_pkey PRIMARY KEY (mrf);


--
-- Name: graph_bck graph_bck_pkey; Type: CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.graph_bck
    ADD CONSTRAINT graph_bck_pkey PRIMARY KEY (num);


--
-- Name: graph_bck graph_bck_unique; Type: CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.graph_bck
    ADD CONSTRAINT graph_bck_unique UNIQUE (mrf_a, mrf_b);


--
-- Name: graph_mst graph_mst_pkey; Type: CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.graph_mst
    ADD CONSTRAINT graph_mst_pkey PRIMARY KEY (num);


--
-- Name: graph_mst graph_mst_unique; Type: CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.graph_mst
    ADD CONSTRAINT graph_mst_unique UNIQUE (mrf_a, mrf_b);


--
-- Name: library_bck library_bck_pkey; Type: CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.library_bck
    ADD CONSTRAINT library_bck_pkey PRIMARY KEY (num);


--
-- Name: library_bck library_bck_unique; Type: CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.library_bck
    ADD CONSTRAINT library_bck_unique UNIQUE (mrf_library, mrf_child);


--
-- Name: library_mst library_mst_pkey; Type: CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.library_mst
    ADD CONSTRAINT library_mst_pkey PRIMARY KEY (num);


--
-- Name: library_mst library_mst_unique; Type: CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.library_mst
    ADD CONSTRAINT library_mst_unique UNIQUE (mrf_library, mrf_child);


--
-- Name: mst mst_pkey; Type: CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.mst
    ADD CONSTRAINT mst_pkey PRIMARY KEY (mrf);


--
-- Name: tree_bck tree_bck_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.tree_bck
    ADD CONSTRAINT tree_bck_mrf_child_key UNIQUE (mrf_child);


--
-- Name: tree_bck tree_bck_pkey; Type: CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.tree_bck
    ADD CONSTRAINT tree_bck_pkey PRIMARY KEY (num);


--
-- Name: tree_mst tree_mst_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.tree_mst
    ADD CONSTRAINT tree_mst_mrf_child_key UNIQUE (mrf_child);


--
-- Name: tree_mst tree_mst_pkey; Type: CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.tree_mst
    ADD CONSTRAINT tree_mst_pkey PRIMARY KEY (num);


--
-- Name: flg flg_pkey; Type: CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.flg
    ADD CONSTRAINT flg_pkey PRIMARY KEY (mrf);


--
-- Name: graph_flg graph_flg_mrf_a_mrf_b_key; Type: CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.graph_flg
    ADD CONSTRAINT graph_flg_mrf_a_mrf_b_key UNIQUE (mrf_a, mrf_b);


--
-- Name: graph_flg graph_flg_pkey; Type: CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.graph_flg
    ADD CONSTRAINT graph_flg_pkey PRIMARY KEY (num);


--
-- Name: graph_hst graph_hst_mrf_a_mrf_b_key; Type: CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.graph_hst
    ADD CONSTRAINT graph_hst_mrf_a_mrf_b_key UNIQUE (mrf_a, mrf_b);


--
-- Name: graph_hst graph_hst_pkey; Type: CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.graph_hst
    ADD CONSTRAINT graph_hst_pkey PRIMARY KEY (num);


--
-- Name: group_flg group_flg_mrf_group_mrf_member_key; Type: CONSTRAINT; Schema: tzzr_core_hst; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_hst.group_flg
    ADD CONSTRAINT group_flg_mrf_group_mrf_member_key UNIQUE (mrf_group, mrf_member);


--
-- Name: group_flg group_flg_pkey; Type: CONSTRAINT; Schema: tzzr_core_hst; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_hst.group_flg
    ADD CONSTRAINT group_flg_pkey PRIMARY KEY (num);


--
-- Name: group_hst group_hst_mrf_group_mrf_member_key; Type: CONSTRAINT; Schema: tzzr_core_hst; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_hst.group_hst
    ADD CONSTRAINT group_hst_mrf_group_mrf_member_key UNIQUE (mrf_group, mrf_member);


--
-- Name: group_hst group_hst_pkey; Type: CONSTRAINT; Schema: tzzr_core_hst; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_hst.group_hst
    ADD CONSTRAINT group_hst_pkey PRIMARY KEY (num);


--
-- Name: hst hst_pkey; Type: CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.hst
    ADD CONSTRAINT hst_pkey PRIMARY KEY (mrf);


--
-- Name: hst_rules hst_rules_pkey; Type: CONSTRAINT; Schema: tzzr_core_hst; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_hst.hst_rules
    ADD CONSTRAINT hst_rules_pkey PRIMARY KEY (tabla);


--
-- Name: library_flg library_flg_mrf_library_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.library_flg
    ADD CONSTRAINT library_flg_mrf_library_mrf_child_key UNIQUE (mrf_library, mrf_child);


--
-- Name: library_flg library_flg_pkey; Type: CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.library_flg
    ADD CONSTRAINT library_flg_pkey PRIMARY KEY (num);


--
-- Name: library_hst library_hst_mrf_library_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.library_hst
    ADD CONSTRAINT library_hst_mrf_library_mrf_child_key UNIQUE (mrf_library, mrf_child);


--
-- Name: library_hst library_hst_pkey; Type: CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.library_hst
    ADD CONSTRAINT library_hst_pkey PRIMARY KEY (num);


--
-- Name: tree_flg tree_flg_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.tree_flg
    ADD CONSTRAINT tree_flg_mrf_child_key UNIQUE (mrf_child);


--
-- Name: tree_flg tree_flg_pkey; Type: CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.tree_flg
    ADD CONSTRAINT tree_flg_pkey PRIMARY KEY (num);


--
-- Name: tree_hst tree_hst_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.tree_hst
    ADD CONSTRAINT tree_hst_mrf_child_key UNIQUE (mrf_child);


--
-- Name: tree_hst tree_hst_pkey; Type: CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.tree_hst
    ADD CONSTRAINT tree_hst_pkey PRIMARY KEY (num);


--
-- Name: graph_itm graph_itm_mrf_a_mrf_b_key; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.graph_itm
    ADD CONSTRAINT graph_itm_mrf_a_mrf_b_key UNIQUE (mrf_a, mrf_b);


--
-- Name: graph_itm graph_itm_pkey; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.graph_itm
    ADD CONSTRAINT graph_itm_pkey PRIMARY KEY (num);


--
-- Name: graph_loc graph_loc_mrf_a_mrf_b_key; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.graph_loc
    ADD CONSTRAINT graph_loc_mrf_a_mrf_b_key UNIQUE (mrf_a, mrf_b);


--
-- Name: graph_loc graph_loc_pkey; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.graph_loc
    ADD CONSTRAINT graph_loc_pkey PRIMARY KEY (num);


--
-- Name: graph_ply graph_ply_mrf_a_mrf_b_key; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.graph_ply
    ADD CONSTRAINT graph_ply_mrf_a_mrf_b_key UNIQUE (mrf_a, mrf_b);


--
-- Name: graph_ply graph_ply_pkey; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.graph_ply
    ADD CONSTRAINT graph_ply_pkey PRIMARY KEY (num);


--
-- Name: group_itm group_itm_mrf_group_mrf_member_key; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_itm_base.group_itm
    ADD CONSTRAINT group_itm_mrf_group_mrf_member_key UNIQUE (mrf_group, mrf_member);


--
-- Name: group_itm group_itm_pkey; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_itm_base.group_itm
    ADD CONSTRAINT group_itm_pkey PRIMARY KEY (num);


--
-- Name: group_loc group_loc_mrf_group_mrf_member_key; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_itm_base.group_loc
    ADD CONSTRAINT group_loc_mrf_group_mrf_member_key UNIQUE (mrf_group, mrf_member);


--
-- Name: group_loc group_loc_pkey; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_itm_base.group_loc
    ADD CONSTRAINT group_loc_pkey PRIMARY KEY (num);


--
-- Name: group_ply group_ply_mrf_group_mrf_member_key; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_itm_base.group_ply
    ADD CONSTRAINT group_ply_mrf_group_mrf_member_key UNIQUE (mrf_group, mrf_member);


--
-- Name: group_ply group_ply_pkey; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_itm_base.group_ply
    ADD CONSTRAINT group_ply_pkey PRIMARY KEY (num);


--
-- Name: itm itm_pkey; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.itm
    ADD CONSTRAINT itm_pkey PRIMARY KEY (mrf);


--
-- Name: library_itm library_itm_mrf_library_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.library_itm
    ADD CONSTRAINT library_itm_mrf_library_mrf_child_key UNIQUE (mrf_library, mrf_child);


--
-- Name: library_itm library_itm_pkey; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.library_itm
    ADD CONSTRAINT library_itm_pkey PRIMARY KEY (num);


--
-- Name: library_loc library_loc_mrf_library_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.library_loc
    ADD CONSTRAINT library_loc_mrf_library_mrf_child_key UNIQUE (mrf_library, mrf_child);


--
-- Name: library_loc library_loc_pkey; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.library_loc
    ADD CONSTRAINT library_loc_pkey PRIMARY KEY (num);


--
-- Name: library_ply library_ply_mrf_library_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.library_ply
    ADD CONSTRAINT library_ply_mrf_library_mrf_child_key UNIQUE (mrf_library, mrf_child);


--
-- Name: library_ply library_ply_pkey; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.library_ply
    ADD CONSTRAINT library_ply_pkey PRIMARY KEY (num);


--
-- Name: loc loc_pkey; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.loc
    ADD CONSTRAINT loc_pkey PRIMARY KEY (mrf);


--
-- Name: ply_agent_llm_map ply_agent_llm_map_pkey; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_itm_base.ply_agent_llm_map
    ADD CONSTRAINT ply_agent_llm_map_pkey PRIMARY KEY (num);


--
-- Name: ply_agent_llm_map ply_agent_llm_map_ply_mrf_agent_llm_mrf_key; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_itm_base.ply_agent_llm_map
    ADD CONSTRAINT ply_agent_llm_map_ply_mrf_agent_llm_mrf_key UNIQUE (ply_mrf, agent_llm_mrf);


--
-- Name: ply ply_pkey; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.ply
    ADD CONSTRAINT ply_pkey PRIMARY KEY (mrf);


--
-- Name: tree_itm tree_itm_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.tree_itm
    ADD CONSTRAINT tree_itm_mrf_child_key UNIQUE (mrf_child);


--
-- Name: tree_itm tree_itm_pkey; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.tree_itm
    ADD CONSTRAINT tree_itm_pkey PRIMARY KEY (num);


--
-- Name: tree_loc tree_loc_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.tree_loc
    ADD CONSTRAINT tree_loc_mrf_child_key UNIQUE (mrf_child);


--
-- Name: tree_loc tree_loc_pkey; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.tree_loc
    ADD CONSTRAINT tree_loc_pkey PRIMARY KEY (num);


--
-- Name: tree_ply tree_ply_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.tree_ply
    ADD CONSTRAINT tree_ply_mrf_child_key UNIQUE (mrf_child);


--
-- Name: tree_ply tree_ply_pkey; Type: CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.tree_ply
    ADD CONSTRAINT tree_ply_pkey PRIMARY KEY (num);


--
-- Name: graph_bck graph_bck_pkey; Type: CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.graph_bck
    ADD CONSTRAINT graph_bck_pkey PRIMARY KEY (num);


--
-- Name: graph_bck graph_bck_unique; Type: CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.graph_bck
    ADD CONSTRAINT graph_bck_unique UNIQUE (mrf_a, mrf_b);


--
-- Name: graph_mst graph_mst_pkey; Type: CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.graph_mst
    ADD CONSTRAINT graph_mst_pkey PRIMARY KEY (num);


--
-- Name: graph_mst graph_mst_unique; Type: CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.graph_mst
    ADD CONSTRAINT graph_mst_unique UNIQUE (mrf_a, mrf_b);


--
-- Name: library_bck library_bck_pkey; Type: CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.library_bck
    ADD CONSTRAINT library_bck_pkey PRIMARY KEY (num);


--
-- Name: library_bck library_bck_unique; Type: CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.library_bck
    ADD CONSTRAINT library_bck_unique UNIQUE (mrf_library, mrf_child);


--
-- Name: library_mst library_mst_pkey; Type: CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.library_mst
    ADD CONSTRAINT library_mst_pkey PRIMARY KEY (num);


--
-- Name: library_mst library_mst_unique; Type: CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.library_mst
    ADD CONSTRAINT library_mst_unique UNIQUE (mrf_library, mrf_child);


--
-- Name: mst mst_pkey; Type: CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.mst
    ADD CONSTRAINT mst_pkey PRIMARY KEY (num);


--
-- Name: tree_bck tree_bck_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.tree_bck
    ADD CONSTRAINT tree_bck_mrf_child_key UNIQUE (mrf_child);


--
-- Name: tree_bck tree_bck_pkey; Type: CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.tree_bck
    ADD CONSTRAINT tree_bck_pkey PRIMARY KEY (num);


--
-- Name: tree_mst tree_mst_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.tree_mst
    ADD CONSTRAINT tree_mst_mrf_child_key UNIQUE (mrf_child);


--
-- Name: tree_mst tree_mst_pkey; Type: CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.tree_mst
    ADD CONSTRAINT tree_mst_pkey PRIMARY KEY (num);


--
-- Name: mst uq_oracle_mst_mrf; Type: CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.mst
    ADD CONSTRAINT uq_oracle_mst_mrf UNIQUE (mrf);


--
-- Name: graph_mth graph_mth_pkey; Type: CONSTRAINT; Schema: tzzr_core_produccion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_produccion.graph_mth
    ADD CONSTRAINT graph_mth_pkey PRIMARY KEY (num);


--
-- Name: graph_mth graph_mth_unique; Type: CONSTRAINT; Schema: tzzr_core_produccion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_produccion.graph_mth
    ADD CONSTRAINT graph_mth_unique UNIQUE (mrf_a, mrf_b);


--
-- Name: library_mth library_mth_pkey; Type: CONSTRAINT; Schema: tzzr_core_produccion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_produccion.library_mth
    ADD CONSTRAINT library_mth_pkey PRIMARY KEY (num);


--
-- Name: library_mth library_mth_unique; Type: CONSTRAINT; Schema: tzzr_core_produccion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_produccion.library_mth
    ADD CONSTRAINT library_mth_unique UNIQUE (mrf_library, mrf_child);


--
-- Name: mth mth_pkey; Type: CONSTRAINT; Schema: tzzr_core_produccion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_produccion.mth
    ADD CONSTRAINT mth_pkey PRIMARY KEY (mrf);


--
-- Name: tree_mth tree_mth_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_core_produccion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_produccion.tree_mth
    ADD CONSTRAINT tree_mth_mrf_child_key UNIQUE (mrf_child);


--
-- Name: tree_mth tree_mth_pkey; Type: CONSTRAINT; Schema: tzzr_core_produccion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_produccion.tree_mth
    ADD CONSTRAINT tree_mth_pkey PRIMARY KEY (num);


--
-- Name: bck bck_pkey; Type: CONSTRAINT; Schema: tzzr_core_secretaria; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_secretaria.bck
    ADD CONSTRAINT bck_pkey PRIMARY KEY (mrf);


--
-- Name: graph_bck graph_bck_pkey; Type: CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.graph_bck
    ADD CONSTRAINT graph_bck_pkey PRIMARY KEY (num);


--
-- Name: graph_bck graph_bck_unique; Type: CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.graph_bck
    ADD CONSTRAINT graph_bck_unique UNIQUE (mrf_a, mrf_b);


--
-- Name: graph_mst graph_mst_pkey; Type: CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.graph_mst
    ADD CONSTRAINT graph_mst_pkey PRIMARY KEY (num);


--
-- Name: graph_mst graph_mst_unique; Type: CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.graph_mst
    ADD CONSTRAINT graph_mst_unique UNIQUE (mrf_a, mrf_b);


--
-- Name: library_bck library_bck_pkey; Type: CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.library_bck
    ADD CONSTRAINT library_bck_pkey PRIMARY KEY (num);


--
-- Name: library_bck library_bck_unique; Type: CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.library_bck
    ADD CONSTRAINT library_bck_unique UNIQUE (mrf_library, mrf_child);


--
-- Name: library_mst library_mst_pkey; Type: CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.library_mst
    ADD CONSTRAINT library_mst_pkey PRIMARY KEY (num);


--
-- Name: library_mst library_mst_unique; Type: CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.library_mst
    ADD CONSTRAINT library_mst_unique UNIQUE (mrf_library, mrf_child);


--
-- Name: mst mst_pkey; Type: CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.mst
    ADD CONSTRAINT mst_pkey PRIMARY KEY (mrf);


--
-- Name: tree_bck tree_bck_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.tree_bck
    ADD CONSTRAINT tree_bck_mrf_child_key UNIQUE (mrf_child);


--
-- Name: tree_bck tree_bck_pkey; Type: CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.tree_bck
    ADD CONSTRAINT tree_bck_pkey PRIMARY KEY (num);


--
-- Name: tree_mst tree_mst_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.tree_mst
    ADD CONSTRAINT tree_mst_mrf_child_key UNIQUE (mrf_child);


--
-- Name: tree_mst tree_mst_pkey; Type: CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.tree_mst
    ADD CONSTRAINT tree_mst_pkey PRIMARY KEY (num);


--
-- Name: agent_llm agent_llm_mrf_key; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.agent_llm
    ADD CONSTRAINT agent_llm_mrf_key UNIQUE (mrf);


--
-- Name: agent_llm agent_llm_pkey; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.agent_llm
    ADD CONSTRAINT agent_llm_pkey PRIMARY KEY (num);


--
-- Name: flow_edge edge_unique_pair; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: postgres
--

ALTER TABLE ONLY tzzr_iachat.flow_edge
    ADD CONSTRAINT edge_unique_pair UNIQUE (flow_mrf, source_step_mrf, target_step_mrf);


--
-- Name: flow_edge flow_edge_mrf_key; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: postgres
--

ALTER TABLE ONLY tzzr_iachat.flow_edge
    ADD CONSTRAINT flow_edge_mrf_key UNIQUE (mrf);


--
-- Name: flow_edge flow_edge_pkey; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: postgres
--

ALTER TABLE ONLY tzzr_iachat.flow_edge
    ADD CONSTRAINT flow_edge_pkey PRIMARY KEY (num);


--
-- Name: flow_execution flow_execution_mrf_key; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.flow_execution
    ADD CONSTRAINT flow_execution_mrf_key UNIQUE (mrf);


--
-- Name: flow_execution flow_execution_pkey; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.flow_execution
    ADD CONSTRAINT flow_execution_pkey PRIMARY KEY (num);


--
-- Name: flow flow_mrf_key; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.flow
    ADD CONSTRAINT flow_mrf_key UNIQUE (mrf);


--
-- Name: flow flow_pkey; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.flow
    ADD CONSTRAINT flow_pkey PRIMARY KEY (num);


--
-- Name: flow_step_execution flow_step_execution_mrf_key; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.flow_step_execution
    ADD CONSTRAINT flow_step_execution_mrf_key UNIQUE (mrf);


--
-- Name: flow_step_execution flow_step_execution_pkey; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.flow_step_execution
    ADD CONSTRAINT flow_step_execution_pkey PRIMARY KEY (num);


--
-- Name: flow_step flow_step_mrf_key; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.flow_step
    ADD CONSTRAINT flow_step_mrf_key UNIQUE (mrf);


--
-- Name: flow_step flow_step_pkey; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.flow_step
    ADD CONSTRAINT flow_step_pkey PRIMARY KEY (num);


--
-- Name: message message_mrf_key; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.message
    ADD CONSTRAINT message_mrf_key UNIQUE (mrf);


--
-- Name: message message_pkey; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.message
    ADD CONSTRAINT message_pkey PRIMARY KEY (num);


--
-- Name: project_agent_llm project_agent_llm_pkey; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.project_agent_llm
    ADD CONSTRAINT project_agent_llm_pkey PRIMARY KEY (project_mrf, agent_llm_mrf);


--
-- Name: project project_mrf_key; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.project
    ADD CONSTRAINT project_mrf_key UNIQUE (mrf);


--
-- Name: project project_pkey; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.project
    ADD CONSTRAINT project_pkey PRIMARY KEY (num);


--
-- Name: session_dataset session_dataset_pkey; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.session_dataset
    ADD CONSTRAINT session_dataset_pkey PRIMARY KEY (num);


--
-- Name: session_dataset session_dataset_session_mrf_dataset_mrf_key; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.session_dataset
    ADD CONSTRAINT session_dataset_session_mrf_dataset_mrf_key UNIQUE (session_mrf, dataset_mrf);


--
-- Name: session session_mrf_key; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.session
    ADD CONSTRAINT session_mrf_key UNIQUE (mrf);


--
-- Name: session session_pkey; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.session
    ADD CONSTRAINT session_pkey PRIMARY KEY (num);


--
-- Name: tag_strip tag_strip_pkey; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.tag_strip
    ADD CONSTRAINT tag_strip_pkey PRIMARY KEY (session_mrf, hst_mrf);


--
-- Name: terminal_whitelist terminal_whitelist_mrf_key; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.terminal_whitelist
    ADD CONSTRAINT terminal_whitelist_mrf_key UNIQUE (mrf);


--
-- Name: terminal_whitelist terminal_whitelist_pkey; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.terminal_whitelist
    ADD CONSTRAINT terminal_whitelist_pkey PRIMARY KEY (num);


--
-- Name: threads threads_mrf_key; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.threads
    ADD CONSTRAINT threads_mrf_key UNIQUE (mrf);


--
-- Name: threads threads_pkey; Type: CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.threads
    ADD CONSTRAINT threads_pkey PRIMARY KEY (num);


--
-- Name: attachment attachment_pkey; Type: CONSTRAINT; Schema: tzzr_list; Owner: tzzr
--

ALTER TABLE ONLY tzzr_list.attachment
    ADD CONSTRAINT attachment_pkey PRIMARY KEY (id);


--
-- Name: item item_pkey; Type: CONSTRAINT; Schema: tzzr_list; Owner: tzzr
--

ALTER TABLE ONLY tzzr_list.item
    ADD CONSTRAINT item_pkey PRIMARY KEY (id);


--
-- Name: list list_pkey; Type: CONSTRAINT; Schema: tzzr_list; Owner: tzzr
--

ALTER TABLE ONLY tzzr_list.list
    ADD CONSTRAINT list_pkey PRIMARY KEY (id);


--
-- Name: atc atc_pkey; Type: CONSTRAINT; Schema: tzzr_storage; Owner: postgres
--

ALTER TABLE ONLY tzzr_storage.atc
    ADD CONSTRAINT atc_pkey PRIMARY KEY (mrf);


--
-- Name: atc_status atc_status_pkey; Type: CONSTRAINT; Schema: tzzr_storage; Owner: tzzr
--

ALTER TABLE ONLY tzzr_storage.atc_status
    ADD CONSTRAINT atc_status_pkey PRIMARY KEY (mrf);


--
-- Name: bucket_access_log bucket_access_log_pkey; Type: CONSTRAINT; Schema: tzzr_storage; Owner: postgres
--

ALTER TABLE ONLY tzzr_storage.bucket_access_log
    ADD CONSTRAINT bucket_access_log_pkey PRIMARY KEY (id);


--
-- Name: buckets buckets_name_key; Type: CONSTRAINT; Schema: tzzr_storage; Owner: tzzr
--

ALTER TABLE ONLY tzzr_storage.buckets
    ADD CONSTRAINT buckets_name_key UNIQUE (name);


--
-- Name: buckets buckets_pkey; Type: CONSTRAINT; Schema: tzzr_storage; Owner: tzzr
--

ALTER TABLE ONLY tzzr_storage.buckets
    ADD CONSTRAINT buckets_pkey PRIMARY KEY (bucket_mrf);


--
-- Name: graph_atc graph_atc_pkey; Type: CONSTRAINT; Schema: tzzr_storage; Owner: postgres
--

ALTER TABLE ONLY tzzr_storage.graph_atc
    ADD CONSTRAINT graph_atc_pkey PRIMARY KEY (num);


--
-- Name: graph_atc graph_atc_unique; Type: CONSTRAINT; Schema: tzzr_storage; Owner: postgres
--

ALTER TABLE ONLY tzzr_storage.graph_atc
    ADD CONSTRAINT graph_atc_unique UNIQUE (mrf_a, mrf_b);


--
-- Name: library_atc library_atc_pkey; Type: CONSTRAINT; Schema: tzzr_storage; Owner: postgres
--

ALTER TABLE ONLY tzzr_storage.library_atc
    ADD CONSTRAINT library_atc_pkey PRIMARY KEY (num);


--
-- Name: library_atc library_atc_unique; Type: CONSTRAINT; Schema: tzzr_storage; Owner: postgres
--

ALTER TABLE ONLY tzzr_storage.library_atc
    ADD CONSTRAINT library_atc_unique UNIQUE (mrf_library, mrf_child);


--
-- Name: tree_atc tree_atc_mrf_child_key; Type: CONSTRAINT; Schema: tzzr_storage; Owner: postgres
--

ALTER TABLE ONLY tzzr_storage.tree_atc
    ADD CONSTRAINT tree_atc_mrf_child_key UNIQUE (mrf_child);


--
-- Name: tree_atc tree_atc_pkey; Type: CONSTRAINT; Schema: tzzr_storage; Owner: postgres
--

ALTER TABLE ONLY tzzr_storage.tree_atc
    ADD CONSTRAINT tree_atc_pkey PRIMARY KEY (num);


--
-- Name: endpoints endpoints_pkey; Type: CONSTRAINT; Schema: tzzr_system; Owner: postgres
--

ALTER TABLE ONLY tzzr_system.endpoints
    ADD CONSTRAINT endpoints_pkey PRIMARY KEY (endpoint);


--
-- Name: keys keys_pkey; Type: CONSTRAINT; Schema: tzzr_system; Owner: postgres
--

ALTER TABLE ONLY tzzr_system.keys
    ADD CONSTRAINT keys_pkey PRIMARY KEY (id);


--
-- Name: keys keys_service_key; Type: CONSTRAINT; Schema: tzzr_system; Owner: postgres
--

ALTER TABLE ONLY tzzr_system.keys
    ADD CONSTRAINT keys_service_key UNIQUE (service);


--
-- Name: user_keys user_keys_name_key; Type: CONSTRAINT; Schema: tzzr_system; Owner: tzzr
--

ALTER TABLE ONLY tzzr_system.user_keys
    ADD CONSTRAINT user_keys_name_key UNIQUE (name);


--
-- Name: user_keys user_keys_pkey; Type: CONSTRAINT; Schema: tzzr_system; Owner: tzzr
--

ALTER TABLE ONLY tzzr_system.user_keys
    ADD CONSTRAINT user_keys_pkey PRIMARY KEY (id);


--
-- Name: user_notes user_notes_pkey; Type: CONSTRAINT; Schema: tzzr_system; Owner: tzzr
--

ALTER TABLE ONLY tzzr_system.user_notes
    ADD CONSTRAINT user_notes_pkey PRIMARY KEY (id);


--
-- Name: gate_key gate_key_pkey; Type: CONSTRAINT; Schema: usr; Owner: postgres
--

ALTER TABLE ONLY usr.gate_key
    ADD CONSTRAINT gate_key_pkey PRIMARY KEY (id);


--
-- Name: gate_session gate_session_pkey; Type: CONSTRAINT; Schema: usr; Owner: postgres
--

ALTER TABLE ONLY usr.gate_session
    ADD CONSTRAINT gate_session_pkey PRIMARY KEY (session_id);


--
-- Name: gate_user gate_user_mrf_key; Type: CONSTRAINT; Schema: usr; Owner: postgres
--

ALTER TABLE ONLY usr.gate_user
    ADD CONSTRAINT gate_user_mrf_key UNIQUE (mrf);


--
-- Name: gate_user gate_user_pkey; Type: CONSTRAINT; Schema: usr; Owner: postgres
--

ALTER TABLE ONLY usr.gate_user
    ADD CONSTRAINT gate_user_pkey PRIMARY KEY (id);


--
-- Name: key key_pkey; Type: CONSTRAINT; Schema: usr; Owner: postgres
--

ALTER TABLE ONLY usr.key
    ADD CONSTRAINT key_pkey PRIMARY KEY (mrf);


--
-- Name: key key_username_key; Type: CONSTRAINT; Schema: usr; Owner: postgres
--

ALTER TABLE ONLY usr.key
    ADD CONSTRAINT key_username_key UNIQUE (username);


--
-- Name: storage storage_name_key; Type: CONSTRAINT; Schema: usr; Owner: postgres
--

ALTER TABLE ONLY usr.storage
    ADD CONSTRAINT storage_name_key UNIQUE (name);


--
-- Name: storage storage_pkey; Type: CONSTRAINT; Schema: usr; Owner: postgres
--

ALTER TABLE ONLY usr.storage
    ADD CONSTRAINT storage_pkey PRIMARY KEY (mrf);


--
-- Name: idx_messages_prev; Type: INDEX; Schema: cto; Owner: tzzr
--

CREATE INDEX idx_messages_prev ON cto.messages USING btree (prev_uuid);


--
-- Name: idx_messages_sender; Type: INDEX; Schema: cto; Owner: tzzr
--

CREATE INDEX idx_messages_sender ON cto.messages USING btree (sender_uuid);


--
-- Name: idx_messages_thread; Type: INDEX; Schema: cto; Owner: tzzr
--

CREATE INDEX idx_messages_thread ON cto.messages USING btree (thread_uuid, created_at);


--
-- Name: idx_messages_type; Type: INDEX; Schema: cto; Owner: tzzr
--

CREATE INDEX idx_messages_type ON cto.messages USING btree (message_type);


--
-- Name: idx_players_type; Type: INDEX; Schema: cto; Owner: tzzr
--

CREATE INDEX idx_players_type ON cto.players USING btree (type);


--
-- Name: idx_thread_docs_added_by; Type: INDEX; Schema: cto; Owner: tzzr
--

CREATE INDEX idx_thread_docs_added_by ON cto.thread_documents USING btree (added_by);


--
-- Name: idx_thread_docs_source; Type: INDEX; Schema: cto; Owner: tzzr
--

CREATE INDEX idx_thread_docs_source ON cto.thread_documents USING btree (source);


--
-- Name: idx_thread_docs_thread; Type: INDEX; Schema: cto; Owner: tzzr
--

CREATE INDEX idx_thread_docs_thread ON cto.thread_documents USING btree (thread_uuid);


--
-- Name: idx_threads_parent; Type: INDEX; Schema: cto; Owner: tzzr
--

CREATE INDEX idx_threads_parent ON cto.threads USING btree (parent_uuid);


--
-- Name: idx_threads_server; Type: INDEX; Schema: cto; Owner: tzzr
--

CREATE INDEX idx_threads_server ON cto.threads USING btree (server_id);


--
-- Name: idx_threads_status; Type: INDEX; Schema: cto; Owner: tzzr
--

CREATE INDEX idx_threads_status ON cto.threads USING btree (status);


--
-- Name: idx_weights_target; Type: INDEX; Schema: cto; Owner: tzzr
--

CREATE INDEX idx_weights_target ON cto.context_weights USING btree (target_uuid);


--
-- Name: idx_weights_thread; Type: INDEX; Schema: cto; Owner: tzzr
--

CREATE INDEX idx_weights_thread ON cto.context_weights USING btree (thread_uuid);


--
-- Name: idx_weights_type; Type: INDEX; Schema: cto; Owner: tzzr
--

CREATE INDEX idx_weights_type ON cto.context_weights USING btree (target_type);


--
-- Name: idx_exe_mrf; Type: INDEX; Schema: production_alfred; Owner: postgres
--

CREATE INDEX idx_exe_mrf ON production_alfred.exe USING btree (mrf);


--
-- Name: idx_exe_mth; Type: INDEX; Schema: production_alfred; Owner: postgres
--

CREATE INDEX idx_exe_mth ON production_alfred.exe USING btree (mth_mrf);


--
-- Name: idx_exe_started; Type: INDEX; Schema: production_alfred; Owner: postgres
--

CREATE INDEX idx_exe_started ON production_alfred.exe USING btree (started_at);


--
-- Name: idx_exe_status; Type: INDEX; Schema: production_alfred; Owner: postgres
--

CREATE INDEX idx_exe_status ON production_alfred.exe USING btree (status);


--
-- Name: idx_exe_wm_job; Type: INDEX; Schema: production_alfred; Owner: postgres
--

CREATE INDEX idx_exe_wm_job ON production_alfred.exe USING btree (wm_job_id);


--
-- Name: idx_rule_log_executed; Type: INDEX; Schema: production_alfred; Owner: postgres
--

CREATE INDEX idx_rule_log_executed ON production_alfred.rule_log USING btree (executed_at);


--
-- Name: idx_rule_log_rule; Type: INDEX; Schema: production_alfred; Owner: postgres
--

CREATE INDEX idx_rule_log_rule ON production_alfred.rule_log USING btree (rule_mrf);


--
-- Name: idx_agent_desc_agent; Type: INDEX; Schema: tzzr_ai; Owner: postgres
--

CREATE INDEX idx_agent_desc_agent ON tzzr_ai.agent_description USING btree (agent_mrf);


--
-- Name: idx_agent_desc_etiquetas; Type: INDEX; Schema: tzzr_ai; Owner: postgres
--

CREATE INDEX idx_agent_desc_etiquetas ON tzzr_ai.agent_description USING gin (etiquetas);


--
-- Name: idx_agent_desc_one_active; Type: INDEX; Schema: tzzr_ai; Owner: postgres
--

CREATE UNIQUE INDEX idx_agent_desc_one_active ON tzzr_ai.agent_description USING btree (agent_mrf) WHERE (active = true);


--
-- Name: idx_model_enabled; Type: INDEX; Schema: tzzr_ai; Owner: postgres
--

CREATE INDEX idx_model_enabled ON tzzr_ai.model USING btree (enabled);


--
-- Name: idx_model_mrf; Type: INDEX; Schema: tzzr_ai; Owner: postgres
--

CREATE INDEX idx_model_mrf ON tzzr_ai.model USING btree (mrf);


--
-- Name: idx_model_provider; Type: INDEX; Schema: tzzr_ai; Owner: postgres
--

CREATE INDEX idx_model_provider ON tzzr_ai.model USING btree (provider_mrf);


--
-- Name: idx_model_type; Type: INDEX; Schema: tzzr_ai; Owner: postgres
--

CREATE INDEX idx_model_type ON tzzr_ai.model USING btree (type);


--
-- Name: idx_model_usage_context; Type: INDEX; Schema: tzzr_ai; Owner: postgres
--

CREATE INDEX idx_model_usage_context ON tzzr_ai.model_usage USING btree (context);


--
-- Name: idx_model_usage_created; Type: INDEX; Schema: tzzr_ai; Owner: postgres
--

CREATE INDEX idx_model_usage_created ON tzzr_ai.model_usage USING btree (created_at);


--
-- Name: idx_model_usage_model; Type: INDEX; Schema: tzzr_ai; Owner: postgres
--

CREATE INDEX idx_model_usage_model ON tzzr_ai.model_usage USING btree (model_mrf);


--
-- Name: idx_provider_active; Type: INDEX; Schema: tzzr_ai; Owner: postgres
--

CREATE INDEX idx_provider_active ON tzzr_ai.provider USING btree (is_active);


--
-- Name: idx_provider_mrf; Type: INDEX; Schema: tzzr_ai; Owner: postgres
--

CREATE INDEX idx_provider_mrf ON tzzr_ai.provider USING btree (mrf);


--
-- Name: idx_provider_service; Type: INDEX; Schema: tzzr_ai; Owner: postgres
--

CREATE INDEX idx_provider_service ON tzzr_ai.provider USING btree (service);


--
-- Name: library_agent_mrf_library_mrf_child_idx; Type: INDEX; Schema: tzzr_ai; Owner: postgres
--

CREATE UNIQUE INDEX library_agent_mrf_library_mrf_child_idx ON tzzr_ai.library_agent USING btree (mrf_library, mrf_child);


--
-- Name: library_model_mrf_library_mrf_child_idx; Type: INDEX; Schema: tzzr_ai; Owner: postgres
--

CREATE UNIQUE INDEX library_model_mrf_library_mrf_child_idx ON tzzr_ai.library_model USING btree (mrf_library, mrf_child);


--
-- Name: idx_chat_ai_actions_etiquetas; Type: INDEX; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE INDEX idx_chat_ai_actions_etiquetas ON tzzr_chat_ai.actions USING gin (etiquetas);


--
-- Name: idx_chat_ai_actions_session; Type: INDEX; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE INDEX idx_chat_ai_actions_session ON tzzr_chat_ai.actions USING btree (session_mrf);


--
-- Name: idx_chat_ai_actions_set_hst; Type: INDEX; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE INDEX idx_chat_ai_actions_set_hst ON tzzr_chat_ai.actions USING btree (set_hst);


--
-- Name: idx_chat_ai_actions_status; Type: INDEX; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE INDEX idx_chat_ai_actions_status ON tzzr_chat_ai.actions USING btree (status);


--
-- Name: idx_chat_ai_curated_context_etiquetas; Type: INDEX; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE INDEX idx_chat_ai_curated_context_etiquetas ON tzzr_chat_ai.curated_context USING gin (etiquetas);


--
-- Name: idx_chat_ai_curated_context_mrf; Type: INDEX; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE INDEX idx_chat_ai_curated_context_mrf ON tzzr_chat_ai.curated_context USING btree (mrf);


--
-- Name: idx_chat_ai_curated_context_set_hst; Type: INDEX; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE INDEX idx_chat_ai_curated_context_set_hst ON tzzr_chat_ai.curated_context USING btree (set_hst);


--
-- Name: idx_chat_ai_curated_context_tags; Type: INDEX; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE INDEX idx_chat_ai_curated_context_tags ON tzzr_chat_ai.curated_context USING gin (tags);


--
-- Name: idx_chat_ai_embeddings_session; Type: INDEX; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE INDEX idx_chat_ai_embeddings_session ON tzzr_chat_ai.embeddings USING btree (session_mrf);


--
-- Name: idx_chat_ai_embeddings_set_hst; Type: INDEX; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE INDEX idx_chat_ai_embeddings_set_hst ON tzzr_chat_ai.embeddings USING btree (set_hst);


--
-- Name: idx_chat_ai_enrichment_etiquetas; Type: INDEX; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE INDEX idx_chat_ai_enrichment_etiquetas ON tzzr_chat_ai.enrichment USING gin (etiquetas);


--
-- Name: idx_chat_ai_enrichment_sentiment; Type: INDEX; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE INDEX idx_chat_ai_enrichment_sentiment ON tzzr_chat_ai.enrichment USING btree (sentiment);


--
-- Name: idx_chat_ai_enrichment_session; Type: INDEX; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE INDEX idx_chat_ai_enrichment_session ON tzzr_chat_ai.enrichment USING btree (session_mrf);


--
-- Name: idx_chat_ai_enrichment_set_hst; Type: INDEX; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE INDEX idx_chat_ai_enrichment_set_hst ON tzzr_chat_ai.enrichment USING btree (set_hst);


--
-- Name: idx_chat_ai_extracted_etiquetas; Type: INDEX; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE INDEX idx_chat_ai_extracted_etiquetas ON tzzr_chat_ai.extracted USING gin (etiquetas);


--
-- Name: idx_chat_ai_extracted_session; Type: INDEX; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE INDEX idx_chat_ai_extracted_session ON tzzr_chat_ai.extracted USING btree (session_mrf);


--
-- Name: idx_chat_ai_extracted_set_hst; Type: INDEX; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE INDEX idx_chat_ai_extracted_set_hst ON tzzr_chat_ai.extracted USING btree (set_hst);


--
-- Name: idx_chat_ai_extracted_type; Type: INDEX; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE INDEX idx_chat_ai_extracted_type ON tzzr_chat_ai.extracted USING btree (extraction_type);


--
-- Name: idx_chat_ai_workspace_entry_type; Type: INDEX; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE INDEX idx_chat_ai_workspace_entry_type ON tzzr_chat_ai.workspace USING btree (entry_type);


--
-- Name: idx_chat_ai_workspace_etiquetas; Type: INDEX; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE INDEX idx_chat_ai_workspace_etiquetas ON tzzr_chat_ai.workspace USING gin (etiquetas);


--
-- Name: idx_chat_ai_workspace_mrf; Type: INDEX; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE INDEX idx_chat_ai_workspace_mrf ON tzzr_chat_ai.workspace USING btree (mrf);


--
-- Name: idx_chat_ai_workspace_session; Type: INDEX; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE INDEX idx_chat_ai_workspace_session ON tzzr_chat_ai.workspace USING btree (session_mrf);


--
-- Name: idx_chat_ai_workspace_set_hst; Type: INDEX; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE INDEX idx_chat_ai_workspace_set_hst ON tzzr_chat_ai.workspace USING btree (set_hst);


--
-- Name: idx_chat_ai_workspace_status; Type: INDEX; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE INDEX idx_chat_ai_workspace_status ON tzzr_chat_ai.workspace USING btree (status);


--
-- Name: idx_graph_threads_a; Type: INDEX; Schema: tzzr_chat_ai; Owner: tzzr
--

CREATE INDEX idx_graph_threads_a ON tzzr_chat_ai.graph_threads USING btree (mrf_a);


--
-- Name: idx_graph_threads_b; Type: INDEX; Schema: tzzr_chat_ai; Owner: tzzr
--

CREATE INDEX idx_graph_threads_b ON tzzr_chat_ai.graph_threads USING btree (mrf_b);


--
-- Name: idx_graph_threads_type; Type: INDEX; Schema: tzzr_chat_ai; Owner: tzzr
--

CREATE INDEX idx_graph_threads_type ON tzzr_chat_ai.graph_threads USING btree (edge_type);


--
-- Name: idx_lib_threads_child; Type: INDEX; Schema: tzzr_chat_ai; Owner: tzzr
--

CREATE INDEX idx_lib_threads_child ON tzzr_chat_ai.library_threads USING btree (mrf_child);


--
-- Name: idx_lib_threads_library; Type: INDEX; Schema: tzzr_chat_ai; Owner: tzzr
--

CREATE INDEX idx_lib_threads_library ON tzzr_chat_ai.library_threads USING btree (mrf_library);


--
-- Name: idx_tree_threads_child; Type: INDEX; Schema: tzzr_chat_ai; Owner: tzzr
--

CREATE INDEX idx_tree_threads_child ON tzzr_chat_ai.tree_threads USING btree (mrf_child);


--
-- Name: idx_tree_threads_parent; Type: INDEX; Schema: tzzr_chat_ai; Owner: tzzr
--

CREATE INDEX idx_tree_threads_parent ON tzzr_chat_ai.tree_threads USING btree (mrf_parent);


--
-- Name: idx_ai_actions_due; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_ai_actions_due ON tzzr_communications_ai.mail_actions USING btree (due_date);


--
-- Name: idx_ai_actions_mail; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_ai_actions_mail ON tzzr_communications_ai.mail_actions USING btree (mail_mrf);


--
-- Name: idx_ai_actions_status; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_ai_actions_status ON tzzr_communications_ai.mail_actions USING btree (status);


--
-- Name: idx_ai_actions_type; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_ai_actions_type ON tzzr_communications_ai.mail_actions USING btree (action_type);


--
-- Name: idx_draft_profiles_single_default; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE UNIQUE INDEX idx_draft_profiles_single_default ON tzzr_communications_ai.draft_profiles USING btree (is_default) WHERE (is_default = true);


--
-- Name: idx_drafts_mail; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_drafts_mail ON tzzr_communications_ai.mail_drafts USING btree (mail_mrf);


--
-- Name: idx_drafts_status; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_drafts_status ON tzzr_communications_ai.mail_drafts USING btree (status);


--
-- Name: idx_extracted_data; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_extracted_data ON tzzr_communications_ai.mail_extracted USING gin (data);


--
-- Name: idx_extracted_source; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_extracted_source ON tzzr_communications_ai.mail_extracted USING btree (source_type);


--
-- Name: idx_mail_actions_etiquetas; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_actions_etiquetas ON tzzr_communications_ai.mail_actions USING gin (etiquetas);


--
-- Name: idx_mail_actions_set_hst; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_actions_set_hst ON tzzr_communications_ai.mail_actions USING btree (set_hst);


--
-- Name: idx_mail_ai_workspace_data; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_ai_workspace_data ON tzzr_communications_ai.mail_ai_workspace USING gin (data);


--
-- Name: idx_mail_ai_workspace_entry_type; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_ai_workspace_entry_type ON tzzr_communications_ai.mail_ai_workspace USING btree (entry_type);


--
-- Name: idx_mail_ai_workspace_etiquetas; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_ai_workspace_etiquetas ON tzzr_communications_ai.mail_ai_workspace USING gin (etiquetas);


--
-- Name: idx_mail_ai_workspace_mail; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_ai_workspace_mail ON tzzr_communications_ai.mail_ai_workspace USING btree (mail_mrf);


--
-- Name: idx_mail_ai_workspace_mrf; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_ai_workspace_mrf ON tzzr_communications_ai.mail_ai_workspace USING btree (mrf);


--
-- Name: idx_mail_ai_workspace_set_hst; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_ai_workspace_set_hst ON tzzr_communications_ai.mail_ai_workspace USING btree (set_hst);


--
-- Name: idx_mail_ai_workspace_status; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_ai_workspace_status ON tzzr_communications_ai.mail_ai_workspace USING btree (status);


--
-- Name: idx_mail_ai_workspace_thread; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_ai_workspace_thread ON tzzr_communications_ai.mail_ai_workspace USING btree (thread_mrf);


--
-- Name: idx_mail_drafts_etiquetas; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_drafts_etiquetas ON tzzr_communications_ai.mail_drafts USING gin (etiquetas);


--
-- Name: idx_mail_drafts_set_hst; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_drafts_set_hst ON tzzr_communications_ai.mail_drafts USING btree (set_hst);


--
-- Name: idx_mail_embeddings_date; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_embeddings_date ON tzzr_communications_ai.mail_embeddings USING btree (email_date);


--
-- Name: idx_mail_embeddings_from; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_embeddings_from ON tzzr_communications_ai.mail_embeddings USING btree (from_address);


--
-- Name: idx_mail_embeddings_hnsw; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_embeddings_hnsw ON tzzr_communications_ai.mail_embeddings USING hnsw (embedding tzzr_core_hst.vector_cosine_ops) WITH (m='16', ef_construction='64');


--
-- Name: idx_mail_embeddings_mrf; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_embeddings_mrf ON tzzr_communications_ai.mail_embeddings USING btree (mail_mrf);


--
-- Name: idx_mail_embeddings_set_hst; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_embeddings_set_hst ON tzzr_communications_ai.mail_embeddings USING btree (set_hst);


--
-- Name: idx_mail_embeddings_type; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_embeddings_type ON tzzr_communications_ai.mail_embeddings USING btree (chunk_type);


--
-- Name: idx_mail_enrichment_entities; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_enrichment_entities ON tzzr_communications_ai.mail_enrichment USING gin (entities);


--
-- Name: idx_mail_enrichment_etiquetas; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_enrichment_etiquetas ON tzzr_communications_ai.mail_enrichment USING gin (etiquetas);


--
-- Name: idx_mail_enrichment_intent; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_enrichment_intent ON tzzr_communications_ai.mail_enrichment USING btree (intent);


--
-- Name: idx_mail_enrichment_mrf; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_enrichment_mrf ON tzzr_communications_ai.mail_enrichment USING btree (mrf);


--
-- Name: idx_mail_enrichment_processed; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_enrichment_processed ON tzzr_communications_ai.mail_enrichment USING btree (processed_at);


--
-- Name: idx_mail_enrichment_sentiment; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_enrichment_sentiment ON tzzr_communications_ai.mail_enrichment USING btree (sentiment);


--
-- Name: idx_mail_enrichment_set_hst; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_enrichment_set_hst ON tzzr_communications_ai.mail_enrichment USING btree (set_hst);


--
-- Name: idx_mail_extracted_etiquetas; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_extracted_etiquetas ON tzzr_communications_ai.mail_extracted USING gin (etiquetas);


--
-- Name: idx_mail_extracted_set_hst; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_extracted_set_hst ON tzzr_communications_ai.mail_extracted USING btree (set_hst);


--
-- Name: idx_mail_source_etiquetas; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_source_etiquetas ON tzzr_communications_ai.mail_source USING gin (etiquetas);


--
-- Name: idx_mail_source_set_hst; Type: INDEX; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE INDEX idx_mail_source_set_hst ON tzzr_communications_ai.mail_source USING btree (set_hst);


--
-- Name: idx_assignment_flags; Type: INDEX; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE INDEX idx_assignment_flags ON tzzr_communications_str.mail_folder_assignment USING gin (flags);


--
-- Name: idx_assignment_folder; Type: INDEX; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE INDEX idx_assignment_folder ON tzzr_communications_str.mail_folder_assignment USING btree (folder_id);


--
-- Name: idx_assignment_mrf; Type: INDEX; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE INDEX idx_assignment_mrf ON tzzr_communications_str.mail_folder_assignment USING btree (mail_mrf);


--
-- Name: idx_folders_account; Type: INDEX; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE INDEX idx_folders_account ON tzzr_communications_str.folders USING btree (account_id);


--
-- Name: idx_folders_parent; Type: INDEX; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE INDEX idx_folders_parent ON tzzr_communications_str.folders USING btree (parent_id);


--
-- Name: idx_folders_system; Type: INDEX; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE INDEX idx_folders_system ON tzzr_communications_str.folders USING btree (is_system) WHERE (is_system = true);


--
-- Name: idx_admin_mason_bck_alias; Type: INDEX; Schema: tzzr_core_administracion; Owner: tzzr
--

CREATE INDEX idx_admin_mason_bck_alias ON tzzr_core_administracion.bck USING btree (alias);


--
-- Name: idx_admin_mason_bck_created; Type: INDEX; Schema: tzzr_core_administracion; Owner: tzzr
--

CREATE INDEX idx_admin_mason_bck_created ON tzzr_core_administracion.bck USING btree (created_at);


--
-- Name: idx_admin_mason_bck_hashtags; Type: INDEX; Schema: tzzr_core_administracion; Owner: tzzr
--

CREATE INDEX idx_admin_mason_bck_hashtags ON tzzr_core_administracion.bck USING gin (hashtags);


--
-- Name: idx_admin_mason_bck_ref; Type: INDEX; Schema: tzzr_core_administracion; Owner: tzzr
--

CREATE INDEX idx_admin_mason_bck_ref ON tzzr_core_administracion.bck USING btree (ref);


--
-- Name: idx_admin_mason_bck_set_hst; Type: INDEX; Schema: tzzr_core_administracion; Owner: tzzr
--

CREATE INDEX idx_admin_mason_bck_set_hst ON tzzr_core_administracion.bck USING btree (set_hst);


--
-- Name: idx_admin_mason_mst_alias; Type: INDEX; Schema: tzzr_core_administracion; Owner: postgres
--

CREATE INDEX idx_admin_mason_mst_alias ON tzzr_core_administracion.mst USING btree (alias);


--
-- Name: idx_admin_mason_mst_created; Type: INDEX; Schema: tzzr_core_administracion; Owner: postgres
--

CREATE INDEX idx_admin_mason_mst_created ON tzzr_core_administracion.mst USING btree (created_at);


--
-- Name: idx_admin_mason_mst_hashtags; Type: INDEX; Schema: tzzr_core_administracion; Owner: postgres
--

CREATE INDEX idx_admin_mason_mst_hashtags ON tzzr_core_administracion.mst USING gin (hashtags);


--
-- Name: idx_admin_mason_mst_ref; Type: INDEX; Schema: tzzr_core_administracion; Owner: postgres
--

CREATE INDEX idx_admin_mason_mst_ref ON tzzr_core_administracion.mst USING btree (ref);


--
-- Name: idx_admin_mason_mst_set_hst; Type: INDEX; Schema: tzzr_core_administracion; Owner: postgres
--

CREATE INDEX idx_admin_mason_mst_set_hst ON tzzr_core_administracion.mst USING btree (set_hst);


--
-- Name: idx_contab_feldman_bck_alias; Type: INDEX; Schema: tzzr_core_contabilidad; Owner: tzzr
--

CREATE INDEX idx_contab_feldman_bck_alias ON tzzr_core_contabilidad.bck USING btree (alias);


--
-- Name: idx_contab_feldman_bck_created; Type: INDEX; Schema: tzzr_core_contabilidad; Owner: tzzr
--

CREATE INDEX idx_contab_feldman_bck_created ON tzzr_core_contabilidad.bck USING btree (created_at);


--
-- Name: idx_contab_feldman_bck_hashtags; Type: INDEX; Schema: tzzr_core_contabilidad; Owner: tzzr
--

CREATE INDEX idx_contab_feldman_bck_hashtags ON tzzr_core_contabilidad.bck USING gin (hashtags);


--
-- Name: idx_contab_feldman_bck_ref; Type: INDEX; Schema: tzzr_core_contabilidad; Owner: tzzr
--

CREATE INDEX idx_contab_feldman_bck_ref ON tzzr_core_contabilidad.bck USING btree (ref);


--
-- Name: idx_contab_feldman_bck_set_hst; Type: INDEX; Schema: tzzr_core_contabilidad; Owner: tzzr
--

CREATE INDEX idx_contab_feldman_bck_set_hst ON tzzr_core_contabilidad.bck USING btree (set_hst);


--
-- Name: idx_contab_feldman_mst_alias; Type: INDEX; Schema: tzzr_core_contabilidad; Owner: postgres
--

CREATE INDEX idx_contab_feldman_mst_alias ON tzzr_core_contabilidad.mst USING btree (alias);


--
-- Name: idx_contab_feldman_mst_created; Type: INDEX; Schema: tzzr_core_contabilidad; Owner: postgres
--

CREATE INDEX idx_contab_feldman_mst_created ON tzzr_core_contabilidad.mst USING btree (created_at);


--
-- Name: idx_contab_feldman_mst_hashtags; Type: INDEX; Schema: tzzr_core_contabilidad; Owner: postgres
--

CREATE INDEX idx_contab_feldman_mst_hashtags ON tzzr_core_contabilidad.mst USING gin (hashtags);


--
-- Name: idx_contab_feldman_mst_ref; Type: INDEX; Schema: tzzr_core_contabilidad; Owner: postgres
--

CREATE INDEX idx_contab_feldman_mst_ref ON tzzr_core_contabilidad.mst USING btree (ref);


--
-- Name: idx_contab_feldman_mst_set_hst; Type: INDEX; Schema: tzzr_core_contabilidad; Owner: postgres
--

CREATE INDEX idx_contab_feldman_mst_set_hst ON tzzr_core_contabilidad.mst USING btree (set_hst);


--
-- Name: idx_base_library_flg_alias; Type: INDEX; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE INDEX idx_base_library_flg_alias ON tzzr_core_hst.flg USING btree (alias);


--
-- Name: idx_base_library_flg_created; Type: INDEX; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE INDEX idx_base_library_flg_created ON tzzr_core_hst.flg USING btree (created_at);


--
-- Name: idx_base_library_flg_hashtags; Type: INDEX; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE INDEX idx_base_library_flg_hashtags ON tzzr_core_hst.flg USING gin (hashtags);


--
-- Name: idx_base_library_flg_ref; Type: INDEX; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE INDEX idx_base_library_flg_ref ON tzzr_core_hst.flg USING btree (ref);


--
-- Name: idx_base_library_flg_set_hst; Type: INDEX; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE INDEX idx_base_library_flg_set_hst ON tzzr_core_hst.flg USING btree (set_hst);


--
-- Name: idx_base_library_hst_alias; Type: INDEX; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE INDEX idx_base_library_hst_alias ON tzzr_core_hst.hst USING btree (alias);


--
-- Name: idx_base_library_hst_created; Type: INDEX; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE INDEX idx_base_library_hst_created ON tzzr_core_hst.hst USING btree (created_at);


--
-- Name: idx_base_library_hst_ref; Type: INDEX; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE INDEX idx_base_library_hst_ref ON tzzr_core_hst.hst USING btree (ref);


--
-- Name: idx_base_library_hst_set_hst; Type: INDEX; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE INDEX idx_base_library_hst_set_hst ON tzzr_core_hst.hst USING btree (set_hst);


--
-- Name: idx_graph_a; Type: INDEX; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE INDEX idx_graph_a ON tzzr_core_hst.graph_hst USING btree (mrf_a);


--
-- Name: idx_graph_b; Type: INDEX; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE INDEX idx_graph_b ON tzzr_core_hst.graph_hst USING btree (mrf_b);


--
-- Name: idx_library_bib; Type: INDEX; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE INDEX idx_library_bib ON tzzr_core_hst.library_hst USING btree (mrf_library);


--
-- Name: idx_library_tag; Type: INDEX; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE INDEX idx_library_tag ON tzzr_core_hst.library_hst USING btree (mrf_child);


--
-- Name: idx_tree_padre; Type: INDEX; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE INDEX idx_tree_padre ON tzzr_core_hst.tree_hst USING btree (mrf_parent);


--
-- Name: idx_base_library_itm_alias; Type: INDEX; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE INDEX idx_base_library_itm_alias ON tzzr_core_itm_base.itm USING btree (alias);


--
-- Name: idx_base_library_itm_created; Type: INDEX; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE INDEX idx_base_library_itm_created ON tzzr_core_itm_base.itm USING btree (created_at);


--
-- Name: idx_base_library_itm_hashtags; Type: INDEX; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE INDEX idx_base_library_itm_hashtags ON tzzr_core_itm_base.itm USING gin (hashtags);


--
-- Name: idx_base_library_itm_ref; Type: INDEX; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE INDEX idx_base_library_itm_ref ON tzzr_core_itm_base.itm USING btree (ref);


--
-- Name: idx_base_library_itm_set_hst; Type: INDEX; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE INDEX idx_base_library_itm_set_hst ON tzzr_core_itm_base.itm USING btree (set_hst);


--
-- Name: idx_base_library_loc_alias; Type: INDEX; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE INDEX idx_base_library_loc_alias ON tzzr_core_itm_base.loc USING btree (alias);


--
-- Name: idx_base_library_loc_created; Type: INDEX; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE INDEX idx_base_library_loc_created ON tzzr_core_itm_base.loc USING btree (created_at);


--
-- Name: idx_base_library_loc_hashtags; Type: INDEX; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE INDEX idx_base_library_loc_hashtags ON tzzr_core_itm_base.loc USING gin (hashtags);


--
-- Name: idx_base_library_loc_ref; Type: INDEX; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE INDEX idx_base_library_loc_ref ON tzzr_core_itm_base.loc USING btree (ref);


--
-- Name: idx_base_library_loc_set_hst; Type: INDEX; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE INDEX idx_base_library_loc_set_hst ON tzzr_core_itm_base.loc USING btree (set_hst);


--
-- Name: idx_base_library_ply_alias; Type: INDEX; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE INDEX idx_base_library_ply_alias ON tzzr_core_itm_base.ply USING btree (alias);


--
-- Name: idx_base_library_ply_created; Type: INDEX; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE INDEX idx_base_library_ply_created ON tzzr_core_itm_base.ply USING btree (created_at);


--
-- Name: idx_base_library_ply_hashtags; Type: INDEX; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE INDEX idx_base_library_ply_hashtags ON tzzr_core_itm_base.ply USING gin (hashtags);


--
-- Name: idx_base_library_ply_ref; Type: INDEX; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE INDEX idx_base_library_ply_ref ON tzzr_core_itm_base.ply USING btree (ref);


--
-- Name: idx_base_library_ply_set_hst; Type: INDEX; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE INDEX idx_base_library_ply_set_hst ON tzzr_core_itm_base.ply USING btree (set_hst);


--
-- Name: idx_graph_ply_mrf_a; Type: INDEX; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE INDEX idx_graph_ply_mrf_a ON tzzr_core_itm_base.graph_ply USING btree (mrf_a);


--
-- Name: idx_graph_ply_mrf_b; Type: INDEX; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE INDEX idx_graph_ply_mrf_b ON tzzr_core_itm_base.graph_ply USING btree (mrf_b);


--
-- Name: idx_ply_agent_map_agent; Type: INDEX; Schema: tzzr_core_itm_base; Owner: postgres
--

CREATE INDEX idx_ply_agent_map_agent ON tzzr_core_itm_base.ply_agent_llm_map USING btree (agent_llm_mrf);


--
-- Name: idx_ply_agent_map_ply; Type: INDEX; Schema: tzzr_core_itm_base; Owner: postgres
--

CREATE INDEX idx_ply_agent_map_ply ON tzzr_core_itm_base.ply_agent_llm_map USING btree (ply_mrf);


--
-- Name: idx_mth_private_mrf; Type: INDEX; Schema: tzzr_core_produccion; Owner: postgres
--

CREATE INDEX idx_mth_private_mrf ON tzzr_core_produccion.mth USING btree (private_mrf);


--
-- Name: idx_mth_set_flg; Type: INDEX; Schema: tzzr_core_produccion; Owner: postgres
--

CREATE INDEX idx_mth_set_flg ON tzzr_core_produccion.mth USING gin (set_flg);


--
-- Name: idx_prod_alfred_mth_alias; Type: INDEX; Schema: tzzr_core_produccion; Owner: postgres
--

CREATE INDEX idx_prod_alfred_mth_alias ON tzzr_core_produccion.mth USING btree (alias);


--
-- Name: idx_prod_alfred_mth_created; Type: INDEX; Schema: tzzr_core_produccion; Owner: postgres
--

CREATE INDEX idx_prod_alfred_mth_created ON tzzr_core_produccion.mth USING btree (created_at);


--
-- Name: idx_prod_alfred_mth_ref; Type: INDEX; Schema: tzzr_core_produccion; Owner: postgres
--

CREATE INDEX idx_prod_alfred_mth_ref ON tzzr_core_produccion.mth USING btree (ref);


--
-- Name: idx_prod_alfred_mth_set_hst; Type: INDEX; Schema: tzzr_core_produccion; Owner: postgres
--

CREATE INDEX idx_prod_alfred_mth_set_hst ON tzzr_core_produccion.mth USING btree (set_hst);


--
-- Name: idx_prod_alfred_mth_status; Type: INDEX; Schema: tzzr_core_produccion; Owner: postgres
--

CREATE INDEX idx_prod_alfred_mth_status ON tzzr_core_produccion.mth USING btree (status);


--
-- Name: idx_prod_alfred_mth_wm_path; Type: INDEX; Schema: tzzr_core_produccion; Owner: postgres
--

CREATE INDEX idx_prod_alfred_mth_wm_path ON tzzr_core_produccion.mth USING btree (wm_path);


--
-- Name: idx_secretaria_clara_bck_alias; Type: INDEX; Schema: tzzr_core_secretaria; Owner: tzzr
--

CREATE INDEX idx_secretaria_clara_bck_alias ON tzzr_core_secretaria.bck USING btree (alias);


--
-- Name: idx_secretaria_clara_bck_created; Type: INDEX; Schema: tzzr_core_secretaria; Owner: tzzr
--

CREATE INDEX idx_secretaria_clara_bck_created ON tzzr_core_secretaria.bck USING btree (created_at);


--
-- Name: idx_secretaria_clara_bck_hashtags; Type: INDEX; Schema: tzzr_core_secretaria; Owner: tzzr
--

CREATE INDEX idx_secretaria_clara_bck_hashtags ON tzzr_core_secretaria.bck USING gin (hashtags);


--
-- Name: idx_secretaria_clara_bck_ref; Type: INDEX; Schema: tzzr_core_secretaria; Owner: tzzr
--

CREATE INDEX idx_secretaria_clara_bck_ref ON tzzr_core_secretaria.bck USING btree (ref);


--
-- Name: idx_secretaria_clara_bck_set_hst; Type: INDEX; Schema: tzzr_core_secretaria; Owner: tzzr
--

CREATE INDEX idx_secretaria_clara_bck_set_hst ON tzzr_core_secretaria.bck USING btree (set_hst);


--
-- Name: idx_secretaria_clara_mst_alias; Type: INDEX; Schema: tzzr_core_secretaria; Owner: postgres
--

CREATE INDEX idx_secretaria_clara_mst_alias ON tzzr_core_secretaria.mst USING btree (alias);


--
-- Name: idx_secretaria_clara_mst_created; Type: INDEX; Schema: tzzr_core_secretaria; Owner: postgres
--

CREATE INDEX idx_secretaria_clara_mst_created ON tzzr_core_secretaria.mst USING btree (created_at);


--
-- Name: idx_secretaria_clara_mst_hashtags; Type: INDEX; Schema: tzzr_core_secretaria; Owner: postgres
--

CREATE INDEX idx_secretaria_clara_mst_hashtags ON tzzr_core_secretaria.mst USING gin (hashtags);


--
-- Name: idx_secretaria_clara_mst_ref; Type: INDEX; Schema: tzzr_core_secretaria; Owner: postgres
--

CREATE INDEX idx_secretaria_clara_mst_ref ON tzzr_core_secretaria.mst USING btree (ref);


--
-- Name: idx_secretaria_clara_mst_set_hst; Type: INDEX; Schema: tzzr_core_secretaria; Owner: postgres
--

CREATE INDEX idx_secretaria_clara_mst_set_hst ON tzzr_core_secretaria.mst USING btree (set_hst);


--
-- Name: idx_agent_llm_active; Type: INDEX; Schema: tzzr_iachat; Owner: tzzr
--

CREATE INDEX idx_agent_llm_active ON tzzr_iachat.agent_llm USING btree (is_active);


--
-- Name: idx_agent_llm_parent; Type: INDEX; Schema: tzzr_iachat; Owner: tzzr
--

CREATE INDEX idx_agent_llm_parent ON tzzr_iachat.agent_llm USING btree (parent_mrf);


--
-- Name: idx_flow_edge_flow; Type: INDEX; Schema: tzzr_iachat; Owner: postgres
--

CREATE INDEX idx_flow_edge_flow ON tzzr_iachat.flow_edge USING btree (flow_mrf);


--
-- Name: idx_flow_edge_source; Type: INDEX; Schema: tzzr_iachat; Owner: postgres
--

CREATE INDEX idx_flow_edge_source ON tzzr_iachat.flow_edge USING btree (source_step_mrf);


--
-- Name: idx_flow_edge_target; Type: INDEX; Schema: tzzr_iachat; Owner: postgres
--

CREATE INDEX idx_flow_edge_target ON tzzr_iachat.flow_edge USING btree (target_step_mrf);


--
-- Name: idx_flow_execution_flow; Type: INDEX; Schema: tzzr_iachat; Owner: tzzr
--

CREATE INDEX idx_flow_execution_flow ON tzzr_iachat.flow_execution USING btree (flow_mrf);


--
-- Name: idx_flow_execution_status; Type: INDEX; Schema: tzzr_iachat; Owner: tzzr
--

CREATE INDEX idx_flow_execution_status ON tzzr_iachat.flow_execution USING btree (status);


--
-- Name: idx_flow_step_exec; Type: INDEX; Schema: tzzr_iachat; Owner: tzzr
--

CREATE INDEX idx_flow_step_exec ON tzzr_iachat.flow_step_execution USING btree (execution_mrf);


--
-- Name: idx_flow_step_flow; Type: INDEX; Schema: tzzr_iachat; Owner: tzzr
--

CREATE INDEX idx_flow_step_flow ON tzzr_iachat.flow_step USING btree (flow_mrf);


--
-- Name: idx_flow_step_order; Type: INDEX; Schema: tzzr_iachat; Owner: tzzr
--

CREATE INDEX idx_flow_step_order ON tzzr_iachat.flow_step USING btree (flow_mrf, sort_order);


--
-- Name: idx_message_created; Type: INDEX; Schema: tzzr_iachat; Owner: tzzr
--

CREATE INDEX idx_message_created ON tzzr_iachat.message USING btree (created_at);


--
-- Name: idx_message_parent; Type: INDEX; Schema: tzzr_iachat; Owner: tzzr
--

CREATE INDEX idx_message_parent ON tzzr_iachat.message USING btree (parent_mrf);


--
-- Name: idx_message_session; Type: INDEX; Schema: tzzr_iachat; Owner: tzzr
--

CREATE INDEX idx_message_session ON tzzr_iachat.message USING btree (session_mrf);


--
-- Name: idx_session_agent_llm; Type: INDEX; Schema: tzzr_iachat; Owner: tzzr
--

CREATE INDEX idx_session_agent_llm ON tzzr_iachat.session USING btree (agent_llm_mrf);


--
-- Name: idx_session_dataset_dataset; Type: INDEX; Schema: tzzr_iachat; Owner: tzzr
--

CREATE INDEX idx_session_dataset_dataset ON tzzr_iachat.session_dataset USING btree (dataset_mrf);


--
-- Name: idx_session_dataset_hst; Type: INDEX; Schema: tzzr_iachat; Owner: tzzr
--

CREATE INDEX idx_session_dataset_hst ON tzzr_iachat.session_dataset USING btree (hst_filter);


--
-- Name: idx_session_dataset_session; Type: INDEX; Schema: tzzr_iachat; Owner: tzzr
--

CREATE INDEX idx_session_dataset_session ON tzzr_iachat.session_dataset USING btree (session_mrf);


--
-- Name: idx_session_parent_mrf; Type: INDEX; Schema: tzzr_iachat; Owner: tzzr
--

CREATE INDEX idx_session_parent_mrf ON tzzr_iachat.session USING btree (parent_mrf);


--
-- Name: idx_session_project; Type: INDEX; Schema: tzzr_iachat; Owner: tzzr
--

CREATE INDEX idx_session_project ON tzzr_iachat.session USING btree (project_mrf);


--
-- Name: idx_session_status; Type: INDEX; Schema: tzzr_iachat; Owner: tzzr
--

CREATE INDEX idx_session_status ON tzzr_iachat.session USING btree (status);


--
-- Name: idx_threads_context_mrf; Type: INDEX; Schema: tzzr_iachat; Owner: tzzr
--

CREATE INDEX idx_threads_context_mrf ON tzzr_iachat.threads USING btree (context_mrf);


--
-- Name: idx_threads_etiquetas; Type: INDEX; Schema: tzzr_iachat; Owner: tzzr
--

CREATE INDEX idx_threads_etiquetas ON tzzr_iachat.threads USING gin (etiquetas);


--
-- Name: idx_threads_parent; Type: INDEX; Schema: tzzr_iachat; Owner: tzzr
--

CREATE INDEX idx_threads_parent ON tzzr_iachat.threads USING btree (parent_mrf);


--
-- Name: idx_threads_project; Type: INDEX; Schema: tzzr_iachat; Owner: tzzr
--

CREATE INDEX idx_threads_project ON tzzr_iachat.threads USING btree (project_mrf);


--
-- Name: idx_threads_set_hst; Type: INDEX; Schema: tzzr_iachat; Owner: tzzr
--

CREATE INDEX idx_threads_set_hst ON tzzr_iachat.threads USING btree (set_hst);


--
-- Name: idx_threads_status; Type: INDEX; Schema: tzzr_iachat; Owner: tzzr
--

CREATE INDEX idx_threads_status ON tzzr_iachat.threads USING btree (status);


--
-- Name: idx_threads_tags; Type: INDEX; Schema: tzzr_iachat; Owner: tzzr
--

CREATE INDEX idx_threads_tags ON tzzr_iachat.threads USING gin (tags);


--
-- Name: idx_attachment_item_mrf; Type: INDEX; Schema: tzzr_list; Owner: tzzr
--

CREATE INDEX idx_attachment_item_mrf ON tzzr_list.attachment USING btree (item_mrf);


--
-- Name: idx_item_ia_mrf; Type: INDEX; Schema: tzzr_list; Owner: tzzr
--

CREATE INDEX idx_item_ia_mrf ON tzzr_list.item USING btree (ia_mrf);


--
-- Name: idx_item_list_id; Type: INDEX; Schema: tzzr_list; Owner: tzzr
--

CREATE INDEX idx_item_list_id ON tzzr_list.item USING btree (list_id);


--
-- Name: idx_item_order; Type: INDEX; Schema: tzzr_list; Owner: tzzr
--

CREATE INDEX idx_item_order ON tzzr_list.item USING btree (item_order);


--
-- Name: idx_item_user_mrf; Type: INDEX; Schema: tzzr_list; Owner: tzzr
--

CREATE INDEX idx_item_user_mrf ON tzzr_list.item USING btree (user_mrf);


--
-- Name: idx_atc_bucket_mrf; Type: INDEX; Schema: tzzr_storage; Owner: postgres
--

CREATE INDEX idx_atc_bucket_mrf ON tzzr_storage.atc USING btree (bucket_mrf);


--
-- Name: idx_atc_created_at; Type: INDEX; Schema: tzzr_storage; Owner: postgres
--

CREATE INDEX idx_atc_created_at ON tzzr_storage.atc USING btree (created_at);


--
-- Name: idx_atc_private_mrf; Type: INDEX; Schema: tzzr_storage; Owner: postgres
--

CREATE INDEX idx_atc_private_mrf ON tzzr_storage.atc USING btree (private_mrf);


--
-- Name: idx_atc_ref; Type: INDEX; Schema: tzzr_storage; Owner: postgres
--

CREATE INDEX idx_atc_ref ON tzzr_storage.atc USING btree (ref);


--
-- Name: idx_atc_set_hst; Type: INDEX; Schema: tzzr_storage; Owner: postgres
--

CREATE INDEX idx_atc_set_hst ON tzzr_storage.atc USING btree (set_hst);


--
-- Name: idx_user_keys_name; Type: INDEX; Schema: tzzr_system; Owner: tzzr
--

CREATE INDEX idx_user_keys_name ON tzzr_system.user_keys USING btree (name);


--
-- Name: idx_user_notes_created; Type: INDEX; Schema: tzzr_system; Owner: tzzr
--

CREATE INDEX idx_user_notes_created ON tzzr_system.user_notes USING btree (created_at DESC);


--
-- Name: idx_user_notes_status; Type: INDEX; Schema: tzzr_system; Owner: tzzr
--

CREATE INDEX idx_user_notes_status ON tzzr_system.user_notes USING btree (status);


--
-- Name: idx_gate_session_session_id; Type: INDEX; Schema: usr; Owner: postgres
--

CREATE UNIQUE INDEX idx_gate_session_session_id ON usr.gate_session USING btree (session_id);


--
-- Name: idx_storage_key; Type: INDEX; Schema: usr; Owner: postgres
--

CREATE INDEX idx_storage_key ON usr.storage USING btree (key_mrf);


--
-- Name: idx_storage_type; Type: INDEX; Schema: usr; Owner: postgres
--

CREATE INDEX idx_storage_type ON usr.storage USING btree (type);


--
-- Name: idx_tzzr_usr_key_service; Type: INDEX; Schema: usr; Owner: postgres
--

CREATE INDEX idx_tzzr_usr_key_service ON usr.key USING btree (service);


--
-- Name: bck contab_feldman_bck_no_delete; Type: RULE; Schema: tzzr_core_contabilidad; Owner: tzzr
--

CREATE RULE contab_feldman_bck_no_delete AS
    ON DELETE TO tzzr_core_contabilidad.bck DO INSTEAD NOTHING;


--
-- Name: bck contab_feldman_bck_no_update; Type: RULE; Schema: tzzr_core_contabilidad; Owner: tzzr
--

CREATE RULE contab_feldman_bck_no_update AS
    ON UPDATE TO tzzr_core_contabilidad.bck DO INSTEAD NOTHING;


--
-- Name: mst contab_feldman_mst_no_delete; Type: RULE; Schema: tzzr_core_contabilidad; Owner: postgres
--

CREATE RULE contab_feldman_mst_no_delete AS
    ON DELETE TO tzzr_core_contabilidad.mst DO INSTEAD NOTHING;


--
-- Name: mst contab_feldman_mst_no_update; Type: RULE; Schema: tzzr_core_contabilidad; Owner: postgres
--

CREATE RULE contab_feldman_mst_no_update AS
    ON UPDATE TO tzzr_core_contabilidad.mst DO INSTEAD NOTHING;


--
-- Name: bck secretaria_clara_bck_no_delete; Type: RULE; Schema: tzzr_core_secretaria; Owner: tzzr
--

CREATE RULE secretaria_clara_bck_no_delete AS
    ON DELETE TO tzzr_core_secretaria.bck DO INSTEAD NOTHING;


--
-- Name: bck secretaria_clara_bck_no_update; Type: RULE; Schema: tzzr_core_secretaria; Owner: tzzr
--

CREATE RULE secretaria_clara_bck_no_update AS
    ON UPDATE TO tzzr_core_secretaria.bck DO INSTEAD NOTHING;


--
-- Name: mst secretaria_clara_mst_no_delete; Type: RULE; Schema: tzzr_core_secretaria; Owner: postgres
--

CREATE RULE secretaria_clara_mst_no_delete AS
    ON DELETE TO tzzr_core_secretaria.mst DO INSTEAD NOTHING;


--
-- Name: mst secretaria_clara_mst_no_update; Type: RULE; Schema: tzzr_core_secretaria; Owner: postgres
--

CREATE RULE secretaria_clara_mst_no_update AS
    ON UPDATE TO tzzr_core_secretaria.mst DO INSTEAD NOTHING;


--
-- Name: messages auto_weight_message; Type: TRIGGER; Schema: cto; Owner: tzzr
--

CREATE TRIGGER auto_weight_message AFTER INSERT ON cto.messages FOR EACH ROW EXECUTE FUNCTION cto.auto_weight_new_message();


--
-- Name: context_weights prevent_context_weights_delete; Type: TRIGGER; Schema: cto; Owner: tzzr
--

CREATE TRIGGER prevent_context_weights_delete BEFORE DELETE ON cto.context_weights FOR EACH ROW EXECUTE FUNCTION cto.prevent_delete();


--
-- Name: context_weights prevent_context_weights_update; Type: TRIGGER; Schema: cto; Owner: tzzr
--

CREATE TRIGGER prevent_context_weights_update BEFORE UPDATE ON cto.context_weights FOR EACH ROW EXECUTE FUNCTION cto.prevent_update();


--
-- Name: messages prevent_messages_delete; Type: TRIGGER; Schema: cto; Owner: tzzr
--

CREATE TRIGGER prevent_messages_delete BEFORE DELETE ON cto.messages FOR EACH ROW EXECUTE FUNCTION cto.prevent_delete();


--
-- Name: messages prevent_messages_update; Type: TRIGGER; Schema: cto; Owner: tzzr
--

CREATE TRIGGER prevent_messages_update BEFORE UPDATE ON cto.messages FOR EACH ROW EXECUTE FUNCTION cto.prevent_update();


--
-- Name: players prevent_players_delete; Type: TRIGGER; Schema: cto; Owner: tzzr
--

CREATE TRIGGER prevent_players_delete BEFORE DELETE ON cto.players FOR EACH ROW EXECUTE FUNCTION cto.prevent_delete();


--
-- Name: players prevent_players_update; Type: TRIGGER; Schema: cto; Owner: tzzr
--

CREATE TRIGGER prevent_players_update BEFORE UPDATE ON cto.players FOR EACH ROW EXECUTE FUNCTION cto.prevent_update();


--
-- Name: thread_documents prevent_thread_documents_delete; Type: TRIGGER; Schema: cto; Owner: tzzr
--

CREATE TRIGGER prevent_thread_documents_delete BEFORE DELETE ON cto.thread_documents FOR EACH ROW EXECUTE FUNCTION cto.prevent_delete();


--
-- Name: thread_documents prevent_thread_documents_update; Type: TRIGGER; Schema: cto; Owner: tzzr
--

CREATE TRIGGER prevent_thread_documents_update BEFORE UPDATE ON cto.thread_documents FOR EACH ROW EXECUTE FUNCTION cto.prevent_update();


--
-- Name: threads prevent_threads_delete; Type: TRIGGER; Schema: cto; Owner: tzzr
--

CREATE TRIGGER prevent_threads_delete BEFORE DELETE ON cto.threads FOR EACH ROW EXECUTE FUNCTION cto.prevent_delete();


--
-- Name: threads prevent_threads_update; Type: TRIGGER; Schema: cto; Owner: tzzr
--

CREATE TRIGGER prevent_threads_update BEFORE UPDATE ON cto.threads FOR EACH ROW EXECUTE FUNCTION cto.prevent_update();


--
-- Name: mth mth_delete_trigger; Type: TRIGGER; Schema: production_alfred; Owner: postgres
--

CREATE TRIGGER mth_delete_trigger INSTEAD OF DELETE ON production_alfred.mth FOR EACH ROW EXECUTE FUNCTION production_alfred.mth_delete();


--
-- Name: mth mth_insert_trigger; Type: TRIGGER; Schema: production_alfred; Owner: postgres
--

CREATE TRIGGER mth_insert_trigger INSTEAD OF INSERT ON production_alfred.mth FOR EACH ROW EXECUTE FUNCTION production_alfred.mth_insert();


--
-- Name: mth mth_update_trigger; Type: TRIGGER; Schema: production_alfred; Owner: postgres
--

CREATE TRIGGER mth_update_trigger INSTEAD OF UPDATE ON production_alfred.mth FOR EACH ROW EXECUTE FUNCTION production_alfred.mth_update();


--
-- Name: mail_attachment_links trg_worm_attachment_links; Type: TRIGGER; Schema: tzzr_communications; Owner: tzzr
--

CREATE TRIGGER trg_worm_attachment_links BEFORE DELETE OR UPDATE ON tzzr_communications.mail_attachment_links FOR EACH ROW EXECUTE FUNCTION tzzr_communications.worm();


--
-- Name: mail_attachments trg_worm_attachments; Type: TRIGGER; Schema: tzzr_communications; Owner: tzzr
--

CREATE TRIGGER trg_worm_attachments BEFORE DELETE OR UPDATE ON tzzr_communications.mail_attachments FOR EACH ROW EXECUTE FUNCTION tzzr_communications.worm();


--
-- Name: chat trg_worm_chat; Type: TRIGGER; Schema: tzzr_communications; Owner: postgres
--

CREATE TRIGGER trg_worm_chat BEFORE DELETE OR UPDATE ON tzzr_communications.chat FOR EACH ROW EXECUTE FUNCTION tzzr_communications.worm();


--
-- Name: mail trg_worm_mail; Type: TRIGGER; Schema: tzzr_communications; Owner: postgres
--

CREATE TRIGGER trg_worm_mail BEFORE DELETE OR UPDATE ON tzzr_communications.mail FOR EACH ROW EXECUTE FUNCTION tzzr_communications.worm();


--
-- Name: folders trigger_folders_updated_at; Type: TRIGGER; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE TRIGGER trigger_folders_updated_at BEFORE UPDATE ON tzzr_communications_str.folders FOR EACH ROW EXECUTE FUNCTION tzzr_communications_str.update_updated_at();


--
-- Name: bck trg_actualizar_hst_usados; Type: TRIGGER; Schema: tzzr_core_administracion; Owner: tzzr
--

CREATE TRIGGER trg_actualizar_hst_usados AFTER INSERT OR UPDATE ON tzzr_core_administracion.bck FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.actualizar_hst_usados();


--
-- Name: mst trg_actualizar_hst_usados; Type: TRIGGER; Schema: tzzr_core_administracion; Owner: postgres
--

CREATE TRIGGER trg_actualizar_hst_usados AFTER INSERT OR UPDATE ON tzzr_core_administracion.mst FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.actualizar_hst_usados();


--
-- Name: bck trg_validar_set_hst; Type: TRIGGER; Schema: tzzr_core_administracion; Owner: tzzr
--

CREATE TRIGGER trg_validar_set_hst BEFORE INSERT OR UPDATE ON tzzr_core_administracion.bck FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.validar_set_hst();


--
-- Name: mst trg_validar_set_hst; Type: TRIGGER; Schema: tzzr_core_administracion; Owner: postgres
--

CREATE TRIGGER trg_validar_set_hst BEFORE INSERT OR UPDATE ON tzzr_core_administracion.mst FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.validar_set_hst();


--
-- Name: bck trg_actualizar_hst_usados; Type: TRIGGER; Schema: tzzr_core_contabilidad; Owner: tzzr
--

CREATE TRIGGER trg_actualizar_hst_usados AFTER INSERT OR UPDATE ON tzzr_core_contabilidad.bck FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.actualizar_hst_usados();


--
-- Name: mst trg_actualizar_hst_usados; Type: TRIGGER; Schema: tzzr_core_contabilidad; Owner: postgres
--

CREATE TRIGGER trg_actualizar_hst_usados AFTER INSERT OR UPDATE ON tzzr_core_contabilidad.mst FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.actualizar_hst_usados();


--
-- Name: bck trg_validar_set_hst; Type: TRIGGER; Schema: tzzr_core_contabilidad; Owner: tzzr
--

CREATE TRIGGER trg_validar_set_hst BEFORE INSERT OR UPDATE ON tzzr_core_contabilidad.bck FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.validar_set_hst();


--
-- Name: mst trg_validar_set_hst; Type: TRIGGER; Schema: tzzr_core_contabilidad; Owner: postgres
--

CREATE TRIGGER trg_validar_set_hst BEFORE INSERT OR UPDATE ON tzzr_core_contabilidad.mst FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.validar_set_hst();


--
-- Name: flg trg_actualizar_hst_usados; Type: TRIGGER; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE TRIGGER trg_actualizar_hst_usados AFTER INSERT OR UPDATE ON tzzr_core_hst.flg FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.actualizar_hst_usados();


--
-- Name: hst trg_actualizar_hst_usados; Type: TRIGGER; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE TRIGGER trg_actualizar_hst_usados AFTER INSERT OR UPDATE ON tzzr_core_hst.hst FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.actualizar_hst_usados();


--
-- Name: flg trg_validar_set_hst; Type: TRIGGER; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE TRIGGER trg_validar_set_hst BEFORE INSERT OR UPDATE ON tzzr_core_hst.flg FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.validar_set_hst();


--
-- Name: hst trg_validar_set_hst; Type: TRIGGER; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE TRIGGER trg_validar_set_hst BEFORE INSERT OR UPDATE ON tzzr_core_hst.hst FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.validar_set_hst();


--
-- Name: itm trg_actualizar_hst_usados; Type: TRIGGER; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE TRIGGER trg_actualizar_hst_usados AFTER INSERT OR UPDATE ON tzzr_core_itm_base.itm FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.actualizar_hst_usados();


--
-- Name: loc trg_actualizar_hst_usados; Type: TRIGGER; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE TRIGGER trg_actualizar_hst_usados AFTER INSERT OR UPDATE ON tzzr_core_itm_base.loc FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.actualizar_hst_usados();


--
-- Name: ply trg_actualizar_hst_usados; Type: TRIGGER; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE TRIGGER trg_actualizar_hst_usados AFTER INSERT OR UPDATE ON tzzr_core_itm_base.ply FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.actualizar_hst_usados();


--
-- Name: itm trg_validar_set_hst; Type: TRIGGER; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE TRIGGER trg_validar_set_hst BEFORE INSERT OR UPDATE ON tzzr_core_itm_base.itm FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.validar_set_hst();


--
-- Name: loc trg_validar_set_hst; Type: TRIGGER; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE TRIGGER trg_validar_set_hst BEFORE INSERT OR UPDATE ON tzzr_core_itm_base.loc FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.validar_set_hst();


--
-- Name: ply trg_validar_set_hst; Type: TRIGGER; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE TRIGGER trg_validar_set_hst BEFORE INSERT OR UPDATE ON tzzr_core_itm_base.ply FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.validar_set_hst();


--
-- Name: mst trg_actualizar_hst_usados; Type: TRIGGER; Schema: tzzr_core_oracle; Owner: postgres
--

CREATE TRIGGER trg_actualizar_hst_usados AFTER INSERT OR UPDATE ON tzzr_core_oracle.mst FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.actualizar_hst_usados();


--
-- Name: mst trg_validar_set_hst; Type: TRIGGER; Schema: tzzr_core_oracle; Owner: postgres
--

CREATE TRIGGER trg_validar_set_hst BEFORE INSERT OR UPDATE ON tzzr_core_oracle.mst FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.validar_set_hst();


--
-- Name: mth trg_actualizar_hst_usados; Type: TRIGGER; Schema: tzzr_core_produccion; Owner: postgres
--

CREATE TRIGGER trg_actualizar_hst_usados AFTER INSERT OR UPDATE ON tzzr_core_produccion.mth FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.actualizar_hst_usados();


--
-- Name: mth trg_validar_set_hst; Type: TRIGGER; Schema: tzzr_core_produccion; Owner: postgres
--

CREATE TRIGGER trg_validar_set_hst BEFORE INSERT OR UPDATE ON tzzr_core_produccion.mth FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.validar_set_hst();


--
-- Name: bck trg_actualizar_hst_usados; Type: TRIGGER; Schema: tzzr_core_secretaria; Owner: tzzr
--

CREATE TRIGGER trg_actualizar_hst_usados AFTER INSERT OR UPDATE ON tzzr_core_secretaria.bck FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.actualizar_hst_usados();


--
-- Name: mst trg_actualizar_hst_usados; Type: TRIGGER; Schema: tzzr_core_secretaria; Owner: postgres
--

CREATE TRIGGER trg_actualizar_hst_usados AFTER INSERT OR UPDATE ON tzzr_core_secretaria.mst FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.actualizar_hst_usados();


--
-- Name: bck trg_validar_set_hst; Type: TRIGGER; Schema: tzzr_core_secretaria; Owner: tzzr
--

CREATE TRIGGER trg_validar_set_hst BEFORE INSERT OR UPDATE ON tzzr_core_secretaria.bck FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.validar_set_hst();


--
-- Name: mst trg_validar_set_hst; Type: TRIGGER; Schema: tzzr_core_secretaria; Owner: postgres
--

CREATE TRIGGER trg_validar_set_hst BEFORE INSERT OR UPDATE ON tzzr_core_secretaria.mst FOR EACH ROW EXECUTE FUNCTION tzzr_core_hst.validar_set_hst();


--
-- Name: message trg_message_worm; Type: TRIGGER; Schema: tzzr_iachat; Owner: tzzr
--

CREATE TRIGGER trg_message_worm BEFORE DELETE OR UPDATE ON tzzr_iachat.message FOR EACH ROW EXECUTE FUNCTION tzzr_iachat.message_worm();


--
-- Name: threads trg_threads_updated_at; Type: TRIGGER; Schema: tzzr_iachat; Owner: tzzr
--

CREATE TRIGGER trg_threads_updated_at BEFORE UPDATE ON tzzr_iachat.threads FOR EACH ROW EXECUTE FUNCTION tzzr_iachat.update_threads_updated_at();


--
-- Name: list trigger_list_updated_at; Type: TRIGGER; Schema: tzzr_list; Owner: tzzr
--

CREATE TRIGGER trigger_list_updated_at BEFORE UPDATE ON tzzr_list.list FOR EACH ROW EXECUTE FUNCTION tzzr_list.update_updated_at();


--
-- Name: atc atc_before_insert_upsert; Type: TRIGGER; Schema: tzzr_storage; Owner: postgres
--

CREATE TRIGGER atc_before_insert_upsert BEFORE INSERT ON tzzr_storage.atc FOR EACH ROW EXECUTE FUNCTION tzzr_storage.atc_upsert_trigger();


--
-- Name: user_keys update_user_keys_updated_at; Type: TRIGGER; Schema: tzzr_system; Owner: tzzr
--

CREATE TRIGGER update_user_keys_updated_at BEFORE UPDATE ON tzzr_system.user_keys FOR EACH ROW EXECUTE FUNCTION tzzr_system.update_updated_at_column();


--
-- Name: context_weights context_weights_assigned_by_fkey; Type: FK CONSTRAINT; Schema: cto; Owner: tzzr
--

ALTER TABLE ONLY cto.context_weights
    ADD CONSTRAINT context_weights_assigned_by_fkey FOREIGN KEY (assigned_by) REFERENCES cto.players(uuid);


--
-- Name: context_weights context_weights_thread_uuid_fkey; Type: FK CONSTRAINT; Schema: cto; Owner: tzzr
--

ALTER TABLE ONLY cto.context_weights
    ADD CONSTRAINT context_weights_thread_uuid_fkey FOREIGN KEY (thread_uuid) REFERENCES cto.threads(uuid);


--
-- Name: messages messages_prev_uuid_fkey; Type: FK CONSTRAINT; Schema: cto; Owner: tzzr
--

ALTER TABLE ONLY cto.messages
    ADD CONSTRAINT messages_prev_uuid_fkey FOREIGN KEY (prev_uuid) REFERENCES cto.messages(uuid);


--
-- Name: messages messages_sender_uuid_fkey; Type: FK CONSTRAINT; Schema: cto; Owner: tzzr
--

ALTER TABLE ONLY cto.messages
    ADD CONSTRAINT messages_sender_uuid_fkey FOREIGN KEY (sender_uuid) REFERENCES cto.players(uuid);


--
-- Name: messages messages_thread_uuid_fkey; Type: FK CONSTRAINT; Schema: cto; Owner: tzzr
--

ALTER TABLE ONLY cto.messages
    ADD CONSTRAINT messages_thread_uuid_fkey FOREIGN KEY (thread_uuid) REFERENCES cto.threads(uuid);


--
-- Name: thread_documents thread_documents_added_by_fkey; Type: FK CONSTRAINT; Schema: cto; Owner: tzzr
--

ALTER TABLE ONLY cto.thread_documents
    ADD CONSTRAINT thread_documents_added_by_fkey FOREIGN KEY (added_by) REFERENCES cto.players(uuid);


--
-- Name: thread_documents thread_documents_promoted_from_fkey; Type: FK CONSTRAINT; Schema: cto; Owner: tzzr
--

ALTER TABLE ONLY cto.thread_documents
    ADD CONSTRAINT thread_documents_promoted_from_fkey FOREIGN KEY (promoted_from) REFERENCES cto.messages(uuid);


--
-- Name: thread_documents thread_documents_thread_uuid_fkey; Type: FK CONSTRAINT; Schema: cto; Owner: tzzr
--

ALTER TABLE ONLY cto.thread_documents
    ADD CONSTRAINT thread_documents_thread_uuid_fkey FOREIGN KEY (thread_uuid) REFERENCES cto.threads(uuid);


--
-- Name: threads threads_parent_uuid_fkey; Type: FK CONSTRAINT; Schema: cto; Owner: tzzr
--

ALTER TABLE ONLY cto.threads
    ADD CONSTRAINT threads_parent_uuid_fkey FOREIGN KEY (parent_uuid) REFERENCES cto.threads(uuid);


--
-- Name: exe exe_mth_mrf_fkey; Type: FK CONSTRAINT; Schema: production_alfred; Owner: postgres
--

ALTER TABLE ONLY production_alfred.exe
    ADD CONSTRAINT exe_mth_mrf_fkey FOREIGN KEY (mth_mrf) REFERENCES tzzr_core_itm_base.ply(mrf);


--
-- Name: exe exe_parent_exe_mrf_fkey; Type: FK CONSTRAINT; Schema: production_alfred; Owner: postgres
--

ALTER TABLE ONLY production_alfred.exe
    ADD CONSTRAINT exe_parent_exe_mrf_fkey FOREIGN KEY (parent_exe_mrf) REFERENCES production_alfred.exe(mrf);


--
-- Name: rule_log rule_log_rule_mrf_fkey; Type: FK CONSTRAINT; Schema: production_alfred; Owner: postgres
--

ALTER TABLE ONLY production_alfred.rule_log
    ADD CONSTRAINT rule_log_rule_mrf_fkey FOREIGN KEY (rule_mrf) REFERENCES production_alfred.rules(mrf);


--
-- Name: library_model library_model_mrf_child_fkey; Type: FK CONSTRAINT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.library_model
    ADD CONSTRAINT library_model_mrf_child_fkey FOREIGN KEY (mrf_child) REFERENCES tzzr_ai.model(mrf);


--
-- Name: library_setup_agent library_setup_agent_mrf_library_fkey; Type: FK CONSTRAINT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.library_setup_agent
    ADD CONSTRAINT library_setup_agent_mrf_library_fkey FOREIGN KEY (mrf_library) REFERENCES tzzr_ai.setup(mrf);


--
-- Name: library_setup_model library_setup_model_mrf_library_fkey; Type: FK CONSTRAINT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.library_setup_model
    ADD CONSTRAINT library_setup_model_mrf_library_fkey FOREIGN KEY (mrf_library) REFERENCES tzzr_ai.setup(mrf);


--
-- Name: model model_provider_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.model
    ADD CONSTRAINT model_provider_mrf_fkey FOREIGN KEY (provider_mrf) REFERENCES tzzr_ai.provider(mrf);


--
-- Name: model_usage model_usage_model_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.model_usage
    ADD CONSTRAINT model_usage_model_mrf_fkey FOREIGN KEY (model_mrf) REFERENCES tzzr_ai.model(mrf);


--
-- Name: actions actions_session_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.actions
    ADD CONSTRAINT actions_session_mrf_fkey FOREIGN KEY (session_mrf) REFERENCES tzzr_iachat.session(mrf) ON DELETE CASCADE;


--
-- Name: embeddings embeddings_session_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.embeddings
    ADD CONSTRAINT embeddings_session_mrf_fkey FOREIGN KEY (session_mrf) REFERENCES tzzr_iachat.session(mrf) ON DELETE CASCADE;


--
-- Name: enrichment enrichment_session_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.enrichment
    ADD CONSTRAINT enrichment_session_mrf_fkey FOREIGN KEY (session_mrf) REFERENCES tzzr_iachat.session(mrf) ON DELETE CASCADE;


--
-- Name: extracted extracted_session_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.extracted
    ADD CONSTRAINT extracted_session_mrf_fkey FOREIGN KEY (session_mrf) REFERENCES tzzr_iachat.session(mrf) ON DELETE CASCADE;


--
-- Name: graph_threads graph_threads_mrf_a_fkey; Type: FK CONSTRAINT; Schema: tzzr_chat_ai; Owner: tzzr
--

ALTER TABLE ONLY tzzr_chat_ai.graph_threads
    ADD CONSTRAINT graph_threads_mrf_a_fkey FOREIGN KEY (mrf_a) REFERENCES tzzr_iachat.threads(mrf) ON DELETE CASCADE;


--
-- Name: graph_threads graph_threads_mrf_b_fkey; Type: FK CONSTRAINT; Schema: tzzr_chat_ai; Owner: tzzr
--

ALTER TABLE ONLY tzzr_chat_ai.graph_threads
    ADD CONSTRAINT graph_threads_mrf_b_fkey FOREIGN KEY (mrf_b) REFERENCES tzzr_iachat.threads(mrf) ON DELETE CASCADE;


--
-- Name: library_threads library_threads_mrf_child_fkey; Type: FK CONSTRAINT; Schema: tzzr_chat_ai; Owner: tzzr
--

ALTER TABLE ONLY tzzr_chat_ai.library_threads
    ADD CONSTRAINT library_threads_mrf_child_fkey FOREIGN KEY (mrf_child) REFERENCES tzzr_iachat.threads(mrf) ON DELETE CASCADE;


--
-- Name: library_threads library_threads_mrf_library_fkey; Type: FK CONSTRAINT; Schema: tzzr_chat_ai; Owner: tzzr
--

ALTER TABLE ONLY tzzr_chat_ai.library_threads
    ADD CONSTRAINT library_threads_mrf_library_fkey FOREIGN KEY (mrf_library) REFERENCES tzzr_iachat.threads(mrf) ON DELETE CASCADE;


--
-- Name: tree_threads tree_threads_mrf_child_fkey; Type: FK CONSTRAINT; Schema: tzzr_chat_ai; Owner: tzzr
--

ALTER TABLE ONLY tzzr_chat_ai.tree_threads
    ADD CONSTRAINT tree_threads_mrf_child_fkey FOREIGN KEY (mrf_child) REFERENCES tzzr_iachat.threads(mrf) ON DELETE CASCADE;


--
-- Name: tree_threads tree_threads_mrf_parent_fkey; Type: FK CONSTRAINT; Schema: tzzr_chat_ai; Owner: tzzr
--

ALTER TABLE ONLY tzzr_chat_ai.tree_threads
    ADD CONSTRAINT tree_threads_mrf_parent_fkey FOREIGN KEY (mrf_parent) REFERENCES tzzr_iachat.threads(mrf) ON DELETE CASCADE;


--
-- Name: workspace workspace_session_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.workspace
    ADD CONSTRAINT workspace_session_mrf_fkey FOREIGN KEY (session_mrf) REFERENCES tzzr_iachat.session(mrf) ON DELETE SET NULL;


--
-- Name: chat chat_set_hst_fkey; Type: FK CONSTRAINT; Schema: tzzr_communications; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications.chat
    ADD CONSTRAINT chat_set_hst_fkey FOREIGN KEY (set_hst) REFERENCES tzzr_core_hst.hst(mrf);


--
-- Name: mail_attachment_links mail_attachment_links_hash_fkey; Type: FK CONSTRAINT; Schema: tzzr_communications; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications.mail_attachment_links
    ADD CONSTRAINT mail_attachment_links_hash_fkey FOREIGN KEY (hash) REFERENCES tzzr_communications.mail_attachments(hash);


--
-- Name: mail_attachment_links mail_attachment_links_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_communications; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications.mail_attachment_links
    ADD CONSTRAINT mail_attachment_links_mrf_fkey FOREIGN KEY (mrf) REFERENCES tzzr_communications.mail(mrf);


--
-- Name: mail mail_set_hst_fkey; Type: FK CONSTRAINT; Schema: tzzr_communications; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications.mail
    ADD CONSTRAINT mail_set_hst_fkey FOREIGN KEY (set_hst) REFERENCES tzzr_core_hst.hst(mrf);


--
-- Name: draft_profile_rules draft_profile_rules_profile_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.draft_profile_rules
    ADD CONSTRAINT draft_profile_rules_profile_mrf_fkey FOREIGN KEY (profile_mrf) REFERENCES tzzr_communications_ai.draft_profiles(mrf) ON DELETE CASCADE;


--
-- Name: draft_profile_rules draft_profile_rules_tone_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.draft_profile_rules
    ADD CONSTRAINT draft_profile_rules_tone_mrf_fkey FOREIGN KEY (tone_mrf) REFERENCES tzzr_communications_ai.draft_tones(mrf) ON DELETE SET NULL;


--
-- Name: mail_actions mail_actions_mail_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_actions
    ADD CONSTRAINT mail_actions_mail_mrf_fkey FOREIGN KEY (mail_mrf) REFERENCES tzzr_communications.mail(mrf);


--
-- Name: mail_ai_workspace mail_ai_workspace_mail_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_ai_workspace
    ADD CONSTRAINT mail_ai_workspace_mail_mrf_fkey FOREIGN KEY (mail_mrf) REFERENCES tzzr_communications.mail(mrf) ON DELETE SET NULL;


--
-- Name: mail_drafts mail_drafts_mail_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_drafts
    ADD CONSTRAINT mail_drafts_mail_mrf_fkey FOREIGN KEY (mail_mrf) REFERENCES tzzr_communications.mail(mrf);


--
-- Name: mail_drafts mail_drafts_profile_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_drafts
    ADD CONSTRAINT mail_drafts_profile_mrf_fkey FOREIGN KEY (profile_mrf) REFERENCES tzzr_communications_ai.draft_profiles(mrf) ON DELETE SET NULL;


--
-- Name: mail_drafts mail_drafts_tone_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_drafts
    ADD CONSTRAINT mail_drafts_tone_mrf_fkey FOREIGN KEY (tone_mrf) REFERENCES tzzr_communications_ai.draft_tones(mrf) ON DELETE SET NULL;


--
-- Name: mail_embeddings mail_embeddings_mail_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_embeddings
    ADD CONSTRAINT mail_embeddings_mail_mrf_fkey FOREIGN KEY (mail_mrf) REFERENCES tzzr_communications.mail(mrf) ON DELETE CASCADE;


--
-- Name: mail_enrichment mail_enrichment_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_enrichment
    ADD CONSTRAINT mail_enrichment_mrf_fkey FOREIGN KEY (mrf) REFERENCES tzzr_communications.mail(mrf) ON DELETE CASCADE;


--
-- Name: mail_extracted mail_extracted_mail_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_extracted
    ADD CONSTRAINT mail_extracted_mail_mrf_fkey FOREIGN KEY (mail_mrf) REFERENCES tzzr_communications.mail(mrf) ON DELETE CASCADE;


--
-- Name: folders folders_account_id_fkey; Type: FK CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.folders
    ADD CONSTRAINT folders_account_id_fkey FOREIGN KEY (account_id) REFERENCES tzzr_communications_str.inbox(id);


--
-- Name: folders folders_parent_id_fkey; Type: FK CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.folders
    ADD CONSTRAINT folders_parent_id_fkey FOREIGN KEY (parent_id) REFERENCES tzzr_communications_str.folders(id);


--
-- Name: mail_folder_assignment mail_folder_assignment_folder_id_fkey; Type: FK CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.mail_folder_assignment
    ADD CONSTRAINT mail_folder_assignment_folder_id_fkey FOREIGN KEY (folder_id) REFERENCES tzzr_communications_str.folders(id) ON DELETE CASCADE;


--
-- Name: mail_folder_assignment mail_folder_assignment_mail_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.mail_folder_assignment
    ADD CONSTRAINT mail_folder_assignment_mail_mrf_fkey FOREIGN KEY (mail_mrf) REFERENCES tzzr_communications.mail(mrf) ON DELETE CASCADE;


--
-- Name: short_urls short_urls_domain_id_fkey; Type: FK CONSTRAINT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.short_urls
    ADD CONSTRAINT short_urls_domain_id_fkey FOREIGN KEY (domain_id) REFERENCES tzzr_communications_str.domains(id);


--
-- Name: bck administracion_bck_set_hst_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_administracion; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_administracion.bck
    ADD CONSTRAINT administracion_bck_set_hst_fkey FOREIGN KEY (set_hst) REFERENCES tzzr_core_hst.hst(mrf);


--
-- Name: mst administracion_mst_set_hst_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.mst
    ADD CONSTRAINT administracion_mst_set_hst_fkey FOREIGN KEY (set_hst) REFERENCES tzzr_core_hst.hst(mrf);


--
-- Name: graph_bck fk_adm_graph_bck_a; Type: FK CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.graph_bck
    ADD CONSTRAINT fk_adm_graph_bck_a FOREIGN KEY (mrf_a) REFERENCES tzzr_core_administracion.bck(mrf) ON DELETE CASCADE;


--
-- Name: graph_bck fk_adm_graph_bck_b; Type: FK CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.graph_bck
    ADD CONSTRAINT fk_adm_graph_bck_b FOREIGN KEY (mrf_b) REFERENCES tzzr_core_administracion.bck(mrf) ON DELETE CASCADE;


--
-- Name: graph_mst fk_adm_graph_mst_a; Type: FK CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.graph_mst
    ADD CONSTRAINT fk_adm_graph_mst_a FOREIGN KEY (mrf_a) REFERENCES tzzr_core_administracion.mst(mrf) ON DELETE CASCADE;


--
-- Name: graph_mst fk_adm_graph_mst_b; Type: FK CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.graph_mst
    ADD CONSTRAINT fk_adm_graph_mst_b FOREIGN KEY (mrf_b) REFERENCES tzzr_core_administracion.mst(mrf) ON DELETE CASCADE;


--
-- Name: library_bck fk_adm_library_bck_child; Type: FK CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.library_bck
    ADD CONSTRAINT fk_adm_library_bck_child FOREIGN KEY (mrf_child) REFERENCES tzzr_core_administracion.bck(mrf) ON DELETE CASCADE;


--
-- Name: library_bck fk_adm_library_bck_lib; Type: FK CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.library_bck
    ADD CONSTRAINT fk_adm_library_bck_lib FOREIGN KEY (mrf_library) REFERENCES tzzr_core_administracion.bck(mrf) ON DELETE CASCADE;


--
-- Name: library_mst fk_adm_library_mst_child; Type: FK CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.library_mst
    ADD CONSTRAINT fk_adm_library_mst_child FOREIGN KEY (mrf_child) REFERENCES tzzr_core_administracion.mst(mrf) ON DELETE CASCADE;


--
-- Name: library_mst fk_adm_library_mst_lib; Type: FK CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.library_mst
    ADD CONSTRAINT fk_adm_library_mst_lib FOREIGN KEY (mrf_library) REFERENCES tzzr_core_administracion.mst(mrf) ON DELETE CASCADE;


--
-- Name: tree_bck fk_adm_tree_bck_child; Type: FK CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.tree_bck
    ADD CONSTRAINT fk_adm_tree_bck_child FOREIGN KEY (mrf_child) REFERENCES tzzr_core_administracion.bck(mrf) ON DELETE CASCADE;


--
-- Name: tree_bck fk_adm_tree_bck_parent; Type: FK CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.tree_bck
    ADD CONSTRAINT fk_adm_tree_bck_parent FOREIGN KEY (mrf_parent) REFERENCES tzzr_core_administracion.bck(mrf) ON DELETE CASCADE;


--
-- Name: tree_mst fk_adm_tree_mst_child; Type: FK CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.tree_mst
    ADD CONSTRAINT fk_adm_tree_mst_child FOREIGN KEY (mrf_child) REFERENCES tzzr_core_administracion.mst(mrf) ON DELETE CASCADE;


--
-- Name: tree_mst fk_adm_tree_mst_parent; Type: FK CONSTRAINT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.tree_mst
    ADD CONSTRAINT fk_adm_tree_mst_parent FOREIGN KEY (mrf_parent) REFERENCES tzzr_core_administracion.mst(mrf) ON DELETE CASCADE;


--
-- Name: bck contabilidad_bck_set_hst_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_contabilidad.bck
    ADD CONSTRAINT contabilidad_bck_set_hst_fkey FOREIGN KEY (set_hst) REFERENCES tzzr_core_hst.hst(mrf);


--
-- Name: mst contabilidad_mst_set_hst_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.mst
    ADD CONSTRAINT contabilidad_mst_set_hst_fkey FOREIGN KEY (set_hst) REFERENCES tzzr_core_hst.hst(mrf);


--
-- Name: graph_bck fk_cont_graph_bck_a; Type: FK CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.graph_bck
    ADD CONSTRAINT fk_cont_graph_bck_a FOREIGN KEY (mrf_a) REFERENCES tzzr_core_contabilidad.bck(mrf) ON DELETE CASCADE;


--
-- Name: graph_bck fk_cont_graph_bck_b; Type: FK CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.graph_bck
    ADD CONSTRAINT fk_cont_graph_bck_b FOREIGN KEY (mrf_b) REFERENCES tzzr_core_contabilidad.bck(mrf) ON DELETE CASCADE;


--
-- Name: graph_mst fk_cont_graph_mst_a; Type: FK CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.graph_mst
    ADD CONSTRAINT fk_cont_graph_mst_a FOREIGN KEY (mrf_a) REFERENCES tzzr_core_contabilidad.mst(mrf) ON DELETE CASCADE;


--
-- Name: graph_mst fk_cont_graph_mst_b; Type: FK CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.graph_mst
    ADD CONSTRAINT fk_cont_graph_mst_b FOREIGN KEY (mrf_b) REFERENCES tzzr_core_contabilidad.mst(mrf) ON DELETE CASCADE;


--
-- Name: library_bck fk_cont_library_bck_child; Type: FK CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.library_bck
    ADD CONSTRAINT fk_cont_library_bck_child FOREIGN KEY (mrf_child) REFERENCES tzzr_core_contabilidad.bck(mrf) ON DELETE CASCADE;


--
-- Name: library_bck fk_cont_library_bck_lib; Type: FK CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.library_bck
    ADD CONSTRAINT fk_cont_library_bck_lib FOREIGN KEY (mrf_library) REFERENCES tzzr_core_contabilidad.bck(mrf) ON DELETE CASCADE;


--
-- Name: library_mst fk_cont_library_mst_child; Type: FK CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.library_mst
    ADD CONSTRAINT fk_cont_library_mst_child FOREIGN KEY (mrf_child) REFERENCES tzzr_core_contabilidad.mst(mrf) ON DELETE CASCADE;


--
-- Name: library_mst fk_cont_library_mst_lib; Type: FK CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.library_mst
    ADD CONSTRAINT fk_cont_library_mst_lib FOREIGN KEY (mrf_library) REFERENCES tzzr_core_contabilidad.mst(mrf) ON DELETE CASCADE;


--
-- Name: tree_bck fk_cont_tree_bck_child; Type: FK CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.tree_bck
    ADD CONSTRAINT fk_cont_tree_bck_child FOREIGN KEY (mrf_child) REFERENCES tzzr_core_contabilidad.bck(mrf) ON DELETE CASCADE;


--
-- Name: tree_bck fk_cont_tree_bck_parent; Type: FK CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.tree_bck
    ADD CONSTRAINT fk_cont_tree_bck_parent FOREIGN KEY (mrf_parent) REFERENCES tzzr_core_contabilidad.bck(mrf) ON DELETE CASCADE;


--
-- Name: tree_mst fk_cont_tree_mst_child; Type: FK CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.tree_mst
    ADD CONSTRAINT fk_cont_tree_mst_child FOREIGN KEY (mrf_child) REFERENCES tzzr_core_contabilidad.mst(mrf) ON DELETE CASCADE;


--
-- Name: tree_mst fk_cont_tree_mst_parent; Type: FK CONSTRAINT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.tree_mst
    ADD CONSTRAINT fk_cont_tree_mst_parent FOREIGN KEY (mrf_parent) REFERENCES tzzr_core_contabilidad.mst(mrf) ON DELETE CASCADE;


--
-- Name: flg flg_set_hst_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.flg
    ADD CONSTRAINT flg_set_hst_fkey FOREIGN KEY (set_hst) REFERENCES tzzr_core_hst.hst(mrf);


--
-- Name: graph_flg graph_flg_mrf_a_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.graph_flg
    ADD CONSTRAINT graph_flg_mrf_a_fkey FOREIGN KEY (mrf_a) REFERENCES tzzr_core_hst.flg(mrf) ON DELETE CASCADE;


--
-- Name: graph_flg graph_flg_mrf_b_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.graph_flg
    ADD CONSTRAINT graph_flg_mrf_b_fkey FOREIGN KEY (mrf_b) REFERENCES tzzr_core_hst.flg(mrf) ON DELETE CASCADE;


--
-- Name: graph_hst graph_hst_mrf_a_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.graph_hst
    ADD CONSTRAINT graph_hst_mrf_a_fkey FOREIGN KEY (mrf_a) REFERENCES tzzr_core_hst.hst(mrf) ON DELETE CASCADE;


--
-- Name: graph_hst graph_hst_mrf_b_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.graph_hst
    ADD CONSTRAINT graph_hst_mrf_b_fkey FOREIGN KEY (mrf_b) REFERENCES tzzr_core_hst.hst(mrf) ON DELETE CASCADE;


--
-- Name: hst hst_set_hst_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.hst
    ADD CONSTRAINT hst_set_hst_fkey FOREIGN KEY (set_hst) REFERENCES tzzr_core_hst.hst(mrf);


--
-- Name: library_flg library_flg_mrf_child_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.library_flg
    ADD CONSTRAINT library_flg_mrf_child_fkey FOREIGN KEY (mrf_child) REFERENCES tzzr_core_hst.flg(mrf) ON DELETE CASCADE;


--
-- Name: library_flg library_flg_mrf_library_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.library_flg
    ADD CONSTRAINT library_flg_mrf_library_fkey FOREIGN KEY (mrf_library) REFERENCES tzzr_core_hst.flg(mrf) ON DELETE CASCADE;


--
-- Name: library_hst library_hst_mrf_child_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.library_hst
    ADD CONSTRAINT library_hst_mrf_child_fkey FOREIGN KEY (mrf_child) REFERENCES tzzr_core_hst.hst(mrf) ON DELETE CASCADE;


--
-- Name: library_hst library_hst_mrf_library_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.library_hst
    ADD CONSTRAINT library_hst_mrf_library_fkey FOREIGN KEY (mrf_library) REFERENCES tzzr_core_hst.hst(mrf) ON DELETE CASCADE;


--
-- Name: tree_flg tree_flg_mrf_child_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.tree_flg
    ADD CONSTRAINT tree_flg_mrf_child_fkey FOREIGN KEY (mrf_child) REFERENCES tzzr_core_hst.flg(mrf) ON DELETE CASCADE;


--
-- Name: tree_flg tree_flg_mrf_parent_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.tree_flg
    ADD CONSTRAINT tree_flg_mrf_parent_fkey FOREIGN KEY (mrf_parent) REFERENCES tzzr_core_hst.flg(mrf) ON DELETE CASCADE;


--
-- Name: tree_hst tree_hst_mrf_child_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.tree_hst
    ADD CONSTRAINT tree_hst_mrf_child_fkey FOREIGN KEY (mrf_child) REFERENCES tzzr_core_hst.hst(mrf) ON DELETE CASCADE;


--
-- Name: tree_hst tree_hst_mrf_parent_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.tree_hst
    ADD CONSTRAINT tree_hst_mrf_parent_fkey FOREIGN KEY (mrf_parent) REFERENCES tzzr_core_hst.hst(mrf) ON DELETE CASCADE;


--
-- Name: graph_itm graph_itm_mrf_a_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.graph_itm
    ADD CONSTRAINT graph_itm_mrf_a_fkey FOREIGN KEY (mrf_a) REFERENCES tzzr_core_itm_base.itm(mrf) ON DELETE CASCADE;


--
-- Name: graph_itm graph_itm_mrf_b_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.graph_itm
    ADD CONSTRAINT graph_itm_mrf_b_fkey FOREIGN KEY (mrf_b) REFERENCES tzzr_core_itm_base.itm(mrf) ON DELETE CASCADE;


--
-- Name: graph_loc graph_loc_mrf_a_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.graph_loc
    ADD CONSTRAINT graph_loc_mrf_a_fkey FOREIGN KEY (mrf_a) REFERENCES tzzr_core_itm_base.loc(mrf) ON DELETE CASCADE;


--
-- Name: graph_loc graph_loc_mrf_b_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.graph_loc
    ADD CONSTRAINT graph_loc_mrf_b_fkey FOREIGN KEY (mrf_b) REFERENCES tzzr_core_itm_base.loc(mrf) ON DELETE CASCADE;


--
-- Name: graph_ply graph_ply_mrf_a_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.graph_ply
    ADD CONSTRAINT graph_ply_mrf_a_fkey FOREIGN KEY (mrf_a) REFERENCES tzzr_core_itm_base.ply(mrf) ON DELETE CASCADE;


--
-- Name: graph_ply graph_ply_mrf_b_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.graph_ply
    ADD CONSTRAINT graph_ply_mrf_b_fkey FOREIGN KEY (mrf_b) REFERENCES tzzr_core_itm_base.ply(mrf) ON DELETE CASCADE;


--
-- Name: itm itm_set_hst_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.itm
    ADD CONSTRAINT itm_set_hst_fkey FOREIGN KEY (set_hst) REFERENCES tzzr_core_hst.hst(mrf);


--
-- Name: library_itm library_itm_mrf_child_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.library_itm
    ADD CONSTRAINT library_itm_mrf_child_fkey FOREIGN KEY (mrf_child) REFERENCES tzzr_core_itm_base.itm(mrf) ON DELETE CASCADE;


--
-- Name: library_itm library_itm_mrf_library_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.library_itm
    ADD CONSTRAINT library_itm_mrf_library_fkey FOREIGN KEY (mrf_library) REFERENCES tzzr_core_itm_base.itm(mrf) ON DELETE CASCADE;


--
-- Name: library_loc library_loc_mrf_child_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.library_loc
    ADD CONSTRAINT library_loc_mrf_child_fkey FOREIGN KEY (mrf_child) REFERENCES tzzr_core_itm_base.loc(mrf) ON DELETE CASCADE;


--
-- Name: library_loc library_loc_mrf_library_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.library_loc
    ADD CONSTRAINT library_loc_mrf_library_fkey FOREIGN KEY (mrf_library) REFERENCES tzzr_core_itm_base.loc(mrf) ON DELETE CASCADE;


--
-- Name: library_ply library_ply_mrf_child_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.library_ply
    ADD CONSTRAINT library_ply_mrf_child_fkey FOREIGN KEY (mrf_child) REFERENCES tzzr_core_itm_base.ply(mrf) ON DELETE CASCADE;


--
-- Name: library_ply library_ply_mrf_library_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.library_ply
    ADD CONSTRAINT library_ply_mrf_library_fkey FOREIGN KEY (mrf_library) REFERENCES tzzr_core_itm_base.ply(mrf) ON DELETE CASCADE;


--
-- Name: loc loc_set_hst_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.loc
    ADD CONSTRAINT loc_set_hst_fkey FOREIGN KEY (set_hst) REFERENCES tzzr_core_hst.hst(mrf);


--
-- Name: ply ply_set_hst_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.ply
    ADD CONSTRAINT ply_set_hst_fkey FOREIGN KEY (set_hst) REFERENCES tzzr_core_hst.hst(mrf);


--
-- Name: tree_itm tree_itm_mrf_child_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.tree_itm
    ADD CONSTRAINT tree_itm_mrf_child_fkey FOREIGN KEY (mrf_child) REFERENCES tzzr_core_itm_base.itm(mrf) ON DELETE CASCADE;


--
-- Name: tree_itm tree_itm_mrf_parent_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.tree_itm
    ADD CONSTRAINT tree_itm_mrf_parent_fkey FOREIGN KEY (mrf_parent) REFERENCES tzzr_core_itm_base.itm(mrf) ON DELETE CASCADE;


--
-- Name: tree_loc tree_loc_mrf_child_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.tree_loc
    ADD CONSTRAINT tree_loc_mrf_child_fkey FOREIGN KEY (mrf_child) REFERENCES tzzr_core_itm_base.loc(mrf) ON DELETE CASCADE;


--
-- Name: tree_loc tree_loc_mrf_parent_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.tree_loc
    ADD CONSTRAINT tree_loc_mrf_parent_fkey FOREIGN KEY (mrf_parent) REFERENCES tzzr_core_itm_base.loc(mrf) ON DELETE CASCADE;


--
-- Name: tree_ply tree_ply_mrf_child_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.tree_ply
    ADD CONSTRAINT tree_ply_mrf_child_fkey FOREIGN KEY (mrf_child) REFERENCES tzzr_core_itm_base.ply(mrf) ON DELETE CASCADE;


--
-- Name: tree_ply tree_ply_mrf_parent_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.tree_ply
    ADD CONSTRAINT tree_ply_mrf_parent_fkey FOREIGN KEY (mrf_parent) REFERENCES tzzr_core_itm_base.ply(mrf) ON DELETE CASCADE;


--
-- Name: graph_bck fk_ora_graph_bck_a; Type: FK CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.graph_bck
    ADD CONSTRAINT fk_ora_graph_bck_a FOREIGN KEY (mrf_a) REFERENCES tzzr_core_oracle.mst(mrf) ON DELETE CASCADE;


--
-- Name: graph_bck fk_ora_graph_bck_b; Type: FK CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.graph_bck
    ADD CONSTRAINT fk_ora_graph_bck_b FOREIGN KEY (mrf_b) REFERENCES tzzr_core_oracle.mst(mrf) ON DELETE CASCADE;


--
-- Name: graph_mst fk_ora_graph_mst_a; Type: FK CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.graph_mst
    ADD CONSTRAINT fk_ora_graph_mst_a FOREIGN KEY (mrf_a) REFERENCES tzzr_core_oracle.mst(mrf) ON DELETE CASCADE;


--
-- Name: graph_mst fk_ora_graph_mst_b; Type: FK CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.graph_mst
    ADD CONSTRAINT fk_ora_graph_mst_b FOREIGN KEY (mrf_b) REFERENCES tzzr_core_oracle.mst(mrf) ON DELETE CASCADE;


--
-- Name: library_bck fk_ora_library_bck_child; Type: FK CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.library_bck
    ADD CONSTRAINT fk_ora_library_bck_child FOREIGN KEY (mrf_child) REFERENCES tzzr_core_oracle.mst(mrf) ON DELETE CASCADE;


--
-- Name: library_bck fk_ora_library_bck_lib; Type: FK CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.library_bck
    ADD CONSTRAINT fk_ora_library_bck_lib FOREIGN KEY (mrf_library) REFERENCES tzzr_core_oracle.mst(mrf) ON DELETE CASCADE;


--
-- Name: library_mst fk_ora_library_mst_child; Type: FK CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.library_mst
    ADD CONSTRAINT fk_ora_library_mst_child FOREIGN KEY (mrf_child) REFERENCES tzzr_core_oracle.mst(mrf) ON DELETE CASCADE;


--
-- Name: library_mst fk_ora_library_mst_lib; Type: FK CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.library_mst
    ADD CONSTRAINT fk_ora_library_mst_lib FOREIGN KEY (mrf_library) REFERENCES tzzr_core_oracle.mst(mrf) ON DELETE CASCADE;


--
-- Name: tree_bck fk_ora_tree_bck_child; Type: FK CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.tree_bck
    ADD CONSTRAINT fk_ora_tree_bck_child FOREIGN KEY (mrf_child) REFERENCES tzzr_core_oracle.mst(mrf) ON DELETE CASCADE;


--
-- Name: tree_bck fk_ora_tree_bck_parent; Type: FK CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.tree_bck
    ADD CONSTRAINT fk_ora_tree_bck_parent FOREIGN KEY (mrf_parent) REFERENCES tzzr_core_oracle.mst(mrf) ON DELETE CASCADE;


--
-- Name: tree_mst fk_ora_tree_mst_child; Type: FK CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.tree_mst
    ADD CONSTRAINT fk_ora_tree_mst_child FOREIGN KEY (mrf_child) REFERENCES tzzr_core_oracle.mst(mrf) ON DELETE CASCADE;


--
-- Name: tree_mst fk_ora_tree_mst_parent; Type: FK CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.tree_mst
    ADD CONSTRAINT fk_ora_tree_mst_parent FOREIGN KEY (mrf_parent) REFERENCES tzzr_core_oracle.mst(mrf) ON DELETE CASCADE;


--
-- Name: mst oracle_mst_set_hst_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.mst
    ADD CONSTRAINT oracle_mst_set_hst_fkey FOREIGN KEY (set_hst) REFERENCES tzzr_core_hst.hst(mrf);


--
-- Name: graph_mth graph_mth_mrf_a_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_produccion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_produccion.graph_mth
    ADD CONSTRAINT graph_mth_mrf_a_fkey FOREIGN KEY (mrf_a) REFERENCES tzzr_core_produccion.mth(mrf) ON DELETE CASCADE;


--
-- Name: graph_mth graph_mth_mrf_b_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_produccion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_produccion.graph_mth
    ADD CONSTRAINT graph_mth_mrf_b_fkey FOREIGN KEY (mrf_b) REFERENCES tzzr_core_produccion.mth(mrf) ON DELETE CASCADE;


--
-- Name: library_mth library_mth_mrf_child_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_produccion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_produccion.library_mth
    ADD CONSTRAINT library_mth_mrf_child_fkey FOREIGN KEY (mrf_child) REFERENCES tzzr_core_produccion.mth(mrf) ON DELETE CASCADE;


--
-- Name: library_mth library_mth_mrf_library_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_produccion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_produccion.library_mth
    ADD CONSTRAINT library_mth_mrf_library_fkey FOREIGN KEY (mrf_library) REFERENCES tzzr_core_produccion.mth(mrf) ON DELETE CASCADE;


--
-- Name: mth mth_set_hst_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_produccion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_produccion.mth
    ADD CONSTRAINT mth_set_hst_fkey FOREIGN KEY (set_hst) REFERENCES tzzr_core_hst.hst(mrf);


--
-- Name: tree_mth tree_mth_mrf_child_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_produccion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_produccion.tree_mth
    ADD CONSTRAINT tree_mth_mrf_child_fkey FOREIGN KEY (mrf_child) REFERENCES tzzr_core_produccion.mth(mrf) ON DELETE CASCADE;


--
-- Name: tree_mth tree_mth_mrf_parent_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_produccion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_produccion.tree_mth
    ADD CONSTRAINT tree_mth_mrf_parent_fkey FOREIGN KEY (mrf_parent) REFERENCES tzzr_core_produccion.mth(mrf) ON DELETE CASCADE;


--
-- Name: graph_bck fk_sec_graph_bck_a; Type: FK CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.graph_bck
    ADD CONSTRAINT fk_sec_graph_bck_a FOREIGN KEY (mrf_a) REFERENCES tzzr_core_secretaria.bck(mrf) ON DELETE CASCADE;


--
-- Name: graph_bck fk_sec_graph_bck_b; Type: FK CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.graph_bck
    ADD CONSTRAINT fk_sec_graph_bck_b FOREIGN KEY (mrf_b) REFERENCES tzzr_core_secretaria.bck(mrf) ON DELETE CASCADE;


--
-- Name: graph_mst fk_sec_graph_mst_a; Type: FK CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.graph_mst
    ADD CONSTRAINT fk_sec_graph_mst_a FOREIGN KEY (mrf_a) REFERENCES tzzr_core_secretaria.mst(mrf) ON DELETE CASCADE;


--
-- Name: graph_mst fk_sec_graph_mst_b; Type: FK CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.graph_mst
    ADD CONSTRAINT fk_sec_graph_mst_b FOREIGN KEY (mrf_b) REFERENCES tzzr_core_secretaria.mst(mrf) ON DELETE CASCADE;


--
-- Name: library_bck fk_sec_library_bck_child; Type: FK CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.library_bck
    ADD CONSTRAINT fk_sec_library_bck_child FOREIGN KEY (mrf_child) REFERENCES tzzr_core_secretaria.bck(mrf) ON DELETE CASCADE;


--
-- Name: library_bck fk_sec_library_bck_lib; Type: FK CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.library_bck
    ADD CONSTRAINT fk_sec_library_bck_lib FOREIGN KEY (mrf_library) REFERENCES tzzr_core_secretaria.bck(mrf) ON DELETE CASCADE;


--
-- Name: library_mst fk_sec_library_mst_child; Type: FK CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.library_mst
    ADD CONSTRAINT fk_sec_library_mst_child FOREIGN KEY (mrf_child) REFERENCES tzzr_core_secretaria.mst(mrf) ON DELETE CASCADE;


--
-- Name: library_mst fk_sec_library_mst_lib; Type: FK CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.library_mst
    ADD CONSTRAINT fk_sec_library_mst_lib FOREIGN KEY (mrf_library) REFERENCES tzzr_core_secretaria.mst(mrf) ON DELETE CASCADE;


--
-- Name: tree_bck fk_sec_tree_bck_child; Type: FK CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.tree_bck
    ADD CONSTRAINT fk_sec_tree_bck_child FOREIGN KEY (mrf_child) REFERENCES tzzr_core_secretaria.bck(mrf) ON DELETE CASCADE;


--
-- Name: tree_bck fk_sec_tree_bck_parent; Type: FK CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.tree_bck
    ADD CONSTRAINT fk_sec_tree_bck_parent FOREIGN KEY (mrf_parent) REFERENCES tzzr_core_secretaria.bck(mrf) ON DELETE CASCADE;


--
-- Name: tree_mst fk_sec_tree_mst_child; Type: FK CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.tree_mst
    ADD CONSTRAINT fk_sec_tree_mst_child FOREIGN KEY (mrf_child) REFERENCES tzzr_core_secretaria.mst(mrf) ON DELETE CASCADE;


--
-- Name: tree_mst fk_sec_tree_mst_parent; Type: FK CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.tree_mst
    ADD CONSTRAINT fk_sec_tree_mst_parent FOREIGN KEY (mrf_parent) REFERENCES tzzr_core_secretaria.mst(mrf) ON DELETE CASCADE;


--
-- Name: bck secretaria_bck_set_hst_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_secretaria; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_secretaria.bck
    ADD CONSTRAINT secretaria_bck_set_hst_fkey FOREIGN KEY (set_hst) REFERENCES tzzr_core_hst.hst(mrf);


--
-- Name: mst secretaria_mst_set_hst_fkey; Type: FK CONSTRAINT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.mst
    ADD CONSTRAINT secretaria_mst_set_hst_fkey FOREIGN KEY (set_hst) REFERENCES tzzr_core_hst.hst(mrf);


--
-- Name: agent_llm agent_llm_parent_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.agent_llm
    ADD CONSTRAINT agent_llm_parent_mrf_fkey FOREIGN KEY (parent_mrf) REFERENCES tzzr_iachat.agent_llm(mrf) ON DELETE SET NULL;


--
-- Name: flow_edge flow_edge_flow_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_iachat; Owner: postgres
--

ALTER TABLE ONLY tzzr_iachat.flow_edge
    ADD CONSTRAINT flow_edge_flow_mrf_fkey FOREIGN KEY (flow_mrf) REFERENCES tzzr_iachat.flow(mrf) ON DELETE CASCADE;


--
-- Name: flow_edge flow_edge_source_step_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_iachat; Owner: postgres
--

ALTER TABLE ONLY tzzr_iachat.flow_edge
    ADD CONSTRAINT flow_edge_source_step_mrf_fkey FOREIGN KEY (source_step_mrf) REFERENCES tzzr_iachat.flow_step(mrf) ON DELETE CASCADE;


--
-- Name: flow_edge flow_edge_target_step_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_iachat; Owner: postgres
--

ALTER TABLE ONLY tzzr_iachat.flow_edge
    ADD CONSTRAINT flow_edge_target_step_mrf_fkey FOREIGN KEY (target_step_mrf) REFERENCES tzzr_iachat.flow_step(mrf) ON DELETE CASCADE;


--
-- Name: flow_execution flow_execution_flow_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.flow_execution
    ADD CONSTRAINT flow_execution_flow_mrf_fkey FOREIGN KEY (flow_mrf) REFERENCES tzzr_iachat.flow(mrf);


--
-- Name: flow_execution flow_execution_session_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.flow_execution
    ADD CONSTRAINT flow_execution_session_mrf_fkey FOREIGN KEY (session_mrf) REFERENCES tzzr_iachat.session(mrf);


--
-- Name: flow_step_execution flow_step_execution_execution_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.flow_step_execution
    ADD CONSTRAINT flow_step_execution_execution_mrf_fkey FOREIGN KEY (execution_mrf) REFERENCES tzzr_iachat.flow_execution(mrf) ON DELETE CASCADE;


--
-- Name: flow_step_execution flow_step_execution_step_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.flow_step_execution
    ADD CONSTRAINT flow_step_execution_step_mrf_fkey FOREIGN KEY (step_mrf) REFERENCES tzzr_iachat.flow_step(mrf);


--
-- Name: flow_step flow_step_flow_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.flow_step
    ADD CONSTRAINT flow_step_flow_mrf_fkey FOREIGN KEY (flow_mrf) REFERENCES tzzr_iachat.flow(mrf) ON DELETE CASCADE;


--
-- Name: message message_session_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.message
    ADD CONSTRAINT message_session_mrf_fkey FOREIGN KEY (session_mrf) REFERENCES tzzr_iachat.session(mrf);


--
-- Name: project_agent_llm project_agent_llm_agent_llm_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.project_agent_llm
    ADD CONSTRAINT project_agent_llm_agent_llm_mrf_fkey FOREIGN KEY (agent_llm_mrf) REFERENCES tzzr_iachat.agent_llm(mrf) ON DELETE CASCADE;


--
-- Name: project_agent_llm project_agent_llm_project_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.project_agent_llm
    ADD CONSTRAINT project_agent_llm_project_mrf_fkey FOREIGN KEY (project_mrf) REFERENCES tzzr_iachat.project(mrf) ON DELETE CASCADE;


--
-- Name: project project_parent_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.project
    ADD CONSTRAINT project_parent_mrf_fkey FOREIGN KEY (parent_mrf) REFERENCES tzzr_iachat.project(mrf);


--
-- Name: session session_agent_llm_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.session
    ADD CONSTRAINT session_agent_llm_mrf_fkey FOREIGN KEY (agent_llm_mrf) REFERENCES tzzr_iachat.agent_llm(mrf) ON DELETE SET NULL;


--
-- Name: session_dataset session_dataset_session_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.session_dataset
    ADD CONSTRAINT session_dataset_session_mrf_fkey FOREIGN KEY (session_mrf) REFERENCES tzzr_iachat.session(mrf) ON DELETE CASCADE;


--
-- Name: session session_parent_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.session
    ADD CONSTRAINT session_parent_mrf_fkey FOREIGN KEY (parent_mrf) REFERENCES tzzr_iachat.session(mrf);


--
-- Name: session session_project_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.session
    ADD CONSTRAINT session_project_mrf_fkey FOREIGN KEY (project_mrf) REFERENCES tzzr_iachat.project(mrf);


--
-- Name: tag_strip tag_strip_session_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.tag_strip
    ADD CONSTRAINT tag_strip_session_mrf_fkey FOREIGN KEY (session_mrf) REFERENCES tzzr_iachat.session(mrf) ON DELETE CASCADE;


--
-- Name: threads threads_parent_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.threads
    ADD CONSTRAINT threads_parent_mrf_fkey FOREIGN KEY (parent_mrf) REFERENCES tzzr_iachat.threads(mrf) ON DELETE SET NULL;


--
-- Name: threads threads_project_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.threads
    ADD CONSTRAINT threads_project_mrf_fkey FOREIGN KEY (project_mrf) REFERENCES tzzr_iachat.project(mrf) ON DELETE CASCADE;


--
-- Name: item item_list_id_fkey; Type: FK CONSTRAINT; Schema: tzzr_list; Owner: tzzr
--

ALTER TABLE ONLY tzzr_list.item
    ADD CONSTRAINT item_list_id_fkey FOREIGN KEY (list_id) REFERENCES tzzr_list.list(id) ON DELETE CASCADE;


--
-- Name: atc atc_set_hst_fkey; Type: FK CONSTRAINT; Schema: tzzr_storage; Owner: postgres
--

ALTER TABLE ONLY tzzr_storage.atc
    ADD CONSTRAINT atc_set_hst_fkey FOREIGN KEY (set_hst) REFERENCES tzzr_core_hst.hst(mrf);


--
-- Name: atc_status atc_status_bucket_fkey; Type: FK CONSTRAINT; Schema: tzzr_storage; Owner: tzzr
--

ALTER TABLE ONLY tzzr_storage.atc_status
    ADD CONSTRAINT atc_status_bucket_fkey FOREIGN KEY (bucket_mrf) REFERENCES tzzr_storage.buckets(bucket_mrf);


--
-- Name: atc_status atc_status_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_storage; Owner: tzzr
--

ALTER TABLE ONLY tzzr_storage.atc_status
    ADD CONSTRAINT atc_status_mrf_fkey FOREIGN KEY (mrf) REFERENCES tzzr_storage.atc(mrf);


--
-- Name: bucket_access_log bucket_access_log_bucket_mrf_fkey; Type: FK CONSTRAINT; Schema: tzzr_storage; Owner: postgres
--

ALTER TABLE ONLY tzzr_storage.bucket_access_log
    ADD CONSTRAINT bucket_access_log_bucket_mrf_fkey FOREIGN KEY (bucket_mrf) REFERENCES tzzr_storage.buckets(bucket_mrf);


--
-- Name: graph_atc graph_atc_mrf_a_fkey; Type: FK CONSTRAINT; Schema: tzzr_storage; Owner: postgres
--

ALTER TABLE ONLY tzzr_storage.graph_atc
    ADD CONSTRAINT graph_atc_mrf_a_fkey FOREIGN KEY (mrf_a) REFERENCES tzzr_storage.atc(mrf) ON DELETE CASCADE;


--
-- Name: graph_atc graph_atc_mrf_b_fkey; Type: FK CONSTRAINT; Schema: tzzr_storage; Owner: postgres
--

ALTER TABLE ONLY tzzr_storage.graph_atc
    ADD CONSTRAINT graph_atc_mrf_b_fkey FOREIGN KEY (mrf_b) REFERENCES tzzr_storage.atc(mrf) ON DELETE CASCADE;


--
-- Name: library_atc library_atc_mrf_child_fkey; Type: FK CONSTRAINT; Schema: tzzr_storage; Owner: postgres
--

ALTER TABLE ONLY tzzr_storage.library_atc
    ADD CONSTRAINT library_atc_mrf_child_fkey FOREIGN KEY (mrf_child) REFERENCES tzzr_storage.atc(mrf) ON DELETE CASCADE;


--
-- Name: library_atc library_atc_mrf_library_fkey; Type: FK CONSTRAINT; Schema: tzzr_storage; Owner: postgres
--

ALTER TABLE ONLY tzzr_storage.library_atc
    ADD CONSTRAINT library_atc_mrf_library_fkey FOREIGN KEY (mrf_library) REFERENCES tzzr_storage.atc(mrf) ON DELETE CASCADE;


--
-- Name: tree_atc tree_atc_mrf_child_fkey; Type: FK CONSTRAINT; Schema: tzzr_storage; Owner: postgres
--

ALTER TABLE ONLY tzzr_storage.tree_atc
    ADD CONSTRAINT tree_atc_mrf_child_fkey FOREIGN KEY (mrf_child) REFERENCES tzzr_storage.atc(mrf) ON DELETE CASCADE;


--
-- Name: tree_atc tree_atc_mrf_parent_fkey; Type: FK CONSTRAINT; Schema: tzzr_storage; Owner: postgres
--

ALTER TABLE ONLY tzzr_storage.tree_atc
    ADD CONSTRAINT tree_atc_mrf_parent_fkey FOREIGN KEY (mrf_parent) REFERENCES tzzr_storage.atc(mrf) ON DELETE CASCADE;


--
-- Name: keys keys_endpoint_fkey; Type: FK CONSTRAINT; Schema: tzzr_system; Owner: postgres
--

ALTER TABLE ONLY tzzr_system.keys
    ADD CONSTRAINT keys_endpoint_fkey FOREIGN KEY (endpoint) REFERENCES tzzr_system.endpoints(endpoint);


--
-- Name: gate_session fk_gate_key; Type: FK CONSTRAINT; Schema: usr; Owner: postgres
--

ALTER TABLE ONLY usr.gate_session
    ADD CONSTRAINT fk_gate_key FOREIGN KEY (key_id) REFERENCES usr.gate_key(id) ON DELETE SET NULL;


--
-- Name: gate_session gate_session_user_id_fkey; Type: FK CONSTRAINT; Schema: usr; Owner: postgres
--

ALTER TABLE ONLY usr.gate_session
    ADD CONSTRAINT gate_session_user_id_fkey FOREIGN KEY (user_id) REFERENCES usr.gate_user(id) ON DELETE SET NULL;


--
-- Name: storage storage_key_mrf_fkey; Type: FK CONSTRAINT; Schema: usr; Owner: postgres
--

ALTER TABLE ONLY usr.storage
    ADD CONSTRAINT storage_key_mrf_fkey FOREIGN KEY (key_mrf) REFERENCES usr.key(mrf);


--
-- Name: SCHEMA production_alfred; Type: ACL; Schema: -; Owner: postgres
--

GRANT USAGE ON SCHEMA production_alfred TO tzzr;
GRANT USAGE ON SCHEMA production_alfred TO web_anon;


--
-- Name: SCHEMA public; Type: ACL; Schema: -; Owner: postgres
--

REVOKE USAGE ON SCHEMA public FROM PUBLIC;
GRANT ALL ON SCHEMA public TO tzzr;


--
-- Name: SCHEMA tzzr_ai; Type: ACL; Schema: -; Owner: postgres
--

GRANT USAGE ON SCHEMA tzzr_ai TO tzzr;
GRANT USAGE ON SCHEMA tzzr_ai TO web_anon;


--
-- Name: SCHEMA tzzr_chat_ai; Type: ACL; Schema: -; Owner: tzzr
--

GRANT USAGE ON SCHEMA tzzr_chat_ai TO web_anon;


--
-- Name: SCHEMA tzzr_communications; Type: ACL; Schema: -; Owner: postgres
--

GRANT ALL ON SCHEMA tzzr_communications TO tzzr;
GRANT USAGE ON SCHEMA tzzr_communications TO web_anon;


--
-- Name: SCHEMA tzzr_communications_ai; Type: ACL; Schema: -; Owner: postgres
--

GRANT USAGE ON SCHEMA tzzr_communications_ai TO tzzr;
GRANT USAGE ON SCHEMA tzzr_communications_ai TO web_anon;


--
-- Name: SCHEMA tzzr_communications_str; Type: ACL; Schema: -; Owner: tzzr
--

GRANT USAGE ON SCHEMA tzzr_communications_str TO web_anon;


--
-- Name: SCHEMA tzzr_core_administracion; Type: ACL; Schema: -; Owner: postgres
--

GRANT USAGE ON SCHEMA tzzr_core_administracion TO tzzr;


--
-- Name: SCHEMA tzzr_core_contabilidad; Type: ACL; Schema: -; Owner: postgres
--

GRANT USAGE ON SCHEMA tzzr_core_contabilidad TO tzzr;


--
-- Name: SCHEMA tzzr_core_hst; Type: ACL; Schema: -; Owner: postgres
--

GRANT USAGE ON SCHEMA tzzr_core_hst TO web_anon;
GRANT USAGE ON SCHEMA tzzr_core_hst TO tzzr;


--
-- Name: SCHEMA tzzr_core_itm_base; Type: ACL; Schema: -; Owner: postgres
--

GRANT USAGE ON SCHEMA tzzr_core_itm_base TO web_anon;
GRANT USAGE ON SCHEMA tzzr_core_itm_base TO tzzr;


--
-- Name: SCHEMA tzzr_core_oracle; Type: ACL; Schema: -; Owner: postgres
--

GRANT USAGE ON SCHEMA tzzr_core_oracle TO tzzr;


--
-- Name: SCHEMA tzzr_core_produccion; Type: ACL; Schema: -; Owner: postgres
--

GRANT USAGE ON SCHEMA tzzr_core_produccion TO web_anon;
GRANT USAGE ON SCHEMA tzzr_core_produccion TO tzzr;


--
-- Name: SCHEMA tzzr_core_secretaria; Type: ACL; Schema: -; Owner: postgres
--

GRANT USAGE ON SCHEMA tzzr_core_secretaria TO web_anon;
GRANT USAGE ON SCHEMA tzzr_core_secretaria TO tzzr;


--
-- Name: SCHEMA tzzr_iachat; Type: ACL; Schema: -; Owner: tzzr
--

GRANT USAGE ON SCHEMA tzzr_iachat TO web_anon;


--
-- Name: SCHEMA tzzr_storage; Type: ACL; Schema: -; Owner: postgres
--

GRANT ALL ON SCHEMA tzzr_storage TO tzzr;


--
-- Name: SCHEMA tzzr_system; Type: ACL; Schema: -; Owner: postgres
--

GRANT ALL ON SCHEMA tzzr_system TO tzzr;


--
-- Name: SCHEMA usr; Type: ACL; Schema: -; Owner: postgres
--

GRANT USAGE ON SCHEMA usr TO web_anon;
GRANT USAGE ON SCHEMA usr TO tzzr;


--
-- Name: FUNCTION api_children(parent_mrf character varying); Type: ACL; Schema: tzzr_core_hst; Owner: postgres
--

GRANT ALL ON FUNCTION tzzr_core_hst.api_children(parent_mrf character varying) TO web_anon;


--
-- Name: FUNCTION api_related(tag_mrf character varying); Type: ACL; Schema: tzzr_core_hst; Owner: postgres
--

GRANT ALL ON FUNCTION tzzr_core_hst.api_related(tag_mrf character varying) TO web_anon;


--
-- Name: FUNCTION api_children_itm(parent_mrf character varying); Type: ACL; Schema: tzzr_core_itm_base; Owner: postgres
--

GRANT ALL ON FUNCTION tzzr_core_itm_base.api_children_itm(parent_mrf character varying) TO tzzr;


--
-- Name: FUNCTION api_children_loc(parent_mrf character varying); Type: ACL; Schema: tzzr_core_itm_base; Owner: postgres
--

GRANT ALL ON FUNCTION tzzr_core_itm_base.api_children_loc(parent_mrf character varying) TO tzzr;


--
-- Name: FUNCTION api_children_ply(parent_mrf character varying); Type: ACL; Schema: tzzr_core_itm_base; Owner: postgres
--

GRANT ALL ON FUNCTION tzzr_core_itm_base.api_children_ply(parent_mrf character varying) TO tzzr;


--
-- Name: FUNCTION api_related_itm(tag_mrf character varying); Type: ACL; Schema: tzzr_core_itm_base; Owner: postgres
--

GRANT ALL ON FUNCTION tzzr_core_itm_base.api_related_itm(tag_mrf character varying) TO tzzr;


--
-- Name: FUNCTION api_related_loc(tag_mrf character varying); Type: ACL; Schema: tzzr_core_itm_base; Owner: postgres
--

GRANT ALL ON FUNCTION tzzr_core_itm_base.api_related_loc(tag_mrf character varying) TO tzzr;


--
-- Name: FUNCTION api_related_ply(tag_mrf character varying); Type: ACL; Schema: tzzr_core_itm_base; Owner: postgres
--

GRANT ALL ON FUNCTION tzzr_core_itm_base.api_related_ply(tag_mrf character varying) TO tzzr;


--
-- Name: TABLE exe; Type: ACL; Schema: production_alfred; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE production_alfred.exe TO tzzr;
GRANT SELECT,INSERT ON TABLE production_alfred.exe TO web_anon;


--
-- Name: SEQUENCE exe_num_seq; Type: ACL; Schema: production_alfred; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE production_alfred.exe_num_seq TO tzzr;


--
-- Name: TABLE ply; Type: ACL; Schema: tzzr_core_itm_base; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_itm_base.ply TO web_anon;


--
-- Name: TABLE mth; Type: ACL; Schema: production_alfred; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE production_alfred.mth TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE production_alfred.mth TO web_anon;


--
-- Name: TABLE mth_backup_260228; Type: ACL; Schema: production_alfred; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE production_alfred.mth_backup_260228 TO tzzr;


--
-- Name: TABLE rule_log; Type: ACL; Schema: production_alfred; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE production_alfred.rule_log TO tzzr;
GRANT SELECT ON TABLE production_alfred.rule_log TO web_anon;


--
-- Name: SEQUENCE rule_log_num_seq; Type: ACL; Schema: production_alfred; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE production_alfred.rule_log_num_seq TO tzzr;


--
-- Name: TABLE rules; Type: ACL; Schema: production_alfred; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE production_alfred.rules TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE production_alfred.rules TO web_anon;


--
-- Name: SEQUENCE rules_num_seq; Type: ACL; Schema: production_alfred; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE production_alfred.rules_num_seq TO tzzr;


--
-- Name: TABLE ply_agent_llm_map; Type: ACL; Schema: tzzr_core_itm_base; Owner: postgres
--

GRANT ALL ON TABLE tzzr_core_itm_base.ply_agent_llm_map TO tzzr;


--
-- Name: TABLE agent_llm; Type: ACL; Schema: tzzr_iachat; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_iachat.agent_llm TO web_anon;


--
-- Name: TABLE v_agentes_completo; Type: ACL; Schema: public; Owner: postgres
--

GRANT SELECT ON TABLE public.v_agentes_completo TO tzzr;


--
-- Name: TABLE agent; Type: ACL; Schema: tzzr_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_ai.agent TO tzzr;
GRANT SELECT ON TABLE tzzr_ai.agent TO web_anon;


--
-- Name: TABLE agent_description; Type: ACL; Schema: tzzr_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_ai.agent_description TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_ai.agent_description TO web_anon;


--
-- Name: SEQUENCE agent_description_num_seq; Type: ACL; Schema: tzzr_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_ai.agent_description_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_ai.agent_description_num_seq TO web_anon;


--
-- Name: TABLE dataset; Type: ACL; Schema: tzzr_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_ai.dataset TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_ai.dataset TO web_anon;


--
-- Name: SEQUENCE dataset_num_seq; Type: ACL; Schema: tzzr_ai; Owner: postgres
--

GRANT ALL ON SEQUENCE tzzr_ai.dataset_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_ai.dataset_num_seq TO web_anon;


--
-- Name: TABLE library_agent; Type: ACL; Schema: tzzr_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_ai.library_agent TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_ai.library_agent TO web_anon;


--
-- Name: SEQUENCE library_agent_num_seq; Type: ACL; Schema: tzzr_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_ai.library_agent_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_ai.library_agent_num_seq TO web_anon;


--
-- Name: TABLE library_model; Type: ACL; Schema: tzzr_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_ai.library_model TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_ai.library_model TO web_anon;


--
-- Name: SEQUENCE library_model_num_seq; Type: ACL; Schema: tzzr_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_ai.library_model_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_ai.library_model_num_seq TO web_anon;


--
-- Name: TABLE library_setup_agent; Type: ACL; Schema: tzzr_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_ai.library_setup_agent TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_ai.library_setup_agent TO web_anon;


--
-- Name: SEQUENCE library_setup_agent_num_seq; Type: ACL; Schema: tzzr_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_ai.library_setup_agent_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_ai.library_setup_agent_num_seq TO web_anon;


--
-- Name: TABLE library_setup_model; Type: ACL; Schema: tzzr_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_ai.library_setup_model TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_ai.library_setup_model TO web_anon;


--
-- Name: SEQUENCE library_setup_model_num_seq; Type: ACL; Schema: tzzr_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_ai.library_setup_model_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_ai.library_setup_model_num_seq TO web_anon;


--
-- Name: TABLE model; Type: ACL; Schema: tzzr_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_ai.model TO tzzr;
GRANT SELECT ON TABLE tzzr_ai.model TO web_anon;


--
-- Name: SEQUENCE model_num_seq; Type: ACL; Schema: tzzr_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_ai.model_num_seq TO tzzr;


--
-- Name: TABLE model_usage; Type: ACL; Schema: tzzr_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_ai.model_usage TO tzzr;
GRANT SELECT ON TABLE tzzr_ai.model_usage TO web_anon;


--
-- Name: SEQUENCE model_usage_num_seq; Type: ACL; Schema: tzzr_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_ai.model_usage_num_seq TO tzzr;


--
-- Name: TABLE provider; Type: ACL; Schema: tzzr_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_ai.provider TO tzzr;
GRANT SELECT ON TABLE tzzr_ai.provider TO web_anon;


--
-- Name: SEQUENCE provider_num_seq; Type: ACL; Schema: tzzr_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_ai.provider_num_seq TO tzzr;


--
-- Name: TABLE setup; Type: ACL; Schema: tzzr_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_ai.setup TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_ai.setup TO web_anon;


--
-- Name: SEQUENCE setup_num_seq; Type: ACL; Schema: tzzr_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_ai.setup_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_ai.setup_num_seq TO web_anon;


--
-- Name: TABLE actions; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_chat_ai.actions TO web_anon;
GRANT ALL ON TABLE tzzr_chat_ai.actions TO tzzr;


--
-- Name: SEQUENCE actions_num_seq; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.actions_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.actions_num_seq TO tzzr;


--
-- Name: TABLE curated_context; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_chat_ai.curated_context TO web_anon;
GRANT ALL ON TABLE tzzr_chat_ai.curated_context TO tzzr;


--
-- Name: SEQUENCE curated_context_num_seq; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.curated_context_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.curated_context_num_seq TO tzzr;


--
-- Name: TABLE embeddings; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_chat_ai.embeddings TO web_anon;
GRANT ALL ON TABLE tzzr_chat_ai.embeddings TO tzzr;


--
-- Name: SEQUENCE embeddings_num_seq; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.embeddings_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.embeddings_num_seq TO tzzr;


--
-- Name: TABLE enrichment; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_chat_ai.enrichment TO web_anon;
GRANT ALL ON TABLE tzzr_chat_ai.enrichment TO tzzr;


--
-- Name: SEQUENCE enrichment_num_seq; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.enrichment_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.enrichment_num_seq TO tzzr;


--
-- Name: TABLE extracted; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_chat_ai.extracted TO web_anon;
GRANT ALL ON TABLE tzzr_chat_ai.extracted TO tzzr;


--
-- Name: SEQUENCE extracted_num_seq; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.extracted_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.extracted_num_seq TO tzzr;


--
-- Name: TABLE graph_actions; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_chat_ai.graph_actions TO web_anon;
GRANT ALL ON TABLE tzzr_chat_ai.graph_actions TO tzzr;


--
-- Name: SEQUENCE graph_actions_num_seq; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.graph_actions_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.graph_actions_num_seq TO tzzr;


--
-- Name: TABLE graph_curated_context; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_chat_ai.graph_curated_context TO web_anon;
GRANT ALL ON TABLE tzzr_chat_ai.graph_curated_context TO tzzr;


--
-- Name: SEQUENCE graph_curated_context_num_seq; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.graph_curated_context_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.graph_curated_context_num_seq TO tzzr;


--
-- Name: TABLE graph_embeddings; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_chat_ai.graph_embeddings TO web_anon;
GRANT ALL ON TABLE tzzr_chat_ai.graph_embeddings TO tzzr;


--
-- Name: SEQUENCE graph_embeddings_num_seq; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.graph_embeddings_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.graph_embeddings_num_seq TO tzzr;


--
-- Name: TABLE graph_enrichment; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_chat_ai.graph_enrichment TO web_anon;
GRANT ALL ON TABLE tzzr_chat_ai.graph_enrichment TO tzzr;


--
-- Name: SEQUENCE graph_enrichment_num_seq; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.graph_enrichment_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.graph_enrichment_num_seq TO tzzr;


--
-- Name: TABLE graph_extracted; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_chat_ai.graph_extracted TO web_anon;
GRANT ALL ON TABLE tzzr_chat_ai.graph_extracted TO tzzr;


--
-- Name: SEQUENCE graph_extracted_num_seq; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.graph_extracted_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.graph_extracted_num_seq TO tzzr;


--
-- Name: TABLE graph_workspace; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_chat_ai.graph_workspace TO web_anon;
GRANT ALL ON TABLE tzzr_chat_ai.graph_workspace TO tzzr;


--
-- Name: SEQUENCE graph_workspace_num_seq; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.graph_workspace_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.graph_workspace_num_seq TO tzzr;


--
-- Name: TABLE library_actions; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_chat_ai.library_actions TO web_anon;
GRANT ALL ON TABLE tzzr_chat_ai.library_actions TO tzzr;


--
-- Name: SEQUENCE library_actions_num_seq; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.library_actions_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.library_actions_num_seq TO tzzr;


--
-- Name: TABLE library_curated_context; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_chat_ai.library_curated_context TO web_anon;
GRANT ALL ON TABLE tzzr_chat_ai.library_curated_context TO tzzr;


--
-- Name: SEQUENCE library_curated_context_num_seq; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.library_curated_context_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.library_curated_context_num_seq TO tzzr;


--
-- Name: TABLE library_embeddings; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_chat_ai.library_embeddings TO web_anon;
GRANT ALL ON TABLE tzzr_chat_ai.library_embeddings TO tzzr;


--
-- Name: SEQUENCE library_embeddings_num_seq; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.library_embeddings_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.library_embeddings_num_seq TO tzzr;


--
-- Name: TABLE library_enrichment; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_chat_ai.library_enrichment TO web_anon;
GRANT ALL ON TABLE tzzr_chat_ai.library_enrichment TO tzzr;


--
-- Name: SEQUENCE library_enrichment_num_seq; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.library_enrichment_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.library_enrichment_num_seq TO tzzr;


--
-- Name: TABLE library_extracted; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_chat_ai.library_extracted TO web_anon;
GRANT ALL ON TABLE tzzr_chat_ai.library_extracted TO tzzr;


--
-- Name: SEQUENCE library_extracted_num_seq; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.library_extracted_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.library_extracted_num_seq TO tzzr;


--
-- Name: TABLE library_workspace; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_chat_ai.library_workspace TO web_anon;
GRANT ALL ON TABLE tzzr_chat_ai.library_workspace TO tzzr;


--
-- Name: SEQUENCE library_workspace_num_seq; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.library_workspace_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.library_workspace_num_seq TO tzzr;


--
-- Name: TABLE tree_actions; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_chat_ai.tree_actions TO web_anon;
GRANT ALL ON TABLE tzzr_chat_ai.tree_actions TO tzzr;


--
-- Name: SEQUENCE tree_actions_num_seq; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.tree_actions_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.tree_actions_num_seq TO tzzr;


--
-- Name: TABLE tree_curated_context; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_chat_ai.tree_curated_context TO web_anon;
GRANT ALL ON TABLE tzzr_chat_ai.tree_curated_context TO tzzr;


--
-- Name: SEQUENCE tree_curated_context_num_seq; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.tree_curated_context_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.tree_curated_context_num_seq TO tzzr;


--
-- Name: TABLE tree_embeddings; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_chat_ai.tree_embeddings TO web_anon;
GRANT ALL ON TABLE tzzr_chat_ai.tree_embeddings TO tzzr;


--
-- Name: SEQUENCE tree_embeddings_num_seq; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.tree_embeddings_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.tree_embeddings_num_seq TO tzzr;


--
-- Name: TABLE tree_enrichment; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_chat_ai.tree_enrichment TO web_anon;
GRANT ALL ON TABLE tzzr_chat_ai.tree_enrichment TO tzzr;


--
-- Name: SEQUENCE tree_enrichment_num_seq; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.tree_enrichment_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.tree_enrichment_num_seq TO tzzr;


--
-- Name: TABLE tree_extracted; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_chat_ai.tree_extracted TO web_anon;
GRANT ALL ON TABLE tzzr_chat_ai.tree_extracted TO tzzr;


--
-- Name: SEQUENCE tree_extracted_num_seq; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.tree_extracted_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.tree_extracted_num_seq TO tzzr;


--
-- Name: TABLE tree_workspace; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_chat_ai.tree_workspace TO web_anon;
GRANT ALL ON TABLE tzzr_chat_ai.tree_workspace TO tzzr;


--
-- Name: SEQUENCE tree_workspace_num_seq; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.tree_workspace_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.tree_workspace_num_seq TO tzzr;


--
-- Name: TABLE workspace; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_chat_ai.workspace TO web_anon;
GRANT ALL ON TABLE tzzr_chat_ai.workspace TO tzzr;


--
-- Name: SEQUENCE workspace_num_seq; Type: ACL; Schema: tzzr_chat_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.workspace_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_chat_ai.workspace_num_seq TO tzzr;


--
-- Name: TABLE chat; Type: ACL; Schema: tzzr_communications; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications.chat TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications.chat TO web_anon;


--
-- Name: TABLE mail; Type: ACL; Schema: tzzr_communications; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications.mail TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications.mail TO web_anon;


--
-- Name: TABLE mail_attachment_links; Type: ACL; Schema: tzzr_communications; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications.mail_attachment_links TO web_anon;


--
-- Name: TABLE mail_attachments; Type: ACL; Schema: tzzr_communications; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications.mail_attachments TO web_anon;


--
-- Name: SEQUENCE mail_num_seq; Type: ACL; Schema: tzzr_communications; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications.mail_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications.mail_num_seq TO web_anon;


--
-- Name: TABLE draft_profile_rules; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.draft_profile_rules TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.draft_profile_rules TO web_anon;


--
-- Name: SEQUENCE draft_profile_rules_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON SEQUENCE tzzr_communications_ai.draft_profile_rules_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.draft_profile_rules_num_seq TO web_anon;


--
-- Name: TABLE draft_profiles; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.draft_profiles TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.draft_profiles TO web_anon;


--
-- Name: SEQUENCE draft_profiles_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON SEQUENCE tzzr_communications_ai.draft_profiles_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.draft_profiles_num_seq TO web_anon;


--
-- Name: TABLE draft_settings; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.draft_settings TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.draft_settings TO web_anon;


--
-- Name: TABLE draft_tones; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.draft_tones TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.draft_tones TO web_anon;


--
-- Name: SEQUENCE draft_tones_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON SEQUENCE tzzr_communications_ai.draft_tones_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.draft_tones_num_seq TO web_anon;


--
-- Name: TABLE graph_actions; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.graph_actions TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.graph_actions TO web_anon;


--
-- Name: SEQUENCE graph_actions_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.graph_actions_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.graph_actions_num_seq TO web_anon;


--
-- Name: TABLE graph_drafts; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.graph_drafts TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.graph_drafts TO web_anon;


--
-- Name: SEQUENCE graph_drafts_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.graph_drafts_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.graph_drafts_num_seq TO web_anon;


--
-- Name: TABLE graph_embeddings; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.graph_embeddings TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.graph_embeddings TO web_anon;


--
-- Name: SEQUENCE graph_embeddings_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.graph_embeddings_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.graph_embeddings_num_seq TO web_anon;


--
-- Name: TABLE graph_enrichment; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.graph_enrichment TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.graph_enrichment TO web_anon;


--
-- Name: SEQUENCE graph_enrichment_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.graph_enrichment_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.graph_enrichment_num_seq TO web_anon;


--
-- Name: TABLE graph_extracted; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.graph_extracted TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.graph_extracted TO web_anon;


--
-- Name: SEQUENCE graph_extracted_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.graph_extracted_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.graph_extracted_num_seq TO web_anon;


--
-- Name: TABLE graph_source; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.graph_source TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.graph_source TO web_anon;


--
-- Name: SEQUENCE graph_source_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.graph_source_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.graph_source_num_seq TO web_anon;


--
-- Name: TABLE graph_workspace; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.graph_workspace TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.graph_workspace TO web_anon;


--
-- Name: SEQUENCE graph_workspace_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.graph_workspace_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.graph_workspace_num_seq TO web_anon;


--
-- Name: TABLE library_actions; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.library_actions TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.library_actions TO web_anon;


--
-- Name: SEQUENCE library_actions_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.library_actions_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.library_actions_num_seq TO web_anon;


--
-- Name: TABLE library_drafts; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.library_drafts TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.library_drafts TO web_anon;


--
-- Name: SEQUENCE library_drafts_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.library_drafts_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.library_drafts_num_seq TO web_anon;


--
-- Name: TABLE library_embeddings; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.library_embeddings TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.library_embeddings TO web_anon;


--
-- Name: SEQUENCE library_embeddings_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.library_embeddings_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.library_embeddings_num_seq TO web_anon;


--
-- Name: TABLE library_enrichment; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.library_enrichment TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.library_enrichment TO web_anon;


--
-- Name: SEQUENCE library_enrichment_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.library_enrichment_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.library_enrichment_num_seq TO web_anon;


--
-- Name: TABLE library_extracted; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.library_extracted TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.library_extracted TO web_anon;


--
-- Name: SEQUENCE library_extracted_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.library_extracted_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.library_extracted_num_seq TO web_anon;


--
-- Name: TABLE library_source; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.library_source TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.library_source TO web_anon;


--
-- Name: SEQUENCE library_source_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.library_source_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.library_source_num_seq TO web_anon;


--
-- Name: TABLE library_workspace; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.library_workspace TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.library_workspace TO web_anon;


--
-- Name: SEQUENCE library_workspace_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.library_workspace_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.library_workspace_num_seq TO web_anon;


--
-- Name: TABLE mail_actions; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.mail_actions TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.mail_actions TO web_anon;


--
-- Name: SEQUENCE mail_actions_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON SEQUENCE tzzr_communications_ai.mail_actions_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.mail_actions_num_seq TO web_anon;


--
-- Name: TABLE mail_ai_workspace; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.mail_ai_workspace TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.mail_ai_workspace TO web_anon;


--
-- Name: SEQUENCE mail_ai_workspace_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON SEQUENCE tzzr_communications_ai.mail_ai_workspace_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.mail_ai_workspace_num_seq TO web_anon;


--
-- Name: TABLE mail_drafts; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.mail_drafts TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.mail_drafts TO web_anon;


--
-- Name: SEQUENCE mail_drafts_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON SEQUENCE tzzr_communications_ai.mail_drafts_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.mail_drafts_num_seq TO web_anon;


--
-- Name: TABLE mail_embeddings; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.mail_embeddings TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.mail_embeddings TO web_anon;


--
-- Name: SEQUENCE mail_embeddings_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.mail_embeddings_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.mail_embeddings_num_seq TO web_anon;


--
-- Name: TABLE mail_enrichment; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.mail_enrichment TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.mail_enrichment TO web_anon;


--
-- Name: SEQUENCE mail_enrichment_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON SEQUENCE tzzr_communications_ai.mail_enrichment_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.mail_enrichment_num_seq TO web_anon;


--
-- Name: TABLE mail_extracted; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.mail_extracted TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.mail_extracted TO web_anon;


--
-- Name: SEQUENCE mail_extracted_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON SEQUENCE tzzr_communications_ai.mail_extracted_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.mail_extracted_num_seq TO web_anon;


--
-- Name: TABLE mail_source; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.mail_source TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.mail_source TO web_anon;


--
-- Name: SEQUENCE mail_source_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON SEQUENCE tzzr_communications_ai.mail_source_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.mail_source_num_seq TO web_anon;


--
-- Name: TABLE tree_actions; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.tree_actions TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.tree_actions TO web_anon;


--
-- Name: SEQUENCE tree_actions_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.tree_actions_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.tree_actions_num_seq TO web_anon;


--
-- Name: TABLE tree_drafts; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.tree_drafts TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.tree_drafts TO web_anon;


--
-- Name: SEQUENCE tree_drafts_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.tree_drafts_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.tree_drafts_num_seq TO web_anon;


--
-- Name: TABLE tree_embeddings; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.tree_embeddings TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.tree_embeddings TO web_anon;


--
-- Name: SEQUENCE tree_embeddings_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.tree_embeddings_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.tree_embeddings_num_seq TO web_anon;


--
-- Name: TABLE tree_enrichment; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.tree_enrichment TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.tree_enrichment TO web_anon;


--
-- Name: SEQUENCE tree_enrichment_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.tree_enrichment_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.tree_enrichment_num_seq TO web_anon;


--
-- Name: TABLE tree_extracted; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.tree_extracted TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.tree_extracted TO web_anon;


--
-- Name: SEQUENCE tree_extracted_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.tree_extracted_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.tree_extracted_num_seq TO web_anon;


--
-- Name: TABLE tree_source; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.tree_source TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.tree_source TO web_anon;


--
-- Name: SEQUENCE tree_source_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.tree_source_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.tree_source_num_seq TO web_anon;


--
-- Name: TABLE tree_workspace; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT ALL ON TABLE tzzr_communications_ai.tree_workspace TO tzzr;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_ai.tree_workspace TO web_anon;


--
-- Name: SEQUENCE tree_workspace_num_seq; Type: ACL; Schema: tzzr_communications_ai; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.tree_workspace_num_seq TO tzzr;
GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_ai.tree_workspace_num_seq TO web_anon;


--
-- Name: TABLE collection; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_str.collection TO web_anon;


--
-- Name: SEQUENCE collection_num_seq; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_str.collection_num_seq TO web_anon;


--
-- Name: TABLE domains; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_str.domains TO web_anon;


--
-- Name: SEQUENCE domains_id_seq; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_str.domains_id_seq TO web_anon;


--
-- Name: TABLE folders; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_str.folders TO web_anon;


--
-- Name: SEQUENCE folders_id_seq; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_str.folders_id_seq TO web_anon;


--
-- Name: TABLE graph_chat; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_str.graph_chat TO web_anon;


--
-- Name: SEQUENCE graph_chat_num_seq; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_str.graph_chat_num_seq TO web_anon;


--
-- Name: TABLE graph_mail; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_str.graph_mail TO web_anon;


--
-- Name: SEQUENCE graph_mail_num_seq; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_str.graph_mail_num_seq TO web_anon;


--
-- Name: TABLE inbox; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_str.inbox TO web_anon;


--
-- Name: SEQUENCE inbox_id_seq; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_str.inbox_id_seq TO web_anon;


--
-- Name: TABLE library_chat; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_str.library_chat TO web_anon;


--
-- Name: SEQUENCE library_chat_num_seq; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_str.library_chat_num_seq TO web_anon;


--
-- Name: TABLE library_mail; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_str.library_mail TO web_anon;


--
-- Name: SEQUENCE library_mail_num_seq; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_str.library_mail_num_seq TO web_anon;


--
-- Name: TABLE mail_accounts; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_str.mail_accounts TO web_anon;


--
-- Name: SEQUENCE mail_accounts_id_seq; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_str.mail_accounts_id_seq TO web_anon;


--
-- Name: TABLE mail_aliases; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_str.mail_aliases TO web_anon;


--
-- Name: SEQUENCE mail_aliases_id_seq; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_str.mail_aliases_id_seq TO web_anon;


--
-- Name: TABLE mail_folder_assignment; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_str.mail_folder_assignment TO web_anon;


--
-- Name: TABLE mail_group_members; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_str.mail_group_members TO web_anon;


--
-- Name: SEQUENCE mail_group_members_id_seq; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_str.mail_group_members_id_seq TO web_anon;


--
-- Name: TABLE mail_groups; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_str.mail_groups TO web_anon;


--
-- Name: SEQUENCE mail_groups_id_seq; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_str.mail_groups_id_seq TO web_anon;


--
-- Name: TABLE mail_identity; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_str.mail_identity TO web_anon;


--
-- Name: TABLE mail_identity_account; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_str.mail_identity_account TO web_anon;


--
-- Name: SEQUENCE mail_identity_id_seq; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_str.mail_identity_id_seq TO web_anon;


--
-- Name: TABLE mail_permissions; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_str.mail_permissions TO web_anon;


--
-- Name: SEQUENCE mail_permissions_id_seq; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_str.mail_permissions_id_seq TO web_anon;


--
-- Name: TABLE mail_state; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_str.mail_state TO web_anon;


--
-- Name: TABLE short_urls; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_str.short_urls TO web_anon;


--
-- Name: SEQUENCE short_urls_id_seq; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_str.short_urls_id_seq TO web_anon;


--
-- Name: TABLE tree_chat; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_str.tree_chat TO web_anon;


--
-- Name: SEQUENCE tree_chat_num_seq; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_str.tree_chat_num_seq TO web_anon;


--
-- Name: TABLE tree_mail; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_communications_str.tree_mail TO web_anon;


--
-- Name: SEQUENCE tree_mail_num_seq; Type: ACL; Schema: tzzr_communications_str; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_communications_str.tree_mail_num_seq TO web_anon;


--
-- Name: TABLE v_mail_thread; Type: ACL; Schema: tzzr_communications_str; Owner: postgres
--

GRANT SELECT ON TABLE tzzr_communications_str.v_mail_thread TO web_anon;
GRANT SELECT ON TABLE tzzr_communications_str.v_mail_thread TO tzzr;


--
-- Name: TABLE v_mail_thread_member; Type: ACL; Schema: tzzr_communications_str; Owner: postgres
--

GRANT SELECT ON TABLE tzzr_communications_str.v_mail_thread_member TO web_anon;
GRANT SELECT ON TABLE tzzr_communications_str.v_mail_thread_member TO tzzr;


--
-- Name: TABLE ai_services; Type: ACL; Schema: tzzr_connection; Owner: postgres
--

GRANT ALL ON TABLE tzzr_connection.ai_services TO tzzr;


--
-- Name: SEQUENCE ai_services_id_seq; Type: ACL; Schema: tzzr_connection; Owner: postgres
--

GRANT ALL ON SEQUENCE tzzr_connection.ai_services_id_seq TO tzzr;


--
-- Name: TABLE graph_bck; Type: ACL; Schema: tzzr_core_administracion; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_administracion.graph_bck TO tzzr;


--
-- Name: TABLE graph_mst; Type: ACL; Schema: tzzr_core_administracion; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_administracion.graph_mst TO tzzr;


--
-- Name: TABLE library_bck; Type: ACL; Schema: tzzr_core_administracion; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_administracion.library_bck TO tzzr;


--
-- Name: TABLE library_mst; Type: ACL; Schema: tzzr_core_administracion; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_administracion.library_mst TO tzzr;


--
-- Name: TABLE mst; Type: ACL; Schema: tzzr_core_administracion; Owner: postgres
--

GRANT ALL ON TABLE tzzr_core_administracion.mst TO tzzr;


--
-- Name: TABLE tree_bck; Type: ACL; Schema: tzzr_core_administracion; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_administracion.tree_bck TO tzzr;


--
-- Name: TABLE tree_mst; Type: ACL; Schema: tzzr_core_administracion; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_administracion.tree_mst TO tzzr;


--
-- Name: TABLE graph_bck; Type: ACL; Schema: tzzr_core_contabilidad; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_contabilidad.graph_bck TO tzzr;


--
-- Name: TABLE graph_mst; Type: ACL; Schema: tzzr_core_contabilidad; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_contabilidad.graph_mst TO tzzr;


--
-- Name: TABLE library_bck; Type: ACL; Schema: tzzr_core_contabilidad; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_contabilidad.library_bck TO tzzr;


--
-- Name: TABLE library_mst; Type: ACL; Schema: tzzr_core_contabilidad; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_contabilidad.library_mst TO tzzr;


--
-- Name: TABLE mst; Type: ACL; Schema: tzzr_core_contabilidad; Owner: postgres
--

GRANT ALL ON TABLE tzzr_core_contabilidad.mst TO tzzr;


--
-- Name: TABLE tree_bck; Type: ACL; Schema: tzzr_core_contabilidad; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_contabilidad.tree_bck TO tzzr;


--
-- Name: TABLE tree_mst; Type: ACL; Schema: tzzr_core_contabilidad; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_contabilidad.tree_mst TO tzzr;


--
-- Name: SEQUENCE group_hst_num_seq; Type: ACL; Schema: tzzr_core_hst; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_core_hst.group_hst_num_seq TO tzzr;


--
-- Name: TABLE group_hst; Type: ACL; Schema: tzzr_core_hst; Owner: postgres
--

GRANT ALL ON TABLE tzzr_core_hst.group_hst TO tzzr;
GRANT SELECT ON TABLE tzzr_core_hst.group_hst TO web_anon;


--
-- Name: TABLE hst; Type: ACL; Schema: tzzr_core_hst; Owner: tzzr
--

GRANT SELECT ON TABLE tzzr_core_hst.hst TO web_anon;


--
-- Name: TABLE api_groups; Type: ACL; Schema: tzzr_core_hst; Owner: postgres
--

GRANT SELECT ON TABLE tzzr_core_hst.api_groups TO web_anon;
GRANT SELECT ON TABLE tzzr_core_hst.api_groups TO tzzr;


--
-- Name: SEQUENCE group_flg_num_seq; Type: ACL; Schema: tzzr_core_hst; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_core_hst.group_flg_num_seq TO tzzr;


--
-- Name: TABLE group_flg; Type: ACL; Schema: tzzr_core_hst; Owner: postgres
--

GRANT ALL ON TABLE tzzr_core_hst.group_flg TO tzzr;
GRANT SELECT ON TABLE tzzr_core_hst.group_flg TO web_anon;


--
-- Name: TABLE api_groups_flg; Type: ACL; Schema: tzzr_core_hst; Owner: postgres
--

GRANT SELECT ON TABLE tzzr_core_hst.api_groups_flg TO web_anon;
GRANT SELECT ON TABLE tzzr_core_hst.api_groups_flg TO tzzr;


--
-- Name: TABLE flg; Type: ACL; Schema: tzzr_core_hst; Owner: tzzr
--

GRANT SELECT ON TABLE tzzr_core_hst.flg TO web_anon;


--
-- Name: TABLE graph_flg; Type: ACL; Schema: tzzr_core_hst; Owner: tzzr
--

GRANT SELECT ON TABLE tzzr_core_hst.graph_flg TO web_anon;


--
-- Name: TABLE graph_hst; Type: ACL; Schema: tzzr_core_hst; Owner: tzzr
--

GRANT SELECT ON TABLE tzzr_core_hst.graph_hst TO web_anon;


--
-- Name: TABLE hst_rules; Type: ACL; Schema: tzzr_core_hst; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_hst.hst_rules TO tzzr;
GRANT SELECT,UPDATE ON TABLE tzzr_core_hst.hst_rules TO web_anon;


--
-- Name: TABLE library_flg; Type: ACL; Schema: tzzr_core_hst; Owner: tzzr
--

GRANT SELECT ON TABLE tzzr_core_hst.library_flg TO web_anon;


--
-- Name: TABLE library_hst; Type: ACL; Schema: tzzr_core_hst; Owner: tzzr
--

GRANT SELECT ON TABLE tzzr_core_hst.library_hst TO web_anon;


--
-- Name: TABLE tree_flg; Type: ACL; Schema: tzzr_core_hst; Owner: tzzr
--

GRANT SELECT ON TABLE tzzr_core_hst.tree_flg TO web_anon;


--
-- Name: TABLE tree_hst; Type: ACL; Schema: tzzr_core_hst; Owner: tzzr
--

GRANT SELECT ON TABLE tzzr_core_hst.tree_hst TO web_anon;


--
-- Name: TABLE group_itm; Type: ACL; Schema: tzzr_core_itm_base; Owner: postgres
--

GRANT SELECT ON TABLE tzzr_core_itm_base.group_itm TO web_anon;
GRANT ALL ON TABLE tzzr_core_itm_base.group_itm TO tzzr;


--
-- Name: TABLE api_groups_itm; Type: ACL; Schema: tzzr_core_itm_base; Owner: postgres
--

GRANT SELECT ON TABLE tzzr_core_itm_base.api_groups_itm TO web_anon;
GRANT ALL ON TABLE tzzr_core_itm_base.api_groups_itm TO tzzr;


--
-- Name: TABLE group_loc; Type: ACL; Schema: tzzr_core_itm_base; Owner: postgres
--

GRANT SELECT ON TABLE tzzr_core_itm_base.group_loc TO web_anon;
GRANT ALL ON TABLE tzzr_core_itm_base.group_loc TO tzzr;


--
-- Name: TABLE api_groups_loc; Type: ACL; Schema: tzzr_core_itm_base; Owner: postgres
--

GRANT SELECT ON TABLE tzzr_core_itm_base.api_groups_loc TO web_anon;
GRANT ALL ON TABLE tzzr_core_itm_base.api_groups_loc TO tzzr;


--
-- Name: TABLE group_ply; Type: ACL; Schema: tzzr_core_itm_base; Owner: postgres
--

GRANT SELECT ON TABLE tzzr_core_itm_base.group_ply TO web_anon;
GRANT ALL ON TABLE tzzr_core_itm_base.group_ply TO tzzr;


--
-- Name: TABLE api_groups_ply; Type: ACL; Schema: tzzr_core_itm_base; Owner: postgres
--

GRANT SELECT ON TABLE tzzr_core_itm_base.api_groups_ply TO web_anon;
GRANT ALL ON TABLE tzzr_core_itm_base.api_groups_ply TO tzzr;


--
-- Name: TABLE graph_itm; Type: ACL; Schema: tzzr_core_itm_base; Owner: tzzr
--

GRANT SELECT ON TABLE tzzr_core_itm_base.graph_itm TO web_anon;


--
-- Name: TABLE graph_loc; Type: ACL; Schema: tzzr_core_itm_base; Owner: tzzr
--

GRANT SELECT ON TABLE tzzr_core_itm_base.graph_loc TO web_anon;


--
-- Name: TABLE graph_ply; Type: ACL; Schema: tzzr_core_itm_base; Owner: tzzr
--

GRANT SELECT ON TABLE tzzr_core_itm_base.graph_ply TO web_anon;


--
-- Name: SEQUENCE group_itm_num_seq; Type: ACL; Schema: tzzr_core_itm_base; Owner: postgres
--

GRANT ALL ON SEQUENCE tzzr_core_itm_base.group_itm_num_seq TO tzzr;


--
-- Name: SEQUENCE group_loc_num_seq; Type: ACL; Schema: tzzr_core_itm_base; Owner: postgres
--

GRANT ALL ON SEQUENCE tzzr_core_itm_base.group_loc_num_seq TO tzzr;


--
-- Name: SEQUENCE group_ply_num_seq; Type: ACL; Schema: tzzr_core_itm_base; Owner: postgres
--

GRANT ALL ON SEQUENCE tzzr_core_itm_base.group_ply_num_seq TO tzzr;


--
-- Name: TABLE itm; Type: ACL; Schema: tzzr_core_itm_base; Owner: tzzr
--

GRANT SELECT ON TABLE tzzr_core_itm_base.itm TO web_anon;


--
-- Name: TABLE library_itm; Type: ACL; Schema: tzzr_core_itm_base; Owner: tzzr
--

GRANT SELECT ON TABLE tzzr_core_itm_base.library_itm TO web_anon;


--
-- Name: TABLE library_loc; Type: ACL; Schema: tzzr_core_itm_base; Owner: tzzr
--

GRANT SELECT ON TABLE tzzr_core_itm_base.library_loc TO web_anon;


--
-- Name: TABLE library_ply; Type: ACL; Schema: tzzr_core_itm_base; Owner: tzzr
--

GRANT SELECT ON TABLE tzzr_core_itm_base.library_ply TO web_anon;


--
-- Name: TABLE loc; Type: ACL; Schema: tzzr_core_itm_base; Owner: tzzr
--

GRANT SELECT ON TABLE tzzr_core_itm_base.loc TO web_anon;


--
-- Name: SEQUENCE ply_agent_llm_map_num_seq; Type: ACL; Schema: tzzr_core_itm_base; Owner: postgres
--

GRANT USAGE ON SEQUENCE tzzr_core_itm_base.ply_agent_llm_map_num_seq TO tzzr;


--
-- Name: SEQUENCE ply_num_seq; Type: ACL; Schema: tzzr_core_itm_base; Owner: tzzr
--

GRANT USAGE ON SEQUENCE tzzr_core_itm_base.ply_num_seq TO web_anon;


--
-- Name: TABLE tree_itm; Type: ACL; Schema: tzzr_core_itm_base; Owner: tzzr
--

GRANT SELECT ON TABLE tzzr_core_itm_base.tree_itm TO web_anon;


--
-- Name: TABLE tree_loc; Type: ACL; Schema: tzzr_core_itm_base; Owner: tzzr
--

GRANT SELECT ON TABLE tzzr_core_itm_base.tree_loc TO web_anon;


--
-- Name: TABLE tree_ply; Type: ACL; Schema: tzzr_core_itm_base; Owner: tzzr
--

GRANT SELECT ON TABLE tzzr_core_itm_base.tree_ply TO web_anon;


--
-- Name: TABLE graph_bck; Type: ACL; Schema: tzzr_core_oracle; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_oracle.graph_bck TO tzzr;


--
-- Name: TABLE graph_mst; Type: ACL; Schema: tzzr_core_oracle; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_oracle.graph_mst TO tzzr;


--
-- Name: TABLE library_bck; Type: ACL; Schema: tzzr_core_oracle; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_oracle.library_bck TO tzzr;


--
-- Name: TABLE library_mst; Type: ACL; Schema: tzzr_core_oracle; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_oracle.library_mst TO tzzr;


--
-- Name: TABLE mst; Type: ACL; Schema: tzzr_core_oracle; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_oracle.mst TO tzzr;


--
-- Name: TABLE tree_bck; Type: ACL; Schema: tzzr_core_oracle; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_oracle.tree_bck TO tzzr;


--
-- Name: TABLE tree_mst; Type: ACL; Schema: tzzr_core_oracle; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_oracle.tree_mst TO tzzr;


--
-- Name: TABLE graph_mth; Type: ACL; Schema: tzzr_core_produccion; Owner: postgres
--

GRANT SELECT ON TABLE tzzr_core_produccion.graph_mth TO web_anon;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_produccion.graph_mth TO tzzr;


--
-- Name: TABLE library_mth; Type: ACL; Schema: tzzr_core_produccion; Owner: postgres
--

GRANT SELECT ON TABLE tzzr_core_produccion.library_mth TO web_anon;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_produccion.library_mth TO tzzr;


--
-- Name: TABLE mth; Type: ACL; Schema: tzzr_core_produccion; Owner: postgres
--

GRANT ALL ON TABLE tzzr_core_produccion.mth TO tzzr;
GRANT SELECT ON TABLE tzzr_core_produccion.mth TO web_anon;


--
-- Name: TABLE tree_mth; Type: ACL; Schema: tzzr_core_produccion; Owner: postgres
--

GRANT SELECT ON TABLE tzzr_core_produccion.tree_mth TO web_anon;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_produccion.tree_mth TO tzzr;


--
-- Name: TABLE bck; Type: ACL; Schema: tzzr_core_secretaria; Owner: tzzr
--

GRANT SELECT ON TABLE tzzr_core_secretaria.bck TO web_anon;


--
-- Name: TABLE graph_bck; Type: ACL; Schema: tzzr_core_secretaria; Owner: postgres
--

GRANT SELECT ON TABLE tzzr_core_secretaria.graph_bck TO web_anon;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_secretaria.graph_bck TO tzzr;


--
-- Name: TABLE graph_mst; Type: ACL; Schema: tzzr_core_secretaria; Owner: postgres
--

GRANT SELECT ON TABLE tzzr_core_secretaria.graph_mst TO web_anon;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_secretaria.graph_mst TO tzzr;


--
-- Name: TABLE library_bck; Type: ACL; Schema: tzzr_core_secretaria; Owner: postgres
--

GRANT SELECT ON TABLE tzzr_core_secretaria.library_bck TO web_anon;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_secretaria.library_bck TO tzzr;


--
-- Name: TABLE library_mst; Type: ACL; Schema: tzzr_core_secretaria; Owner: postgres
--

GRANT SELECT ON TABLE tzzr_core_secretaria.library_mst TO web_anon;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_secretaria.library_mst TO tzzr;


--
-- Name: TABLE mst; Type: ACL; Schema: tzzr_core_secretaria; Owner: postgres
--

GRANT ALL ON TABLE tzzr_core_secretaria.mst TO tzzr;
GRANT SELECT ON TABLE tzzr_core_secretaria.mst TO web_anon;


--
-- Name: TABLE tree_bck; Type: ACL; Schema: tzzr_core_secretaria; Owner: postgres
--

GRANT SELECT ON TABLE tzzr_core_secretaria.tree_bck TO web_anon;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_secretaria.tree_bck TO tzzr;


--
-- Name: TABLE tree_mst; Type: ACL; Schema: tzzr_core_secretaria; Owner: postgres
--

GRANT SELECT ON TABLE tzzr_core_secretaria.tree_mst TO web_anon;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_core_secretaria.tree_mst TO tzzr;


--
-- Name: SEQUENCE agent_llm_num_seq; Type: ACL; Schema: tzzr_iachat; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_iachat.agent_llm_num_seq TO web_anon;


--
-- Name: TABLE flow; Type: ACL; Schema: tzzr_iachat; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_iachat.flow TO web_anon;


--
-- Name: TABLE flow_edge; Type: ACL; Schema: tzzr_iachat; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_iachat.flow_edge TO web_anon;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_iachat.flow_edge TO tzzr;


--
-- Name: SEQUENCE flow_edge_num_seq; Type: ACL; Schema: tzzr_iachat; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_iachat.flow_edge_num_seq TO web_anon;
GRANT SELECT,USAGE ON SEQUENCE tzzr_iachat.flow_edge_num_seq TO tzzr;


--
-- Name: TABLE flow_execution; Type: ACL; Schema: tzzr_iachat; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_iachat.flow_execution TO web_anon;


--
-- Name: SEQUENCE flow_execution_num_seq; Type: ACL; Schema: tzzr_iachat; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_iachat.flow_execution_num_seq TO web_anon;


--
-- Name: SEQUENCE flow_num_seq; Type: ACL; Schema: tzzr_iachat; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_iachat.flow_num_seq TO web_anon;


--
-- Name: TABLE flow_step; Type: ACL; Schema: tzzr_iachat; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_iachat.flow_step TO web_anon;


--
-- Name: TABLE flow_step_execution; Type: ACL; Schema: tzzr_iachat; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_iachat.flow_step_execution TO web_anon;


--
-- Name: SEQUENCE flow_step_execution_num_seq; Type: ACL; Schema: tzzr_iachat; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_iachat.flow_step_execution_num_seq TO web_anon;


--
-- Name: SEQUENCE flow_step_num_seq; Type: ACL; Schema: tzzr_iachat; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_iachat.flow_step_num_seq TO web_anon;


--
-- Name: TABLE flow_summary; Type: ACL; Schema: tzzr_iachat; Owner: tzzr
--

GRANT SELECT ON TABLE tzzr_iachat.flow_summary TO web_anon;


--
-- Name: TABLE message; Type: ACL; Schema: tzzr_iachat; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_iachat.message TO web_anon;


--
-- Name: SEQUENCE message_num_seq; Type: ACL; Schema: tzzr_iachat; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_iachat.message_num_seq TO web_anon;


--
-- Name: TABLE project; Type: ACL; Schema: tzzr_iachat; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_iachat.project TO web_anon;


--
-- Name: TABLE project_agent_llm; Type: ACL; Schema: tzzr_iachat; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_iachat.project_agent_llm TO web_anon;


--
-- Name: SEQUENCE project_num_seq; Type: ACL; Schema: tzzr_iachat; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_iachat.project_num_seq TO web_anon;


--
-- Name: TABLE session; Type: ACL; Schema: tzzr_iachat; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_iachat.session TO web_anon;


--
-- Name: SEQUENCE session_num_seq; Type: ACL; Schema: tzzr_iachat; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_iachat.session_num_seq TO web_anon;


--
-- Name: TABLE session_summary; Type: ACL; Schema: tzzr_iachat; Owner: postgres
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_iachat.session_summary TO tzzr;
GRANT SELECT ON TABLE tzzr_iachat.session_summary TO web_anon;


--
-- Name: TABLE tag_strip; Type: ACL; Schema: tzzr_iachat; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_iachat.tag_strip TO web_anon;


--
-- Name: TABLE terminal_whitelist; Type: ACL; Schema: tzzr_iachat; Owner: tzzr
--

GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_iachat.terminal_whitelist TO web_anon;


--
-- Name: SEQUENCE terminal_whitelist_num_seq; Type: ACL; Schema: tzzr_iachat; Owner: tzzr
--

GRANT SELECT,USAGE ON SEQUENCE tzzr_iachat.terminal_whitelist_num_seq TO web_anon;


--
-- Name: SEQUENCE atc_num_seq; Type: ACL; Schema: tzzr_storage; Owner: postgres
--

GRANT ALL ON SEQUENCE tzzr_storage.atc_num_seq TO tzzr;


--
-- Name: TABLE atc; Type: ACL; Schema: tzzr_storage; Owner: postgres
--

GRANT ALL ON TABLE tzzr_storage.atc TO tzzr;


--
-- Name: TABLE bucket_access_log; Type: ACL; Schema: tzzr_storage; Owner: postgres
--

GRANT ALL ON TABLE tzzr_storage.bucket_access_log TO tzzr;


--
-- Name: SEQUENCE bucket_access_log_id_seq; Type: ACL; Schema: tzzr_storage; Owner: postgres
--

GRANT ALL ON SEQUENCE tzzr_storage.bucket_access_log_id_seq TO tzzr;


--
-- Name: TABLE graph_atc; Type: ACL; Schema: tzzr_storage; Owner: postgres
--

GRANT SELECT ON TABLE tzzr_storage.graph_atc TO web_anon;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_storage.graph_atc TO tzzr;


--
-- Name: TABLE library_atc; Type: ACL; Schema: tzzr_storage; Owner: postgres
--

GRANT SELECT ON TABLE tzzr_storage.library_atc TO web_anon;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_storage.library_atc TO tzzr;


--
-- Name: TABLE tree_atc; Type: ACL; Schema: tzzr_storage; Owner: postgres
--

GRANT SELECT ON TABLE tzzr_storage.tree_atc TO web_anon;
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE tzzr_storage.tree_atc TO tzzr;


--
-- Name: TABLE endpoints; Type: ACL; Schema: tzzr_system; Owner: postgres
--

GRANT SELECT,INSERT,UPDATE ON TABLE tzzr_system.endpoints TO tzzr;


--
-- Name: TABLE keys; Type: ACL; Schema: tzzr_system; Owner: postgres
--

GRANT ALL ON TABLE tzzr_system.keys TO tzzr;


--
-- Name: SEQUENCE keys_id_seq; Type: ACL; Schema: tzzr_system; Owner: postgres
--

GRANT ALL ON SEQUENCE tzzr_system.keys_id_seq TO tzzr;


--
-- Name: TABLE gate_user; Type: ACL; Schema: usr; Owner: postgres
--

GRANT ALL ON TABLE usr.gate_user TO tzzr;


--
-- Name: SEQUENCE gate_user_id_seq; Type: ACL; Schema: usr; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE usr.gate_user_id_seq TO tzzr;


--
-- Name: TABLE key; Type: ACL; Schema: usr; Owner: postgres
--

GRANT ALL ON TABLE usr.key TO tzzr;


--
-- Name: TABLE storage; Type: ACL; Schema: usr; Owner: postgres
--

GRANT ALL ON TABLE usr.storage TO tzzr;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: production_alfred; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA production_alfred GRANT SELECT,USAGE ON SEQUENCES  TO tzzr;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: production_alfred; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA production_alfred GRANT SELECT,INSERT,DELETE,UPDATE ON TABLES  TO tzzr;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: tzzr_ai; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tzzr_ai GRANT SELECT,USAGE ON SEQUENCES  TO tzzr;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: tzzr_ai; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tzzr_ai GRANT SELECT,INSERT,DELETE,UPDATE ON TABLES  TO tzzr;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tzzr_ai GRANT SELECT ON TABLES  TO web_anon;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: tzzr_communications; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tzzr_communications GRANT SELECT,USAGE ON SEQUENCES  TO tzzr;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tzzr_communications GRANT USAGE ON SEQUENCES  TO web_anon;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: tzzr_communications; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tzzr_communications GRANT ALL ON TABLES  TO tzzr;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tzzr_communications GRANT SELECT,INSERT,DELETE,UPDATE ON TABLES  TO web_anon;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tzzr_communications_ai GRANT SELECT,USAGE ON SEQUENCES  TO tzzr;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tzzr_communications_ai GRANT USAGE ON SEQUENCES  TO web_anon;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tzzr_communications_ai GRANT SELECT,INSERT,DELETE,UPDATE ON TABLES  TO tzzr;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tzzr_communications_ai GRANT SELECT,INSERT,DELETE,UPDATE ON TABLES  TO web_anon;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER DEFAULT PRIVILEGES FOR ROLE tzzr IN SCHEMA tzzr_communications_str GRANT ALL ON SEQUENCES  TO tzzr;
ALTER DEFAULT PRIVILEGES FOR ROLE tzzr IN SCHEMA tzzr_communications_str GRANT SELECT,USAGE ON SEQUENCES  TO web_anon;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER DEFAULT PRIVILEGES FOR ROLE tzzr IN SCHEMA tzzr_communications_str GRANT ALL ON TABLES  TO tzzr;
ALTER DEFAULT PRIVILEGES FOR ROLE tzzr IN SCHEMA tzzr_communications_str GRANT SELECT,INSERT,DELETE,UPDATE ON TABLES  TO web_anon;


--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: tzzr_iachat; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tzzr_iachat GRANT SELECT,USAGE ON SEQUENCES  TO tzzr;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: tzzr_iachat; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA tzzr_iachat GRANT SELECT,INSERT,DELETE,UPDATE ON TABLES  TO tzzr;


--
--

\unrestrict ybTwzMIeusKrHKvb37lHmMLDf7s3KVWGLJSYUHp9Y7D0BksfXQAZArCYbT1ZMsm

--
-- PostgreSQL database cluster dump complete
--

