-- Name: graph_actions_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_chat_ai.graph_actions_num_seq OWNED BY tzzr_chat_ai.graph_actions.num;


--
-- Name: graph_curated_context; Type: TABLE; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE TABLE tzzr_chat_ai.graph_curated_context (
    num integer NOT NULL,
    mrf_a character varying(64) NOT NULL,
    mrf_b character varying(64) NOT NULL,
    weight double precision DEFAULT 1.0,
    edge_type character varying(32),
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_chat_ai.graph_curated_context OWNER TO postgres;

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

CREATE SEQUENCE tzzr_chat_ai.graph_curated_context_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_chat_ai.graph_curated_context_num_seq OWNER TO postgres;

--
-- Name: graph_curated_context_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_chat_ai.graph_curated_context_num_seq OWNED BY tzzr_chat_ai.graph_curated_context.num;


--
-- Name: graph_embeddings; Type: TABLE; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE TABLE tzzr_chat_ai.graph_embeddings (
    num integer NOT NULL,
    mrf_a character varying(64) NOT NULL,
    mrf_b character varying(64) NOT NULL,
    weight double precision DEFAULT 1.0,
    edge_type character varying(32),
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_chat_ai.graph_embeddings OWNER TO postgres;

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

CREATE SEQUENCE tzzr_chat_ai.graph_embeddings_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_chat_ai.graph_embeddings_num_seq OWNER TO postgres;

--
-- Name: graph_embeddings_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_chat_ai.graph_embeddings_num_seq OWNED BY tzzr_chat_ai.graph_embeddings.num;


--
-- Name: graph_enrichment; Type: TABLE; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE TABLE tzzr_chat_ai.graph_enrichment (
    num integer NOT NULL,
    mrf_a character varying(64) NOT NULL,
    mrf_b character varying(64) NOT NULL,
    weight double precision DEFAULT 1.0,
    edge_type character varying(32),
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_chat_ai.graph_enrichment OWNER TO postgres;

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

CREATE SEQUENCE tzzr_chat_ai.graph_enrichment_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_chat_ai.graph_enrichment_num_seq OWNER TO postgres;

--
-- Name: graph_enrichment_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_chat_ai.graph_enrichment_num_seq OWNED BY tzzr_chat_ai.graph_enrichment.num;


--
-- Name: graph_extracted; Type: TABLE; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE TABLE tzzr_chat_ai.graph_extracted (
    num integer NOT NULL,
    mrf_a character varying(64) NOT NULL,
    mrf_b character varying(64) NOT NULL,
    weight double precision DEFAULT 1.0,
    edge_type character varying(32),
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_chat_ai.graph_extracted OWNER TO postgres;

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

CREATE SEQUENCE tzzr_chat_ai.graph_extracted_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_chat_ai.graph_extracted_num_seq OWNER TO postgres;

--
-- Name: graph_extracted_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_chat_ai.graph_extracted_num_seq OWNED BY tzzr_chat_ai.graph_extracted.num;


--
-- Name: graph_threads; Type: TABLE; Schema: tzzr_chat_ai; Owner: tzzr
--

CREATE TABLE tzzr_chat_ai.graph_threads (
    num integer NOT NULL,
    mrf_a character varying(64) NOT NULL,
    mrf_b character varying(64) NOT NULL,
    weight double precision DEFAULT 1.0,
    edge_type character varying(32) DEFAULT 'related'::character varying,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_chat_ai.graph_threads OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_chat_ai.graph_threads_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_chat_ai.graph_threads_num_seq OWNER TO tzzr;

--
-- Name: graph_threads_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_chat_ai; Owner: tzzr
--

ALTER SEQUENCE tzzr_chat_ai.graph_threads_num_seq OWNED BY tzzr_chat_ai.graph_threads.num;


--
-- Name: graph_workspace; Type: TABLE; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE TABLE tzzr_chat_ai.graph_workspace (
    num integer NOT NULL,
    mrf_a character varying(64) NOT NULL,
    mrf_b character varying(64) NOT NULL,
    weight double precision DEFAULT 1.0,
    edge_type character varying(32),
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_chat_ai.graph_workspace OWNER TO postgres;

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

CREATE SEQUENCE tzzr_chat_ai.graph_workspace_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_chat_ai.graph_workspace_num_seq OWNER TO postgres;

--
-- Name: graph_workspace_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_chat_ai.graph_workspace_num_seq OWNED BY tzzr_chat_ai.graph_workspace.num;


--
-- Name: library_actions; Type: TABLE; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE TABLE tzzr_chat_ai.library_actions (
    num integer NOT NULL,
    mrf_library character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_chat_ai.library_actions OWNER TO postgres;

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

CREATE SEQUENCE tzzr_chat_ai.library_actions_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_chat_ai.library_actions_num_seq OWNER TO postgres;

--
-- Name: library_actions_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_chat_ai.library_actions_num_seq OWNED BY tzzr_chat_ai.library_actions.num;


--
-- Name: library_curated_context; Type: TABLE; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE TABLE tzzr_chat_ai.library_curated_context (
    num integer NOT NULL,
    mrf_library character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_chat_ai.library_curated_context OWNER TO postgres;

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

CREATE SEQUENCE tzzr_chat_ai.library_curated_context_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_chat_ai.library_curated_context_num_seq OWNER TO postgres;

--
-- Name: library_curated_context_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_chat_ai.library_curated_context_num_seq OWNED BY tzzr_chat_ai.library_curated_context.num;


--
-- Name: library_embeddings; Type: TABLE; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE TABLE tzzr_chat_ai.library_embeddings (
    num integer NOT NULL,
    mrf_library character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_chat_ai.library_embeddings OWNER TO postgres;

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

CREATE SEQUENCE tzzr_chat_ai.library_embeddings_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_chat_ai.library_embeddings_num_seq OWNER TO postgres;

--
-- Name: library_embeddings_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_chat_ai.library_embeddings_num_seq OWNED BY tzzr_chat_ai.library_embeddings.num;


--
-- Name: library_enrichment; Type: TABLE; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE TABLE tzzr_chat_ai.library_enrichment (
    num integer NOT NULL,
    mrf_library character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_chat_ai.library_enrichment OWNER TO postgres;

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

CREATE SEQUENCE tzzr_chat_ai.library_enrichment_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_chat_ai.library_enrichment_num_seq OWNER TO postgres;

--
-- Name: library_enrichment_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_chat_ai.library_enrichment_num_seq OWNED BY tzzr_chat_ai.library_enrichment.num;


--
-- Name: library_extracted; Type: TABLE; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE TABLE tzzr_chat_ai.library_extracted (
    num integer NOT NULL,
    mrf_library character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_chat_ai.library_extracted OWNER TO postgres;

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

CREATE SEQUENCE tzzr_chat_ai.library_extracted_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_chat_ai.library_extracted_num_seq OWNER TO postgres;

--
-- Name: library_extracted_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_chat_ai.library_extracted_num_seq OWNED BY tzzr_chat_ai.library_extracted.num;


--
-- Name: library_threads; Type: TABLE; Schema: tzzr_chat_ai; Owner: tzzr
--

CREATE TABLE tzzr_chat_ai.library_threads (
    num integer NOT NULL,
    mrf_library character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_chat_ai.library_threads OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_chat_ai.library_threads_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_chat_ai.library_threads_num_seq OWNER TO tzzr;

--
-- Name: library_threads_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_chat_ai; Owner: tzzr
--

ALTER SEQUENCE tzzr_chat_ai.library_threads_num_seq OWNED BY tzzr_chat_ai.library_threads.num;


--
-- Name: library_workspace; Type: TABLE; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE TABLE tzzr_chat_ai.library_workspace (
    num integer NOT NULL,
    mrf_library character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_chat_ai.library_workspace OWNER TO postgres;

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

CREATE SEQUENCE tzzr_chat_ai.library_workspace_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_chat_ai.library_workspace_num_seq OWNER TO postgres;

--
-- Name: library_workspace_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_chat_ai.library_workspace_num_seq OWNED BY tzzr_chat_ai.library_workspace.num;


--
-- Name: tree_actions; Type: TABLE; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE TABLE tzzr_chat_ai.tree_actions (
    num integer NOT NULL,
    mrf_parent character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_chat_ai.tree_actions OWNER TO postgres;

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

CREATE SEQUENCE tzzr_chat_ai.tree_actions_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_chat_ai.tree_actions_num_seq OWNER TO postgres;

--
-- Name: tree_actions_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_chat_ai.tree_actions_num_seq OWNED BY tzzr_chat_ai.tree_actions.num;


--
-- Name: tree_curated_context; Type: TABLE; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE TABLE tzzr_chat_ai.tree_curated_context (
    num integer NOT NULL,
    mrf_parent character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_chat_ai.tree_curated_context OWNER TO postgres;

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

CREATE SEQUENCE tzzr_chat_ai.tree_curated_context_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_chat_ai.tree_curated_context_num_seq OWNER TO postgres;

--
-- Name: tree_curated_context_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_chat_ai.tree_curated_context_num_seq OWNED BY tzzr_chat_ai.tree_curated_context.num;


--
-- Name: tree_embeddings; Type: TABLE; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE TABLE tzzr_chat_ai.tree_embeddings (
    num integer NOT NULL,
    mrf_parent character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_chat_ai.tree_embeddings OWNER TO postgres;

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

CREATE SEQUENCE tzzr_chat_ai.tree_embeddings_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_chat_ai.tree_embeddings_num_seq OWNER TO postgres;

--
-- Name: tree_embeddings_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_chat_ai.tree_embeddings_num_seq OWNED BY tzzr_chat_ai.tree_embeddings.num;


--
-- Name: tree_enrichment; Type: TABLE; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE TABLE tzzr_chat_ai.tree_enrichment (
    num integer NOT NULL,
    mrf_parent character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_chat_ai.tree_enrichment OWNER TO postgres;

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

CREATE SEQUENCE tzzr_chat_ai.tree_enrichment_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_chat_ai.tree_enrichment_num_seq OWNER TO postgres;

--
-- Name: tree_enrichment_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_chat_ai.tree_enrichment_num_seq OWNED BY tzzr_chat_ai.tree_enrichment.num;


--
-- Name: tree_extracted; Type: TABLE; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE TABLE tzzr_chat_ai.tree_extracted (
    num integer NOT NULL,
    mrf_parent character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_chat_ai.tree_extracted OWNER TO postgres;

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

CREATE SEQUENCE tzzr_chat_ai.tree_extracted_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_chat_ai.tree_extracted_num_seq OWNER TO postgres;

--
-- Name: tree_extracted_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_chat_ai.tree_extracted_num_seq OWNED BY tzzr_chat_ai.tree_extracted.num;


--
-- Name: tree_threads; Type: TABLE; Schema: tzzr_chat_ai; Owner: tzzr
--

CREATE TABLE tzzr_chat_ai.tree_threads (
    num integer NOT NULL,
    mrf_parent character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_chat_ai.tree_threads OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_chat_ai.tree_threads_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_chat_ai.tree_threads_num_seq OWNER TO tzzr;

--
-- Name: tree_threads_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_chat_ai; Owner: tzzr
--

ALTER SEQUENCE tzzr_chat_ai.tree_threads_num_seq OWNED BY tzzr_chat_ai.tree_threads.num;


--
-- Name: tree_workspace; Type: TABLE; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE TABLE tzzr_chat_ai.tree_workspace (
    num integer NOT NULL,
    mrf_parent character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_chat_ai.tree_workspace OWNER TO postgres;

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

CREATE SEQUENCE tzzr_chat_ai.tree_workspace_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_chat_ai.tree_workspace_num_seq OWNER TO postgres;

--
-- Name: tree_workspace_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_chat_ai.tree_workspace_num_seq OWNED BY tzzr_chat_ai.tree_workspace.num;


--
-- Name: workspace; Type: TABLE; Schema: tzzr_chat_ai; Owner: postgres
--

CREATE TABLE tzzr_chat_ai.workspace (
    num integer NOT NULL,
    mrf character varying(64) DEFAULT md5(((random())::text || (clock_timestamp())::text)) NOT NULL,
    entry_type character varying(32) NOT NULL,
    session_mrf character varying(64),
    title text,
    content text,
    data jsonb DEFAULT '{}'::jsonb,
    set_hst character varying(64),
    etiquetas jsonb DEFAULT '[]'::jsonb,
    status character varying(16) DEFAULT 'active'::character varying,
    model character varying(64),
    confidence double precision,
    created_at timestamp with time zone DEFAULT now(),
    updated_at timestamp with time zone DEFAULT now(),
    CONSTRAINT workspace_entry_type_check CHECK (((entry_type)::text = ANY ((ARRAY['analysis'::character varying, 'recommendation'::character varying, 'pattern'::character varying, 'summary'::character varying, 'rule'::character varying, 'decision'::character varying])::text[]))),
    CONSTRAINT workspace_status_check CHECK (((status)::text = ANY ((ARRAY['active'::character varying, 'superseded'::character varying, 'archived'::character varying, 'error'::character varying])::text[])))
);


ALTER TABLE tzzr_chat_ai.workspace OWNER TO postgres;

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

CREATE SEQUENCE tzzr_chat_ai.workspace_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_chat_ai.workspace_num_seq OWNER TO postgres;

--
-- Name: workspace_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_chat_ai.workspace_num_seq OWNED BY tzzr_chat_ai.workspace.num;


--
-- Name: chat; Type: TABLE; Schema: tzzr_communications; Owner: postgres
--

CREATE TABLE tzzr_communications.chat (
    mrf character varying(64) NOT NULL,
    session_hash character varying(64) NOT NULL,
    owner_id character varying(64) NOT NULL,
    role character varying(20) NOT NULL,
    content text NOT NULL,
    prev_hash character varying(64),
    created_at timestamp with time zone DEFAULT now(),
    set_hst character varying(64)
);


ALTER TABLE tzzr_communications.chat OWNER TO postgres;

--
-- Name: mail; Type: TABLE; Schema: tzzr_communications; Owner: postgres
--

CREATE TABLE tzzr_communications.mail (
    mrf character varying(64) NOT NULL,
    from_address text NOT NULL,
    to_address text NOT NULL,
    subject text,
    body text,
    body_html text,
    attachments jsonb,
    created_at timestamp with time zone DEFAULT now(),
    set_hst character varying(64),
    message_id text,
    in_reply_to text,
    cc text,
    bcc text,
    reply_to text,
    direction character varying(16) DEFAULT 'inbound'::character varying,
    size_bytes integer,
    headers jsonb,
    account character varying(255),
    num bigint NOT NULL,
    "references" text,
    sender text,
    envelope_to text,
    original_to text,
    date timestamp with time zone
);


ALTER TABLE tzzr_communications.mail OWNER TO postgres;

--
-- Name: mail_attachment_links; Type: TABLE; Schema: tzzr_communications; Owner: tzzr
--

CREATE TABLE tzzr_communications.mail_attachment_links (
    mrf text NOT NULL,
    hash text NOT NULL,
    original_filename text,
    content_disposition text DEFAULT 'attachment'::text,
    content_id text
);


ALTER TABLE tzzr_communications.mail_attachment_links OWNER TO tzzr;

--
-- Name: mail_attachments; Type: TABLE; Schema: tzzr_communications; Owner: tzzr
--

CREATE TABLE tzzr_communications.mail_attachments (
    hash text NOT NULL,
    content_type text NOT NULL,
    size_bytes integer NOT NULL,
    storage_path text NOT NULL,
    created_at timestamp without time zone DEFAULT now()
);


ALTER TABLE tzzr_communications.mail_attachments OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_communications.mail_num_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications.mail_num_seq OWNER TO postgres;

--
-- Name: mail_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications; Owner: postgres
--

ALTER SEQUENCE tzzr_communications.mail_num_seq OWNED BY tzzr_communications.mail.num;


--
-- Name: draft_profile_rules; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.draft_profile_rules (
    num integer NOT NULL,
    mrf character varying(64) DEFAULT md5((random())::text) NOT NULL,
    sender_pattern text NOT NULL,
    profile_mrf character varying(64) NOT NULL,
    tone_mrf character varying(64),
    priority integer DEFAULT 50,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.draft_profile_rules OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.draft_profile_rules_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.draft_profile_rules_num_seq OWNER TO postgres;

--
-- Name: draft_profile_rules_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.draft_profile_rules_num_seq OWNED BY tzzr_communications_ai.draft_profile_rules.num;


--
-- Name: draft_profiles; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.draft_profiles (
    num integer NOT NULL,
    mrf character varying(64) DEFAULT md5((random())::text) NOT NULL,
    name character varying(100) NOT NULL,
    description text,
    signature text,
    language_pref character varying(8),
    formality integer DEFAULT 3,
    is_default boolean DEFAULT false,
    created_at timestamp with time zone DEFAULT now(),
    updated_at timestamp with time zone DEFAULT now(),
    CONSTRAINT draft_profiles_formality_check CHECK (((formality >= 1) AND (formality <= 5)))
);


ALTER TABLE tzzr_communications_ai.draft_profiles OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.draft_profiles_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.draft_profiles_num_seq OWNER TO postgres;

--
-- Name: draft_profiles_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.draft_profiles_num_seq OWNED BY tzzr_communications_ai.draft_profiles.num;


--
-- Name: draft_settings; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.draft_settings (
    key character varying(64) NOT NULL,
    value jsonb DEFAULT '{}'::jsonb NOT NULL,
    updated_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.draft_settings OWNER TO postgres;

--
-- Name: draft_tones; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.draft_tones (
    num integer NOT NULL,
    mrf character varying(64) DEFAULT md5((random())::text) NOT NULL,
    name character varying(100) NOT NULL,
    description text,
    is_preset boolean DEFAULT false,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.draft_tones OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.draft_tones_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.draft_tones_num_seq OWNER TO postgres;

--
-- Name: draft_tones_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.draft_tones_num_seq OWNED BY tzzr_communications_ai.draft_tones.num;


--
-- Name: graph_actions; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.graph_actions (
    num integer NOT NULL,
    mrf_a character varying(64) NOT NULL,
    mrf_b character varying(64) NOT NULL,
    weight double precision DEFAULT 1.0,
    edge_type character varying(32),
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.graph_actions OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.graph_actions_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.graph_actions_num_seq OWNER TO postgres;

--
-- Name: graph_actions_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.graph_actions_num_seq OWNED BY tzzr_communications_ai.graph_actions.num;


--
-- Name: graph_drafts; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.graph_drafts (
    num integer NOT NULL,
    mrf_a character varying(64) NOT NULL,
    mrf_b character varying(64) NOT NULL,
    weight double precision DEFAULT 1.0,
    edge_type character varying(32),
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.graph_drafts OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.graph_drafts_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.graph_drafts_num_seq OWNER TO postgres;

--
-- Name: graph_drafts_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.graph_drafts_num_seq OWNED BY tzzr_communications_ai.graph_drafts.num;


--
-- Name: graph_embeddings; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.graph_embeddings (
    num integer NOT NULL,
    mrf_a character varying(64) NOT NULL,
    mrf_b character varying(64) NOT NULL,
    weight double precision DEFAULT 1.0,
    edge_type character varying(32),
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.graph_embeddings OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.graph_embeddings_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.graph_embeddings_num_seq OWNER TO postgres;

--
-- Name: graph_embeddings_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.graph_embeddings_num_seq OWNED BY tzzr_communications_ai.graph_embeddings.num;


--
-- Name: graph_enrichment; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.graph_enrichment (
    num integer NOT NULL,
    mrf_a character varying(64) NOT NULL,
    mrf_b character varying(64) NOT NULL,
    weight double precision DEFAULT 1.0,
    edge_type character varying(32),
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.graph_enrichment OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.graph_enrichment_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.graph_enrichment_num_seq OWNER TO postgres;

--
-- Name: graph_enrichment_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.graph_enrichment_num_seq OWNED BY tzzr_communications_ai.graph_enrichment.num;


--
-- Name: graph_extracted; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.graph_extracted (
    num integer NOT NULL,
    mrf_a character varying(64) NOT NULL,
    mrf_b character varying(64) NOT NULL,
    weight double precision DEFAULT 1.0,
    edge_type character varying(32),
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.graph_extracted OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.graph_extracted_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.graph_extracted_num_seq OWNER TO postgres;

--
-- Name: graph_extracted_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.graph_extracted_num_seq OWNED BY tzzr_communications_ai.graph_extracted.num;


--
-- Name: graph_source; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.graph_source (
    num integer NOT NULL,
    mrf_a character varying(64) NOT NULL,
    mrf_b character varying(64) NOT NULL,
    weight double precision DEFAULT 1.0,
    edge_type character varying(32),
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.graph_source OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.graph_source_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.graph_source_num_seq OWNER TO postgres;

--
-- Name: graph_source_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.graph_source_num_seq OWNED BY tzzr_communications_ai.graph_source.num;


--
-- Name: graph_workspace; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.graph_workspace (
    num integer NOT NULL,
    mrf_a character varying(64) NOT NULL,
    mrf_b character varying(64) NOT NULL,
    weight double precision DEFAULT 1.0,
    edge_type character varying(32),
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.graph_workspace OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.graph_workspace_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.graph_workspace_num_seq OWNER TO postgres;

--
-- Name: graph_workspace_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.graph_workspace_num_seq OWNED BY tzzr_communications_ai.graph_workspace.num;


--
-- Name: library_actions; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.library_actions (
    num integer NOT NULL,
    mrf_library character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.library_actions OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.library_actions_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.library_actions_num_seq OWNER TO postgres;

--
-- Name: library_actions_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.library_actions_num_seq OWNED BY tzzr_communications_ai.library_actions.num;


--
-- Name: library_drafts; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.library_drafts (
    num integer NOT NULL,
    mrf_library character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.library_drafts OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.library_drafts_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.library_drafts_num_seq OWNER TO postgres;

--
-- Name: library_drafts_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.library_drafts_num_seq OWNED BY tzzr_communications_ai.library_drafts.num;


--
-- Name: library_embeddings; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.library_embeddings (
    num integer NOT NULL,
    mrf_library character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.library_embeddings OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.library_embeddings_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.library_embeddings_num_seq OWNER TO postgres;

--
-- Name: library_embeddings_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.library_embeddings_num_seq OWNED BY tzzr_communications_ai.library_embeddings.num;


--
-- Name: library_enrichment; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.library_enrichment (
    num integer NOT NULL,
    mrf_library character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.library_enrichment OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.library_enrichment_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.library_enrichment_num_seq OWNER TO postgres;

--
-- Name: library_enrichment_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.library_enrichment_num_seq OWNED BY tzzr_communications_ai.library_enrichment.num;


--
-- Name: library_extracted; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.library_extracted (
    num integer NOT NULL,
    mrf_library character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.library_extracted OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.library_extracted_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.library_extracted_num_seq OWNER TO postgres;

--
-- Name: library_extracted_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.library_extracted_num_seq OWNED BY tzzr_communications_ai.library_extracted.num;


--
-- Name: library_source; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.library_source (
    num integer NOT NULL,
    mrf_library character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.library_source OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.library_source_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.library_source_num_seq OWNER TO postgres;

--
-- Name: library_source_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.library_source_num_seq OWNED BY tzzr_communications_ai.library_source.num;


--
-- Name: library_workspace; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.library_workspace (
    num integer NOT NULL,
    mrf_library character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.library_workspace OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.library_workspace_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.library_workspace_num_seq OWNER TO postgres;

--
-- Name: library_workspace_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.library_workspace_num_seq OWNED BY tzzr_communications_ai.library_workspace.num;


--
-- Name: mail_actions; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.mail_actions (
    num integer NOT NULL,
    mrf character varying(64) DEFAULT md5((random())::text) NOT NULL,
    mail_mrf text NOT NULL,
    action_type character varying(16) NOT NULL,
    title text NOT NULL,
    description text,
    due_date date,
    due_time time without time zone,
    priority character varying(8) DEFAULT 'medium'::character varying,
    status character varying(16) DEFAULT 'pending'::character varying,
    source_context text,
    extracted_by character varying(64),
    created_at timestamp with time zone DEFAULT now(),
    completed_at timestamp with time zone,
    snoozed_until timestamp with time zone,
    set_hst character varying(64),
    etiquetas jsonb,
    CONSTRAINT mail_actions_action_type_check CHECK (((action_type)::text = ANY (ARRAY['task'::text, 'commitment'::text, 'reminder'::text, 'event'::text, 'deadline'::text]))),
    CONSTRAINT mail_actions_priority_check CHECK (((priority)::text = ANY (ARRAY['high'::text, 'medium'::text, 'low'::text]))),
    CONSTRAINT mail_actions_status_check CHECK (((status)::text = ANY (ARRAY['pending'::text, 'done'::text, 'dismissed'::text, 'snoozed'::text])))
);


ALTER TABLE tzzr_communications_ai.mail_actions OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.mail_actions_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.mail_actions_num_seq OWNER TO postgres;

--
-- Name: mail_actions_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.mail_actions_num_seq OWNED BY tzzr_communications_ai.mail_actions.num;


--
-- Name: mail_ai_workspace; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.mail_ai_workspace (
    num integer NOT NULL,
    mrf character varying(64) NOT NULL,
    entry_type character varying(32) NOT NULL,
    mail_mrf text,
    thread_mrf character varying(64),
    title text,
    content text,
    data jsonb DEFAULT '{}'::jsonb,
    set_hst character varying(64),
    etiquetas jsonb DEFAULT '[]'::jsonb,
    status character varying(16) DEFAULT 'active'::character varying,
    model character varying(64),
    confidence double precision,
    created_at timestamp with time zone DEFAULT now(),
    updated_at timestamp with time zone DEFAULT now(),
    CONSTRAINT chk_mail_ai_workspace_entry_type CHECK (((entry_type)::text = ANY ((ARRAY['analysis'::character varying, 'pattern'::character varying, 'decision'::character varying, 'rule'::character varying, 'anomaly'::character varying, 'contact_insight'::character varying, 'recommendation'::character varying, 'classification'::character varying, 'action_item'::character varying, 'draft_response'::character varying])::text[]))),
    CONSTRAINT chk_mail_ai_workspace_status CHECK (((status)::text = ANY ((ARRAY['active'::character varying, 'superseded'::character varying, 'archived'::character varying, 'error'::character varying])::text[])))
);


ALTER TABLE tzzr_communications_ai.mail_ai_workspace OWNER TO postgres;

--
-- Name: TABLE mail_ai_workspace; Type: COMMENT; Schema: tzzr_communications_ai; Owner: postgres
--

COMMENT ON TABLE tzzr_communications_ai.mail_ai_workspace IS 'IA workspace: classifications, action items, draft responses, analyses, rules, decisions';


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

CREATE SEQUENCE tzzr_communications_ai.mail_ai_workspace_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.mail_ai_workspace_num_seq OWNER TO postgres;

--
-- Name: mail_ai_workspace_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.mail_ai_workspace_num_seq OWNED BY tzzr_communications_ai.mail_ai_workspace.num;


--
-- Name: mail_drafts; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.mail_drafts (
    num integer NOT NULL,
    mrf character varying(64) DEFAULT md5((random())::text) NOT NULL,
    mail_mrf text NOT NULL,
    draft_subject text,
    draft_body text NOT NULL,
    reply_to text,
    quality_score double precision,
    quality_notes text,
    status character varying(16) DEFAULT 'draft'::character varying,
    model_used character varying(64),
    generated_at timestamp with time zone DEFAULT now(),
    approved_at timestamp with time zone,
    sent_at timestamp with time zone,
    profile_mrf character varying(64),
    tone_mrf character varying(64),
    variant_group character varying(64),
    set_hst character varying(64),
    etiquetas jsonb,
    CONSTRAINT mail_drafts_status_check CHECK (((status)::text = ANY (ARRAY['draft'::text, 'approved'::text, 'sent'::text, 'rejected'::text, 'discarded'::text])))
);


ALTER TABLE tzzr_communications_ai.mail_drafts OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.mail_drafts_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.mail_drafts_num_seq OWNER TO postgres;

--
-- Name: mail_drafts_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.mail_drafts_num_seq OWNED BY tzzr_communications_ai.mail_drafts.num;


--
-- Name: mail_embeddings; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.mail_embeddings (
    num integer NOT NULL,
    mail_mrf text NOT NULL,
    chunk_type text DEFAULT 'compact'::text NOT NULL,
    chunk_index integer DEFAULT 0,
    chunk_text text NOT NULL,
    embedding tzzr_core_hst.vector(1536),
    from_address text,
    email_date timestamp with time zone,
    sentiment text,
    model_used text DEFAULT 'text-embedding-3-small'::text,
    created_at timestamp with time zone DEFAULT now(),
    set_hst character varying(64)
);


ALTER TABLE tzzr_communications_ai.mail_embeddings OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.mail_embeddings_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.mail_embeddings_num_seq OWNER TO postgres;

--
-- Name: mail_embeddings_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.mail_embeddings_num_seq OWNED BY tzzr_communications_ai.mail_embeddings.num;


--
-- Name: mail_enrichment; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.mail_enrichment (
    num integer NOT NULL,
    mrf text NOT NULL,
    summary text,
    summary_model character varying(64),
    language character varying(8),
    sentiment character varying(16),
    intent character varying(32),
    set_hst character varying(64),
    etiquetas jsonb DEFAULT '[]'::jsonb,
    entities jsonb DEFAULT '{}'::jsonb,
    processed_at timestamp with time zone,
    processed_by character varying(64),
    confidence double precision,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.mail_enrichment OWNER TO postgres;

--
-- Name: TABLE mail_enrichment; Type: COMMENT; Schema: tzzr_communications_ai; Owner: postgres
--

COMMENT ON TABLE tzzr_communications_ai.mail_enrichment IS 'IA enrichment per email: summary, HST tags, sentiment, intent, entities';


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

CREATE SEQUENCE tzzr_communications_ai.mail_enrichment_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.mail_enrichment_num_seq OWNER TO postgres;

--
-- Name: mail_enrichment_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.mail_enrichment_num_seq OWNED BY tzzr_communications_ai.mail_enrichment.num;


--
-- Name: mail_extracted; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.mail_extracted (
    num integer NOT NULL,
    mail_mrf text NOT NULL,
    source_type character varying(16) NOT NULL,
    source_name character varying(64),
    data jsonb DEFAULT '{}'::jsonb NOT NULL,
    hst_mrf character varying(64),
    extracted_at timestamp with time zone DEFAULT now(),
    extracted_by character varying(64),
    set_hst character varying(64),
    etiquetas jsonb
);


ALTER TABLE tzzr_communications_ai.mail_extracted OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.mail_extracted_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.mail_extracted_num_seq OWNER TO postgres;

--
-- Name: mail_extracted_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.mail_extracted_num_seq OWNED BY tzzr_communications_ai.mail_extracted.num;


--
-- Name: mail_source; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.mail_source (
    num integer NOT NULL,
    from_pattern text NOT NULL,
    source_name character varying(64) NOT NULL,
    source_type character varying(16) NOT NULL,
    extraction_prompt text,
    hst_mrf character varying(64),
    auto_action character varying(16) DEFAULT 'none'::character varying,
    created_at timestamp with time zone DEFAULT now(),
    set_hst character varying(64),
    etiquetas jsonb,
    CONSTRAINT mail_source_auto_action_check CHECK (((auto_action)::text = ANY (ARRAY['none'::text, 'archive'::text, 'extract'::text, 'notify'::text]))),
    CONSTRAINT mail_source_source_type_check CHECK (((source_type)::text = ANY (ARRAY['financiero'::text, 'suscripcion'::text, 'seguridad'::text, 'comercio'::text, 'marketing'::text, 'conversacion'::text])))
);


ALTER TABLE tzzr_communications_ai.mail_source OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.mail_source_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.mail_source_num_seq OWNER TO postgres;

--
-- Name: mail_source_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.mail_source_num_seq OWNED BY tzzr_communications_ai.mail_source.num;


--
-- Name: tree_actions; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.tree_actions (
    num integer NOT NULL,
    mrf_parent character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.tree_actions OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.tree_actions_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.tree_actions_num_seq OWNER TO postgres;

--
-- Name: tree_actions_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.tree_actions_num_seq OWNED BY tzzr_communications_ai.tree_actions.num;


--
-- Name: tree_drafts; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.tree_drafts (
    num integer NOT NULL,
    mrf_parent character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.tree_drafts OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.tree_drafts_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.tree_drafts_num_seq OWNER TO postgres;

--
-- Name: tree_drafts_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.tree_drafts_num_seq OWNED BY tzzr_communications_ai.tree_drafts.num;


--
-- Name: tree_embeddings; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.tree_embeddings (
    num integer NOT NULL,
    mrf_parent character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.tree_embeddings OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.tree_embeddings_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.tree_embeddings_num_seq OWNER TO postgres;

--
-- Name: tree_embeddings_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.tree_embeddings_num_seq OWNED BY tzzr_communications_ai.tree_embeddings.num;


--
-- Name: tree_enrichment; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.tree_enrichment (
    num integer NOT NULL,
    mrf_parent character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.tree_enrichment OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.tree_enrichment_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.tree_enrichment_num_seq OWNER TO postgres;

--
-- Name: tree_enrichment_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.tree_enrichment_num_seq OWNED BY tzzr_communications_ai.tree_enrichment.num;


--
-- Name: tree_extracted; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.tree_extracted (
    num integer NOT NULL,
    mrf_parent character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.tree_extracted OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.tree_extracted_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.tree_extracted_num_seq OWNER TO postgres;

--
-- Name: tree_extracted_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.tree_extracted_num_seq OWNED BY tzzr_communications_ai.tree_extracted.num;


--
-- Name: tree_source; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.tree_source (
    num integer NOT NULL,
    mrf_parent character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.tree_source OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.tree_source_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.tree_source_num_seq OWNER TO postgres;

--
-- Name: tree_source_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.tree_source_num_seq OWNED BY tzzr_communications_ai.tree_source.num;


--
-- Name: tree_workspace; Type: TABLE; Schema: tzzr_communications_ai; Owner: postgres
--

CREATE TABLE tzzr_communications_ai.tree_workspace (
    num integer NOT NULL,
    mrf_parent character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_ai.tree_workspace OWNER TO postgres;

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

CREATE SEQUENCE tzzr_communications_ai.tree_workspace_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_ai.tree_workspace_num_seq OWNER TO postgres;

--
-- Name: tree_workspace_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER SEQUENCE tzzr_communications_ai.tree_workspace_num_seq OWNED BY tzzr_communications_ai.tree_workspace.num;


--
-- Name: collection; Type: TABLE; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE TABLE tzzr_communications_str.collection (
    num integer NOT NULL,
    mrf character varying(64) NOT NULL,
    type character varying(16) NOT NULL,
    domain character varying(8) NOT NULL,
    name text,
    status character varying(16),
    set_hst character varying(64),
    etiquetas jsonb,
    created_at timestamp with time zone DEFAULT now(),
    updated_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_str.collection OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_communications_str.collection_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_str.collection_num_seq OWNER TO tzzr;

--
-- Name: collection_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER SEQUENCE tzzr_communications_str.collection_num_seq OWNED BY tzzr_communications_str.collection.num;


--
-- Name: domains; Type: TABLE; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE TABLE tzzr_communications_str.domains (
    id bigint NOT NULL,
    authority character varying(255) NOT NULL,
    base_url_redirect text
);


ALTER TABLE tzzr_communications_str.domains OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_communications_str.domains_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_str.domains_id_seq OWNER TO tzzr;

--
-- Name: domains_id_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER SEQUENCE tzzr_communications_str.domains_id_seq OWNED BY tzzr_communications_str.domains.id;


--
-- Name: folders; Type: TABLE; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE TABLE tzzr_communications_str.folders (
    id integer NOT NULL,
    account_id integer NOT NULL,
    name character varying(255) NOT NULL,
    maildir_path character varying(500),
    parent_id integer,
    is_system boolean DEFAULT false,
    imap_flags text[],
    created_by character varying(64) DEFAULT 'user'::character varying,
    hst_tags jsonb DEFAULT '[]'::jsonb,
    ord integer DEFAULT 0,
    created_at timestamp with time zone DEFAULT now(),
    updated_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_str.folders OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_communications_str.folders_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_str.folders_id_seq OWNER TO tzzr;

--
-- Name: folders_id_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER SEQUENCE tzzr_communications_str.folders_id_seq OWNED BY tzzr_communications_str.folders.id;


--
-- Name: graph_chat; Type: TABLE; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE TABLE tzzr_communications_str.graph_chat (
    num integer NOT NULL,
    mrf_a character varying(64) NOT NULL,
    mrf_b character varying(64) NOT NULL,
    weight double precision,
    edge_type character varying(32),
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_str.graph_chat OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_communications_str.graph_chat_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_str.graph_chat_num_seq OWNER TO tzzr;

--
-- Name: graph_chat_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER SEQUENCE tzzr_communications_str.graph_chat_num_seq OWNED BY tzzr_communications_str.graph_chat.num;


--
-- Name: graph_mail; Type: TABLE; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE TABLE tzzr_communications_str.graph_mail (
    num integer NOT NULL,
    mrf_a character varying(64) NOT NULL,
    mrf_b character varying(64) NOT NULL,
    weight double precision,
    edge_type character varying(32),
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_str.graph_mail OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_communications_str.graph_mail_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_str.graph_mail_num_seq OWNER TO tzzr;

--
-- Name: graph_mail_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER SEQUENCE tzzr_communications_str.graph_mail_num_seq OWNED BY tzzr_communications_str.graph_mail.num;


--
-- Name: inbox; Type: TABLE; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE TABLE tzzr_communications_str.inbox (
    id integer NOT NULL,
    email character varying(255) NOT NULL,
    secret character varying(255),
    descripcion text,
    quota integer,
    activo boolean DEFAULT true,
    imap_host character varying(255),
    imap_port integer DEFAULT 993,
    imap_ssl boolean DEFAULT true,
    smtp_host character varying(255),
    smtp_port integer DEFAULT 587,
    sync_enabled boolean DEFAULT false,
    last_sync_at timestamp with time zone,
    created_at timestamp with time zone DEFAULT now(),
    updated_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_str.inbox OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_communications_str.inbox_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_str.inbox_id_seq OWNER TO tzzr;

--
-- Name: inbox_id_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER SEQUENCE tzzr_communications_str.inbox_id_seq OWNED BY tzzr_communications_str.inbox.id;


--
-- Name: library_chat; Type: TABLE; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE TABLE tzzr_communications_str.library_chat (
    num integer NOT NULL,
    mrf_library character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_str.library_chat OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_communications_str.library_chat_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_str.library_chat_num_seq OWNER TO tzzr;

--
-- Name: library_chat_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER SEQUENCE tzzr_communications_str.library_chat_num_seq OWNED BY tzzr_communications_str.library_chat.num;


--
-- Name: library_mail; Type: TABLE; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE TABLE tzzr_communications_str.library_mail (
    num integer NOT NULL,
    mrf_library character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_str.library_mail OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_communications_str.library_mail_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_str.library_mail_num_seq OWNER TO tzzr;

--
-- Name: library_mail_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER SEQUENCE tzzr_communications_str.library_mail_num_seq OWNED BY tzzr_communications_str.library_mail.num;


--
-- Name: mail_accounts; Type: TABLE; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE TABLE tzzr_communications_str.mail_accounts (
    id integer NOT NULL,
    email character varying(255) NOT NULL,
    secret character varying(255),
    descripcion text,
    quota integer,
    activo boolean DEFAULT true,
    imap_host character varying(255),
    imap_port integer DEFAULT 993,
    imap_ssl boolean DEFAULT true,
    smtp_host character varying(255),
    smtp_port integer DEFAULT 587,
    sync_enabled boolean DEFAULT false,
    last_sync_at timestamp with time zone,
    created_at timestamp with time zone DEFAULT now(),
    updated_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_str.mail_accounts OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_communications_str.mail_accounts_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_str.mail_accounts_id_seq OWNER TO tzzr;

--
-- Name: mail_accounts_id_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER SEQUENCE tzzr_communications_str.mail_accounts_id_seq OWNED BY tzzr_communications_str.mail_accounts.id;


--
-- Name: mail_aliases; Type: TABLE; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE TABLE tzzr_communications_str.mail_aliases (
    id integer NOT NULL,
    alias character varying(255) NOT NULL,
    destino character varying(255),
    descripcion text,
    activo boolean DEFAULT true,
    contador_uso integer DEFAULT 0,
    ultimo_uso timestamp with time zone,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_str.mail_aliases OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_communications_str.mail_aliases_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_str.mail_aliases_id_seq OWNER TO tzzr;

--
-- Name: mail_aliases_id_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER SEQUENCE tzzr_communications_str.mail_aliases_id_seq OWNED BY tzzr_communications_str.mail_aliases.id;


--
-- Name: mail_folder_assignment; Type: TABLE; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE TABLE tzzr_communications_str.mail_folder_assignment (
    mail_mrf text NOT NULL,
    folder_id integer NOT NULL,
    uid integer,
    flags text[],
    moved_at timestamp with time zone DEFAULT now(),
    moved_by character varying(64) DEFAULT 'user'::character varying
);


ALTER TABLE tzzr_communications_str.mail_folder_assignment OWNER TO tzzr;

--
-- Name: mail_group_members; Type: TABLE; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE TABLE tzzr_communications_str.mail_group_members (
    id integer NOT NULL,
    grupo_email character varying(255),
    miembro_email character varying(255),
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_str.mail_group_members OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_communications_str.mail_group_members_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_str.mail_group_members_id_seq OWNER TO tzzr;

--
-- Name: mail_group_members_id_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER SEQUENCE tzzr_communications_str.mail_group_members_id_seq OWNED BY tzzr_communications_str.mail_group_members.id;


--
-- Name: mail_groups; Type: TABLE; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE TABLE tzzr_communications_str.mail_groups (
    id integer NOT NULL,
    email character varying(255) NOT NULL,
    descripcion text,
    activo boolean DEFAULT true,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_str.mail_groups OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_communications_str.mail_groups_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_str.mail_groups_id_seq OWNER TO tzzr;

--
-- Name: mail_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER SEQUENCE tzzr_communications_str.mail_groups_id_seq OWNED BY tzzr_communications_str.mail_groups.id;


--
-- Name: mail_identity; Type: TABLE; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE TABLE tzzr_communications_str.mail_identity (
    id integer NOT NULL,
    identity_name text,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_str.mail_identity OWNER TO tzzr;

--
-- Name: mail_identity_account; Type: TABLE; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE TABLE tzzr_communications_str.mail_identity_account (
    identity_id integer,
    account text
);


ALTER TABLE tzzr_communications_str.mail_identity_account OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_communications_str.mail_identity_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_str.mail_identity_id_seq OWNER TO tzzr;

--
-- Name: mail_identity_id_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER SEQUENCE tzzr_communications_str.mail_identity_id_seq OWNED BY tzzr_communications_str.mail_identity.id;


--
-- Name: mail_permissions; Type: TABLE; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE TABLE tzzr_communications_str.mail_permissions (
    id integer NOT NULL,
    account_email character varying(255) NOT NULL,
    can_read boolean DEFAULT false,
    can_send boolean DEFAULT false,
    can_manage_aliases boolean DEFAULT false,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_str.mail_permissions OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_communications_str.mail_permissions_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_str.mail_permissions_id_seq OWNER TO tzzr;

--
-- Name: mail_permissions_id_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER SEQUENCE tzzr_communications_str.mail_permissions_id_seq OWNED BY tzzr_communications_str.mail_permissions.id;


--
-- Name: mail_state; Type: TABLE; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE TABLE tzzr_communications_str.mail_state (
    mail_mrf character varying(64) NOT NULL,
    account character varying(255) NOT NULL,
    read boolean,
    starred boolean,
    status character varying(20),
    updated_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_str.mail_state OWNER TO tzzr;

--
-- Name: short_urls; Type: TABLE; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE TABLE tzzr_communications_str.short_urls (
    id bigint NOT NULL,
    original_url text,
    short_code character varying(255) NOT NULL,
    date_created timestamp with time zone DEFAULT now(),
    title character varying(512),
    domain_id bigint
);


ALTER TABLE tzzr_communications_str.short_urls OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_communications_str.short_urls_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_str.short_urls_id_seq OWNER TO tzzr;

--
-- Name: short_urls_id_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER SEQUENCE tzzr_communications_str.short_urls_id_seq OWNED BY tzzr_communications_str.short_urls.id;


--
-- Name: tree_chat; Type: TABLE; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE TABLE tzzr_communications_str.tree_chat (
    num integer NOT NULL,
    mrf_parent character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_str.tree_chat OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_communications_str.tree_chat_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_str.tree_chat_num_seq OWNER TO tzzr;

--
-- Name: tree_chat_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER SEQUENCE tzzr_communications_str.tree_chat_num_seq OWNED BY tzzr_communications_str.tree_chat.num;


--
-- Name: tree_mail; Type: TABLE; Schema: tzzr_communications_str; Owner: tzzr
--

CREATE TABLE tzzr_communications_str.tree_mail (
    num integer NOT NULL,
    mrf_parent character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_communications_str.tree_mail OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_communications_str.tree_mail_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_communications_str.tree_mail_num_seq OWNER TO tzzr;

--
-- Name: tree_mail_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER SEQUENCE tzzr_communications_str.tree_mail_num_seq OWNED BY tzzr_communications_str.tree_mail.num;


--
-- Name: v_mail_thread; Type: VIEW; Schema: tzzr_communications_str; Owner: postgres
--

CREATE VIEW tzzr_communications_str.v_mail_thread AS
 SELECT c.mrf,
    c.name AS title,
    NULL::text AS summary,
    c.status,
    (count(lm.mrf_child))::integer AS email_count,
    min(m.date) AS first_email_at,
    max(m.date) AS last_email_at,
    array_agg(DISTINCT m.from_address) FILTER (WHERE (m.from_address IS NOT NULL)) AS participants
   FROM ((tzzr_communications_str.collection c
     LEFT JOIN tzzr_communications_str.library_mail lm ON (((lm.mrf_library)::text = (c.mrf)::text)))
     LEFT JOIN tzzr_communications.mail m ON (((m.mrf)::text = (lm.mrf_child)::text)))
  WHERE (((c.type)::text = 'thread'::text) AND ((c.domain)::text = 'mail'::text))
  GROUP BY c.mrf, c.name, c.status;


ALTER TABLE tzzr_communications_str.v_mail_thread OWNER TO postgres;

--
-- Name: v_mail_thread_member; Type: VIEW; Schema: tzzr_communications_str; Owner: postgres
--

CREATE VIEW tzzr_communications_str.v_mail_thread_member AS
 SELECT lm.mrf_library AS thread_mrf,
    lm.mrf_child AS mail_mrf,
    row_number() OVER (PARTITION BY lm.mrf_library ORDER BY m.date) AS "position",
    NULL::text AS role
   FROM ((tzzr_communications_str.library_mail lm
     JOIN tzzr_communications_str.collection c ON ((((c.mrf)::text = (lm.mrf_library)::text) AND ((c.type)::text = 'thread'::text) AND ((c.domain)::text = 'mail'::text))))
     LEFT JOIN tzzr_communications.mail m ON (((m.mrf)::text = (lm.mrf_child)::text)));


ALTER TABLE tzzr_communications_str.v_mail_thread_member OWNER TO postgres;

--
-- Name: ai_services; Type: TABLE; Schema: tzzr_connection; Owner: postgres
--

CREATE TABLE tzzr_connection.ai_services (
    id integer NOT NULL,
    nombre character varying(100) NOT NULL,
    slug character varying(50) NOT NULL,
    endpoint character varying(255),
    api_key character varying(255),
    tipo character varying(50),
    familia character varying(50),
    descripcion text,
    activo boolean DEFAULT true,
    config jsonb DEFAULT '{}'::jsonb,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_connection.ai_services OWNER TO postgres;

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

CREATE SEQUENCE tzzr_connection.ai_services_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_connection.ai_services_id_seq OWNER TO postgres;

--
-- Name: ai_services_id_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_connection; Owner: postgres
--

ALTER SEQUENCE tzzr_connection.ai_services_id_seq OWNED BY tzzr_connection.ai_services.id;


--
-- Name: bck; Type: TABLE; Schema: tzzr_core_administracion; Owner: tzzr
--

CREATE TABLE tzzr_core_administracion.bck (
    num integer NOT NULL,
    alias character varying(256),
    ref character varying(8),
    mrf character varying(64) NOT NULL,
    private_mrf character varying(64),
    name_es character varying(128),
    name_en character varying(128),
    name_ch character varying(128),
    set_hst character varying(64),
    link_mst jsonb,
    link_bck jsonb,
    link_itm jsonb,
    link_loc jsonb,
    link_ply jsonb,
    mth_mrf character varying(64),
    txt text,
    hashtags jsonb,
    standard_data text,
    jsonb_data jsonb,
    version_hst_data character varying(8),
    rootref character varying(64),
    roothash jsonb,
    img_url character varying(128),
    img_thumb_url character varying(128),
    owner jsonb,
    set_flg jsonb,
    url_atc jsonb,
    url_json jsonb,
    date date,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    previous_version character varying(64)
);


ALTER TABLE tzzr_core_administracion.bck OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_core_administracion.bck_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_administracion.bck_num_seq OWNER TO tzzr;

--
-- Name: bck_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_administracion; Owner: tzzr
--

ALTER SEQUENCE tzzr_core_administracion.bck_num_seq OWNED BY tzzr_core_administracion.bck.num;


--
-- Name: graph_bck; Type: TABLE; Schema: tzzr_core_administracion; Owner: postgres
--

CREATE TABLE tzzr_core_administracion.graph_bck (
    num integer NOT NULL,
    mrf_a character varying NOT NULL,
    mrf_b character varying NOT NULL,
    weight double precision DEFAULT 0.5,
    edge_type character varying,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_administracion.graph_bck OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_administracion.graph_bck_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_administracion.graph_bck_num_seq OWNER TO postgres;

--
-- Name: graph_bck_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER SEQUENCE tzzr_core_administracion.graph_bck_num_seq OWNED BY tzzr_core_administracion.graph_bck.num;


--
-- Name: graph_mst; Type: TABLE; Schema: tzzr_core_administracion; Owner: postgres
--

CREATE TABLE tzzr_core_administracion.graph_mst (
    num integer NOT NULL,
    mrf_a character varying NOT NULL,
    mrf_b character varying NOT NULL,
    weight double precision DEFAULT 0.5,
    edge_type character varying,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_administracion.graph_mst OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_administracion.graph_mst_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_administracion.graph_mst_num_seq OWNER TO postgres;

--
-- Name: graph_mst_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER SEQUENCE tzzr_core_administracion.graph_mst_num_seq OWNED BY tzzr_core_administracion.graph_mst.num;


--
-- Name: library_bck; Type: TABLE; Schema: tzzr_core_administracion; Owner: postgres
--

CREATE TABLE tzzr_core_administracion.library_bck (
    num integer NOT NULL,
    mrf_library character varying NOT NULL,
    mrf_child character varying NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_administracion.library_bck OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_administracion.library_bck_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_administracion.library_bck_num_seq OWNER TO postgres;

--
-- Name: library_bck_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER SEQUENCE tzzr_core_administracion.library_bck_num_seq OWNED BY tzzr_core_administracion.library_bck.num;


--
-- Name: library_mst; Type: TABLE; Schema: tzzr_core_administracion; Owner: postgres
--

CREATE TABLE tzzr_core_administracion.library_mst (
    num integer NOT NULL,
    mrf_library character varying NOT NULL,
    mrf_child character varying NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_administracion.library_mst OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_administracion.library_mst_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_administracion.library_mst_num_seq OWNER TO postgres;

--
-- Name: library_mst_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER SEQUENCE tzzr_core_administracion.library_mst_num_seq OWNED BY tzzr_core_administracion.library_mst.num;


--
-- Name: mst; Type: TABLE; Schema: tzzr_core_administracion; Owner: postgres
--

CREATE TABLE tzzr_core_administracion.mst (
    num integer NOT NULL,
    alias character varying(256),
    ref character varying(8),
    mrf character varying(64) NOT NULL,
    private_mrf character varying(64),
    name_es character varying(128),
    name_en character varying(128),
    name_ch character varying(128),
    set_hst character varying(64),
    link_mst jsonb,
    link_bck jsonb,
    link_itm jsonb,
    link_loc jsonb,
    link_ply jsonb,
    mth_mrf character varying(64),
    txt text,
    hashtags jsonb,
    standard_data text,
    jsonb_data jsonb,
    version_hst_data character varying(8),
    rootref character varying(64),
    roothash jsonb,
    img_url character varying(128),
    img_thumb_url character varying(128),
    owner jsonb,
    set_flg jsonb,
    url_atc jsonb,
    url_json jsonb,
    date date,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    previous_version character varying(64)
);


ALTER TABLE tzzr_core_administracion.mst OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_administracion.mst_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_administracion.mst_num_seq OWNER TO postgres;

--
-- Name: mst_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER SEQUENCE tzzr_core_administracion.mst_num_seq OWNED BY tzzr_core_administracion.mst.num;


--
-- Name: tree_bck; Type: TABLE; Schema: tzzr_core_administracion; Owner: postgres
--

CREATE TABLE tzzr_core_administracion.tree_bck (
    num integer NOT NULL,
    mrf_parent character varying NOT NULL,
    mrf_child character varying NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_administracion.tree_bck OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_administracion.tree_bck_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_administracion.tree_bck_num_seq OWNER TO postgres;

--
-- Name: tree_bck_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER SEQUENCE tzzr_core_administracion.tree_bck_num_seq OWNED BY tzzr_core_administracion.tree_bck.num;


--
-- Name: tree_mst; Type: TABLE; Schema: tzzr_core_administracion; Owner: postgres
--

CREATE TABLE tzzr_core_administracion.tree_mst (
    num integer NOT NULL,
    mrf_parent character varying NOT NULL,
    mrf_child character varying NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_administracion.tree_mst OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_administracion.tree_mst_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_administracion.tree_mst_num_seq OWNER TO postgres;

--
-- Name: tree_mst_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER SEQUENCE tzzr_core_administracion.tree_mst_num_seq OWNED BY tzzr_core_administracion.tree_mst.num;


--
-- Name: bck; Type: TABLE; Schema: tzzr_core_contabilidad; Owner: tzzr
--

CREATE TABLE tzzr_core_contabilidad.bck (
    num integer NOT NULL,
    alias character varying(256),
    ref character varying(8),
    mrf character varying(64) NOT NULL,
    private_mrf character varying(64),
    name_es character varying(128),
    name_en character varying(128),
    name_ch character varying(128),
    set_hst character varying(64),
    link_mst jsonb,
    link_bck jsonb,
    link_itm jsonb,
    link_loc jsonb,
    link_ply jsonb,
    mth_mrf character varying(64),
    txt text,
    hashtags jsonb,
    standard_data text,
    jsonb_data jsonb,
    version_hst_data character varying(8),
    rootref character varying(64),
    roothash jsonb,
    img_url character varying(128),
    img_thumb_url character varying(128),
    owner jsonb,
    set_flg jsonb,
    url_atc jsonb,
    url_json jsonb,
    date date,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    previous_version character varying(64)
);


ALTER TABLE tzzr_core_contabilidad.bck OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_core_contabilidad.bck_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_contabilidad.bck_num_seq OWNER TO tzzr;

--
-- Name: bck_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_contabilidad; Owner: tzzr
--

ALTER SEQUENCE tzzr_core_contabilidad.bck_num_seq OWNED BY tzzr_core_contabilidad.bck.num;


--
-- Name: graph_bck; Type: TABLE; Schema: tzzr_core_contabilidad; Owner: postgres
--

CREATE TABLE tzzr_core_contabilidad.graph_bck (
    num integer NOT NULL,
    mrf_a character varying NOT NULL,
    mrf_b character varying NOT NULL,
    weight double precision DEFAULT 0.5,
    edge_type character varying,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_contabilidad.graph_bck OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_contabilidad.graph_bck_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_contabilidad.graph_bck_num_seq OWNER TO postgres;

--
-- Name: graph_bck_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER SEQUENCE tzzr_core_contabilidad.graph_bck_num_seq OWNED BY tzzr_core_contabilidad.graph_bck.num;


--
-- Name: graph_mst; Type: TABLE; Schema: tzzr_core_contabilidad; Owner: postgres
--

CREATE TABLE tzzr_core_contabilidad.graph_mst (
    num integer NOT NULL,
    mrf_a character varying NOT NULL,
    mrf_b character varying NOT NULL,
    weight double precision DEFAULT 0.5,
    edge_type character varying,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_contabilidad.graph_mst OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_contabilidad.graph_mst_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_contabilidad.graph_mst_num_seq OWNER TO postgres;

--
-- Name: graph_mst_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER SEQUENCE tzzr_core_contabilidad.graph_mst_num_seq OWNED BY tzzr_core_contabilidad.graph_mst.num;


--
-- Name: library_bck; Type: TABLE; Schema: tzzr_core_contabilidad; Owner: postgres
--

CREATE TABLE tzzr_core_contabilidad.library_bck (
    num integer NOT NULL,
    mrf_library character varying NOT NULL,
    mrf_child character varying NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_contabilidad.library_bck OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_contabilidad.library_bck_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_contabilidad.library_bck_num_seq OWNER TO postgres;

--
-- Name: library_bck_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER SEQUENCE tzzr_core_contabilidad.library_bck_num_seq OWNED BY tzzr_core_contabilidad.library_bck.num;


--
-- Name: library_mst; Type: TABLE; Schema: tzzr_core_contabilidad; Owner: postgres
--

CREATE TABLE tzzr_core_contabilidad.library_mst (
    num integer NOT NULL,
    mrf_library character varying NOT NULL,
    mrf_child character varying NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_contabilidad.library_mst OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_contabilidad.library_mst_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_contabilidad.library_mst_num_seq OWNER TO postgres;

--
-- Name: library_mst_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER SEQUENCE tzzr_core_contabilidad.library_mst_num_seq OWNED BY tzzr_core_contabilidad.library_mst.num;


--
-- Name: mst; Type: TABLE; Schema: tzzr_core_contabilidad; Owner: postgres
--

CREATE TABLE tzzr_core_contabilidad.mst (
    num integer NOT NULL,
    alias character varying(256),
    ref character varying(8),
    mrf character varying(64) NOT NULL,
    private_mrf character varying(64),
    name_es character varying(128),
    name_en character varying(128),
    name_ch character varying(128),
    set_hst character varying(64),
    link_mst jsonb,
    link_bck jsonb,
    link_itm jsonb,
    link_loc jsonb,
    link_ply jsonb,
    mth_mrf character varying(64),
    txt text,
    hashtags jsonb,
    standard_data text,
    jsonb_data jsonb,
    version_hst_data character varying(8),
    rootref character varying(64),
    roothash jsonb,
    img_url character varying(128),
    img_thumb_url character varying(128),
    owner jsonb,
    set_flg jsonb,
    url_atc jsonb,
    url_json jsonb,
    date date,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    previous_version character varying(64)
);


ALTER TABLE tzzr_core_contabilidad.mst OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_contabilidad.mst_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_contabilidad.mst_num_seq OWNER TO postgres;

--
-- Name: mst_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER SEQUENCE tzzr_core_contabilidad.mst_num_seq OWNED BY tzzr_core_contabilidad.mst.num;


--
-- Name: tree_bck; Type: TABLE; Schema: tzzr_core_contabilidad; Owner: postgres
--

CREATE TABLE tzzr_core_contabilidad.tree_bck (
    num integer NOT NULL,
    mrf_parent character varying NOT NULL,
    mrf_child character varying NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_contabilidad.tree_bck OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_contabilidad.tree_bck_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_contabilidad.tree_bck_num_seq OWNER TO postgres;

--
-- Name: tree_bck_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER SEQUENCE tzzr_core_contabilidad.tree_bck_num_seq OWNED BY tzzr_core_contabilidad.tree_bck.num;


--
-- Name: tree_mst; Type: TABLE; Schema: tzzr_core_contabilidad; Owner: postgres
--

CREATE TABLE tzzr_core_contabilidad.tree_mst (
    num integer NOT NULL,
    mrf_parent character varying NOT NULL,
    mrf_child character varying NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_contabilidad.tree_mst OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_contabilidad.tree_mst_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_contabilidad.tree_mst_num_seq OWNER TO postgres;

--
-- Name: tree_mst_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER SEQUENCE tzzr_core_contabilidad.tree_mst_num_seq OWNED BY tzzr_core_contabilidad.tree_mst.num;


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

CREATE SEQUENCE tzzr_core_hst.group_hst_num_seq
    START WITH 1076
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_hst.group_hst_num_seq OWNER TO postgres;

--
-- Name: group_hst; Type: TABLE; Schema: tzzr_core_hst; Owner: postgres
--

CREATE TABLE tzzr_core_hst.group_hst (
    num integer DEFAULT nextval('tzzr_core_hst.group_hst_num_seq'::regclass) NOT NULL,
    mrf_group character varying,
    mrf_member character varying,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_hst.group_hst OWNER TO postgres;

--
-- Name: hst; Type: TABLE; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE TABLE tzzr_core_hst.hst (
    num integer NOT NULL,
    alias character varying(256),
    ref character varying(8) NOT NULL,
    rootref character varying(64),
    img_url character varying(128),
    txt text,
    standard_md text,
    jsonb_standard jsonb,
    version_hst_data character varying(128),
    mrf character varying(64) NOT NULL,
    owner jsonb,
    created_at timestamp with time zone DEFAULT now(),
    roothash jsonb,
    private_mrf character varying(64),
    url character varying(128),
    url_json jsonb,
    date date,
    name_es character varying(128),
    name_en character varying(128),
    name_ch character varying(128),
    img_thumb_url character varying(128),
    set_hst character varying(64),
    url_atc jsonb,
    previous_version character varying(64)
);


ALTER TABLE tzzr_core_hst.hst OWNER TO tzzr;

--
-- Name: api_groups; Type: VIEW; Schema: tzzr_core_hst; Owner: postgres
--

CREATE VIEW tzzr_core_hst.api_groups AS
 SELECT h.mrf,
    h.name_es,
    h.name_en,
    count(g.mrf_member) AS count
   FROM (tzzr_core_hst.group_hst g
     JOIN tzzr_core_hst.hst h ON (((g.mrf_group)::text = (h.mrf)::text)))
  GROUP BY h.mrf, h.name_es, h.name_en
  ORDER BY (count(g.mrf_member)) DESC;


ALTER TABLE tzzr_core_hst.api_groups OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_hst.group_flg_num_seq
    START WITH 145
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_hst.group_flg_num_seq OWNER TO postgres;

--
-- Name: group_flg; Type: TABLE; Schema: tzzr_core_hst; Owner: postgres
--

CREATE TABLE tzzr_core_hst.group_flg (
    num integer DEFAULT nextval('tzzr_core_hst.group_flg_num_seq'::regclass) NOT NULL,
    mrf_group character varying,
    mrf_member character varying,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_hst.group_flg OWNER TO postgres;

--
-- Name: api_groups_flg; Type: VIEW; Schema: tzzr_core_hst; Owner: postgres
--

CREATE VIEW tzzr_core_hst.api_groups_flg AS
 SELECT h.mrf,
    h.name_es,
    h.name_en,
    count(g.mrf_member) AS count
   FROM (tzzr_core_hst.group_flg g
     JOIN tzzr_core_hst.hst h ON (((g.mrf_group)::text = (h.mrf)::text)))
  GROUP BY h.mrf, h.name_es, h.name_en
  ORDER BY (count(g.mrf_member)) DESC;


ALTER TABLE tzzr_core_hst.api_groups_flg OWNER TO postgres;

--
-- Name: flg; Type: TABLE; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE TABLE tzzr_core_hst.flg (
    num integer NOT NULL,
    alias character varying(256),
    ref character varying(8) NOT NULL,
    rootref character varying(256),
    img_url character varying(128),
    txt text,
    version_hst_data character varying(128),
    mrf character varying(64) NOT NULL,
    owner jsonb,
    created_at timestamp with time zone DEFAULT now(),
    private_mrf character varying(64),
    url character varying(128),
    url_json jsonb,
    date date,
    roothash jsonb,
    name_es character varying(128),
    name_en character varying(128),
    name_ch character varying(128),
    img_thumb_url character varying(256),
    set_hst character varying(64),
    hashtags jsonb,
    standard_data text,
    jsonb_data jsonb,
    url_atc jsonb,
    previous_version character varying(64),
    set_flg character varying
);


ALTER TABLE tzzr_core_hst.flg OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_core_hst.flg_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_hst.flg_num_seq OWNER TO tzzr;

--
-- Name: flg_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER SEQUENCE tzzr_core_hst.flg_num_seq OWNED BY tzzr_core_hst.flg.num;


--
-- Name: graph_flg; Type: TABLE; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE TABLE tzzr_core_hst.graph_flg (
    num integer NOT NULL,
    mrf_a character varying(64) NOT NULL,
    mrf_b character varying(64) NOT NULL,
    weight double precision DEFAULT 0.5,
    created_at timestamp with time zone DEFAULT now(),
    edge_type character varying(32)
);


ALTER TABLE tzzr_core_hst.graph_flg OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_core_hst.graph_flg_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_hst.graph_flg_id_seq OWNER TO tzzr;

--
-- Name: graph_flg_id_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER SEQUENCE tzzr_core_hst.graph_flg_id_seq OWNED BY tzzr_core_hst.graph_flg.num;


--
-- Name: graph_hst; Type: TABLE; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE TABLE tzzr_core_hst.graph_hst (
    num integer NOT NULL,
    mrf_a character varying(64) NOT NULL,
    mrf_b character varying(64) NOT NULL,
    weight double precision DEFAULT 0.5,
    created_at timestamp with time zone DEFAULT now(),
    edge_type character varying(32)
);


ALTER TABLE tzzr_core_hst.graph_hst OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_core_hst.graph_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_hst.graph_id_seq OWNER TO tzzr;

--
-- Name: graph_id_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER SEQUENCE tzzr_core_hst.graph_id_seq OWNED BY tzzr_core_hst.graph_hst.num;


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

CREATE SEQUENCE tzzr_core_hst.hst_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_hst.hst_num_seq OWNER TO tzzr;

--
-- Name: hst_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER SEQUENCE tzzr_core_hst.hst_num_seq OWNED BY tzzr_core_hst.hst.num;


--
-- Name: hst_rules; Type: TABLE; Schema: tzzr_core_hst; Owner: postgres
--

CREATE TABLE tzzr_core_hst.hst_rules (
    tabla character varying NOT NULL,
    hst_permitidos character varying[] DEFAULT '{}'::character varying[],
    created_at timestamp with time zone DEFAULT now(),
    hst_usados character varying[] DEFAULT '{}'::character varying[]
);


ALTER TABLE tzzr_core_hst.hst_rules OWNER TO postgres;

--
-- Name: TABLE hst_rules; Type: COMMENT; Schema: tzzr_core_hst; Owner: postgres
--

COMMENT ON TABLE tzzr_core_hst.hst_rules IS 'Reglas de hst permitidos por tabla. Array vacío = abierto, con valores = cerrado';


--
-- Name: COLUMN hst_rules.hst_permitidos; Type: COMMENT; Schema: tzzr_core_hst; Owner: postgres
--

COMMENT ON COLUMN tzzr_core_hst.hst_rules.hst_permitidos IS 'MRFs de hashtags permitidos. Vacío permite cualquiera.';


--
-- Name: library_flg; Type: TABLE; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE TABLE tzzr_core_hst.library_flg (
    num integer NOT NULL,
    mrf_library character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_hst.library_flg OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_core_hst.library_flg_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_hst.library_flg_id_seq OWNER TO tzzr;

--
-- Name: library_flg_id_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER SEQUENCE tzzr_core_hst.library_flg_id_seq OWNED BY tzzr_core_hst.library_flg.num;


--
-- Name: library_hst; Type: TABLE; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE TABLE tzzr_core_hst.library_hst (
    num integer NOT NULL,
    mrf_library character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_hst.library_hst OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_core_hst.library_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_hst.library_id_seq OWNER TO tzzr;

--
-- Name: library_id_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER SEQUENCE tzzr_core_hst.library_id_seq OWNED BY tzzr_core_hst.library_hst.num;


--
-- Name: tree_flg; Type: TABLE; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE TABLE tzzr_core_hst.tree_flg (
    num integer NOT NULL,
    mrf_parent character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_hst.tree_flg OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_core_hst.tree_flg_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_hst.tree_flg_id_seq OWNER TO tzzr;

--
-- Name: tree_flg_id_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER SEQUENCE tzzr_core_hst.tree_flg_id_seq OWNED BY tzzr_core_hst.tree_flg.num;


--
-- Name: tree_hst; Type: TABLE; Schema: tzzr_core_hst; Owner: tzzr
--

CREATE TABLE tzzr_core_hst.tree_hst (
    num integer NOT NULL,
    mrf_parent character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_hst.tree_hst OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_core_hst.tree_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_hst.tree_id_seq OWNER TO tzzr;

--
-- Name: tree_id_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER SEQUENCE tzzr_core_hst.tree_id_seq OWNED BY tzzr_core_hst.tree_hst.num;


--
-- Name: group_itm; Type: TABLE; Schema: tzzr_core_itm_base; Owner: postgres
--

CREATE TABLE tzzr_core_itm_base.group_itm (
    num integer NOT NULL,
    mrf_group character varying NOT NULL,
    mrf_member character varying NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_itm_base.group_itm OWNER TO postgres;

--
-- Name: api_groups_itm; Type: VIEW; Schema: tzzr_core_itm_base; Owner: postgres
--

CREATE VIEW tzzr_core_itm_base.api_groups_itm AS
 SELECT h.mrf,
    h.name_es,
    h.name_en,
    count(g.mrf_member) AS count
   FROM (tzzr_core_itm_base.group_itm g
     JOIN tzzr_core_hst.hst h ON (((g.mrf_group)::text = (h.mrf)::text)))
  GROUP BY h.mrf, h.name_es, h.name_en
  ORDER BY (count(g.mrf_member)) DESC;


ALTER TABLE tzzr_core_itm_base.api_groups_itm OWNER TO postgres;

--
-- Name: group_loc; Type: TABLE; Schema: tzzr_core_itm_base; Owner: postgres
--

CREATE TABLE tzzr_core_itm_base.group_loc (
    num integer NOT NULL,
    mrf_group character varying NOT NULL,
    mrf_member character varying NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_itm_base.group_loc OWNER TO postgres;

--
-- Name: api_groups_loc; Type: VIEW; Schema: tzzr_core_itm_base; Owner: postgres
--

CREATE VIEW tzzr_core_itm_base.api_groups_loc AS
 SELECT h.mrf,
    h.name_es,
    h.name_en,
    count(g.mrf_member) AS count
   FROM (tzzr_core_itm_base.group_loc g
     JOIN tzzr_core_hst.hst h ON (((g.mrf_group)::text = (h.mrf)::text)))
  GROUP BY h.mrf, h.name_es, h.name_en
  ORDER BY (count(g.mrf_member)) DESC;


ALTER TABLE tzzr_core_itm_base.api_groups_loc OWNER TO postgres;

--
-- Name: group_ply; Type: TABLE; Schema: tzzr_core_itm_base; Owner: postgres
--

CREATE TABLE tzzr_core_itm_base.group_ply (
    num integer NOT NULL,
    mrf_group character varying NOT NULL,
    mrf_member character varying NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_itm_base.group_ply OWNER TO postgres;

--
-- Name: api_groups_ply; Type: VIEW; Schema: tzzr_core_itm_base; Owner: postgres
--

CREATE VIEW tzzr_core_itm_base.api_groups_ply AS
 SELECT h.mrf,
    h.name_es,
    h.name_en,
    count(g.mrf_member) AS count
   FROM (tzzr_core_itm_base.group_ply g
     JOIN tzzr_core_hst.hst h ON (((g.mrf_group)::text = (h.mrf)::text)))
  GROUP BY h.mrf, h.name_es, h.name_en
  ORDER BY (count(g.mrf_member)) DESC;


ALTER TABLE tzzr_core_itm_base.api_groups_ply OWNER TO postgres;

--
-- Name: graph_itm; Type: TABLE; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE TABLE tzzr_core_itm_base.graph_itm (
    num integer NOT NULL,
    mrf_a character varying(64) NOT NULL,
    mrf_b character varying(64) NOT NULL,
    weight double precision DEFAULT 0.5,
    created_at timestamp with time zone DEFAULT now(),
    edge_type character varying(32),
    source character varying DEFAULT 'computed'::character varying,
    confidence double precision,
    metadata jsonb
);


ALTER TABLE tzzr_core_itm_base.graph_itm OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_core_itm_base.graph_itm_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_itm_base.graph_itm_num_seq OWNER TO tzzr;

--
-- Name: graph_itm_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER SEQUENCE tzzr_core_itm_base.graph_itm_num_seq OWNED BY tzzr_core_itm_base.graph_itm.num;


--
-- Name: graph_loc; Type: TABLE; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE TABLE tzzr_core_itm_base.graph_loc (
    num integer NOT NULL,
    mrf_a character varying(64) NOT NULL,
    mrf_b character varying(64) NOT NULL,
    weight double precision DEFAULT 0.5,
    created_at timestamp with time zone DEFAULT now(),
    edge_type character varying(32)
);


ALTER TABLE tzzr_core_itm_base.graph_loc OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_core_itm_base.graph_loc_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_itm_base.graph_loc_num_seq OWNER TO tzzr;

--
-- Name: graph_loc_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER SEQUENCE tzzr_core_itm_base.graph_loc_num_seq OWNED BY tzzr_core_itm_base.graph_loc.num;


--
-- Name: graph_ply; Type: TABLE; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE TABLE tzzr_core_itm_base.graph_ply (
    num integer NOT NULL,
    mrf_a character varying(64) NOT NULL,
    mrf_b character varying(64) NOT NULL,
    weight double precision DEFAULT 0.5,
    created_at timestamp with time zone DEFAULT now(),
    edge_type character varying(32)
);


ALTER TABLE tzzr_core_itm_base.graph_ply OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_core_itm_base.graph_ply_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_itm_base.graph_ply_num_seq OWNER TO tzzr;

--
-- Name: graph_ply_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER SEQUENCE tzzr_core_itm_base.graph_ply_num_seq OWNED BY tzzr_core_itm_base.graph_ply.num;


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

CREATE SEQUENCE tzzr_core_itm_base.group_itm_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_itm_base.group_itm_num_seq OWNER TO postgres;

--
-- Name: group_itm_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_itm_base; Owner: postgres
--

ALTER SEQUENCE tzzr_core_itm_base.group_itm_num_seq OWNED BY tzzr_core_itm_base.group_itm.num;


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

CREATE SEQUENCE tzzr_core_itm_base.group_loc_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_itm_base.group_loc_num_seq OWNER TO postgres;

--
-- Name: group_loc_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_itm_base; Owner: postgres
--

ALTER SEQUENCE tzzr_core_itm_base.group_loc_num_seq OWNED BY tzzr_core_itm_base.group_loc.num;


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

CREATE SEQUENCE tzzr_core_itm_base.group_ply_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_itm_base.group_ply_num_seq OWNER TO postgres;

--
-- Name: group_ply_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_itm_base; Owner: postgres
--

ALTER SEQUENCE tzzr_core_itm_base.group_ply_num_seq OWNED BY tzzr_core_itm_base.group_ply.num;


--
-- Name: itm; Type: TABLE; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE TABLE tzzr_core_itm_base.itm (
    num integer NOT NULL,
    alias character varying(512),
    ref character varying(8) NOT NULL,
    mrf character varying(64) NOT NULL,
    private_mrf character varying(64),
    name_es character varying(512),
    name_en character varying(128),
    name_ch character varying(128),
    set_hst character varying(64),
    set_flg jsonb,
    txt text,
    hashtags jsonb,
    standard_data text,
    jsonb_data jsonb,
    version_hst_data character varying(8),
    rootref character varying(64),
    roothash jsonb,
    img_url character varying(128),
    img_thumb_url character varying(128),
    owner jsonb,
    url character varying(128),
    url_json jsonb,
    url_atc jsonb,
    date date,
    created_at timestamp with time zone DEFAULT now(),
    previous_version character varying(64)
);


ALTER TABLE tzzr_core_itm_base.itm OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_core_itm_base.itm_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_itm_base.itm_num_seq OWNER TO tzzr;

--
-- Name: itm_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER SEQUENCE tzzr_core_itm_base.itm_num_seq OWNED BY tzzr_core_itm_base.itm.num;


--
-- Name: library_itm; Type: TABLE; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE TABLE tzzr_core_itm_base.library_itm (
    num integer NOT NULL,
    mrf_library character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now(),
    sort_order integer,
    role character varying DEFAULT 'member'::character varying
);


ALTER TABLE tzzr_core_itm_base.library_itm OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_core_itm_base.library_itm_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_itm_base.library_itm_num_seq OWNER TO tzzr;

--
-- Name: library_itm_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER SEQUENCE tzzr_core_itm_base.library_itm_num_seq OWNED BY tzzr_core_itm_base.library_itm.num;


--
-- Name: library_loc; Type: TABLE; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE TABLE tzzr_core_itm_base.library_loc (
    num integer NOT NULL,
    mrf_library character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_itm_base.library_loc OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_core_itm_base.library_loc_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_itm_base.library_loc_num_seq OWNER TO tzzr;

--
-- Name: library_loc_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER SEQUENCE tzzr_core_itm_base.library_loc_num_seq OWNED BY tzzr_core_itm_base.library_loc.num;


--
-- Name: library_ply; Type: TABLE; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE TABLE tzzr_core_itm_base.library_ply (
    num integer NOT NULL,
    mrf_library character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_itm_base.library_ply OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_core_itm_base.library_ply_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_itm_base.library_ply_num_seq OWNER TO tzzr;

--
-- Name: library_ply_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER SEQUENCE tzzr_core_itm_base.library_ply_num_seq OWNED BY tzzr_core_itm_base.library_ply.num;


--
-- Name: loc; Type: TABLE; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE TABLE tzzr_core_itm_base.loc (
    num integer NOT NULL,
    alias character varying(256),
    ref character varying(8) NOT NULL,
    mrf character varying(64) NOT NULL,
    private_mrf character varying(64),
    name_es character varying(128),
    name_en character varying(128),
    name_ch character varying(128),
    set_hst character varying(64),
    set_flg jsonb,
    txt text,
    hashtags jsonb,
    standard_data text,
    jsonb_data jsonb,
    version_hst_data character varying(8),
    rootref character varying(64),
    roothash jsonb,
    img_url character varying(128),
    img_thumb_url character varying(128),
    owner jsonb,
    url character varying(128),
    url_json jsonb,
    url_atc jsonb,
    date date,
    created_at timestamp with time zone DEFAULT now(),
    previous_version character varying(64)
);


ALTER TABLE tzzr_core_itm_base.loc OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_core_itm_base.loc_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_itm_base.loc_num_seq OWNER TO tzzr;

--
-- Name: loc_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER SEQUENCE tzzr_core_itm_base.loc_num_seq OWNED BY tzzr_core_itm_base.loc.num;


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

CREATE SEQUENCE tzzr_core_itm_base.ply_agent_llm_map_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_itm_base.ply_agent_llm_map_num_seq OWNER TO postgres;

--
-- Name: ply_agent_llm_map_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_itm_base; Owner: postgres
--

ALTER SEQUENCE tzzr_core_itm_base.ply_agent_llm_map_num_seq OWNED BY tzzr_core_itm_base.ply_agent_llm_map.num;


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

CREATE SEQUENCE tzzr_core_itm_base.ply_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_itm_base.ply_num_seq OWNER TO tzzr;

--
-- Name: ply_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER SEQUENCE tzzr_core_itm_base.ply_num_seq OWNED BY tzzr_core_itm_base.ply.num;


--
-- Name: tree_itm; Type: TABLE; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE TABLE tzzr_core_itm_base.tree_itm (
    num integer NOT NULL,
    mrf_parent character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now(),
    sort_order integer,
    node_type character varying DEFAULT 'component'::character varying,
    quantity double precision DEFAULT 1
);


ALTER TABLE tzzr_core_itm_base.tree_itm OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_core_itm_base.tree_itm_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_itm_base.tree_itm_num_seq OWNER TO tzzr;

--
-- Name: tree_itm_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER SEQUENCE tzzr_core_itm_base.tree_itm_num_seq OWNED BY tzzr_core_itm_base.tree_itm.num;


--
-- Name: tree_loc; Type: TABLE; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE TABLE tzzr_core_itm_base.tree_loc (
    num integer NOT NULL,
    mrf_parent character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_itm_base.tree_loc OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_core_itm_base.tree_loc_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_itm_base.tree_loc_num_seq OWNER TO tzzr;

--
-- Name: tree_loc_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER SEQUENCE tzzr_core_itm_base.tree_loc_num_seq OWNED BY tzzr_core_itm_base.tree_loc.num;


--
-- Name: tree_ply; Type: TABLE; Schema: tzzr_core_itm_base; Owner: tzzr
--

CREATE TABLE tzzr_core_itm_base.tree_ply (
    num integer NOT NULL,
    mrf_parent character varying(64) NOT NULL,
    mrf_child character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_itm_base.tree_ply OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_core_itm_base.tree_ply_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_itm_base.tree_ply_num_seq OWNER TO tzzr;

--
-- Name: tree_ply_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER SEQUENCE tzzr_core_itm_base.tree_ply_num_seq OWNED BY tzzr_core_itm_base.tree_ply.num;


--
-- Name: graph_bck; Type: TABLE; Schema: tzzr_core_oracle; Owner: postgres
--

CREATE TABLE tzzr_core_oracle.graph_bck (
    num integer NOT NULL,
    mrf_a character varying NOT NULL,
    mrf_b character varying NOT NULL,
    weight double precision DEFAULT 0.5,
    edge_type character varying,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_oracle.graph_bck OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_oracle.graph_bck_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_oracle.graph_bck_num_seq OWNER TO postgres;

--
-- Name: graph_bck_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER SEQUENCE tzzr_core_oracle.graph_bck_num_seq OWNED BY tzzr_core_oracle.graph_bck.num;


--
-- Name: graph_mst; Type: TABLE; Schema: tzzr_core_oracle; Owner: postgres
--

CREATE TABLE tzzr_core_oracle.graph_mst (
    num integer NOT NULL,
    mrf_a character varying NOT NULL,
    mrf_b character varying NOT NULL,
    weight double precision DEFAULT 0.5,
    edge_type character varying,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_oracle.graph_mst OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_oracle.graph_mst_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_oracle.graph_mst_num_seq OWNER TO postgres;

--
-- Name: graph_mst_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER SEQUENCE tzzr_core_oracle.graph_mst_num_seq OWNED BY tzzr_core_oracle.graph_mst.num;


--
-- Name: library_bck; Type: TABLE; Schema: tzzr_core_oracle; Owner: postgres
--

CREATE TABLE tzzr_core_oracle.library_bck (
    num integer NOT NULL,
    mrf_library character varying NOT NULL,
    mrf_child character varying NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_oracle.library_bck OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_oracle.library_bck_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_oracle.library_bck_num_seq OWNER TO postgres;

--
-- Name: library_bck_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER SEQUENCE tzzr_core_oracle.library_bck_num_seq OWNED BY tzzr_core_oracle.library_bck.num;


--
-- Name: library_mst; Type: TABLE; Schema: tzzr_core_oracle; Owner: postgres
--

CREATE TABLE tzzr_core_oracle.library_mst (
    num integer NOT NULL,
    mrf_library character varying NOT NULL,
    mrf_child character varying NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_oracle.library_mst OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_oracle.library_mst_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_oracle.library_mst_num_seq OWNER TO postgres;

--
-- Name: library_mst_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER SEQUENCE tzzr_core_oracle.library_mst_num_seq OWNED BY tzzr_core_oracle.library_mst.num;


--
-- Name: mst; Type: TABLE; Schema: tzzr_core_oracle; Owner: postgres
--

CREATE TABLE tzzr_core_oracle.mst (
    num integer NOT NULL,
    alias character varying,
    ref character varying,
    mrf character varying NOT NULL,
    private_mrf character varying,
    name_es character varying,
    name_en character varying,
    name_ch character varying,
    set_hst character varying,
    link_mst jsonb,
    link_bck jsonb,
    link_itm jsonb,
    link_loc jsonb,
    link_ply jsonb,
    mth_mrf character varying,
    txt text,
    hashtags jsonb,
    standard_data text,
    jsonb_data jsonb,
    version_hst_data character varying,
    rootref character varying,
    roothash jsonb,
    img_url character varying,
    img_thumb_url character varying,
    owner jsonb,
    set_flg jsonb,
    url_atc jsonb,
    url_json jsonb,
    date date,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    previous_version character varying
);


ALTER TABLE tzzr_core_oracle.mst OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_oracle.mst_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_oracle.mst_num_seq OWNER TO postgres;

--
-- Name: mst_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER SEQUENCE tzzr_core_oracle.mst_num_seq OWNED BY tzzr_core_oracle.mst.num;


--
-- Name: tree_bck; Type: TABLE; Schema: tzzr_core_oracle; Owner: postgres
--

CREATE TABLE tzzr_core_oracle.tree_bck (
    num integer NOT NULL,
    mrf_parent character varying NOT NULL,
    mrf_child character varying NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_oracle.tree_bck OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_oracle.tree_bck_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_oracle.tree_bck_num_seq OWNER TO postgres;

--
-- Name: tree_bck_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER SEQUENCE tzzr_core_oracle.tree_bck_num_seq OWNED BY tzzr_core_oracle.tree_bck.num;


--
-- Name: tree_mst; Type: TABLE; Schema: tzzr_core_oracle; Owner: postgres
--

CREATE TABLE tzzr_core_oracle.tree_mst (
    num integer NOT NULL,
    mrf_parent character varying NOT NULL,
    mrf_child character varying NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_oracle.tree_mst OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_oracle.tree_mst_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_oracle.tree_mst_num_seq OWNER TO postgres;

--
-- Name: tree_mst_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER SEQUENCE tzzr_core_oracle.tree_mst_num_seq OWNED BY tzzr_core_oracle.tree_mst.num;


--
-- Name: graph_mth; Type: TABLE; Schema: tzzr_core_produccion; Owner: postgres
--

CREATE TABLE tzzr_core_produccion.graph_mth (
    num integer NOT NULL,
    mrf_a character varying NOT NULL,
    mrf_b character varying NOT NULL,
    weight double precision DEFAULT 0.5,
    edge_type character varying,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_produccion.graph_mth OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_produccion.graph_mth_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_produccion.graph_mth_num_seq OWNER TO postgres;

--
-- Name: graph_mth_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_produccion; Owner: postgres
--

ALTER SEQUENCE tzzr_core_produccion.graph_mth_num_seq OWNED BY tzzr_core_produccion.graph_mth.num;


--
-- Name: library_mth; Type: TABLE; Schema: tzzr_core_produccion; Owner: postgres
--

CREATE TABLE tzzr_core_produccion.library_mth (
    num integer NOT NULL,
    mrf_library character varying NOT NULL,
    mrf_child character varying NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_produccion.library_mth OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_produccion.library_mth_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_produccion.library_mth_num_seq OWNER TO postgres;

--
-- Name: library_mth_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_produccion; Owner: postgres
--

ALTER SEQUENCE tzzr_core_produccion.library_mth_num_seq OWNED BY tzzr_core_produccion.library_mth.num;


--
-- Name: mth; Type: TABLE; Schema: tzzr_core_produccion; Owner: postgres
--

CREATE TABLE tzzr_core_produccion.mth (
    num integer NOT NULL,
    mrf character varying(64) NOT NULL,
    alias character varying(256) NOT NULL,
    ref character varying(10),
    name_es character varying(255),
    name_en character varying(255),
    name_ch character varying(255),
    description text,
    wm_path character varying(500),
    wm_workspace character varying(64),
    wm_schema jsonb,
    wm_type character varying(32),
    trigger_type character varying(32),
    trigger_config jsonb,
    input_schema jsonb,
    output_schema jsonb,
    timeout_ms integer,
    retry_policy jsonb,
    dependencies jsonb,
    set_hst character varying(64),
    hashtags jsonb,
    owner jsonb,
    version character varying(20) DEFAULT '1.0'::character varying,
    status character varying(16) DEFAULT 'active'::character varying,
    jsonb_data jsonb,
    env_vars jsonb,
    secrets_ref jsonb,
    notification_config jsonb,
    link_mst jsonb,
    link_bck jsonb,
    updated_at timestamp with time zone,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    private_mrf character varying(64),
    set_flg jsonb,
    txt text,
    rootref character varying(64),
    roothash jsonb,
    img_url character varying(128),
    img_thumb_url character varying(128),
    url_atc jsonb,
    standard_data text,
    date date,
    previous_version character varying(64),
    link_itm jsonb,
    link_loc jsonb,
    link_ply jsonb,
    version_hst_data character varying(8),
    CONSTRAINT mth_status_check CHECK (((status)::text = ANY (ARRAY[('active'::character varying)::text, ('inactive'::character varying)::text, ('deprecated'::character varying)::text])))
);


ALTER TABLE tzzr_core_produccion.mth OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_produccion.mth_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_produccion.mth_num_seq OWNER TO postgres;

--
-- Name: mth_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_produccion; Owner: postgres
--

ALTER SEQUENCE tzzr_core_produccion.mth_num_seq OWNED BY tzzr_core_produccion.mth.num;


--
-- Name: tree_mth; Type: TABLE; Schema: tzzr_core_produccion; Owner: postgres
--

CREATE TABLE tzzr_core_produccion.tree_mth (
    num integer NOT NULL,
    mrf_parent character varying NOT NULL,
    mrf_child character varying NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_produccion.tree_mth OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_produccion.tree_mth_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_produccion.tree_mth_num_seq OWNER TO postgres;

--
-- Name: tree_mth_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_produccion; Owner: postgres
--

ALTER SEQUENCE tzzr_core_produccion.tree_mth_num_seq OWNED BY tzzr_core_produccion.tree_mth.num;


--
-- Name: bck; Type: TABLE; Schema: tzzr_core_secretaria; Owner: tzzr
--

CREATE TABLE tzzr_core_secretaria.bck (
    num integer NOT NULL,
    alias character varying(256),
    ref character varying(8),
    mrf character varying(64) NOT NULL,
    private_mrf character varying(64),
    name_es character varying(128),
    name_en character varying(128),
    name_ch character varying(128),
    set_hst character varying(64),
    link_mst jsonb,
    link_bck jsonb,
    link_itm jsonb,
    link_loc jsonb,
    link_ply jsonb,
    mth_mrf character varying(64),
    txt text,
    hashtags jsonb,
    standard_data text,
    jsonb_data jsonb,
    version_hst_data character varying(8),
    rootref character varying(64),
    roothash jsonb,
    img_url character varying(128),
    img_thumb_url character varying(128),
    owner jsonb,
    set_flg jsonb,
    url_atc jsonb,
    url_json jsonb,
    date date,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    previous_version character varying(64)
);


ALTER TABLE tzzr_core_secretaria.bck OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_core_secretaria.bck_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_secretaria.bck_num_seq OWNER TO tzzr;

--
-- Name: bck_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_secretaria; Owner: tzzr
--

ALTER SEQUENCE tzzr_core_secretaria.bck_num_seq OWNED BY tzzr_core_secretaria.bck.num;


--
-- Name: graph_bck; Type: TABLE; Schema: tzzr_core_secretaria; Owner: postgres
--

CREATE TABLE tzzr_core_secretaria.graph_bck (
    num integer NOT NULL,
    mrf_a character varying NOT NULL,
    mrf_b character varying NOT NULL,
    weight double precision DEFAULT 0.5,
    edge_type character varying,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_secretaria.graph_bck OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_secretaria.graph_bck_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_secretaria.graph_bck_num_seq OWNER TO postgres;

--
-- Name: graph_bck_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER SEQUENCE tzzr_core_secretaria.graph_bck_num_seq OWNED BY tzzr_core_secretaria.graph_bck.num;


--
-- Name: graph_mst; Type: TABLE; Schema: tzzr_core_secretaria; Owner: postgres
--

CREATE TABLE tzzr_core_secretaria.graph_mst (
    num integer NOT NULL,
    mrf_a character varying NOT NULL,
    mrf_b character varying NOT NULL,
    weight double precision DEFAULT 0.5,
    edge_type character varying,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_secretaria.graph_mst OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_secretaria.graph_mst_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_secretaria.graph_mst_num_seq OWNER TO postgres;

--
-- Name: graph_mst_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER SEQUENCE tzzr_core_secretaria.graph_mst_num_seq OWNED BY tzzr_core_secretaria.graph_mst.num;


--
-- Name: library_bck; Type: TABLE; Schema: tzzr_core_secretaria; Owner: postgres
--

CREATE TABLE tzzr_core_secretaria.library_bck (
    num integer NOT NULL,
    mrf_library character varying NOT NULL,
    mrf_child character varying NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_secretaria.library_bck OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_secretaria.library_bck_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_secretaria.library_bck_num_seq OWNER TO postgres;

--
-- Name: library_bck_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER SEQUENCE tzzr_core_secretaria.library_bck_num_seq OWNED BY tzzr_core_secretaria.library_bck.num;


--
-- Name: library_mst; Type: TABLE; Schema: tzzr_core_secretaria; Owner: postgres
--

CREATE TABLE tzzr_core_secretaria.library_mst (
    num integer NOT NULL,
    mrf_library character varying NOT NULL,
    mrf_child character varying NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_secretaria.library_mst OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_secretaria.library_mst_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_secretaria.library_mst_num_seq OWNER TO postgres;

--
-- Name: library_mst_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER SEQUENCE tzzr_core_secretaria.library_mst_num_seq OWNED BY tzzr_core_secretaria.library_mst.num;


--
-- Name: mst; Type: TABLE; Schema: tzzr_core_secretaria; Owner: postgres
--

CREATE TABLE tzzr_core_secretaria.mst (
    num integer NOT NULL,
    alias character varying(256),
    ref character varying(8),
    mrf character varying(64) NOT NULL,
    private_mrf character varying(64),
    name_es character varying(128),
    name_en character varying(128),
    name_ch character varying(128),
    set_hst character varying(64),
    link_mst jsonb,
    link_bck jsonb,
    link_itm jsonb,
    link_loc jsonb,
    link_ply jsonb,
    mth_mrf character varying(64),
    txt text,
    hashtags jsonb,
    standard_data text,
    jsonb_data jsonb,
    version_hst_data character varying(8),
    rootref character varying(64),
    roothash jsonb,
    img_url character varying(128),
    img_thumb_url character varying(128),
    owner jsonb,
    set_flg jsonb,
    url_atc jsonb,
    url_json jsonb,
    date date,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    previous_version character varying(64)
);


ALTER TABLE tzzr_core_secretaria.mst OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_secretaria.mst_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_secretaria.mst_num_seq OWNER TO postgres;

--
-- Name: mst_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER SEQUENCE tzzr_core_secretaria.mst_num_seq OWNED BY tzzr_core_secretaria.mst.num;


--
-- Name: tree_bck; Type: TABLE; Schema: tzzr_core_secretaria; Owner: postgres
--

CREATE TABLE tzzr_core_secretaria.tree_bck (
    num integer NOT NULL,
    mrf_parent character varying NOT NULL,
    mrf_child character varying NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_secretaria.tree_bck OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_secretaria.tree_bck_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_secretaria.tree_bck_num_seq OWNER TO postgres;

--
-- Name: tree_bck_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER SEQUENCE tzzr_core_secretaria.tree_bck_num_seq OWNED BY tzzr_core_secretaria.tree_bck.num;


--
-- Name: tree_mst; Type: TABLE; Schema: tzzr_core_secretaria; Owner: postgres
--

CREATE TABLE tzzr_core_secretaria.tree_mst (
    num integer NOT NULL,
    mrf_parent character varying NOT NULL,
    mrf_child character varying NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_core_secretaria.tree_mst OWNER TO postgres;

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

CREATE SEQUENCE tzzr_core_secretaria.tree_mst_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_core_secretaria.tree_mst_num_seq OWNER TO postgres;

--
-- Name: tree_mst_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER SEQUENCE tzzr_core_secretaria.tree_mst_num_seq OWNED BY tzzr_core_secretaria.tree_mst.num;


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

CREATE SEQUENCE tzzr_iachat.agent_llm_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_iachat.agent_llm_num_seq OWNER TO tzzr;

--
-- Name: agent_llm_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_iachat; Owner: tzzr
--

ALTER SEQUENCE tzzr_iachat.agent_llm_num_seq OWNED BY tzzr_iachat.agent_llm.num;


--
-- Name: flow; Type: TABLE; Schema: tzzr_iachat; Owner: tzzr
--

CREATE TABLE tzzr_iachat.flow (
    num integer NOT NULL,
    mrf character varying(64) DEFAULT md5(((random())::text || (clock_timestamp())::text)) NOT NULL,
    name character varying(200) NOT NULL,
    description text,
    orchestrator_config jsonb DEFAULT '{}'::jsonb NOT NULL,
    pipeline jsonb DEFAULT '[]'::jsonb,
    status character varying(16) DEFAULT 'active'::character varying,
    created_at timestamp with time zone DEFAULT now(),
    updated_at timestamp with time zone DEFAULT now(),
    CONSTRAINT flow_status_check CHECK (((status)::text = ANY ((ARRAY['active'::character varying, 'archived'::character varying, 'disabled'::character varying])::text[])))
);


ALTER TABLE tzzr_iachat.flow OWNER TO tzzr;

--
-- Name: flow_edge; Type: TABLE; Schema: tzzr_iachat; Owner: postgres
--

CREATE TABLE tzzr_iachat.flow_edge (
    num integer NOT NULL,
    mrf character varying(64) DEFAULT md5(((random())::text || (clock_timestamp())::text)) NOT NULL,
    flow_mrf character varying(64) NOT NULL,
    source_step_mrf character varying(64) NOT NULL,
    target_step_mrf character varying(64) NOT NULL,
    label character varying(200),
    config jsonb DEFAULT '{}'::jsonb,
    created_at timestamp with time zone DEFAULT now(),
    CONSTRAINT edge_no_self_loop CHECK (((source_step_mrf)::text <> (target_step_mrf)::text))
);


ALTER TABLE tzzr_iachat.flow_edge OWNER TO postgres;

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

CREATE SEQUENCE tzzr_iachat.flow_edge_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_iachat.flow_edge_num_seq OWNER TO postgres;

--
-- Name: flow_edge_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_iachat; Owner: postgres
--

ALTER SEQUENCE tzzr_iachat.flow_edge_num_seq OWNED BY tzzr_iachat.flow_edge.num;


--
-- Name: flow_execution; Type: TABLE; Schema: tzzr_iachat; Owner: tzzr
--

CREATE TABLE tzzr_iachat.flow_execution (
    num integer NOT NULL,
    mrf character varying(64) DEFAULT md5(((random())::text || (clock_timestamp())::text)) NOT NULL,
    flow_mrf character varying(64) NOT NULL,
    session_mrf character varying(64),
    input_text text NOT NULL,
    planned_steps jsonb,
    status character varying(16) DEFAULT 'pending'::character varying,
    result_summary text,
    started_at timestamp with time zone,
    completed_at timestamp with time zone,
    created_at timestamp with time zone DEFAULT now(),
    CONSTRAINT flow_execution_status_check CHECK (((status)::text = ANY ((ARRAY['pending'::character varying, 'planning'::character varying, 'running'::character varying, 'completed'::character varying, 'failed'::character varying, 'cancelled'::character varying])::text[])))
);


ALTER TABLE tzzr_iachat.flow_execution OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_iachat.flow_execution_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_iachat.flow_execution_num_seq OWNER TO tzzr;

--
-- Name: flow_execution_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_iachat; Owner: tzzr
--

ALTER SEQUENCE tzzr_iachat.flow_execution_num_seq OWNED BY tzzr_iachat.flow_execution.num;


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

CREATE SEQUENCE tzzr_iachat.flow_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_iachat.flow_num_seq OWNER TO tzzr;

--
-- Name: flow_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_iachat; Owner: tzzr
--

ALTER SEQUENCE tzzr_iachat.flow_num_seq OWNED BY tzzr_iachat.flow.num;


--
-- Name: flow_step; Type: TABLE; Schema: tzzr_iachat; Owner: tzzr
--

CREATE TABLE tzzr_iachat.flow_step (
    num integer NOT NULL,
    mrf character varying(64) DEFAULT md5(((random())::text || (clock_timestamp())::text)) NOT NULL,
    flow_mrf character varying(64) NOT NULL,
    ply_mrf character varying(64),
    label character varying(200),
    instruction text,
    img_url text,
    img_thumb_url text,
    access_level character varying(32) DEFAULT 'basic'::character varying,
    sort_order integer DEFAULT 0,
    config jsonb DEFAULT '{}'::jsonb,
    created_at timestamp with time zone DEFAULT now(),
    updated_at timestamp with time zone DEFAULT now(),
    model_mrf character varying,
    dataset_mrf character varying(64) DEFAULT NULL::character varying
);


ALTER TABLE tzzr_iachat.flow_step OWNER TO tzzr;

--
-- Name: flow_step_execution; Type: TABLE; Schema: tzzr_iachat; Owner: tzzr
--

CREATE TABLE tzzr_iachat.flow_step_execution (
    num integer NOT NULL,
    mrf character varying(64) DEFAULT md5(((random())::text || (clock_timestamp())::text)) NOT NULL,
    execution_mrf character varying(64) NOT NULL,
    step_mrf character varying(64) NOT NULL,
    step_order integer DEFAULT 0,
    input_data jsonb,
    output_data jsonb,
    status character varying(16) DEFAULT 'pending'::character varying,
    duration_ms integer,
    error text,
    started_at timestamp with time zone,
    completed_at timestamp with time zone,
    created_at timestamp with time zone DEFAULT now(),
    CONSTRAINT flow_step_execution_status_check CHECK (((status)::text = ANY ((ARRAY['pending'::character varying, 'running'::character varying, 'completed'::character varying, 'failed'::character varying, 'skipped'::character varying])::text[])))
);


ALTER TABLE tzzr_iachat.flow_step_execution OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_iachat.flow_step_execution_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_iachat.flow_step_execution_num_seq OWNER TO tzzr;

--
-- Name: flow_step_execution_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_iachat; Owner: tzzr
--

ALTER SEQUENCE tzzr_iachat.flow_step_execution_num_seq OWNED BY tzzr_iachat.flow_step_execution.num;


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

CREATE SEQUENCE tzzr_iachat.flow_step_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_iachat.flow_step_num_seq OWNER TO tzzr;

--
-- Name: flow_step_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_iachat; Owner: tzzr
--

ALTER SEQUENCE tzzr_iachat.flow_step_num_seq OWNED BY tzzr_iachat.flow_step.num;


--
-- Name: flow_summary; Type: VIEW; Schema: tzzr_iachat; Owner: tzzr
--

CREATE VIEW tzzr_iachat.flow_summary AS
 SELECT f.num,
    f.mrf,
    f.name,
    f.description,
    f.status,
    f.orchestrator_config,
    f.created_at,
    f.updated_at,
    ( SELECT count(*) AS count
           FROM tzzr_iachat.flow_step fs
          WHERE ((fs.flow_mrf)::text = (f.mrf)::text)) AS step_count,
    ( SELECT count(*) AS count
           FROM tzzr_iachat.flow_edge ed
          WHERE ((ed.flow_mrf)::text = (f.mrf)::text)) AS edge_count,
    ( SELECT count(*) AS count
           FROM tzzr_iachat.flow_execution fe
          WHERE ((fe.flow_mrf)::text = (f.mrf)::text)) AS execution_count,
    ( SELECT max(fe.created_at) AS max
           FROM tzzr_iachat.flow_execution fe
          WHERE ((fe.flow_mrf)::text = (f.mrf)::text)) AS last_run_at
   FROM tzzr_iachat.flow f;


ALTER TABLE tzzr_iachat.flow_summary OWNER TO tzzr;

--
-- Name: message; Type: TABLE; Schema: tzzr_iachat; Owner: tzzr
--

CREATE TABLE tzzr_iachat.message (
    num bigint NOT NULL,
    mrf character varying(64) DEFAULT md5(((random())::text || (clock_timestamp())::text)) NOT NULL,
    session_mrf character varying(64) NOT NULL,
    role character varying(16) NOT NULL,
    content text NOT NULL,
    metadata jsonb DEFAULT '{}'::jsonb,
    created_at timestamp with time zone DEFAULT now(),
    parent_mrf character varying(64),
    CONSTRAINT message_role_check CHECK (((role)::text = ANY ((ARRAY['user'::character varying, 'assistant'::character varying, 'system'::character varying, 'terminal'::character varying])::text[])))
);


ALTER TABLE tzzr_iachat.message OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_iachat.message_num_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_iachat.message_num_seq OWNER TO tzzr;

--
-- Name: message_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_iachat; Owner: tzzr
--

ALTER SEQUENCE tzzr_iachat.message_num_seq OWNED BY tzzr_iachat.message.num;


--
-- Name: project; Type: TABLE; Schema: tzzr_iachat; Owner: tzzr
--

CREATE TABLE tzzr_iachat.project (
    num integer NOT NULL,
    mrf character varying(64) DEFAULT md5(((random())::text || (clock_timestamp())::text)) NOT NULL,
    name character varying(200) NOT NULL,
    parent_mrf character varying(64),
    description text,
    color character varying(7) DEFAULT '#818cf8'::character varying,
    sort_order integer DEFAULT 0,
    created_at timestamp with time zone DEFAULT now(),
    set_hst character varying(64),
    etiquetas jsonb DEFAULT '[]'::jsonb
);


ALTER TABLE tzzr_iachat.project OWNER TO tzzr;

--
-- Name: project_agent_llm; Type: TABLE; Schema: tzzr_iachat; Owner: tzzr
--

CREATE TABLE tzzr_iachat.project_agent_llm (
    project_mrf character varying(64) NOT NULL,
    agent_llm_mrf character varying(64) NOT NULL
);


ALTER TABLE tzzr_iachat.project_agent_llm OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_iachat.project_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_iachat.project_num_seq OWNER TO tzzr;

--
-- Name: project_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_iachat; Owner: tzzr
--

ALTER SEQUENCE tzzr_iachat.project_num_seq OWNED BY tzzr_iachat.project.num;


--
-- Name: session; Type: TABLE; Schema: tzzr_iachat; Owner: tzzr
--

CREATE TABLE tzzr_iachat.session (
    num integer NOT NULL,
    mrf character varying(64) DEFAULT md5(((random())::text || (clock_timestamp())::text)) NOT NULL,
    title character varying(300),
    project_mrf character varying(64),
    status character varying(16) DEFAULT 'active'::character varying,
    created_at timestamp with time zone DEFAULT now(),
    updated_at timestamp with time zone DEFAULT now(),
    set_hst character varying(64),
    etiquetas jsonb DEFAULT '[]'::jsonb,
    parent_mrf character varying(64),
    agent_llm_mrf character varying(64),
    CONSTRAINT session_status_check CHECK (((status)::text = ANY ((ARRAY['active'::character varying, 'archived'::character varying, 'deleted'::character varying])::text[])))
);


ALTER TABLE tzzr_iachat.session OWNER TO tzzr;

--
-- Name: session_dataset; Type: TABLE; Schema: tzzr_iachat; Owner: tzzr
--

CREATE TABLE tzzr_iachat.session_dataset (
    num integer NOT NULL,
    session_mrf character varying(64) NOT NULL,
    dataset_mrf character varying(64) NOT NULL,
    created_at timestamp with time zone DEFAULT now(),
    hst_filter character varying(64)
);


ALTER TABLE tzzr_iachat.session_dataset OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_iachat.session_dataset_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_iachat.session_dataset_num_seq OWNER TO tzzr;

--
-- Name: session_dataset_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_iachat; Owner: tzzr
--

ALTER SEQUENCE tzzr_iachat.session_dataset_num_seq OWNED BY tzzr_iachat.session_dataset.num;


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

CREATE SEQUENCE tzzr_iachat.session_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_iachat.session_num_seq OWNER TO tzzr;

--
-- Name: session_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_iachat; Owner: tzzr
--

ALTER SEQUENCE tzzr_iachat.session_num_seq OWNED BY tzzr_iachat.session.num;


--
-- Name: session_summary; Type: VIEW; Schema: tzzr_iachat; Owner: postgres
--

CREATE VIEW tzzr_iachat.session_summary AS
 SELECT s.mrf,
    s.title,
    s.status,
    s.project_mrf,
    s.agent_llm_mrf,
    s.parent_mrf,
    s.set_hst,
    s.etiquetas,
    s.created_at,
    s.updated_at,
    p.name AS project_name,
    a.name AS agent_llm_name,
    a.color AS agent_llm_color,
    ( SELECT count(*) AS count
           FROM tzzr_iachat.message m
          WHERE ((m.session_mrf)::text = (s.mrf)::text)) AS message_count,
    ( SELECT max(m.created_at) AS max
           FROM tzzr_iachat.message m
          WHERE ((m.session_mrf)::text = (s.mrf)::text)) AS last_message_at
   FROM ((tzzr_iachat.session s
     LEFT JOIN tzzr_iachat.project p ON (((p.mrf)::text = (s.project_mrf)::text)))
     LEFT JOIN tzzr_iachat.agent_llm a ON (((a.mrf)::text = (s.agent_llm_mrf)::text)))
  WHERE ((s.status)::text <> 'deleted'::text);


ALTER TABLE tzzr_iachat.session_summary OWNER TO postgres;

--
-- Name: tag_strip; Type: TABLE; Schema: tzzr_iachat; Owner: tzzr
--

CREATE TABLE tzzr_iachat.tag_strip (
    session_mrf character varying(64) NOT NULL,
    hst_mrf character varying(64) NOT NULL,
    sort_order integer DEFAULT 0
);


ALTER TABLE tzzr_iachat.tag_strip OWNER TO tzzr;

--
-- Name: terminal_whitelist; Type: TABLE; Schema: tzzr_iachat; Owner: tzzr
--

CREATE TABLE tzzr_iachat.terminal_whitelist (
    num integer NOT NULL,
    mrf character varying(64) DEFAULT md5(((random())::text || (clock_timestamp())::text)) NOT NULL,
    label character varying(100) NOT NULL,
    command_pattern text NOT NULL,
    description text,
    target_server character varying(32) DEFAULT 'local'::character varying,
    is_active boolean DEFAULT true,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_iachat.terminal_whitelist OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_iachat.terminal_whitelist_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_iachat.terminal_whitelist_num_seq OWNER TO tzzr;

--
-- Name: terminal_whitelist_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_iachat; Owner: tzzr
--

ALTER SEQUENCE tzzr_iachat.terminal_whitelist_num_seq OWNED BY tzzr_iachat.terminal_whitelist.num;


--
-- Name: threads; Type: TABLE; Schema: tzzr_iachat; Owner: tzzr
--

CREATE TABLE tzzr_iachat.threads (
    num integer NOT NULL,
    mrf character varying(64) DEFAULT md5(((random())::text || (clock_timestamp())::text)) NOT NULL,
    project_mrf character varying(64),
    parent_mrf character varying(64),
    title character varying(300) NOT NULL,
    description text,
    curated_context text,
    context_mrf character varying(64),
    source_session_mrfs jsonb DEFAULT '[]'::jsonb,
    source_types jsonb DEFAULT '[]'::jsonb,
    tags jsonb DEFAULT '[]'::jsonb,
    status character varying(16) DEFAULT 'active'::character varying,
    auto_update boolean DEFAULT false,
    priority integer DEFAULT 0,
    set_hst character varying(64),
    etiquetas jsonb DEFAULT '[]'::jsonb,
    created_at timestamp with time zone DEFAULT now(),
    updated_at timestamp with time zone DEFAULT now(),
    last_used_at timestamp with time zone,
    CONSTRAINT threads_status_check CHECK (((status)::text = ANY ((ARRAY['active'::character varying, 'archived'::character varying, 'draft'::character varying])::text[])))
);


ALTER TABLE tzzr_iachat.threads OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_iachat.threads_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_iachat.threads_num_seq OWNER TO tzzr;

--
-- Name: threads_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_iachat; Owner: tzzr
--

ALTER SEQUENCE tzzr_iachat.threads_num_seq OWNED BY tzzr_iachat.threads.num;


--
-- Name: attachment; Type: TABLE; Schema: tzzr_list; Owner: tzzr
--

CREATE TABLE tzzr_list.attachment (
    id integer NOT NULL,
    item_mrf text NOT NULL,
    url text NOT NULL,
    filename text,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_list.attachment OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_list.attachment_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_list.attachment_id_seq OWNER TO tzzr;

--
-- Name: attachment_id_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_list; Owner: tzzr
--

ALTER SEQUENCE tzzr_list.attachment_id_seq OWNED BY tzzr_list.attachment.id;


--
-- Name: item; Type: TABLE; Schema: tzzr_list; Owner: tzzr
--

CREATE TABLE tzzr_list.item (
    id integer NOT NULL,
    list_id integer NOT NULL,
    item_order integer DEFAULT 0,
    ia_mrf text,
    ia_alias text,
    ia_description text,
    user_mrf text,
    user_alias text,
    user_description text,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_list.item OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_list.item_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_list.item_id_seq OWNER TO tzzr;

--
-- Name: item_id_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_list; Owner: tzzr
--

ALTER SEQUENCE tzzr_list.item_id_seq OWNED BY tzzr_list.item.id;


--
-- Name: list; Type: TABLE; Schema: tzzr_list; Owner: tzzr
--

CREATE TABLE tzzr_list.list (
    id integer NOT NULL,
    name text NOT NULL,
    created_at timestamp with time zone DEFAULT now(),
    updated_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_list.list OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_list.list_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_list.list_id_seq OWNER TO tzzr;

--
-- Name: list_id_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_list; Owner: tzzr
--

ALTER SEQUENCE tzzr_list.list_id_seq OWNED BY tzzr_list.list.id;


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

CREATE SEQUENCE tzzr_storage.atc_num_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_storage.atc_num_seq OWNER TO postgres;

--
-- Name: atc; Type: TABLE; Schema: tzzr_storage; Owner: postgres
--

CREATE TABLE tzzr_storage.atc (
    num integer DEFAULT nextval('tzzr_storage.atc_num_seq'::regclass) NOT NULL,
    mrf character varying NOT NULL,
    private_mrf character varying,
    ref character varying,
    rootref character varying,
    alias character varying,
    img_thumb_url character varying,
    url_json jsonb,
    url_atc jsonb,
    txt text,
    version_hst_data character varying,
    hashtags jsonb,
    jsonb_data jsonb,
    standard_data text,
    roothash jsonb,
    owner jsonb,
    set_hst character varying,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    previous_version character varying,
    in_mrf character varying,
    set_flg jsonb,
    name_es character varying,
    name_en character varying,
    name_ch character varying,
    img_url character varying,
    date date,
    link_itm jsonb,
    link_loc jsonb,
    link_ply jsonb,
    status character varying,
    bucket_mrf character varying NOT NULL
);


ALTER TABLE tzzr_storage.atc OWNER TO postgres;

--
-- Name: atc_status; Type: TABLE; Schema: tzzr_storage; Owner: tzzr
--

CREATE TABLE tzzr_storage.atc_status (
    mrf character varying(64) NOT NULL,
    num integer NOT NULL,
    status character varying(50) DEFAULT 'enable'::character varying NOT NULL,
    bucket_mrf character varying(64) NOT NULL,
    CONSTRAINT atc_status_check_status CHECK (((status)::text = ANY ((ARRAY['enable'::character varying, 'disable'::character varying, 'deleted'::character varying])::text[])))
);


ALTER TABLE tzzr_storage.atc_status OWNER TO tzzr;

--
-- Name: bucket_access_log; Type: TABLE; Schema: tzzr_storage; Owner: postgres
--

CREATE TABLE tzzr_storage.bucket_access_log (
    id bigint NOT NULL,
    bucket_mrf character varying(64) NOT NULL,
    operation character varying(32) NOT NULL,
    mrf character varying(64),
    path character varying(500),
    server character varying(32),
    success boolean NOT NULL,
    error_msg text,
    bytes_transferred bigint,
    "timestamp" timestamp without time zone DEFAULT now()
);


ALTER TABLE tzzr_storage.bucket_access_log OWNER TO postgres;

--
-- Name: TABLE bucket_access_log; Type: COMMENT; Schema: tzzr_storage; Owner: postgres
--

COMMENT ON TABLE tzzr_storage.bucket_access_log IS 'Auditoría de operaciones sobre buckets R2';


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

CREATE SEQUENCE tzzr_storage.bucket_access_log_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_storage.bucket_access_log_id_seq OWNER TO postgres;

--
-- Name: bucket_access_log_id_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_storage; Owner: postgres
--

ALTER SEQUENCE tzzr_storage.bucket_access_log_id_seq OWNED BY tzzr_storage.bucket_access_log.id;


--
-- Name: buckets; Type: TABLE; Schema: tzzr_storage; Owner: tzzr
--

CREATE TABLE tzzr_storage.buckets (
    bucket_mrf character varying(64) NOT NULL,
    name character varying(64) NOT NULL,
    endpoint character varying(255) NOT NULL,
    active boolean DEFAULT true,
    created_at timestamp with time zone DEFAULT now(),
    access_key_id character varying(64),
    secret_access_key character varying(128)
);


ALTER TABLE tzzr_storage.buckets OWNER TO tzzr;

--
-- Name: TABLE buckets; Type: COMMENT; Schema: tzzr_storage; Owner: tzzr
--

COMMENT ON TABLE tzzr_storage.buckets IS 'Registro de buckets R2';


--
-- Name: graph_atc; Type: TABLE; Schema: tzzr_storage; Owner: postgres
--

CREATE TABLE tzzr_storage.graph_atc (
    num integer NOT NULL,
    mrf_a character varying NOT NULL,
    mrf_b character varying NOT NULL,
    weight double precision DEFAULT 0.5,
    edge_type character varying,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_storage.graph_atc OWNER TO postgres;

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

CREATE SEQUENCE tzzr_storage.graph_atc_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_storage.graph_atc_num_seq OWNER TO postgres;

--
-- Name: graph_atc_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_storage; Owner: postgres
--

ALTER SEQUENCE tzzr_storage.graph_atc_num_seq OWNED BY tzzr_storage.graph_atc.num;


--
-- Name: library_atc; Type: TABLE; Schema: tzzr_storage; Owner: postgres
--

CREATE TABLE tzzr_storage.library_atc (
    num integer NOT NULL,
    mrf_library character varying NOT NULL,
    mrf_child character varying NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_storage.library_atc OWNER TO postgres;

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

CREATE SEQUENCE tzzr_storage.library_atc_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_storage.library_atc_num_seq OWNER TO postgres;

--
-- Name: library_atc_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_storage; Owner: postgres
--

ALTER SEQUENCE tzzr_storage.library_atc_num_seq OWNED BY tzzr_storage.library_atc.num;


--
-- Name: tree_atc; Type: TABLE; Schema: tzzr_storage; Owner: postgres
--

CREATE TABLE tzzr_storage.tree_atc (
    num integer NOT NULL,
    mrf_parent character varying NOT NULL,
    mrf_child character varying NOT NULL,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_storage.tree_atc OWNER TO postgres;

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

CREATE SEQUENCE tzzr_storage.tree_atc_num_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_storage.tree_atc_num_seq OWNER TO postgres;

--
-- Name: tree_atc_num_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_storage; Owner: postgres
--

ALTER SEQUENCE tzzr_storage.tree_atc_num_seq OWNED BY tzzr_storage.tree_atc.num;


--
-- Name: endpoints; Type: TABLE; Schema: tzzr_system; Owner: postgres
--

CREATE TABLE tzzr_system.endpoints (
    service character varying(64) NOT NULL,
    name character varying(128),
    endpoint character varying(256) NOT NULL,
    type character varying(32),
    status character varying(16) DEFAULT 'active'::character varying,
    created_at timestamp with time zone DEFAULT now(),
    CONSTRAINT endpoints_status_check CHECK (((status)::text = ANY ((ARRAY['active'::character varying, 'inactive'::character varying, 'maintenance'::character varying])::text[])))
);


ALTER TABLE tzzr_system.endpoints OWNER TO postgres;

--
-- Name: keys; Type: TABLE; Schema: tzzr_system; Owner: postgres
--

CREATE TABLE tzzr_system.keys (
    id integer NOT NULL,
    service character varying(50) NOT NULL,
    endpoint character varying(255),
    username character varying(255),
    password character varying(255),
    api_key character varying(255),
    access_key_id character varying(64),
    secret_access_key character varying(128),
    config jsonb DEFAULT '{}'::jsonb,
    enabled boolean DEFAULT true,
    created_at timestamp with time zone DEFAULT now(),
    name character varying(100)
);


ALTER TABLE tzzr_system.keys OWNER TO postgres;

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

CREATE SEQUENCE tzzr_system.keys_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_system.keys_id_seq OWNER TO postgres;

--
-- Name: keys_id_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_system; Owner: postgres
--

ALTER SEQUENCE tzzr_system.keys_id_seq OWNED BY tzzr_system.keys.id;


--
-- Name: user_keys; Type: TABLE; Schema: tzzr_system; Owner: tzzr
--

CREATE TABLE tzzr_system.user_keys (
    id integer NOT NULL,
    name text NOT NULL,
    value text NOT NULL,
    description text,
    created_at timestamp with time zone DEFAULT now(),
    updated_at timestamp with time zone DEFAULT now()
);


ALTER TABLE tzzr_system.user_keys OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_system.user_keys_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_system.user_keys_id_seq OWNER TO tzzr;

--
-- Name: user_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_system; Owner: tzzr
--

ALTER SEQUENCE tzzr_system.user_keys_id_seq OWNED BY tzzr_system.user_keys.id;


--
-- Name: user_notes; Type: TABLE; Schema: tzzr_system; Owner: tzzr
--

CREATE TABLE tzzr_system.user_notes (
    id integer NOT NULL,
    note text NOT NULL,
    created_at timestamp with time zone DEFAULT now(),
    start_date timestamp without time zone,
    end_date timestamp without time zone,
    status text DEFAULT 'pending'::text
);


ALTER TABLE tzzr_system.user_notes OWNER TO tzzr;

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

CREATE SEQUENCE tzzr_system.user_notes_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE tzzr_system.user_notes_id_seq OWNER TO tzzr;

--
-- Name: user_notes_id_seq; Type: SEQUENCE OWNED BY; Schema: tzzr_system; Owner: tzzr
--

ALTER SEQUENCE tzzr_system.user_notes_id_seq OWNED BY tzzr_system.user_notes.id;


--
-- Name: gate_key; Type: TABLE; Schema: usr; Owner: postgres
--

CREATE TABLE usr.gate_key (
    id text DEFAULT encode(tzzr_core_hst.gen_random_bytes(8), 'hex'::text) NOT NULL,
    label text NOT NULL,
    method text NOT NULL,
    secret text NOT NULL,
    active boolean DEFAULT true,
    created_at timestamp with time zone DEFAULT now(),
    last_used timestamp with time zone,
    token_hash text,
    metadata jsonb,
    CONSTRAINT gate_key_method_check CHECK ((method = ANY (ARRAY['static'::text, 'totp'::text, 'pin'::text, 'rotating'::text, 'suffix'::text, 'code'::text, 'master'::text])))
);


ALTER TABLE usr.gate_key OWNER TO postgres;

--
-- Name: gate_session; Type: TABLE; Schema: usr; Owner: postgres
--

CREATE TABLE usr.gate_session (
    ip text NOT NULL,
    created_at timestamp with time zone DEFAULT now(),
    expires_at timestamp with time zone NOT NULL,
    key_id text,
    method text,
    session_id character varying(64) NOT NULL,
    allowed_domains text[],
    user_id integer
);


ALTER TABLE usr.gate_session OWNER TO postgres;

--
-- Name: gate_user; Type: TABLE; Schema: usr; Owner: postgres
--

CREATE TABLE usr.gate_user (
    id integer NOT NULL,
    name text NOT NULL,
    mrf text NOT NULL,
    master_code_hash text NOT NULL,
    rotating_seed text NOT NULL,
    allowed_domains text[] DEFAULT '{}'::text[] NOT NULL,
    active boolean DEFAULT true,
    created_at timestamp with time zone DEFAULT now(),
    last_used timestamp with time zone
);


ALTER TABLE usr.gate_user OWNER TO postgres;

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

CREATE SEQUENCE usr.gate_user_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE usr.gate_user_id_seq OWNER TO postgres;

--
-- Name: gate_user_id_seq; Type: SEQUENCE OWNED BY; Schema: usr; Owner: postgres
--

ALTER SEQUENCE usr.gate_user_id_seq OWNED BY usr.gate_user.id;


--
-- Name: key; Type: TABLE; Schema: usr; Owner: postgres
--

CREATE TABLE usr.key (
    mrf character varying(64) DEFAULT encode(tzzr_core_hst.gen_random_bytes(16), 'hex'::text) NOT NULL,
    username character varying(255),
    password text,
    service character varying(100) NOT NULL,
    enabled boolean DEFAULT true,
    description text,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE usr.key OWNER TO postgres;

--
-- Name: storage; Type: TABLE; Schema: usr; Owner: postgres
--

CREATE TABLE usr.storage (
    mrf character varying(64) DEFAULT encode(tzzr_core_hst.gen_random_bytes(32), 'hex'::text) NOT NULL,
    name character varying(64) NOT NULL,
    type character varying(32) DEFAULT 'r2'::character varying NOT NULL,
    endpoint character varying(255),
    key_mrf character varying(64),
    config jsonb DEFAULT '{}'::jsonb,
    active boolean DEFAULT true,
    created_at timestamp with time zone DEFAULT now()
);


ALTER TABLE usr.storage OWNER TO postgres;

--
-- Name: exe num; Type: DEFAULT; Schema: production_alfred; Owner: postgres
--

ALTER TABLE ONLY production_alfred.exe ALTER COLUMN num SET DEFAULT nextval('production_alfred.exe_num_seq'::regclass);


--
-- Name: rule_log num; Type: DEFAULT; Schema: production_alfred; Owner: postgres
--

ALTER TABLE ONLY production_alfred.rule_log ALTER COLUMN num SET DEFAULT nextval('production_alfred.rule_log_num_seq'::regclass);


--
-- Name: rules num; Type: DEFAULT; Schema: production_alfred; Owner: postgres
--

ALTER TABLE ONLY production_alfred.rules ALTER COLUMN num SET DEFAULT nextval('production_alfred.rules_num_seq'::regclass);


--
-- Name: agent_description num; Type: DEFAULT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.agent_description ALTER COLUMN num SET DEFAULT nextval('tzzr_ai.agent_description_num_seq'::regclass);


--
-- Name: dataset num; Type: DEFAULT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.dataset ALTER COLUMN num SET DEFAULT nextval('tzzr_ai.dataset_num_seq'::regclass);


--
-- Name: library_agent num; Type: DEFAULT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.library_agent ALTER COLUMN num SET DEFAULT nextval('tzzr_ai.library_agent_num_seq'::regclass);


--
-- Name: library_model num; Type: DEFAULT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.library_model ALTER COLUMN num SET DEFAULT nextval('tzzr_ai.library_model_num_seq'::regclass);


--
-- Name: library_setup_agent num; Type: DEFAULT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.library_setup_agent ALTER COLUMN num SET DEFAULT nextval('tzzr_ai.library_setup_agent_num_seq'::regclass);


--
-- Name: library_setup_model num; Type: DEFAULT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.library_setup_model ALTER COLUMN num SET DEFAULT nextval('tzzr_ai.library_setup_model_num_seq'::regclass);


--
-- Name: model num; Type: DEFAULT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.model ALTER COLUMN num SET DEFAULT nextval('tzzr_ai.model_num_seq'::regclass);


--
-- Name: model_usage num; Type: DEFAULT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.model_usage ALTER COLUMN num SET DEFAULT nextval('tzzr_ai.model_usage_num_seq'::regclass);


--
-- Name: provider num; Type: DEFAULT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.provider ALTER COLUMN num SET DEFAULT nextval('tzzr_ai.provider_num_seq'::regclass);


--
-- Name: setup num; Type: DEFAULT; Schema: tzzr_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_ai.setup ALTER COLUMN num SET DEFAULT nextval('tzzr_ai.setup_num_seq'::regclass);


--
-- Name: actions num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.actions ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.actions_num_seq'::regclass);


--
-- Name: curated_context num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.curated_context ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.curated_context_num_seq'::regclass);


--
-- Name: embeddings num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.embeddings ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.embeddings_num_seq'::regclass);


--
-- Name: enrichment num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.enrichment ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.enrichment_num_seq'::regclass);


--
-- Name: extracted num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.extracted ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.extracted_num_seq'::regclass);


--
-- Name: graph_actions num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.graph_actions ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.graph_actions_num_seq'::regclass);


--
-- Name: graph_curated_context num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.graph_curated_context ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.graph_curated_context_num_seq'::regclass);


--
-- Name: graph_embeddings num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.graph_embeddings ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.graph_embeddings_num_seq'::regclass);


--
-- Name: graph_enrichment num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.graph_enrichment ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.graph_enrichment_num_seq'::regclass);


--
-- Name: graph_extracted num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.graph_extracted ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.graph_extracted_num_seq'::regclass);


--
-- Name: graph_threads num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: tzzr
--

ALTER TABLE ONLY tzzr_chat_ai.graph_threads ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.graph_threads_num_seq'::regclass);


--
-- Name: graph_workspace num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.graph_workspace ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.graph_workspace_num_seq'::regclass);


--
-- Name: library_actions num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.library_actions ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.library_actions_num_seq'::regclass);


--
-- Name: library_curated_context num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.library_curated_context ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.library_curated_context_num_seq'::regclass);


--
-- Name: library_embeddings num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.library_embeddings ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.library_embeddings_num_seq'::regclass);


--
-- Name: library_enrichment num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.library_enrichment ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.library_enrichment_num_seq'::regclass);


--
-- Name: library_extracted num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.library_extracted ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.library_extracted_num_seq'::regclass);


--
-- Name: library_threads num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: tzzr
--

ALTER TABLE ONLY tzzr_chat_ai.library_threads ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.library_threads_num_seq'::regclass);


--
-- Name: library_workspace num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.library_workspace ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.library_workspace_num_seq'::regclass);


--
-- Name: tree_actions num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.tree_actions ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.tree_actions_num_seq'::regclass);


--
-- Name: tree_curated_context num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.tree_curated_context ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.tree_curated_context_num_seq'::regclass);


--
-- Name: tree_embeddings num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.tree_embeddings ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.tree_embeddings_num_seq'::regclass);


--
-- Name: tree_enrichment num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.tree_enrichment ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.tree_enrichment_num_seq'::regclass);


--
-- Name: tree_extracted num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.tree_extracted ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.tree_extracted_num_seq'::regclass);


--
-- Name: tree_threads num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: tzzr
--

ALTER TABLE ONLY tzzr_chat_ai.tree_threads ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.tree_threads_num_seq'::regclass);


--
-- Name: tree_workspace num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.tree_workspace ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.tree_workspace_num_seq'::regclass);


--
-- Name: workspace num; Type: DEFAULT; Schema: tzzr_chat_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_chat_ai.workspace ALTER COLUMN num SET DEFAULT nextval('tzzr_chat_ai.workspace_num_seq'::regclass);


--
-- Name: mail num; Type: DEFAULT; Schema: tzzr_communications; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications.mail ALTER COLUMN num SET DEFAULT nextval('tzzr_communications.mail_num_seq'::regclass);


--
-- Name: draft_profile_rules num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.draft_profile_rules ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.draft_profile_rules_num_seq'::regclass);


--
-- Name: draft_profiles num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.draft_profiles ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.draft_profiles_num_seq'::regclass);


--
-- Name: draft_tones num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.draft_tones ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.draft_tones_num_seq'::regclass);


--
-- Name: graph_actions num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.graph_actions ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.graph_actions_num_seq'::regclass);


--
-- Name: graph_drafts num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.graph_drafts ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.graph_drafts_num_seq'::regclass);


--
-- Name: graph_embeddings num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.graph_embeddings ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.graph_embeddings_num_seq'::regclass);


--
-- Name: graph_enrichment num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.graph_enrichment ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.graph_enrichment_num_seq'::regclass);


--
-- Name: graph_extracted num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.graph_extracted ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.graph_extracted_num_seq'::regclass);


--
-- Name: graph_source num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.graph_source ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.graph_source_num_seq'::regclass);


--
-- Name: graph_workspace num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.graph_workspace ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.graph_workspace_num_seq'::regclass);


--
-- Name: library_actions num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.library_actions ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.library_actions_num_seq'::regclass);


--
-- Name: library_drafts num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.library_drafts ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.library_drafts_num_seq'::regclass);


--
-- Name: library_embeddings num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.library_embeddings ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.library_embeddings_num_seq'::regclass);


--
-- Name: library_enrichment num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.library_enrichment ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.library_enrichment_num_seq'::regclass);


--
-- Name: library_extracted num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.library_extracted ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.library_extracted_num_seq'::regclass);


--
-- Name: library_source num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.library_source ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.library_source_num_seq'::regclass);


--
-- Name: library_workspace num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.library_workspace ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.library_workspace_num_seq'::regclass);


--
-- Name: mail_actions num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_actions ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.mail_actions_num_seq'::regclass);


--
-- Name: mail_ai_workspace num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_ai_workspace ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.mail_ai_workspace_num_seq'::regclass);


--
-- Name: mail_drafts num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_drafts ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.mail_drafts_num_seq'::regclass);


--
-- Name: mail_embeddings num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_embeddings ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.mail_embeddings_num_seq'::regclass);


--
-- Name: mail_enrichment num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_enrichment ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.mail_enrichment_num_seq'::regclass);


--
-- Name: mail_extracted num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_extracted ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.mail_extracted_num_seq'::regclass);


--
-- Name: mail_source num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.mail_source ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.mail_source_num_seq'::regclass);


--
-- Name: tree_actions num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.tree_actions ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.tree_actions_num_seq'::regclass);


--
-- Name: tree_drafts num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.tree_drafts ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.tree_drafts_num_seq'::regclass);


--
-- Name: tree_embeddings num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.tree_embeddings ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.tree_embeddings_num_seq'::regclass);


--
-- Name: tree_enrichment num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.tree_enrichment ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.tree_enrichment_num_seq'::regclass);


--
-- Name: tree_extracted num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.tree_extracted ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.tree_extracted_num_seq'::regclass);


--
-- Name: tree_source num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.tree_source ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.tree_source_num_seq'::regclass);


--
-- Name: tree_workspace num; Type: DEFAULT; Schema: tzzr_communications_ai; Owner: postgres
--

ALTER TABLE ONLY tzzr_communications_ai.tree_workspace ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_ai.tree_workspace_num_seq'::regclass);


--
-- Name: collection num; Type: DEFAULT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.collection ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_str.collection_num_seq'::regclass);


--
-- Name: domains id; Type: DEFAULT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.domains ALTER COLUMN id SET DEFAULT nextval('tzzr_communications_str.domains_id_seq'::regclass);


--
-- Name: folders id; Type: DEFAULT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.folders ALTER COLUMN id SET DEFAULT nextval('tzzr_communications_str.folders_id_seq'::regclass);


--
-- Name: graph_chat num; Type: DEFAULT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.graph_chat ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_str.graph_chat_num_seq'::regclass);


--
-- Name: graph_mail num; Type: DEFAULT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.graph_mail ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_str.graph_mail_num_seq'::regclass);


--
-- Name: inbox id; Type: DEFAULT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.inbox ALTER COLUMN id SET DEFAULT nextval('tzzr_communications_str.inbox_id_seq'::regclass);


--
-- Name: library_chat num; Type: DEFAULT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.library_chat ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_str.library_chat_num_seq'::regclass);


--
-- Name: library_mail num; Type: DEFAULT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.library_mail ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_str.library_mail_num_seq'::regclass);


--
-- Name: mail_accounts id; Type: DEFAULT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.mail_accounts ALTER COLUMN id SET DEFAULT nextval('tzzr_communications_str.mail_accounts_id_seq'::regclass);


--
-- Name: mail_aliases id; Type: DEFAULT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.mail_aliases ALTER COLUMN id SET DEFAULT nextval('tzzr_communications_str.mail_aliases_id_seq'::regclass);


--
-- Name: mail_group_members id; Type: DEFAULT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.mail_group_members ALTER COLUMN id SET DEFAULT nextval('tzzr_communications_str.mail_group_members_id_seq'::regclass);


--
-- Name: mail_groups id; Type: DEFAULT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.mail_groups ALTER COLUMN id SET DEFAULT nextval('tzzr_communications_str.mail_groups_id_seq'::regclass);


--
-- Name: mail_identity id; Type: DEFAULT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.mail_identity ALTER COLUMN id SET DEFAULT nextval('tzzr_communications_str.mail_identity_id_seq'::regclass);


--
-- Name: mail_permissions id; Type: DEFAULT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.mail_permissions ALTER COLUMN id SET DEFAULT nextval('tzzr_communications_str.mail_permissions_id_seq'::regclass);


--
-- Name: short_urls id; Type: DEFAULT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.short_urls ALTER COLUMN id SET DEFAULT nextval('tzzr_communications_str.short_urls_id_seq'::regclass);


--
-- Name: tree_chat num; Type: DEFAULT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.tree_chat ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_str.tree_chat_num_seq'::regclass);


--
-- Name: tree_mail num; Type: DEFAULT; Schema: tzzr_communications_str; Owner: tzzr
--

ALTER TABLE ONLY tzzr_communications_str.tree_mail ALTER COLUMN num SET DEFAULT nextval('tzzr_communications_str.tree_mail_num_seq'::regclass);


--
-- Name: ai_services id; Type: DEFAULT; Schema: tzzr_connection; Owner: postgres
--

ALTER TABLE ONLY tzzr_connection.ai_services ALTER COLUMN id SET DEFAULT nextval('tzzr_connection.ai_services_id_seq'::regclass);


--
-- Name: bck num; Type: DEFAULT; Schema: tzzr_core_administracion; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_administracion.bck ALTER COLUMN num SET DEFAULT nextval('tzzr_core_administracion.bck_num_seq'::regclass);


--
-- Name: graph_bck num; Type: DEFAULT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.graph_bck ALTER COLUMN num SET DEFAULT nextval('tzzr_core_administracion.graph_bck_num_seq'::regclass);


--
-- Name: graph_mst num; Type: DEFAULT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.graph_mst ALTER COLUMN num SET DEFAULT nextval('tzzr_core_administracion.graph_mst_num_seq'::regclass);


--
-- Name: library_bck num; Type: DEFAULT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.library_bck ALTER COLUMN num SET DEFAULT nextval('tzzr_core_administracion.library_bck_num_seq'::regclass);


--
-- Name: library_mst num; Type: DEFAULT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.library_mst ALTER COLUMN num SET DEFAULT nextval('tzzr_core_administracion.library_mst_num_seq'::regclass);


--
-- Name: mst num; Type: DEFAULT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.mst ALTER COLUMN num SET DEFAULT nextval('tzzr_core_administracion.mst_num_seq'::regclass);


--
-- Name: tree_bck num; Type: DEFAULT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.tree_bck ALTER COLUMN num SET DEFAULT nextval('tzzr_core_administracion.tree_bck_num_seq'::regclass);


--
-- Name: tree_mst num; Type: DEFAULT; Schema: tzzr_core_administracion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_administracion.tree_mst ALTER COLUMN num SET DEFAULT nextval('tzzr_core_administracion.tree_mst_num_seq'::regclass);


--
-- Name: bck num; Type: DEFAULT; Schema: tzzr_core_contabilidad; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_contabilidad.bck ALTER COLUMN num SET DEFAULT nextval('tzzr_core_contabilidad.bck_num_seq'::regclass);


--
-- Name: graph_bck num; Type: DEFAULT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.graph_bck ALTER COLUMN num SET DEFAULT nextval('tzzr_core_contabilidad.graph_bck_num_seq'::regclass);


--
-- Name: graph_mst num; Type: DEFAULT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.graph_mst ALTER COLUMN num SET DEFAULT nextval('tzzr_core_contabilidad.graph_mst_num_seq'::regclass);


--
-- Name: library_bck num; Type: DEFAULT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.library_bck ALTER COLUMN num SET DEFAULT nextval('tzzr_core_contabilidad.library_bck_num_seq'::regclass);


--
-- Name: library_mst num; Type: DEFAULT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.library_mst ALTER COLUMN num SET DEFAULT nextval('tzzr_core_contabilidad.library_mst_num_seq'::regclass);


--
-- Name: mst num; Type: DEFAULT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.mst ALTER COLUMN num SET DEFAULT nextval('tzzr_core_contabilidad.mst_num_seq'::regclass);


--
-- Name: tree_bck num; Type: DEFAULT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.tree_bck ALTER COLUMN num SET DEFAULT nextval('tzzr_core_contabilidad.tree_bck_num_seq'::regclass);


--
-- Name: tree_mst num; Type: DEFAULT; Schema: tzzr_core_contabilidad; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_contabilidad.tree_mst ALTER COLUMN num SET DEFAULT nextval('tzzr_core_contabilidad.tree_mst_num_seq'::regclass);


--
-- Name: flg num; Type: DEFAULT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.flg ALTER COLUMN num SET DEFAULT nextval('tzzr_core_hst.flg_num_seq'::regclass);


--
-- Name: graph_flg num; Type: DEFAULT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.graph_flg ALTER COLUMN num SET DEFAULT nextval('tzzr_core_hst.graph_flg_id_seq'::regclass);


--
-- Name: graph_hst num; Type: DEFAULT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.graph_hst ALTER COLUMN num SET DEFAULT nextval('tzzr_core_hst.graph_id_seq'::regclass);


--
-- Name: hst num; Type: DEFAULT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.hst ALTER COLUMN num SET DEFAULT nextval('tzzr_core_hst.hst_num_seq'::regclass);


--
-- Name: library_flg num; Type: DEFAULT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.library_flg ALTER COLUMN num SET DEFAULT nextval('tzzr_core_hst.library_flg_id_seq'::regclass);


--
-- Name: library_hst num; Type: DEFAULT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.library_hst ALTER COLUMN num SET DEFAULT nextval('tzzr_core_hst.library_id_seq'::regclass);


--
-- Name: tree_flg num; Type: DEFAULT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.tree_flg ALTER COLUMN num SET DEFAULT nextval('tzzr_core_hst.tree_flg_id_seq'::regclass);


--
-- Name: tree_hst num; Type: DEFAULT; Schema: tzzr_core_hst; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_hst.tree_hst ALTER COLUMN num SET DEFAULT nextval('tzzr_core_hst.tree_id_seq'::regclass);


--
-- Name: graph_itm num; Type: DEFAULT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.graph_itm ALTER COLUMN num SET DEFAULT nextval('tzzr_core_itm_base.graph_itm_num_seq'::regclass);


--
-- Name: graph_loc num; Type: DEFAULT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.graph_loc ALTER COLUMN num SET DEFAULT nextval('tzzr_core_itm_base.graph_loc_num_seq'::regclass);


--
-- Name: graph_ply num; Type: DEFAULT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.graph_ply ALTER COLUMN num SET DEFAULT nextval('tzzr_core_itm_base.graph_ply_num_seq'::regclass);


--
-- Name: group_itm num; Type: DEFAULT; Schema: tzzr_core_itm_base; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_itm_base.group_itm ALTER COLUMN num SET DEFAULT nextval('tzzr_core_itm_base.group_itm_num_seq'::regclass);


--
-- Name: group_loc num; Type: DEFAULT; Schema: tzzr_core_itm_base; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_itm_base.group_loc ALTER COLUMN num SET DEFAULT nextval('tzzr_core_itm_base.group_loc_num_seq'::regclass);


--
-- Name: group_ply num; Type: DEFAULT; Schema: tzzr_core_itm_base; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_itm_base.group_ply ALTER COLUMN num SET DEFAULT nextval('tzzr_core_itm_base.group_ply_num_seq'::regclass);


--
-- Name: itm num; Type: DEFAULT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.itm ALTER COLUMN num SET DEFAULT nextval('tzzr_core_itm_base.itm_num_seq'::regclass);


--
-- Name: library_itm num; Type: DEFAULT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.library_itm ALTER COLUMN num SET DEFAULT nextval('tzzr_core_itm_base.library_itm_num_seq'::regclass);


--
-- Name: library_loc num; Type: DEFAULT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.library_loc ALTER COLUMN num SET DEFAULT nextval('tzzr_core_itm_base.library_loc_num_seq'::regclass);


--
-- Name: library_ply num; Type: DEFAULT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.library_ply ALTER COLUMN num SET DEFAULT nextval('tzzr_core_itm_base.library_ply_num_seq'::regclass);


--
-- Name: loc num; Type: DEFAULT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.loc ALTER COLUMN num SET DEFAULT nextval('tzzr_core_itm_base.loc_num_seq'::regclass);


--
-- Name: ply num; Type: DEFAULT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.ply ALTER COLUMN num SET DEFAULT nextval('tzzr_core_itm_base.ply_num_seq'::regclass);


--
-- Name: ply_agent_llm_map num; Type: DEFAULT; Schema: tzzr_core_itm_base; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_itm_base.ply_agent_llm_map ALTER COLUMN num SET DEFAULT nextval('tzzr_core_itm_base.ply_agent_llm_map_num_seq'::regclass);


--
-- Name: tree_itm num; Type: DEFAULT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.tree_itm ALTER COLUMN num SET DEFAULT nextval('tzzr_core_itm_base.tree_itm_num_seq'::regclass);


--
-- Name: tree_loc num; Type: DEFAULT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.tree_loc ALTER COLUMN num SET DEFAULT nextval('tzzr_core_itm_base.tree_loc_num_seq'::regclass);


--
-- Name: tree_ply num; Type: DEFAULT; Schema: tzzr_core_itm_base; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_itm_base.tree_ply ALTER COLUMN num SET DEFAULT nextval('tzzr_core_itm_base.tree_ply_num_seq'::regclass);


--
-- Name: graph_bck num; Type: DEFAULT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.graph_bck ALTER COLUMN num SET DEFAULT nextval('tzzr_core_oracle.graph_bck_num_seq'::regclass);


--
-- Name: graph_mst num; Type: DEFAULT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.graph_mst ALTER COLUMN num SET DEFAULT nextval('tzzr_core_oracle.graph_mst_num_seq'::regclass);


--
-- Name: library_bck num; Type: DEFAULT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.library_bck ALTER COLUMN num SET DEFAULT nextval('tzzr_core_oracle.library_bck_num_seq'::regclass);


--
-- Name: library_mst num; Type: DEFAULT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.library_mst ALTER COLUMN num SET DEFAULT nextval('tzzr_core_oracle.library_mst_num_seq'::regclass);


--
-- Name: mst num; Type: DEFAULT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.mst ALTER COLUMN num SET DEFAULT nextval('tzzr_core_oracle.mst_num_seq'::regclass);


--
-- Name: tree_bck num; Type: DEFAULT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.tree_bck ALTER COLUMN num SET DEFAULT nextval('tzzr_core_oracle.tree_bck_num_seq'::regclass);


--
-- Name: tree_mst num; Type: DEFAULT; Schema: tzzr_core_oracle; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_oracle.tree_mst ALTER COLUMN num SET DEFAULT nextval('tzzr_core_oracle.tree_mst_num_seq'::regclass);


--
-- Name: graph_mth num; Type: DEFAULT; Schema: tzzr_core_produccion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_produccion.graph_mth ALTER COLUMN num SET DEFAULT nextval('tzzr_core_produccion.graph_mth_num_seq'::regclass);


--
-- Name: library_mth num; Type: DEFAULT; Schema: tzzr_core_produccion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_produccion.library_mth ALTER COLUMN num SET DEFAULT nextval('tzzr_core_produccion.library_mth_num_seq'::regclass);


--
-- Name: mth num; Type: DEFAULT; Schema: tzzr_core_produccion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_produccion.mth ALTER COLUMN num SET DEFAULT nextval('tzzr_core_produccion.mth_num_seq'::regclass);


--
-- Name: tree_mth num; Type: DEFAULT; Schema: tzzr_core_produccion; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_produccion.tree_mth ALTER COLUMN num SET DEFAULT nextval('tzzr_core_produccion.tree_mth_num_seq'::regclass);


--
-- Name: bck num; Type: DEFAULT; Schema: tzzr_core_secretaria; Owner: tzzr
--

ALTER TABLE ONLY tzzr_core_secretaria.bck ALTER COLUMN num SET DEFAULT nextval('tzzr_core_secretaria.bck_num_seq'::regclass);


--
-- Name: graph_bck num; Type: DEFAULT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.graph_bck ALTER COLUMN num SET DEFAULT nextval('tzzr_core_secretaria.graph_bck_num_seq'::regclass);


--
-- Name: graph_mst num; Type: DEFAULT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.graph_mst ALTER COLUMN num SET DEFAULT nextval('tzzr_core_secretaria.graph_mst_num_seq'::regclass);


--
-- Name: library_bck num; Type: DEFAULT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.library_bck ALTER COLUMN num SET DEFAULT nextval('tzzr_core_secretaria.library_bck_num_seq'::regclass);


--
-- Name: library_mst num; Type: DEFAULT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.library_mst ALTER COLUMN num SET DEFAULT nextval('tzzr_core_secretaria.library_mst_num_seq'::regclass);


--
-- Name: mst num; Type: DEFAULT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.mst ALTER COLUMN num SET DEFAULT nextval('tzzr_core_secretaria.mst_num_seq'::regclass);


--
-- Name: tree_bck num; Type: DEFAULT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.tree_bck ALTER COLUMN num SET DEFAULT nextval('tzzr_core_secretaria.tree_bck_num_seq'::regclass);


--
-- Name: tree_mst num; Type: DEFAULT; Schema: tzzr_core_secretaria; Owner: postgres
--

ALTER TABLE ONLY tzzr_core_secretaria.tree_mst ALTER COLUMN num SET DEFAULT nextval('tzzr_core_secretaria.tree_mst_num_seq'::regclass);


--
-- Name: agent_llm num; Type: DEFAULT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.agent_llm ALTER COLUMN num SET DEFAULT nextval('tzzr_iachat.agent_llm_num_seq'::regclass);


--
-- Name: flow num; Type: DEFAULT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.flow ALTER COLUMN num SET DEFAULT nextval('tzzr_iachat.flow_num_seq'::regclass);


--
-- Name: flow_edge num; Type: DEFAULT; Schema: tzzr_iachat; Owner: postgres
--

ALTER TABLE ONLY tzzr_iachat.flow_edge ALTER COLUMN num SET DEFAULT nextval('tzzr_iachat.flow_edge_num_seq'::regclass);


--
-- Name: flow_execution num; Type: DEFAULT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.flow_execution ALTER COLUMN num SET DEFAULT nextval('tzzr_iachat.flow_execution_num_seq'::regclass);


--
-- Name: flow_step num; Type: DEFAULT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.flow_step ALTER COLUMN num SET DEFAULT nextval('tzzr_iachat.flow_step_num_seq'::regclass);


--
-- Name: flow_step_execution num; Type: DEFAULT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.flow_step_execution ALTER COLUMN num SET DEFAULT nextval('tzzr_iachat.flow_step_execution_num_seq'::regclass);


--
-- Name: message num; Type: DEFAULT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.message ALTER COLUMN num SET DEFAULT nextval('tzzr_iachat.message_num_seq'::regclass);


--
-- Name: project num; Type: DEFAULT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.project ALTER COLUMN num SET DEFAULT nextval('tzzr_iachat.project_num_seq'::regclass);


--
-- Name: session num; Type: DEFAULT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.session ALTER COLUMN num SET DEFAULT nextval('tzzr_iachat.session_num_seq'::regclass);


--
-- Name: session_dataset num; Type: DEFAULT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.session_dataset ALTER COLUMN num SET DEFAULT nextval('tzzr_iachat.session_dataset_num_seq'::regclass);


--
-- Name: terminal_whitelist num; Type: DEFAULT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.terminal_whitelist ALTER COLUMN num SET DEFAULT nextval('tzzr_iachat.terminal_whitelist_num_seq'::regclass);


--
-- Name: threads num; Type: DEFAULT; Schema: tzzr_iachat; Owner: tzzr
--

ALTER TABLE ONLY tzzr_iachat.threads ALTER COLUMN num SET DEFAULT nextval('tzzr_iachat.threads_num_seq'::regclass);


--
-- Name: attachment id; Type: DEFAULT; Schema: tzzr_list; Owner: tzzr
--

ALTER TABLE ONLY tzzr_list.attachment ALTER COLUMN id SET DEFAULT nextval('tzzr_list.attachment_id_seq'::regclass);


--
-- Name: item id; Type: DEFAULT; Schema: tzzr_list; Owner: tzzr
--

ALTER TABLE ONLY tzzr_list.item ALTER COLUMN id SET DEFAULT nextval('tzzr_list.item_id_seq'::regclass);


--
-- Name: list id; Type: DEFAULT; Schema: tzzr_list; Owner: tzzr
--

ALTER TABLE ONLY tzzr_list.list ALTER COLUMN id SET DEFAULT nextval('tzzr_list.list_id_seq'::regclass);


--
-- Name: bucket_access_log id; Type: DEFAULT; Schema: tzzr_storage; Owner: postgres
--

ALTER TABLE ONLY tzzr_storage.bucket_access_log ALTER COLUMN id SET DEFAULT nextval('tzzr_storage.bucket_access_log_id_seq'::regclass);


--
-- Name: graph_atc num; Type: DEFAULT; Schema: tzzr_storage; Owner: postgres
--

ALTER TABLE ONLY tzzr_storage.graph_atc ALTER COLUMN num SET DEFAULT nextval('tzzr_storage.graph_atc_num_seq'::regclass);


--
-- Name: library_atc num; Type: DEFAULT; Schema: tzzr_storage; Owner: postgres
--

ALTER TABLE ONLY tzzr_storage.library_atc ALTER COLUMN num SET DEFAULT nextval('tzzr_storage.library_atc_num_seq'::regclass);


--
-- Name: tree_atc num; Type: DEFAULT; Schema: tzzr_storage; Owner: postgres
--

ALTER TABLE ONLY tzzr_storage.tree_atc ALTER COLUMN num SET DEFAULT nextval('tzzr_storage.tree_atc_num_seq'::regclass);


--
-- Name: keys id; Type: DEFAULT; Schema: tzzr_system; Owner: postgres
--

ALTER TABLE ONLY tzzr_system.keys ALTER COLUMN id SET DEFAULT nextval('tzzr_system.keys_id_seq'::regclass);


--
-- Name: user_keys id; Type: DEFAULT; Schema: tzzr_system; Owner: tzzr
--

ALTER TABLE ONLY tzzr_system.user_keys ALTER COLUMN id SET DEFAULT nextval('tzzr_system.user_keys_id_seq'::regclass);


--
-- Name: user_notes id; Type: DEFAULT; Schema: tzzr_system; Owner: tzzr
--

ALTER TABLE ONLY tzzr_system.user_notes ALTER COLUMN id SET DEFAULT nextval('tzzr_system.user_notes_id_seq'::regclass);


--
-- Name: gate_user id; Type: DEFAULT; Schema: usr; Owner: postgres
--

ALTER TABLE ONLY usr.gate_user ALTER COLUMN id SET DEFAULT nextval('usr.gate_user_id_seq'::regclass);


--
-- Data for Name: context_weights; Type: TABLE DATA; Schema: cto; Owner: tzzr
--

COPY cto.context_weights (uuid, thread_uuid, target_uuid, target_type, weight, reason, assigned_by, created_at) FROM stdin;
\.


--
-- Data for Name: messages; Type: TABLE DATA; Schema: cto; Owner: tzzr
--

COPY cto.messages (uuid, thread_uuid, prev_uuid, sender_uuid, receivers, role, message_type, content, sources, absorbs, model_id, tokens_in, tokens_out, context_received, context_useful, context_irrelevant, feedback_notes, created_at) FROM stdin;
\.


--
-- Data for Name: players; Type: TABLE DATA; Schema: cto; Owner: tzzr
--

COPY cto.players (uuid, type, name, model_id, config, created_at) FROM stdin;
00000000-0000-0000-0000-000000000001	system	SYSTEM	\N	{}	2026-01-25 02:45:14.551641+00
00000000-0000-0000-0000-000000000002	user	Usuario	\N	{}	2026-01-25 02:45:14.554396+00
00000000-0000-0000-0000-000000000003	model	Claude Principal	claude-opus-4-5-20251101	{}	2026-01-25 02:45:14.55528+00
00000000-0000-0000-0000-000000000004	agent	Gestor Contexto	claude-sonnet-4-20250514	{}	2026-01-25 02:45:14.556267+00
f57a81b2-b7f7-47a4-87ad-7efa8cd2f383	gestor	CTO Gestor	claude-opus-4	{"role": "context_manager"}	2026-01-25 21:35:35.848554+00
\.


--
-- Data for Name: thread_documents; Type: TABLE DATA; Schema: cto; Owner: tzzr
--

COPY cto.thread_documents (uuid, thread_uuid, source, path, context_index, added_by, promoted_from, created_at) FROM stdin;
\.


--
-- Data for Name: threads; Type: TABLE DATA; Schema: cto; Owner: tzzr
--

COPY cto.threads (uuid, parent_uuid, server_id, name, hashtags, status, created_at) FROM stdin;
9f9208b3-1275-411f-80e2-6de8a432c14c	\N	MODELO-CERO	GESTOR_STATE	{}	system	2026-01-25 21:36:08.410697+00
\.


--
-- Data for Name: exe; Type: TABLE DATA; Schema: production_alfred; Owner: postgres
--

COPY production_alfred.exe (num, mrf, mth_mrf, wm_job_id, status, input_data, output_data, error_msg, started_at, finished_at, duration_ms, retry_count, parent_exe_mrf, set_hst, etiquetas, created_at) FROM stdin;
\.


--
-- Data for Name: mth_backup_260228; Type: TABLE DATA; Schema: production_alfred; Owner: postgres
--

COPY production_alfred.mth_backup_260228 (num, mrf, alias, name_es, name_en, description, wm_path, wm_workspace, wm_type, trigger_type, trigger_config, input_schema, output_schema, timeout_ms, retry_policy, dependencies, set_hst, etiquetas, enabled, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: rule_log; Type: TABLE DATA; Schema: production_alfred; Owner: postgres
--

COPY production_alfred.rule_log (num, rule_mrf, mail_mrf, action_taken, action_data, executed_at) FROM stdin;
\.


--
-- Data for Name: rules; Type: TABLE DATA; Schema: production_alfred; Owner: postgres
--

COPY production_alfred.rules (num, mrf, rule_text, compiled_logic, actions, scope, priority, enabled, last_run, matches_total, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: agent_description; Type: TABLE DATA; Schema: tzzr_ai; Owner: postgres
--

COPY tzzr_ai.agent_description (num, mrf, agent_mrf, content, version, active, model, set_hst, etiquetas, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: dataset; Type: TABLE DATA; Schema: tzzr_ai; Owner: postgres
--

COPY tzzr_ai.dataset (num, mrf, alias, txt, set_hst, hashtags, jsonb_data, owner, created_at) FROM stdin;
\.


--
-- Data for Name: library_agent; Type: TABLE DATA; Schema: tzzr_ai; Owner: postgres
--

COPY tzzr_ai.library_agent (num, mrf_library, mrf_child, created_at) FROM stdin;
\.


--
-- Data for Name: library_model; Type: TABLE DATA; Schema: tzzr_ai; Owner: postgres
--

COPY tzzr_ai.library_model (num, mrf_library, mrf_child, created_at) FROM stdin;
1	chat	23a89e4af4b3e900efc05d182d82c852	2026-03-01 02:43:59.721416+00
2	chat	7a595d2d2d06fbc67195b74fe47b1065	2026-03-01 02:43:59.721416+00
3	chat	cdb6e886f55b03fc786e5ec7ab7bf91f	2026-03-01 02:43:59.721416+00
4	chat	de072eaa1a7d815eda974dd54a45a744	2026-03-01 02:43:59.721416+00
5	chat	f57fb0af15e0bf0772c27283bbb7d8f1	2026-03-01 02:43:59.721416+00
6	chat	901b2389c4b9b1b2ef8ec4741b37318f	2026-03-01 02:43:59.721416+00
7	chat	f9b12c422cdf3a701cccf1fd38fae662	2026-03-01 02:43:59.721416+00
8	chat	22fcd51ad696948f58096a276e75f74a	2026-03-01 02:43:59.721416+00
9	chat	5c322d9cc00a982c70d8a3bbc65318e9	2026-03-01 02:43:59.721416+00
10	chat	4629ed8e0c97f09b8ada68e0653e2b1b	2026-03-01 02:43:59.721416+00
11	chat	c802c877b9921915eca72f714443ca6e	2026-03-01 02:43:59.721416+00
12	chat	5c2d08c5c20b1b8e65ea30e32e92fde2	2026-03-01 02:43:59.721416+00
13	chat	1a3097fbf8a5da5073c01874b54df1ba	2026-03-01 02:43:59.721416+00
14	chat	4948490be94657ea6797ec28993c183b	2026-03-01 02:43:59.721416+00
15	chat	cb2b4bdac6cc9fea948dfd790c697d0b	2026-03-01 02:43:59.721416+00
16	chat	8033345f2e69dfd74f73ae31224258b4	2026-03-01 02:43:59.721416+00
17	chat	e0303b1e7ee2727e263a192353b001f8	2026-03-01 02:43:59.721416+00
18	chat	ccabcb2e920bd3e6645a60d6089bc898	2026-03-01 02:43:59.721416+00
19	chat	d6fc98c42facf0970550a2123535b48e	2026-03-01 02:43:59.721416+00
20	chat	7e845a4c03c73cd37d828a7e7ee3d8f7	2026-03-01 02:43:59.721416+00
21	chat	79a154188a068e109633ba827396d92f	2026-03-01 02:43:59.721416+00
22	chat	da5cc2d76eee4e3c86e62cce02406710	2026-03-01 02:43:59.721416+00
23	chat	d253975998924e6102ab4c3f9fcff487	2026-03-01 02:43:59.721416+00
\.


--
-- Data for Name: library_setup_agent; Type: TABLE DATA; Schema: tzzr_ai; Owner: postgres
--

COPY tzzr_ai.library_setup_agent (num, mrf_library, mrf_child, created_at) FROM stdin;
\.


--
-- Data for Name: library_setup_model; Type: TABLE DATA; Schema: tzzr_ai; Owner: postgres
--

COPY tzzr_ai.library_setup_model (num, mrf_library, mrf_child, created_at) FROM stdin;
1	f5086d0751c6c503fa1669b812ef6421	23a89e4af4b3e900efc05d182d82c852	2026-03-01 02:53:58.707885+00
2	f5086d0751c6c503fa1669b812ef6421	7a595d2d2d06fbc67195b74fe47b1065	2026-03-01 02:53:58.707885+00
3	f5086d0751c6c503fa1669b812ef6421	cdb6e886f55b03fc786e5ec7ab7bf91f	2026-03-01 02:53:58.707885+00
4	f5086d0751c6c503fa1669b812ef6421	de072eaa1a7d815eda974dd54a45a744	2026-03-01 02:53:58.707885+00
5	f5086d0751c6c503fa1669b812ef6421	f57fb0af15e0bf0772c27283bbb7d8f1	2026-03-01 02:53:58.707885+00
6	f5086d0751c6c503fa1669b812ef6421	901b2389c4b9b1b2ef8ec4741b37318f	2026-03-01 02:53:58.707885+00
7	f5086d0751c6c503fa1669b812ef6421	f9b12c422cdf3a701cccf1fd38fae662	2026-03-01 02:53:58.707885+00
8	f5086d0751c6c503fa1669b812ef6421	22fcd51ad696948f58096a276e75f74a	2026-03-01 02:53:58.707885+00
9	f5086d0751c6c503fa1669b812ef6421	5c322d9cc00a982c70d8a3bbc65318e9	2026-03-01 02:53:58.707885+00
10	f5086d0751c6c503fa1669b812ef6421	4629ed8e0c97f09b8ada68e0653e2b1b	2026-03-01 02:53:58.707885+00
11	f5086d0751c6c503fa1669b812ef6421	c802c877b9921915eca72f714443ca6e	2026-03-01 02:53:58.707885+00
12	f5086d0751c6c503fa1669b812ef6421	5c2d08c5c20b1b8e65ea30e32e92fde2	2026-03-01 02:53:58.707885+00
13	f5086d0751c6c503fa1669b812ef6421	1a3097fbf8a5da5073c01874b54df1ba	2026-03-01 02:53:58.707885+00
14	f5086d0751c6c503fa1669b812ef6421	4948490be94657ea6797ec28993c183b	2026-03-01 02:53:58.707885+00
15	f5086d0751c6c503fa1669b812ef6421	cb2b4bdac6cc9fea948dfd790c697d0b	2026-03-01 02:53:58.707885+00
16	f5086d0751c6c503fa1669b812ef6421	8033345f2e69dfd74f73ae31224258b4	2026-03-01 02:53:58.707885+00
17	f5086d0751c6c503fa1669b812ef6421	e0303b1e7ee2727e263a192353b001f8	2026-03-01 02:53:58.707885+00
18	f5086d0751c6c503fa1669b812ef6421	ccabcb2e920bd3e6645a60d6089bc898	2026-03-01 02:53:58.707885+00
19	f5086d0751c6c503fa1669b812ef6421	d6fc98c42facf0970550a2123535b48e	2026-03-01 02:53:58.707885+00
20	f5086d0751c6c503fa1669b812ef6421	7e845a4c03c73cd37d828a7e7ee3d8f7	2026-03-01 02:53:58.707885+00
21	f5086d0751c6c503fa1669b812ef6421	79a154188a068e109633ba827396d92f	2026-03-01 02:53:58.707885+00
22	f5086d0751c6c503fa1669b812ef6421	da5cc2d76eee4e3c86e62cce02406710	2026-03-01 02:53:58.707885+00
23	f5086d0751c6c503fa1669b812ef6421	d253975998924e6102ab4c3f9fcff487	2026-03-01 02:53:58.707885+00
\.


--
-- Data for Name: model; Type: TABLE DATA; Schema: tzzr_ai; Owner: postgres
--

COPY tzzr_ai.model (num, mrf, provider_mrf, model_id, display_name, type, enabled, is_default, config, set_hst, etiquetas, created_at, updated_at, alias, hashtags) FROM stdin;
1	23a89e4af4b3e900efc05d182d82c852	eda7b4ae7d11fbdef881f0f057593629	gpt-4o-mini	GPT-4o Mini	chat	t	t	{}	\N	[]	2026-02-28 12:47:46.288649+00	2026-02-28 12:47:46.288649+00	\N	\N
2	7a595d2d2d06fbc67195b74fe47b1065	eda7b4ae7d11fbdef881f0f057593629	gpt-4o	GPT-4o	chat	t	f	{}	\N	[]	2026-02-28 12:47:46.288649+00	2026-02-28 12:47:46.288649+00	\N	\N
3	cdb6e886f55b03fc786e5ec7ab7bf91f	eda7b4ae7d11fbdef881f0f057593629	claude-sonnet-4-6	Claude Sonnet 4.6	chat	t	f	{}	\N	[]	2026-02-28 12:47:46.288649+00	2026-02-28 12:47:46.288649+00	\N	\N
4	de072eaa1a7d815eda974dd54a45a744	eda7b4ae7d11fbdef881f0f057593629	gemini-2.5-flash	Gemini 2.5 Flash	chat	t	f	{}	\N	[]	2026-02-28 12:47:46.288649+00	2026-02-28 12:47:46.288649+00	\N	\N
5	7e50573d15d7674d3fe330e3c6cacd6f	eda7b4ae7d11fbdef881f0f057593629	text-embedding-3-small	Embeddings Small	embedding	t	t	{}	\N	[]	2026-02-28 12:47:46.288649+00	2026-02-28 12:47:46.288649+00	\N	\N
9	7eeb09a8d456ff2433e3e03fa58d5b91	2b41c8930394f90c671397e6bbf7d955	runpod/gliner-v2.5-xxl	GLiNER v2.5 XXL (NER)	nlp	t	f	{"task": "NER", "vram": "5 GB", "params": "800M"}	\N	[]	2026-02-28 12:48:25.084313+00	2026-02-28 12:48:25.084313+00	\N	\N
10	fdd396ed5a5a05c2e0e978edc311f413	2b41c8930394f90c671397e6bbf7d955	runpod/sentiment-roberta-large	Sentiment RoBERTa Large	nlp	t	f	{"task": "sentiment", "vram": "2 GB", "params": "355M"}	\N	[]	2026-02-28 12:48:25.084313+00	2026-02-28 12:48:25.084313+00	\N	\N
11	6547a0f858bed4cfa0a7e58602ac74e3	2b41c8930394f90c671397e6bbf7d955	runpod/lightonocr-2-1b	LightOnOCR 2 1B	ocr	t	f	{"task": "OCR", "vram": "4 GB", "params": "1B"}	\N	[]	2026-02-28 12:48:25.084313+00	2026-02-28 12:48:25.084313+00	\N	\N
12	383846e61efbfc5f1ef4f5a1fcec94e1	2b41c8930394f90c671397e6bbf7d955	runpod/grounding-dino-base	Grounding DINO Base	vision	t	f	{"task": "object detection", "vram": "2 GB", "params": "172M"}	\N	[]	2026-02-28 12:48:25.084313+00	2026-02-28 12:48:25.084313+00	\N	\N
13	a20770193e35a704c5e33074a88f5a06	2b41c8930394f90c671397e6bbf7d955	runpod/sam3	SAM 3 (Segmentation)	vision	t	f	{"task": "segmentation", "vram": "12 GB", "params": "840M"}	\N	[]	2026-02-28 12:48:25.084313+00	2026-02-28 12:48:25.084313+00	\N	\N
14	8baabe040228b15375f9c72e1a6a375d	2b41c8930394f90c671397e6bbf7d955	runpod/qwen3-vl-8b-instruct	Qwen3 VL 8B Instruct	vision	t	f	{"task": "VLM", "vram": "18 GB", "params": "8B"}	\N	[]	2026-02-28 12:48:25.084313+00	2026-02-28 12:48:25.084313+00	\N	\N
15	0bf0a8b85762a5e3490fb9ad0c72a425	2b41c8930394f90c671397e6bbf7d955	runpod/qwen3-embedding-0.6b	Qwen3 Embedding 0.6B	embedding	t	f	{"task": "embeddings", "vram": "2 GB", "params": "0.6B"}	\N	[]	2026-02-28 12:48:25.084313+00	2026-02-28 12:48:25.084313+00	\N	\N
16	a7b3c8a9cda280f4416217517a78c641	2b41c8930394f90c671397e6bbf7d955	runpod/flux2-klein-4b	FLUX.2 Klein 4B	image	t	f	{"task": "generation", "vram": "8 GB", "params": "4B"}	\N	[]	2026-02-28 12:48:25.084313+00	2026-02-28 12:48:25.084313+00	\N	\N
17	8bd0b0940f0a1d24fef0767ee1de2dfe	2b41c8930394f90c671397e6bbf7d955	runpod/flux1-fill-dev	FLUX.1 Fill Dev (Inpaint)	image	t	f	{"task": "inpainting", "vram": "20 GB"}	\N	[]	2026-02-28 12:48:25.084313+00	2026-02-28 12:48:25.084313+00	\N	\N
18	2196a696a615faf367418d4ac02d83b8	2b41c8930394f90c671397e6bbf7d955	runpod/supir	SUPIR (Super Resolution)	image	t	f	{"task": "super-resolution", "vram": "12 GB"}	\N	[]	2026-02-28 12:48:25.084313+00	2026-02-28 12:48:25.084313+00	\N	\N
19	35799b3fa1227b729ce8827cc72b2a9a	2b41c8930394f90c671397e6bbf7d955	runpod/wan21-t2v-1.3b	Wan 2.1 T2V 1.3B	video	t	f	{"task": "text-to-video", "vram": "8 GB", "params": "1.3B"}	\N	[]	2026-02-28 12:48:25.084313+00	2026-02-28 12:48:25.084313+00	\N	\N
20	75eab812082da50ae6b7569ac0e4ebdd	2b41c8930394f90c671397e6bbf7d955	runpod/musicgen-large	MusicGen Large	audio	t	f	{"task": "music generation", "vram": "14 GB", "params": "3.3B"}	\N	[]	2026-02-28 12:48:25.084313+00	2026-02-28 12:48:25.084313+00	\N	\N
21	42a42f6484b2e938f90da96ff1bc9671	2b41c8930394f90c671397e6bbf7d955	runpod/trellis2-4b	TRELLIS.2 4B (3D)	3d	t	f	{"task": "3D generation", "vram": "16 GB", "params": "4B"}	\N	[]	2026-02-28 12:48:25.084313+00	2026-02-28 12:48:25.084313+00	\N	\N
22	f57fb0af15e0bf0772c27283bbb7d8f1	28f7c2a8eb7eb59ebc37ed1229e680e8	claude-opus-4-6	Claude Opus 4.6	chat	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
24	901b2389c4b9b1b2ef8ec4741b37318f	28f7c2a8eb7eb59ebc37ed1229e680e8	claude-haiku-4-5-20251001	Claude Haiku 4.5	chat	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
25	f9b12c422cdf3a701cccf1fd38fae662	28f7c2a8eb7eb59ebc37ed1229e680e8	openai/gpt-4.1-2025-04-14	GPT-4.1	chat	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
27	22fcd51ad696948f58096a276e75f74a	28f7c2a8eb7eb59ebc37ed1229e680e8	openai/o4-mini-2025-04-16	o4 Mini	chat	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
28	5c322d9cc00a982c70d8a3bbc65318e9	28f7c2a8eb7eb59ebc37ed1229e680e8	google/gemini-2.5-pro	Gemini 2.5 Pro	chat	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
30	4629ed8e0c97f09b8ada68e0653e2b1b	28f7c2a8eb7eb59ebc37ed1229e680e8	deepseek/deepseek-chat-v3.1	DeepSeek Chat v3.1	chat	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
31	c802c877b9921915eca72f714443ca6e	28f7c2a8eb7eb59ebc37ed1229e680e8	deepseek/deepseek-reasoner-v3.1	DeepSeek Reasoner v3.1	chat	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
32	5c2d08c5c20b1b8e65ea30e32e92fde2	28f7c2a8eb7eb59ebc37ed1229e680e8	x-ai/grok-4-07-09	Grok 4	chat	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
33	1a3097fbf8a5da5073c01874b54df1ba	28f7c2a8eb7eb59ebc37ed1229e680e8	meta-llama/llama-4-maverick	Llama 4 Maverick	chat	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
34	4948490be94657ea6797ec28993c183b	28f7c2a8eb7eb59ebc37ed1229e680e8	alibaba/qwen3-235b-a22b-thinking-2507	Qwen 3 235B Thinking	chat	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
35	cb2b4bdac6cc9fea948dfd790c697d0b	28f7c2a8eb7eb59ebc37ed1229e680e8	alibaba/qwen3-coder-480b-a35b-instruct	Qwen 3 Coder 480B	chat	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
36	c9b8c7e314ce0c02e09621cc1260932d	28f7c2a8eb7eb59ebc37ed1229e680e8	blackforestlabs/flux-2	FLUX 2	image	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
37	4d41507569bbdb36d5a4c9f19eb28f15	28f7c2a8eb7eb59ebc37ed1229e680e8	blackforestlabs/flux-2-pro	FLUX 2 Pro	image	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
38	8231f5372a9719e04c625a512dde3894	28f7c2a8eb7eb59ebc37ed1229e680e8	google/imagen-4.0-generate-001	Imagen 4	image	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
39	eb1ca81b33b4b6f82d60a2e1f9ab25b9	28f7c2a8eb7eb59ebc37ed1229e680e8	google/imagen-4.0-ultra-generate-001	Imagen 4 Ultra	image	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
40	e2f5f1572bcbe39f0386fbadc0bf3d9e	28f7c2a8eb7eb59ebc37ed1229e680e8	recraft-v3	Recraft v3	image	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
41	f5bfc9953837a5a765d2890b43877698	28f7c2a8eb7eb59ebc37ed1229e680e8	stable-diffusion-v35-large	Stable Diffusion 3.5 Large	image	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
42	7085146ee5c6bc664cfb7f10d9174c3e	28f7c2a8eb7eb59ebc37ed1229e680e8	google/veo-3.1-t2v	Veo 3.1 T2V	video	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
43	bff7af8ff628d01b0ff3e01395ba6cfc	28f7c2a8eb7eb59ebc37ed1229e680e8	google/veo-3.1-i2v	Veo 3.1 I2V	video	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
44	d21a27756a926599c6b3ad3c7c8edb40	28f7c2a8eb7eb59ebc37ed1229e680e8	alibaba/wan-2-6-t2v	Wan 2.6 T2V	video	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
45	3c75fa55af7d2c947a724041693f6df6	28f7c2a8eb7eb59ebc37ed1229e680e8	alibaba/wan-2-6-i2v	Wan 2.6 I2V	video	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
46	7cf22bcecdfaf07e7a7a5adb81abef32	28f7c2a8eb7eb59ebc37ed1229e680e8	luma/ray-2	Luma Ray-2	video	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
47	3455ff10a05fec437e9ae8405ef43bec	28f7c2a8eb7eb59ebc37ed1229e680e8	runway/gen4_turbo	Runway Gen4 Turbo	video	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
48	99a99032e762659b7d85cc9f0bf95907	28f7c2a8eb7eb59ebc37ed1229e680e8	klingai/v2.5-turbo/pro/text-to-video	Kling 2.5 T2V	video	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
49	b6d8b3fbb0113c51109fcad26ba06bcb	28f7c2a8eb7eb59ebc37ed1229e680e8	text-embedding-3-large	Embedding 3 Large	embedding	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
50	47f79fcbc233fa88365d63c380d0a9f2	28f7c2a8eb7eb59ebc37ed1229e680e8	voyage-multilingual-2	Voyage Multilingual 2	embedding	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
51	fd42ef6d0f9437227f4c8bb1ed71e3fd	28f7c2a8eb7eb59ebc37ed1229e680e8	mistral/mistral-ocr-latest	Mistral OCR	ocr	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
52	79f867b53495bfc92ef3a13c19d9e331	28f7c2a8eb7eb59ebc37ed1229e680e8	openai/tts-1-hd	TTS-1 HD	tts	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
53	eedafffe6d2a4c3aacc6c573411508fb	28f7c2a8eb7eb59ebc37ed1229e680e8	#g1_aura-2-celeste-es	Aura 2 Celeste (ES)	tts	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
54	7aea3d5821c06a3b445c4857240d65f1	28f7c2a8eb7eb59ebc37ed1229e680e8	#g1_whisper-large	Whisper Large	stt	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
55	ae2dfad97c4e8801a98ecae547a10b6c	28f7c2a8eb7eb59ebc37ed1229e680e8	google/lyria2	Lyria 2	audio	t	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
56	8033345f2e69dfd74f73ae31224258b4	eda7b4ae7d11fbdef881f0f057593629	deepseek-r1	DeepSeek R1	chat	t	f	{}	\N	[]	2026-02-28 19:45:59.476581+00	2026-02-28 19:45:59.476581+00	\N	\N
57	e0303b1e7ee2727e263a192353b001f8	eda7b4ae7d11fbdef881f0f057593629	gpt-4.1-mini	GPT-4.1 Mini	chat	t	f	{}	\N	[]	2026-02-28 19:45:59.476581+00	2026-02-28 19:45:59.476581+00	\N	\N
6	ccabcb2e920bd3e6645a60d6089bc898	f383c88521213f40edf1951b78e8fe1d	anthropic/claude-sonnet-4-6	Claude Sonnet 4.6 (OR)	chat	f	f	{}	\N	[]	2026-02-28 12:47:46.288649+00	2026-02-28 12:47:46.288649+00	\N	\N
7	d6fc98c42facf0970550a2123535b48e	f383c88521213f40edf1951b78e8fe1d	openai/gpt-4o	GPT-4o (OR)	chat	f	f	{}	\N	[]	2026-02-28 12:47:46.288649+00	2026-02-28 12:47:46.288649+00	\N	\N
8	7e845a4c03c73cd37d828a7e7ee3d8f7	f383c88521213f40edf1951b78e8fe1d	google/gemini-2.5-flash	Gemini 2.5 Flash (OR)	chat	f	f	{}	\N	[]	2026-02-28 12:47:46.288649+00	2026-02-28 12:47:46.288649+00	\N	\N
23	79a154188a068e109633ba827396d92f	28f7c2a8eb7eb59ebc37ed1229e680e8	claude-sonnet-4-6	Claude Sonnet 4.6	chat	f	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
29	da5cc2d76eee4e3c86e62cce02406710	28f7c2a8eb7eb59ebc37ed1229e680e8	google/gemini-2.5-flash	Gemini 2.5 Flash	chat	f	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
26	d253975998924e6102ab4c3f9fcff487	28f7c2a8eb7eb59ebc37ed1229e680e8	openai/gpt-4.1-mini-2025-04-14	GPT-4.1 Mini	chat	f	f	{}	\N	[]	2026-02-28 13:32:24.694188+00	2026-02-28 13:32:24.694188+00	\N	\N
\.


--
-- Data for Name: model_usage; Type: TABLE DATA; Schema: tzzr_ai; Owner: postgres
--

COPY tzzr_ai.model_usage (num, model_mrf, context, source_mrf, tokens_in, tokens_out, duration_ms, status, created_at) FROM stdin;
\.


--
-- Data for Name: provider; Type: TABLE DATA; Schema: tzzr_ai; Owner: postgres
--

COPY tzzr_ai.provider (num, mrf, name, service, endpoint, api_key_id, format, is_active, config, set_hst, etiquetas, created_at, updated_at, alias, hashtags) FROM stdin;
1	2b41c8930394f90c671397e6bbf7d955	RunPod GPU Serverless	runpod	https://api.runpod.ai/v2	38	openai	t	{"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}	\N	[]	2026-02-28 12:47:46.288649+00	2026-02-28 12:47:46.288649+00	\N	\N
2	f383c88521213f40edf1951b78e8fe1d	OpenRouter - Multi-provider AI API	openrouter	https://openrouter.ai/api/v1	34	openai	t	{"format": "openai", "model_prefix": true, "default_model": "anthropic/claude-sonnet-4-6"}	\N	[]	2026-02-28 12:47:46.288649+00	2026-02-28 12:47:46.288649+00	\N	\N
3	eda7b4ae7d11fbdef881f0f057593629	GPTsAPI - Proxy OpenAI/Anthropic/Gemini	gptsapi	https://api.gptsapi.net	33	openai	t	{"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"}	\N	[]	2026-02-28 12:47:46.288649+00	2026-02-28 12:47:46.288649+00	\N	\N
4	28f7c2a8eb7eb59ebc37ed1229e680e8	AIMLAPI - Multi-model AI API	aimlapi	https://api.aimlapi.com/v1	39	openai	t	{"plan": "free", "limits": "10req_h_free_50K_cred_day", "openai_compatible": true}	\N	[]	2026-02-28 13:32:18.613691+00	2026-02-28 13:32:18.613691+00	\N	\N
\.


--
-- Data for Name: setup; Type: TABLE DATA; Schema: tzzr_ai; Owner: postgres
--

COPY tzzr_ai.setup (num, mrf, ref, name, color, sort_order, is_active, created_at) FROM stdin;
1	5594d502123a4255fadcb757ceb52116	mail	Mail	#60a5fa	1	t	2026-03-01 02:45:24.249107+00
2	f5086d0751c6c503fa1669b812ef6421	chat	Chat	#34d399	2	t	2026-03-01 02:45:24.249107+00
4	937ac9ab449e2ec3f67f7329c0f7876f	mant	Mantenimiento	#fbbf24	3	t	2026-03-01 03:20:08.818845+00
5	6cdd7181f06ad19341fccff266c89506	ses	Sesiones	#f87171	4	t	2026-03-01 03:20:08.818845+00
6	0527e3c1587f9d70d21504a3a4dabb91	reg	Registro	#c084fc	5	t	2026-03-01 03:20:08.818845+00
7	a8a42ee3c6c879d40704e6787e63f75d	busq	Búsqueda	#fb923c	6	t	2026-03-01 03:20:08.818845+00
8	f43c9ecb474976cc25a0a454860bcc97	dat	Datos	#2dd4bf	7	t	2026-03-01 03:20:08.818845+00
9	9fea5794346482cb1d5cd0566707bed4	orq	Orquestación	#f472b6	8	t	2026-03-01 03:20:08.818845+00
10	6aba739a4943a37953f9d9b120a3e644	conf	Configuración	#94a3b8	9	t	2026-03-01 03:26:09.713235+00
11	bcdea943f3461193d11cf388017c1b9f	entr	Entrada datos	#a78bfa	10	t	2026-03-01 03:26:09.713235+00
\.


--
-- Data for Name: actions; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: postgres
--

COPY tzzr_chat_ai.actions (num, mrf, session_mrf, action_type, title, description, priority, status, set_hst, etiquetas, created_at, completed_at) FROM stdin;
\.


--
-- Data for Name: curated_context; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: postgres
--

COPY tzzr_chat_ai.curated_context (num, mrf, title, content, source_session_mrfs, tags, quality_score, set_hst, etiquetas, created_at, updated_at) FROM stdin;
1	347a0d60053ca7dce80150216da6cd2e	mail	revisemos el correo	[]	[]	1	\N	[]	2026-02-26 23:33:27.546054+00	2026-02-26 23:33:27.546054+00
2	0283b52bf12c45cdbd4130fd93f01797	mail	revisemos el correo	[]	[]	1	\N	[]	2026-02-26 23:33:27.546282+00	2026-02-26 23:33:27.546282+00
\.


--
-- Data for Name: embeddings; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: postgres
--

COPY tzzr_chat_ai.embeddings (num, session_mrf, message_mrf, chunk_type, chunk_index, chunk_text, embedding, set_hst, model_used, created_at) FROM stdin;
\.


--
-- Data for Name: enrichment; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: postgres
--

COPY tzzr_chat_ai.enrichment (num, session_mrf, summary, topics, sentiment, intent, entities, set_hst, etiquetas, model_used, confidence, processed_at, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: extracted; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: postgres
--

COPY tzzr_chat_ai.extracted (num, mrf, session_mrf, extraction_type, value, data, set_hst, etiquetas, model, created_at) FROM stdin;
\.


--
-- Data for Name: graph_actions; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: postgres
--

COPY tzzr_chat_ai.graph_actions (num, mrf_a, mrf_b, weight, edge_type, created_at) FROM stdin;
\.


--
-- Data for Name: graph_curated_context; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: postgres
--

COPY tzzr_chat_ai.graph_curated_context (num, mrf_a, mrf_b, weight, edge_type, created_at) FROM stdin;
\.


--
-- Data for Name: graph_embeddings; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: postgres
--

COPY tzzr_chat_ai.graph_embeddings (num, mrf_a, mrf_b, weight, edge_type, created_at) FROM stdin;
\.


--
-- Data for Name: graph_enrichment; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: postgres
--

COPY tzzr_chat_ai.graph_enrichment (num, mrf_a, mrf_b, weight, edge_type, created_at) FROM stdin;
\.


--
-- Data for Name: graph_extracted; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: postgres
--

COPY tzzr_chat_ai.graph_extracted (num, mrf_a, mrf_b, weight, edge_type, created_at) FROM stdin;
\.


--
-- Data for Name: graph_threads; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: tzzr
--

COPY tzzr_chat_ai.graph_threads (num, mrf_a, mrf_b, weight, edge_type, created_at) FROM stdin;
\.


--
-- Data for Name: graph_workspace; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: postgres
--

COPY tzzr_chat_ai.graph_workspace (num, mrf_a, mrf_b, weight, edge_type, created_at) FROM stdin;
\.


--
-- Data for Name: library_actions; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: postgres
--

COPY tzzr_chat_ai.library_actions (num, mrf_library, mrf_child, created_at) FROM stdin;
\.


--
-- Data for Name: library_curated_context; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: postgres
--

COPY tzzr_chat_ai.library_curated_context (num, mrf_library, mrf_child, created_at) FROM stdin;
\.


--
-- Data for Name: library_embeddings; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: postgres
--

COPY tzzr_chat_ai.library_embeddings (num, mrf_library, mrf_child, created_at) FROM stdin;
\.


--
-- Data for Name: library_enrichment; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: postgres
--

COPY tzzr_chat_ai.library_enrichment (num, mrf_library, mrf_child, created_at) FROM stdin;
\.


--
-- Data for Name: library_extracted; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: postgres
--

COPY tzzr_chat_ai.library_extracted (num, mrf_library, mrf_child, created_at) FROM stdin;
\.


--
-- Data for Name: library_threads; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: tzzr
--

COPY tzzr_chat_ai.library_threads (num, mrf_library, mrf_child, created_at) FROM stdin;
\.


--
-- Data for Name: library_workspace; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: postgres
--

COPY tzzr_chat_ai.library_workspace (num, mrf_library, mrf_child, created_at) FROM stdin;
\.


--
-- Data for Name: tree_actions; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: postgres
--

COPY tzzr_chat_ai.tree_actions (num, mrf_parent, mrf_child, created_at) FROM stdin;
\.


--
-- Data for Name: tree_curated_context; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: postgres
--

COPY tzzr_chat_ai.tree_curated_context (num, mrf_parent, mrf_child, created_at) FROM stdin;
\.


--
-- Data for Name: tree_embeddings; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: postgres
--

COPY tzzr_chat_ai.tree_embeddings (num, mrf_parent, mrf_child, created_at) FROM stdin;
\.


--
-- Data for Name: tree_enrichment; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: postgres
--

COPY tzzr_chat_ai.tree_enrichment (num, mrf_parent, mrf_child, created_at) FROM stdin;
\.


--
-- Data for Name: tree_extracted; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: postgres
--

COPY tzzr_chat_ai.tree_extracted (num, mrf_parent, mrf_child, created_at) FROM stdin;
\.


--
-- Data for Name: tree_threads; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: tzzr
--

COPY tzzr_chat_ai.tree_threads (num, mrf_parent, mrf_child, created_at) FROM stdin;
\.


--
-- Data for Name: tree_workspace; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: postgres
--

COPY tzzr_chat_ai.tree_workspace (num, mrf_parent, mrf_child, created_at) FROM stdin;
\.


--
-- Data for Name: workspace; Type: TABLE DATA; Schema: tzzr_chat_ai; Owner: postgres
--

COPY tzzr_chat_ai.workspace (num, mrf, entry_type, session_mrf, title, content, data, set_hst, etiquetas, status, model, confidence, created_at, updated_at) FROM stdin;
\.


--
-- Data for Name: chat; Type: TABLE DATA; Schema: tzzr_communications; Owner: postgres
--

COPY tzzr_communications.chat (mrf, session_hash, owner_id, role, content, prev_hash, created_at, set_hst) FROM stdin;
\.


--
-- Data for Name: mail; Type: TABLE DATA; Schema: tzzr_communications; Owner: postgres
--

COPY tzzr_communications.mail (mrf, from_address, to_address, subject, body, body_html, attachments, created_at, set_hst, message_id, in_reply_to, cc, bcc, reply_to, direction, size_bytes, headers, account, num, "references", sender, envelope_to, original_to, date) FROM stdin;
afb98f38f384753b5277f08c7028338d	"Marco Ríos" <marco@studiobravo.es>	marco@studiobravo.es	Re: STUDIOBRAVO - INMOBILIZADO	Hola Sandra\n\nLa factura ya deberíais tenerla, la compra es del 7 de noviembre en Mediamarkt, si os hace falta, se la puedes pedir a John, le pregunté y me dijo que la pasó a contabilidad\n\nRespecto de la máquina que se fabricó para el proyecto de Magic Park, no tengo muy claro como ayudaros. Yo hice el prototipo y el diseño, en Ansa se hizo en el taller parte de la ingeniería de ajuste y luego hice yo en el taller de StudioBravo el trabajo final de adaptar las piezas y calibrar\n\nHabría que hacer bastante trabajo para completar lo que sería una documentación completa\n\nEn cuanto a números pasa un poco lo mismo, te adjunto las facturas de los cilindros neumáticos, podría pedirle a Ansa las facturas del trabajo de metal del prototipo y la versión final.\n\nSi lo que os hace falta es simplemente un número con una estimación entre 4 y 5000 euros, es conservador, en coste real de facturas estará en torno a 2000€\n\nYa me decís\n\n\n\n\nEnviado desde Outlook para Mac\n\nDe: Elena Navarro <elena@sparklight.es>\nFecha: viernes, 6 de febrero de 2026, 15:28\nPara: Marco Ríos <marco@studiobravo.es>, Andrés Ríos <andres@studiobravo.es>\nCC: Marta Díaz <marta@SparkLight.es>, Carlos Ruiz <carlosruiz@sparklight.es>\nAsunto: RE: STUDIOBRAVO - INMOBILIZADO\n\nBuenos días Marco,\n\n¿Podrías decirnos cuando se compraron y donde para buscar la factura?\n\nPor otro lado, nos comentaron que se había fabricado una máquina, necesitaríamos los detalles de la misma para poder introducirla en el inmovilizado de la empresa.\n\nGracias.\n\nSaludos.\n\nSANDRA FERNÁNDEZ\nAccounting and Admin Department\n\nSPARKLIGHT GROUP\n+34 937 364 203/+34 673 373 592\nelena@sparklight.es<mailto:elena@sparklight.es>\nC/Colom 416 08223 Terrassa\n(Barcelona, SPAIN)\n\n\n“La información contenida en este mensaje y/o archivo(s) adjunto(s), enviada desde LED DREAM SL, es confidencial/privilegiada y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Le recordamos que sus datos han sido incorporados en el sistema de  tratamiento de LED DREAM SL y que siempre y cuando se cumplan los requisitos exigidos por la normativa, usted podrá ejercer sus derechos de acceso, rectificación, limitación de tratamiento, supresión, portabilidad y oposición/revocación, en los términos que establece la normativa vigente en materia de protección de datos, dirigiendo su petición a la dirección postal CL ALBERT EINSTEIN 48 08223, TERRASSA (BARCELONA) o bien a través de correo electrónico ADMINISTRACIONRECURSOS@SPARKLIGHT.ES<mailto:ADMINISTRACIONRECURSOS@SPARKLIGHT.ES>\n\nSi usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada. Gracias”.\n\n\nDe: Marco Ríos <marco@studiobravo.es>\nEnviado el: jueves, 5 de febrero de 2026 8:47\nPara: Elena Navarro <elena@sparklight.es>; Andrés Ríos <andres@studiobravo.es>\nCC: Marta Díaz <marta@SparkLight.es>; Carlos Ruiz <carlosruiz@sparklight.es>\nAsunto: Re: STUDIOBRAVO - INMOBILIZADO\n\nBuenos días Sandra,\n\nHay un ipad y un ordenador, ¿qué es lo que necesitáis por mi parte?\n\nUn saludo\n\n\nEnviado desde Outlook para Mac\nDe: Elena Navarro <elena@sparklight.es<mailto:elena@sparklight.es>>\nFecha: martes, 3 de febrero de 2026, 18:57\nPara: Marco Ríos <marco@studiobravo.es<mailto:marco@studiobravo.es>>, Andrés Ríos <andres@studiobravo.es<mailto:andres@studiobravo.es>>\nCC: Marta Díaz <marta@SparkLight.es<mailto:marta@SparkLight.es>>, Carlos Ruiz <carlosruiz@sparklight.es<mailto:carlosruiz@sparklight.es>>\nAsunto: STUDIOBRAVO - INMOBILIZADO\nBuenos días Marco,\n\nDe cara a cerrar la contabilidad del 2025, necesitaríamos saber los elementos de inmovilizado material de los que disponéis, es decir, por ejemplo aquellos elementos electrónicos que habéis comprado durante este año y que están en uso (iPad, ordenadores, maquinaria destinada a producción, etc.…)\n\nSi tenéis dudas, anotadlas igualmente, con su descripción y uso, y ya lo valoraremos en contabilidad.\n\nGracias.\n\nSaludos.\n\nSANDRA FERNÁNDEZ\nAccounting and Admin Department\n\nSPARKLIGHT GROUP\n+34 937 364 203/+34 673 373 592\nelena@sparklight.es<mailto:elena@sparklight.es>\nC/Colom 416 08223 Terrassa\n(Barcelona, SPAIN)\n\n\n“La información contenida en este mensaje y/o archivo(s) adjunto(s), enviada desde LED DREAM SL, es confidencial/privilegiada y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Le recordamos que sus datos han sido incorporados en el sistema de  tratamiento de LED DREAM SL y que siempre y cuando se cumplan los requisitos exigidos por la normativa, usted podrá ejercer sus derechos de acceso, rectificación, limitación de tratamiento, supresión, portabilidad y oposición/revocación, en los términos que establece la normativa vigente en materia de protección de datos, dirigiendo su petición a la dirección postal CL ALBERT EINSTEIN 48 08223, TERRASSA (BARCELONA) o bien a través de correo electrónico ADMINISTRACIONRECURSOS@SPARKLIGHT.ES<mailto:ADMINISTRACIONRECURSOS@SPARKLIGHT.ES>\n\nSi usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada. Gracias”.\n\n\n		[]	2026-02-10 00:30:00+00	\N	<FR8PR09MB852895A2BF11849648265FAEC365A@FR8PR09MB8528.eurprd09.prod.outlook.com>	<AM7PR09MB3656B1DCECDE3CEFDE65DADFDB66A@AM7PR09MB3656.eurprd09.prod.outlook.com>	"Marta Díaz" <marta@SparkLight.es>, "Carlos Ruiz" <carlosruiz@sparklight.es>	\N	\N	outbound	31886	{}	admin@tzzrdeck.me	1	\N	\N	\N	\N	\N
18e267741a4a1d9a3b4c870920406a89	"Marco Ríos" <marco@studiobravo.es>	marco@studiobravo.es	Re: Facturas airtable	Buenas tardes Cristina,\n\nTe envío las dos últimas\n\nUn saludo\n\nDe: Laura Moreno <laura@sparklight.es>\nFecha: jueves, 26 de febrero de 2026, 13:12\nPara: Marco Ríos <marco@studiobravo.es>, Elena Navarro <elena@sparklight.es>\nAsunto: RE: Facturas airtable\n\nHola Marco,\n\nCuando puedas envíame la factura de Airtable correspondiente a este mes.\n\nSaludos,\n\nCRISTINA EL MERSALI\nFinance department\nLED DREAM, SL\nT. +34 937364203\n[cid:image002.png@01DCA721.8DF49CD0]\n“La información contenida en este mensaje y/o archivo(s) adjunto(s), enviada desde LED DREAM SL, es confidencial/privilegiada y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Le recordamos que sus datos han sido incorporados en el sistema de  tratamiento de LED DREAM SL y que siempre y cuando se cumplan los requisitos exigidos por la normativa, usted podrá ejercer sus derechos de acceso, rectificación, limitación de tratamiento, supresión, portabilidad y oposición/revocación, en los términos que establece la normativa vigente en materia de protección de datos, dirigiendo su petición a la dirección postal CL ALBERT EINSTEIN 48 08223, TERRASSA (BARCELONA) o bien a través de correo electrónico ADMINISTRACIONRECURSOS@SPARKLIGHT.ES<mailto:ADMINISTRACIONRECURSOS@SPARKLIGHT.ES>\n\nSi usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada. Gracias”.\n\n\n\nDe: Laura Moreno\nEnviado el: martes, 10 de febrero de 2026 8:13\nPara: Marco Ríos <marco@studiobravo.es>; Elena Navarro <elena@sparklight.es>\nAsunto: RE: Facturas airtable\n\nAhora sí. Gracias.\n\nCRISTINA EL MERSALI\nFinance- Admin & OHS- HR department\n\n[cid:image003.png@01DCA721.8DF49CD0]\nC/Colom 416 08223 Terrassa\n(Barcelona, SPAIN)\n\n\n\nDe: Marco Ríos <marco@studiobravo.es<mailto:marco@studiobravo.es>>\nEnviado el: martes, 10 de febrero de 2026 1:32\nPara: Laura Moreno <laura@sparklight.es<mailto:laura@sparklight.es>>; Elena Navarro <elena@sparklight.es<mailto:elena@sparklight.es>>\nAsunto: Re: Facturas airtable\n\nHola Cristina,\n\nConfírmame que te hayan llegado porque ya deberían haber entrado en el anterior mail\n\nUn saludo\n\n\nEnviado desde Outlook para Mac\nDe: Laura Moreno <laura@sparklight.es<mailto:laura@sparklight.es>>\nFecha: lunes, 9 de febrero de 2026, 15:45\nPara: Marco Ríos <marco@studiobravo.es<mailto:marco@studiobravo.es>>, Elena Navarro <elena@sparklight.es<mailto:elena@sparklight.es>>\nAsunto: RE: Facturas airtable\nHola Marco,\n\nGracias. Falta la de noviembre y la de enero. ¿Puedes enviármelas lo antes posible por favor?\n\nMuchas gracias.\n\nCRISTINA EL MERSALI\nFinance-Admin & OHS-HR department\n\nSPARKLIGHT GROUP\n+34 937 364 203\nlaura@sparklight.es<mailto:laura@sparklight.es>\nC/Colom 416 08223 Terrassa\n(Barcelona, SPAIN)\n\n“La información contenida en este mensaje y/o archivo(s) adjunto(s), enviada desde LED DREAM SL, es confidencial/privilegiada y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Le recordamos que sus datos han sido incorporados en el sistema de  tratamiento de LED DREAM SL y que siempre y cuando se cumplan los requisitos exigidos por la normativa, usted podrá ejercer sus derechos de acceso, rectificación, limitación de tratamiento, supresión, portabilidad y oposición/revocación, en los términos que establece la normativa vigente en materia de protección de datos, dirigiendo su petición a la dirección postal CL ALBERT EINSTEIN 48 08223, TERRASSA (BARCELONA) o bien a través de correo electrónico ADMINISTRACIONRECURSOS@SPARKLIGHT.ES<mailto:ADMINISTRACIONRECURSOS@SPARKLIGHT.ES>\n\nSi usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada. Gracias”.\n\n\n\nDe: Marco Ríos <marco@studiobravo.es<mailto:marco@studiobravo.es>>\nEnviado el: lunes, 9 de febrero de 2026 3:55\nPara: Laura Moreno <laura@sparklight.es<mailto:laura@sparklight.es>>; Elena Navarro <elena@sparklight.es<mailto:elena@sparklight.es>>\nAsunto: Facturas airtable\n\n\n\nBuenos días Cristina\n\n\n\nTengo por fin las facturas de Airtable, hicieron cambios en la plataforma y supongo que por eso no salía, os envío las últimas, tendréis alguna repetida, no sé cual es la última que iba\n\n\n\nUn saludo\n		[]	2026-02-26 18:00:01+00	\N	<FR8PR09MB8528BDA3B1FFB167470F034FC372A@FR8PR09MB8528.eurprd09.prod.outlook.com>	<AM6PR09MB28381BA043F24EAFC593A99EC972A@AM6PR09MB2838.eurprd09.prod.outlook.com>		\N	\N	outbound	30121	{}	admin@tzzrdeck.me	2	\N	\N	\N	\N	\N
6f3bf89e7046a2e263a9463947d89a1f	"Andrés Ríos" <andres@studiobravo.es>	marco@studiobravo.es	RV: Tubular Leds Visita SparkLight	\n________________________________\nDe: Carlos Delgado <cdelgado@SparkLight.es>\nEnviado: martes, 24 de febrero de 2026 9:26\nPara: Andrés Ríos <andres@studiobravo.es>\nAsunto: RV: Tubular Leds Visita SparkLight\n\n\nHola Víctor, ¿qué opinas?\n\n\n\nTOTALMENTE CONFINDECIAL. Es de un colaborador de Rebeca Sánchez de LEDSCONTROL.\n\n\n\nTras leer y analizar todo, he metido los archivos en chatgpt y me ha dado un breve análisis en el que coincido plenamente. También adjunto.\n\n\n\nCreo que es un oportunidad o producto muy innovador, que puede ser disruptivo, pero con una inversión peligrosa al ser industrial y hasta cierto punto mal dimensionada en inversión (dan mucha velocidad a los desarrollos y por lo tanto a las primeras ventas, y se olvidan o ven facilidades en tiempo y dinero en certificados al tratarse de producto electrónico y estructural).\n\n\n\nPor otro lado, el 49% por 800K es aceptable, pero es no tener el control. Entiendo que esto es negociable. Mi sensación es que están contra las cuerdas, esto ya ha debido pasar por muchas manos. Otra cosa, es que tiene mucho que ver con nosotros, eventos AV, iluminación digital, …\n\n\n\nY lo más importante, yo he visto los prototipos en funcionamiento, está muy bien pensado y funciona, y pueden montar alguna demo o stand ya, no entiendo como no lo hacen, y prueban de verdad a clientes que vengan y les digan que lo quieren para su próxima feria y puedan hacer sus primeras facturas. Con esas facturas, demuestran que es negocio, que hay alguien interesado en el producto/solución; podrían pedir la inversión por menos porcentaje de la compañía, pero darían más confianza al inversor. Eso veo que lo tienen muy cerca, pero no lo consiguen, se lo he dicho repetidas veces, y me dice que no, que primero sacar el producto, que ya lo han visto muchos distribuidores como Seesound, Fluge, etc y que les dicen que para cuando lo sacan al mercado (¿Y por qué no les meten pasta estos?). Yo le he dicho que lo primero es probarlo con lo que tenemos, y conseguir que alguien pague algo, lo que sea, pero demostrar el interés de los clientes finales en soluciones de este tipo. O no tienen el foco en eso, o realmente no es negocio… que después de tanto tiempo no tengan una factura hecha es sospechoso. Ya les dije que para mí eso era un red flag total.\n\n\n\n\n\nCARLOS DELGADO\n\nGM – Engineer\n\n+34 695 57 67 94\n\n\n\nDe: Carmelo Nieto <cnieto@tubularleds.com>\nFecha: miércoles, 18 de febrero de 2026, 20:12\nPara: Carlos Delgado <cdelgado@SparkLight.es>, Carlos Gordillo <carlosgordillo@SparkLight.es>\nAsunto: Tubular Leds Visita SparkLight\n\nBuenas tardes Carlos,\n\n\n\nPrimeramente agradeceros la visita y atención en el día de hoy.\n\nTal como hemos quedado, con total transparencia y confianza os adjunto documento cualitativo, presentación Business Plan y Plan Económico Financiero de TUBULAR LEDS para valorar posibles escenarios de colaboración o participación societaria.\n\n\n\nSi os parece bien, podemos tener una video call próxima semana con Salvador Cusi por si hay alguna cuestión que detallar.\n\nCarlos estoy, estamos abiertos a un escenario que aporte valor y diferencial al beneficio conjunto de TUBULAR LEDS.\n\n\n\n\n\nAtentamente\n\n\n\nCarmelo Nieto Tares\n\nOwner Founder TUBULAR LEDS\n\nPhone +34 636508955\n\nwww.tubularleds.com<http://www.tubularleds.com>\n\n\n\n\n\n\n		[]	2026-02-25 08:29:37+00	\N	<PAXPR09MB502185539D51CA9C31B8481DA675A@PAXPR09MB5021.eurprd09.prod.outlook.com>	<DB8PR09MB2922D0C1A34660ABC4FABE2FD374A@DB8PR09MB2922.eurprd09.prod.outlook.com>		\N	\N	inbound	19623	{}	admin@tzzrdeck.me	3	\N	\N	\N	\N	\N
7f0f7038fac7274d333c138a14a27b20	"Carlos Ruiz" <carlosruiz@sparklight.es>	marco@studiobravo.es	RE: STUDIOBRAVO - INMOBILIZADO	Hola Marco,\n\nDisculpa que te responda tan tarde. Espero que estés bien, y es un placer comunicarme contigo. ;-)\n\nPara StudioBravo, y resto de Grupo, tenemos que activar o pasar a CAPEX todo lo que suba de 1.000 euros.\n\nEn el ejemplo que vemos, debemos unir todas las facturas susceptibles de imputarse a esa máquina de proyecto Magic Park para poder agruparlo como inmovilizado de StudioBravo.\n\nA tu disposición siempre para lo que necesites. Muchas gracias,\n\n\nDAVID SORIA\n\nCFO & CPO - SPARKLIGHT GROUP\n\n[cid:7a818bff-6f3f-40e9-99d7-e7dce6761ac5]\nM:   +34 653 709 650\n\nT:   +34 93 736 42 03\n\nC/Colom 416 08223 Terrassa\n\n(Barcelona, SPAIN)\n\n________________________________\nDe: Marco Ríos <marco@studiobravo.es>\nEnviado: martes, 10 de febrero de 2026 1:30\nPara: Elena Navarro <elena@sparklight.es>; Andrés Ríos <andres@studiobravo.es>\nCc: Marta Díaz <marta@SparkLight.es>; Carlos Ruiz <carlosruiz@sparklight.es>\nAsunto: Re: STUDIOBRAVO - INMOBILIZADO\n\nHola Sandra\n\nLa factura ya deberíais tenerla, la compra es del 7 de noviembre en Mediamarkt, si os hace falta, se la puedes pedir a John, le pregunté y me dijo que la pasó a contabilidad\n\nRespecto de la máquina que se fabricó para el proyecto de Magic Park, no tengo muy claro como ayudaros. Yo hice el prototipo y el diseño, en Ansa se hizo en el taller parte de la ingeniería de ajuste y luego hice yo en el taller de StudioBravo el trabajo final de adaptar las piezas y calibrar\n\nHabría que hacer bastante trabajo para completar lo que sería una documentación completa\n\nEn cuanto a números pasa un poco lo mismo, te adjunto las facturas de los cilindros neumáticos, podría pedirle a Ansa las facturas del trabajo de metal del prototipo y la versión final.\n\nSi lo que os hace falta es simplemente un número con una estimación entre 4 y 5000 euros, es conservador, en coste real de facturas estará en torno a 2000€\n\nYa me decís\n\n\n\n\nEnviado desde Outlook para Mac\n\nDe: Elena Navarro <elena@sparklight.es>\nFecha: viernes, 6 de febrero de 2026, 15:28\nPara: Marco Ríos <marco@studiobravo.es>, Andrés Ríos <andres@studiobravo.es>\nCC: Marta Díaz <marta@SparkLight.es>, Carlos Ruiz <carlosruiz@sparklight.es>\nAsunto: RE: STUDIOBRAVO - INMOBILIZADO\n\n\nBuenos días Marco,\n\n\n\n¿Podrías decirnos cuando se compraron y donde para buscar la factura?\n\n\n\nPor otro lado, nos comentaron que se había fabricado una máquina, necesitaríamos los detalles de la misma para poder introducirla en el inmovilizado de la empresa.\n\n\n\nGracias.\n\n\n\nSaludos.\n\n\n\nSANDRA FERNÁNDEZ\n\nAccounting and Admin Department\n\n\n\nSPARKLIGHT GROUP\n\n+34 937 364 203/+34 673 373 592\n\nelena@sparklight.es<mailto:elena@sparklight.es>\n\nC/Colom 416 08223 Terrassa\n\n(Barcelona, SPAIN)\n\n\n\n\n\n“La información contenida en este mensaje y/o archivo(s) adjunto(s), enviada desde LED DREAM SL, es confidencial/privilegiada y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Le recordamos que sus datos han sido incorporados en el sistema de  tratamiento de LED DREAM SL y que siempre y cuando se cumplan los requisitos exigidos por la normativa, usted podrá ejercer sus derechos de acceso, rectificación, limitación de tratamiento, supresión, portabilidad y oposición/revocación, en los términos que establece la normativa vigente en materia de protección de datos, dirigiendo su petición a la dirección postal CL ALBERT EINSTEIN 48 08223, TERRASSA (BARCELONA) o bien a través de correo electrónico ADMINISTRACIONRECURSOS@SPARKLIGHT.ES<mailto:ADMINISTRACIONRECURSOS@SPARKLIGHT.ES>\n\n\n\nSi usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada. Gracias”.\n\n\n\n\n\nDe: Marco Ríos <marco@studiobravo.es>\nEnviado el: jueves, 5 de febrero de 2026 8:47\nPara: Elena Navarro <elena@sparklight.es>; Andrés Ríos <andres@studiobravo.es>\nCC: Marta Díaz <marta@SparkLight.es>; Carlos Ruiz <carlosruiz@sparklight.es>\nAsunto: Re: STUDIOBRAVO - INMOBILIZADO\n\n\n\nBuenos días Sandra,\n\n\n\nHay un ipad y un ordenador, ¿qué es lo que necesitáis por mi parte?\n\n\n\nUn saludo\n\n\n\nEnviado desde Outlook para Mac\n\nDe: Elena Navarro <elena@sparklight.es<mailto:elena@sparklight.es>>\nFecha: martes, 3 de febrero de 2026, 18:57\nPara: Marco Ríos <marco@studiobravo.es<mailto:marco@studiobravo.es>>, Andrés Ríos <andres@studiobravo.es<mailto:andres@studiobravo.es>>\nCC: Marta Díaz <marta@SparkLight.es<mailto:marta@SparkLight.es>>, Carlos Ruiz <carlosruiz@sparklight.es<mailto:carlosruiz@sparklight.es>>\nAsunto: STUDIOBRAVO - INMOBILIZADO\n\nBuenos días Marco,\n\n\n\nDe cara a cerrar la contabilidad del 2025, necesitaríamos saber los elementos de inmovilizado material de los que disponéis, es decir, por ejemplo aquellos elementos electrónicos que habéis comprado durante este año y que están en uso (iPad, ordenadores, maquinaria destinada a producción, etc.…)\n\n\n\nSi tenéis dudas, anotadlas igualmente, con su descripción y uso, y ya lo valoraremos en contabilidad.\n\n\n\nGracias.\n\n\n\nSaludos.\n\n\n\nSANDRA FERNÁNDEZ\n\nAccounting and Admin Department\n\n\n\nSPARKLIGHT GROUP\n\n+34 937 364 203/+34 673 373 592\n\nelena@sparklight.es<mailto:elena@sparklight.es>\n\nC/Colom 416 08223 Terrassa\n\n(Barcelona, SPAIN)\n\n\n\n\n\n“La información contenida en este mensaje y/o archivo(s) adjunto(s), enviada desde LED DREAM SL, es confidencial/privilegiada y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Le recordamos que sus datos han sido incorporados en el sistema de  tratamiento de LED DREAM SL y que siempre y cuando se cumplan los requisitos exigidos por la normativa, usted podrá ejercer sus derechos de acceso, rectificación, limitación de tratamiento, supresión, portabilidad y oposición/revocación, en los términos que establece la normativa vigente en materia de protección de datos, dirigiendo su petición a la dirección postal CL ALBERT EINSTEIN 48 08223, TERRASSA (BARCELONA) o bien a través de correo electrónico ADMINISTRACIONRECURSOS@SPARKLIGHT.ES<mailto:ADMINISTRACIONRECURSOS@SPARKLIGHT.ES>\n\n\n\nSi usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada. Gracias”.\n\n\n\n\n		[]	2026-02-23 09:08:01+00	\N	<AS8PR09MB645793BF96AF0AAB21E7D6E5C877A@AS8PR09MB6457.eurprd09.prod.outlook.com>	<FR8PR09MB852895A2BF11849648265FAEC365A@FR8PR09MB8528.eurprd09.prod.outlook.com>	"Marta Díaz" <marta@SparkLight.es>	\N	\N	inbound	38123	{}	admin@tzzrdeck.me	4	\N	\N	\N	\N	\N
4e8e74d5789095784924b5192c59dd8e	"Laura Moreno" <laura@sparklight.es>	marco@studiobravo.es	RE: Factura Shapr3D	Buenos días Marco,\n\nPerfecto! Muchas gracias.\n\nCRISTINA EL MERSALI\nFinance department\nSTUDIOBRAVO STUDIO, SL\nT. +34 937364203\n[cid:image001.png@01DCA0AF.1FE710B0]\n\n\n\nDe: Marco Ríos <marco@studiobravo.es>\nEnviado el: martes, 17 de febrero de 2026 21:59\nPara: Laura Moreno <laura@sparklight.es>\nAsunto: Factura Shapr3D\n\nBuenos días Cristina,\n\nTe adjunto la factura de Shapr3D\n\nUn saludo\n\nMarco Ríos\nStudioBravo Studio\n		[]	2026-02-18 07:18:13+00	\N	<AM6PR09MB2838685253C5FA47450A22BFC96AA@AM6PR09MB2838.eurprd09.prod.outlook.com>	<FR8PR09MB852864299DA5E246B8BFF16BC36DA@FR8PR09MB8528.eurprd09.prod.outlook.com>		\N	\N	inbound	9619	{}	admin@tzzrdeck.me	5	\N	\N	\N	\N	\N
4b7cefa5258fe4edcc39541db8b82050	"Marco Ríos" <marco@studiobravo.es>	marco@studiobravo.es	Re: Vuelta a España	Buenas tardes Sara\n\nQue acabo de ver que el mail que te envié lleva una errata, era para confirmarte el vuelo que me propones\n\nUn saludo\n\nEnviado desde Outlook para Mac\nDe: Marco Ríos <marco@studiobravo.es>\nFecha: lunes, 23 de febrero de 2026, 18:38\nPara: Marta Gil <mgil@eventpro.com>\nAsunto: Re: Vuelta a España\n\nHola Sara,\n\nCocamos este Emirates\n26FEB\nSZX 00:45 - DXB 05:25 -- DXB 08:15 - BCN 12:50\nPrecio actual en pantalla con maleta facturada: 747.42€ + 39€Fee\nTarifa no reembolsable pero permite cambios con penalización\n\n\nGracias\n\nEnviado desde Outlook para Mac\nDe: Marta Gil <mgil@eventpro.com>\nFecha: lunes, 23 de febrero de 2026, 18:30\nPara: Marco Ríos <marco@studiobravo.es>\nAsunto: Re: Vuelta a España\n\n\nBuenos días Marco,\n\nLa mejor opción por precio es regresando el 26 de madrugada ( estar en el aeropuerto el 25 noche ):\n\nEmirates\n26FEB\nSZX 00:45 - DXB 05:25 -- DXB 08:15 - BCN 12:50\nPrecio actual en pantalla con maleta facturada: 747.42€ + 39€Fee\nTarifa no reembolsable pero permite cambios con penalización\n\n\nEl vuelo directo saldria el 27FEB a las 01:40am pero va muy lleno y o que queda asciende a 2298.97€.. y el mismo que te he puesto de Emirates peor saliendo el 27FEB  a las 00:45 sólo queda una plaza en business y el precio es desorbitado..\n\nYa me dices!\n\n\nEl 23/02/2026 a las 11:19, Marco Ríos escribió:\nBuenos días Sara\n\nPodemos buscar un vuelo de vuelta a España para el 26 o 27? Se me acaba el tiempo de estancia libre en China el día 27\n\nGracias\n--\n\nMarta Gil\nHead of Office EventPro Terrassa\nmgil@eventpro.com<mailto:mgil@eventpro.com>\nMobile +34 654 150 030\n\nIATA Agent Member; Travel Agency License GC 2313, ACAVe Member\nAntes de imprimir este mensaje, asegúrese de que es realmente necesario. Please consider your environmental responsibility before printing this e-mail.\nEste mensaje de correo electrónico y sus archivos adjuntos son confidenciales y están legalmente protegidos. Se dirige exclusivamente al destinatario o destinatarios. No está autorizado el acceso a este mensaje por otras personas. Si Vd. no es la persona a la que va dirigido, cualquier uso, tratamiento, información, copia o distribución y cualquier acción u omisión basada en la información contenida en este mensaje quedan prohibidos y es ilegal. Así mismo, de acuerdo al Reglamento EU 2016/679 sobre Protección de Datos Personales, informamos que su dirección e-mail forma parte de los ficheros de las empresas de Center World Travel, S.L. con CIF: B65673618, porque en su momento nos autorizó el tratamiento para mantener una relación comercial y/o informativa de nuestros productos y servicios; Usted puede ejercer en cualquier momento sus derechos de acceso, rectificación, supresión, limitación y oposición dirigiéndose por escrito a Provençals, 4, local 1 08019 Barcelona Tel.: +34 93 535 02 83, Email:privacy@eventpro.com<mailto:privacy@eventpro.com>. Si ha recibido este mensaje por error, por favor, destrúyalo y notifíquelo. Gracias.\nThis message and its annexed files may contain confidential information which is exclusively for the use of the addressee. Access to this message by other people is not authorized. If you are not the person to whom it is addressed, any use, treatment, information, copy or distribution and any action or omission based on the information contained in this message are strictly forbidden and illegal. According to Regulation EU 2016/679 on Protection of Personal Data, we inform you that your e-mail address is part of the files of the companies, de Center World Travel, S.L. con CIF: B65673618,because at the time we authorized the treatment to maintain a commercial and / or informative relationship of our products and services; You can exercise your rights of access, rectification, deletion, limitation and opposition at any time by writing to Provençals, 4, local 1 08019 Barcelona Tel.: +34 93 535 02 83, Email: privacy@eventpro.com<mailto:privacy@eventpro.com>. If you have received this message in error, please destroy it and notify it. Thank you.\n		[]	2026-02-23 15:13:50+00	\N	<FR8PR09MB8528ECA342969A62A1ED7DD7C377A@FR8PR09MB8528.eurprd09.prod.outlook.com>	<FR8PR09MB852861C72CE58F43E779502EC377A@FR8PR09MB8528.eurprd09.prod.outlook.com>		\N	\N	outbound	17259	{}	admin@tzzrdeck.me	6	\N	\N	\N	\N	\N
d635f2bdf95afcc5b54a436914f0f6f4	"Google Play" <googleplay-noreply@google.com>	inbox@deck.systems	Recibo de tu pedido de Google Play del 24 feb 2026	Google Play\n\n\nGracias\n\n\nTu suscripción de Google Commerce Limited en Google Play continúa y se te ha cobrado el importe correspondiente. Gestionar tus suscripciones\n\nPara ayudar a mantener activa tu suscripción, añade un método de pago alternativo.\n\n\nAñadir método de pago alternativo\n\n\nNúmero de pedido: SOP.3303-0699-6502-45179..2\nFecha del pedido: 24 feb 2026 3:02:12 GMT+8\nTu cuenta: tzrsystems@gmail.com\n\n\nArtículo Precio\n\n\nGoogle AI Pro (2 TB) (Google One) (de Google LLC) 21,99 € al mes\n\nSuscripción de renovación automática\n\n\n\nTotal: 21,99 € al mes\n\n(Incluye 3,82 € de IVA)\n\n\nMétodo de pago:\n\nPayPal: paypal@deck.pro\n\n\n\nGoogle Commerce Limited\nGordon House\nBarrow Street\nDublin 4\nIreland\n\n\nDerechos de desistimiento: puedes consultar información sobre el derecho de desistimiento en los Términos del Servicio adjuntos.\n\n\nGarantía legal: si consumes servicios, productos o contenidos digitales, resides en un país del EEE y has aceptado nuestros Términos del Servicio, las leyes de protección de los consumidores del EEE te otorgan una garantía legal. En virtud de esta garantía, somos responsables de cualquier falta de conformidad que detectes:\n\n\nDentro de un plazo de dos años a partir de la entrega de los productos o del suministro único de servicios o contenidos digitales\nEn cualquier momento durante el suministro "continuo" de servicios o contenidos digitales\n\nLas leyes de tu país pueden otorgar una garantía aún mayor. Los derechos que te otorgan estas garantías legales no están limitados por ninguna otra garantía comercial que ofrezcamos. Si quieres presentar una reclamación de garantía, ponte en contacto con nosotros.\n\n\nReembolsos: si tu compra no funciona correctamente o no se corresponde con su descripción de Google Play, puedes solicitar un reembolso en el sitio web de Google Play. También puedes recibir asistencia por parte directa del desarrollador de la aplicación en función de la garantía que ofrezca. Si tienes alguna pregunta sobre la aplicación, la opción más rápida suele ser contactar con el desarrollador de la aplicación directamente. Puedes encontrar la información de contacto del desarrollador de una aplicación en la página de detalles de la aplicación en Google Play.\n\nDispositivos compatibles: consulta esta información sobre dispositivos compatibles.\n\n¿Necesitas ayuda? Visita el Centro de Ayuda de Google Play o ponte en contacto con Google llamando al 800000307 o escribiendo a play-eu-support@google.com\n\n\nAl suscribirte, nos autorizas a cobrarte automáticamente el importe de la suscripción (como se indica arriba) con el método de pago proporcionado y hasta que canceles la suscripción. Consulta cómo cancelar la suscripción. Conserva este mensaje por si lo necesitas en el futuro.\n\n\n\nGoogle Play\n\nTodo tu entretenimiento en un único lugar, estés donde estés. Más información ›\n\n\n\nConsulta tu historial de pedidos de Google Play.\n\nConsulta la Política de Reembolsos y los Términos del Servicio de Google Play\n\n\n© 2026 Google | Todos los derechos reservados\nGoogle Commerce Limited, Gordon House, Barrow Street, Dublin 4, Irlanda\n\nNo respondas a este correo, ya que no podemos usar esta dirección para contestarte. Si necesitas ayuda, visita el Centro de Ayuda de Google Play.\n\n		[]	2026-02-23 19:02:14+00	\N	<235f7cf0ca049788ad7e678494a8a2a1b8047d13-10044049-111213542@google.com>			\N	\N	inbound	115581	{}	admin@tzzrdeck.me	7	\N	\N	\N	\N	\N
e6145aad20a7ca0346f613dc8087d42c	"Marco Ríos" <marco@studiobravo.es>	marco@studiobravo.es	Re: Vuelta a España	Hola Sara,\n\nCocamos este Emirates\n26FEB\nSZX 00:45 - DXB 05:25 -- DXB 08:15 - BCN 12:50\nPrecio actual en pantalla con maleta facturada: 747.42€ + 39€Fee\nTarifa no reembolsable pero permite cambios con penalización\n\n\nGracias\n\nEnviado desde Outlook para Mac\nDe: Marta Gil <mgil@eventpro.com>\nFecha: lunes, 23 de febrero de 2026, 18:30\nPara: Marco Ríos <marco@studiobravo.es>\nAsunto: Re: Vuelta a España\n\n\nBuenos días Marco,\n\nLa mejor opción por precio es regresando el 26 de madrugada ( estar en el aeropuerto el 25 noche ):\n\nEmirates\n26FEB\nSZX 00:45 - DXB 05:25 -- DXB 08:15 - BCN 12:50\nPrecio actual en pantalla con maleta facturada: 747.42€ + 39€Fee\nTarifa no reembolsable pero permite cambios con penalización\n\n\nEl vuelo directo saldria el 27FEB a las 01:40am pero va muy lleno y o que queda asciende a 2298.97€.. y el mismo que te he puesto de Emirates peor saliendo el 27FEB  a las 00:45 sólo queda una plaza en business y el precio es desorbitado..\n\nYa me dices!\n\n\nEl 23/02/2026 a las 11:19, Marco Ríos escribió:\nBuenos días Sara\n\nPodemos buscar un vuelo de vuelta a España para el 26 o 27? Se me acaba el tiempo de estancia libre en China el día 27\n\nGracias\n--\n\nMarta Gil\nHead of Office EventPro Terrassa\nmgil@eventpro.com<mailto:mgil@eventpro.com>\nMobile +34 654 150 030\n\nIATA Agent Member; Travel Agency License GC 2313, ACAVe Member\nAntes de imprimir este mensaje, asegúrese de que es realmente necesario. Please consider your environmental responsibility before printing this e-mail.\nEste mensaje de correo electrónico y sus archivos adjuntos son confidenciales y están legalmente protegidos. Se dirige exclusivamente al destinatario o destinatarios. No está autorizado el acceso a este mensaje por otras personas. Si Vd. no es la persona a la que va dirigido, cualquier uso, tratamiento, información, copia o distribución y cualquier acción u omisión basada en la información contenida en este mensaje quedan prohibidos y es ilegal. Así mismo, de acuerdo al Reglamento EU 2016/679 sobre Protección de Datos Personales, informamos que su dirección e-mail forma parte de los ficheros de las empresas de Center World Travel, S.L. con CIF: B65673618, porque en su momento nos autorizó el tratamiento para mantener una relación comercial y/o informativa de nuestros productos y servicios; Usted puede ejercer en cualquier momento sus derechos de acceso, rectificación, supresión, limitación y oposición dirigiéndose por escrito a Provençals, 4, local 1 08019 Barcelona Tel.: +34 93 535 02 83, Email:privacy@eventpro.com<mailto:privacy@eventpro.com>. Si ha recibido este mensaje por error, por favor, destrúyalo y notifíquelo. Gracias.\nThis message and its annexed files may contain confidential information which is exclusively for the use of the addressee. Access to this message by other people is not authorized. If you are not the person to whom it is addressed, any use, treatment, information, copy or distribution and any action or omission based on the information contained in this message are strictly forbidden and illegal. According to Regulation EU 2016/679 on Protection of Personal Data, we inform you that your e-mail address is part of the files of the companies, de Center World Travel, S.L. con CIF: B65673618,because at the time we authorized the treatment to maintain a commercial and / or informative relationship of our products and services; You can exercise your rights of access, rectification, deletion, limitation and opposition at any time by writing to Provençals, 4, local 1 08019 Barcelona Tel.: +34 93 535 02 83, Email: privacy@eventpro.com<mailto:privacy@eventpro.com>. If you have received this message in error, please destroy it and notify it. Thank you.\n		[]	2026-02-23 10:38:30+00	\N	<FR8PR09MB852861C72CE58F43E779502EC377A@FR8PR09MB8528.eurprd09.prod.outlook.com>	<f442da19-0bfa-4137-a4b1-74830ae97c7e@eventpro.com>		\N	\N	outbound	14525	{}	admin@tzzrdeck.me	8	\N	\N	\N	\N	\N
afbf2d170c086a39e7e6283eb43599ad	"Marco Ríos" <marco@studiobravo.es>	marco@studiobravo.es	Re: STUDIOBRAVO - INMOBILIZADO	Buenos días Sandra,\n\nHay un ipad y un ordenador, ¿qué es lo que necesitáis por mi parte?\n\nUn saludo\n\n\nEnviado desde Outlook para Mac\n\nDe: Elena Navarro <elena@sparklight.es>\nFecha: martes, 3 de febrero de 2026, 18:57\nPara: Marco Ríos <marco@studiobravo.es>, Andrés Ríos <andres@studiobravo.es>\nCC: Marta Díaz <marta@SparkLight.es>, Carlos Ruiz <carlosruiz@sparklight.es>\nAsunto: STUDIOBRAVO - INMOBILIZADO\n\nBuenos días Marco,\n\nDe cara a cerrar la contabilidad del 2025, necesitaríamos saber los elementos de inmovilizado material de los que disponéis, es decir, por ejemplo aquellos elementos electrónicos que habéis comprado durante este año y que están en uso (iPad, ordenadores, maquinaria destinada a producción, etc.…)\n\nSi tenéis dudas, anotadlas igualmente, con su descripción y uso, y ya lo valoraremos en contabilidad.\n\nGracias.\n\nSaludos.\n\nSANDRA FERNÁNDEZ\nAccounting and Admin Department\n\nSPARKLIGHT GROUP\n+34 937 364 203/+34 673 373 592\nelena@sparklight.es<mailto:elena@sparklight.es>\nC/Colom 416 08223 Terrassa\n(Barcelona, SPAIN)\n\n\n“La información contenida en este mensaje y/o archivo(s) adjunto(s), enviada desde LED DREAM SL, es confidencial/privilegiada y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Le recordamos que sus datos han sido incorporados en el sistema de  tratamiento de LED DREAM SL y que siempre y cuando se cumplan los requisitos exigidos por la normativa, usted podrá ejercer sus derechos de acceso, rectificación, limitación de tratamiento, supresión, portabilidad y oposición/revocación, en los términos que establece la normativa vigente en materia de protección de datos, dirigiendo su petición a la dirección postal CL ALBERT EINSTEIN 48 08223, TERRASSA (BARCELONA) o bien a través de correo electrónico ADMINISTRACIONRECURSOS@SPARKLIGHT.ES<mailto:ADMINISTRACIONRECURSOS@SPARKLIGHT.ES>\n\nSi usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada. Gracias”.\n\n\n		[]	2026-02-05 07:46:35+00	\N	<FR8PR09MB85286BD47D38875FEBF45A7AC399A@FR8PR09MB8528.eurprd09.prod.outlook.com>	<AM7PR09MB365649431633EA093A4B347ADB9BA@AM7PR09MB3656.eurprd09.prod.outlook.com>	"Marta Díaz" <marta@SparkLight.es>, "Carlos Ruiz" <carlosruiz@sparklight.es>	\N	\N	outbound	12388	{}	admin@tzzrdeck.me	9	\N	\N	\N	\N	\N
2a85d1a7c383fe08cee2bba3cf4bd21a	"Marta Gil" <mgil@eventpro.com>	marco@studiobravo.es	Re: Vuelta a España	Buenos días Marco,\n\nAdjunto billete y factura.\n\nQue tengas buen vuelo de regreso!\n\n\nEl 23/02/2026 a las 16:13, Marco Ríos escribió:\n> Buenas tardes Sara\n>\n> Que acabo de ver que el mail que te envié lleva una errata, era para > confirmarte el vuelo que me propones\n>\n> Un saludo\n>\n> Enviado desde Outlook para Mac\n>\n> *De: *Marco Ríos <marco@studiobravo.es>\n> *Fecha: *lunes, 23 de febrero de 2026, 18:38\n> *Para: *Marta Gil <mgil@eventpro.com>\n> *Asunto: *Re: Vuelta a España\n>\n> Hola Sara,\n>\n> Cocamos este /Emirates/\n> *_26FEB_*\n> *SZX 00:45 - DXB 05:25 -- DXB 08:15 - BCN 12:50*\n> Precio actual en pantalla con maleta facturada: 747.42€ + 39€Fee\n> Tarifa no reembolsable pero permite cambios con penalización\n>\n>\n> Gracias\n>\n> Enviado desde Outlook para Mac\n>\n> *De: *Marta Gil <mgil@eventpro.com>\n> *Fecha: *lunes, 23 de febrero de 2026, 18:30\n> *Para: *Marco Ríos <marco@studiobravo.es>\n> *Asunto: *Re: Vuelta a España\n>\n> Buenos días Marco,\n>\n> La mejor opción por precio es regresando el 26 de madrugada ( estar en > el aeropuerto el 25 noche ):\n>\n> /Emirates/\n> *_26FEB_*\n> *SZX 00:45 - DXB 05:25 -- DXB 08:15 - BCN 12:50*\n> Precio actual en pantalla con maleta facturada: 747.42€ + 39€Fee\n> Tarifa no reembolsable pero permite cambios con penalización\n>\n>\n> El vuelo directo saldria el 27FEB a las 01:40am pero va muy lleno y o > que queda asciende a 2298.97€.. y el mismo que te he puesto de > Emirates peor saliendo el 27FEB  a las 00:45 sólo queda una plaza en > business y el precio es desorbitado..\n>\n> Ya me dices!\n>\n>\n> El 23/02/2026 a las 11:19, Marco Ríos escribió:\n>\n>     Buenos días Sara\n>\n>     Podemos buscar un vuelo de vuelta a España para el 26 o 27? Se me\n>     acaba el tiempo de estancia libre en China el día 27\n>\n>     Gracias\n>\n> --\n>\n> *Marta Gil*\n> Head of Office EventPro Terrassa\n> mgil@eventpro.com\n> Mobile +34 654 150 030\n>\n> /IATA Agent Member; Travel Agency License GC 2313, ACAVe Member/\n> Antes de imprimir este mensaje, asegúrese de que es realmente > necesario. Please consider your environmental responsibility before > printing this e-mail.\n> /Este mensaje de correo electrónico y sus archivos adjuntos son > confidenciales y están legalmente protegidos. Se dirige exclusivamente > al destinatario o destinatarios. No está autorizado el acceso a este > mensaje por otras personas. Si Vd. no es la persona a la que va > dirigido, cualquier uso, tratamiento, información, copia o > distribución y cualquier acción u omisión basada en la información > contenida en este mensaje quedan prohibidos y es ilegal. Así mismo, de > acuerdo al Reglamento EU 2016/679 sobre Protección de Datos > Personales, informamos que su dirección e-mail forma parte de los > ficheros de las empresas de Center World Travel, S.L. con CIF: > B65673618, porque en su momento nos autorizó el tratamiento para > mantener una relación comercial y/o informativa de nuestros productos > y servicios; Usted puede ejercer en cualquier momento sus derechos de > acceso, rectificación, supresión, limitación y oposición dirigiéndose > por escrito a Provençals, 4, local 1 08019 Barcelona Tel.: +34 93 535 > 02 83, Email:privacy@eventpro.com. Si ha recibido este mensaje por > error, por favor, destrúyalo y notifíquelo. Gracias./\n> /This message and its annexed files may contain confidential > information which is exclusively for the use of the addressee. Access > to this message by other people is not authorized. If you are not the > person to whom it is addressed, any use, treatment, information, copy > or distribution and any action or omission based on the information > contained in this message are strictly forbidden and illegal. > According to Regulation EU 2016/679 on Protection of Personal Data, we > inform you that your e-mail address is part of the files of the > companies, de Center World Travel, S.L. con CIF: B65673618,because at > the time we authorized the treatment to maintain a commercial and / or > informative relationship of our products and services; You can > exercise your rights of access, rectification, deletion, limitation > and opposition at any time by writing to Provençals, 4, local 1 08019 > Barcelona Tel.: +34 93 535 02 83, Email: privacy@eventpro.com. If you > have received this message in error, please destroy it and notify it. > Thank you./\n>\n-- \n\n*Marta Gil*\nHead of Office EventPro Terrassa\nmgil@eventpro.com\nMobile +34 654 150 030\n\n/IATA Agent Member; Travel Agency License GC 2313, ACAVe Member/\n//\nAntes de imprimir este mensaje, asegúrese de que es realmente necesario. Please consider your environmental responsibility before printing this e-mail.\n/Este mensaje de correo electrónico y sus archivos adjuntos son confidenciales y están legalmente protegidos. Se dirige exclusivamente al destinatario o destinatarios. No está autorizado el acceso a este mensaje por otras personas. Si Vd. no es la persona a la que va dirigido, cualquier uso, tratamiento, información, copia o distribución y cualquier acción u omisión basada en la información contenida en este mensaje quedan prohibidos y es ilegal. Así mismo, de acuerdo al Reglamento EU 2016/679 sobre Protección de Datos Personales, informamos que su dirección e-mail forma parte de los ficheros de las empresas de Center World Travel, S.L. con CIF: B65673618, porque en su momento nos autorizó el tratamiento para mantener una relación comercial y/o informativa de nuestros productos y servicios; Usted puede ejercer en cualquier momento sus derechos de acceso, rectificación, supresión, limitación y oposición dirigiéndose por escrito a Provençals, 4, local 1 08019 Barcelona Tel.: +34 93 535 02 83, Email:privacy@eventpro.com. Si ha recibido este mensaje por error, por favor, destrúyalo y notifíquelo. Gracias./\n/This message and its annexed files may contain confidential information which is exclusively for the use of the addressee. Access to this message by other people is not authorized. If you are not the person to whom it is addressed, any use, treatment, information, copy or distribution and any action or omission based on the information contained in this message are strictly forbidden and illegal. According to Regulation EU 2016/679 on Protection of Personal Data, we inform you that your e-mail address is part of the files of the companies, de Center World Travel, S.L. con CIF: B65673618,because at the time we authorized the treatment to maintain a commercial and / or informative relationship of our products and services; You can exercise your rights of access, rectification, deletion, limitation and opposition at any time by writing to Provençals, 4, local 1 08019 Barcelona Tel.: +34 93 535 02 83, Email: privacy@eventpro.com. If you have received this message in error, please destroy it and notify it. Thank you./		[]	2026-02-24 09:51:24+00	\N	<dd633460-e7ac-45f6-bb8c-838e3b9c89ee@eventpro.com>	<FR8PR09MB8528ECA342969A62A1ED7DD7C377A@FR8PR09MB8528.eurprd09.prod.outlook.com>		\N	\N	inbound	38666	{}	admin@tzzrdeck.me	10	\N	\N	\N	\N	\N
d7cf6126c1a4db10108ef795c6edbf2d	"Google" <no-reply@accounts.google.com>	inbox@deck.systems	Alerta de seguridad	[image: Google]\nSe ha creado una contraseña de aplicación para iniciar sesión en tu cuenta\n\n\ntzrsystems@gmail.com\nSi no has generado tú esa contraseña para mail tzzr, alguien podría estar\nusando tu cuenta. Revisa y protege tu cuenta ahora.\nComprobar actividad\n<https://accounts.google.com/AccountChooser?Email=tzrsystems@gmail.com&continue=https://myaccount.google.com/alert/nt/1771881455910?rfn%3D20%26rfnc%3D1%26eid%3D5085250717504080217%26et%3D0>\nTambién puedes ver toda la actividad de seguridad en\nhttps://myaccount.google.com/notifications\nTe hemos enviado este correo electrónico para informarte de cambios\nimportantes en tu cuenta y en los servicios de Google.\n© 2026 Google Ireland Ltd., Gordon House, Barrow Street, Dublin 4, Ireland		[]	2026-02-23 21:17:35+00	\N	<OtfhekcM2IXR6qJt15IJkA@notifications.google.com>			\N	\N	inbound	12256	{}	admin@tzzrdeck.me	11	\N	\N	\N	\N	\N
cdb05ecebefbd09aa6a17a1c0ce94f24	"Andrés Ríos" <andres@studiobravo.es>	marco@studiobravo.es	RV: RFQ - STUDIOBRAVO - Resort Core Public Realm- Package 11// Vialighting	Me entró esto superrandom, request para unas luminarias de LDC, parece que estamos prescritos, pero ni nos consultaron. Es una cantidad pequeña. Ahora le preguntaré a Hasan, se que los conoce e igual les enseño las de field of light. Echadle una visual. No entiendo lo del DALI, y proponen fibra de carbono para los palos. Con la diferencia de medidas que plantean la rigidez variará mucho. Yo creo que para esto el aproach sería buscar componentes de caña de pescar, esto nos permitiría segun la sección cortada tener control sobre la flexibilidad. Lo que no se es si los hay huecos para un cono estrecho, yo creo que las puntas iban rellenas de grafito, pero creo que en mercado es lo que más nos podría acercar a tener esto semiresuelto.\nTrataré de recabar info de Vialighting y contactar con LDC.\n\nFalamos.\n________________________________\nDe: Masoud Wahid <Masoud@vialighting.com>\nEnviado: domingo, 1 de febrero de 2026 18:37\nPara: Andrés Ríos <andres@studiobravo.es>\nCc: Hasan Slim <hasan@vialighting.com>\nAsunto: RFQ - STUDIOBRAVO - Resort Core Public Realm- Package 11// Vialighting\n\n\nDear Victor\n\n\n\nI hope you are doing well.\n\n\n\nWe are working on the pricing of Package 11 Resort Core in Qiddiya.\n\n\n\nProject Details:\n\nProject Name: Resort Core Public Realm Package 11\n\nClient: Qiddiya\n\nStage: 100% Detailed Design\n\nMain Contractor: UNIMAC\n\nDesigner: Lighting Design Collective\n\n\n\n\n\nKindly give us your best price along with price protection to Vialighting on this Project:\n\n\n\nItem\n\nManufacturer\n\nDescription\n\nQty\n\nB-12\n\nSTUDIOBRAVO\n\nGround spike mounted decorative reed light, with frosted diffuser for 360deg lighting distribution. 2700K. Carbon fibre stem to allow movement in the wind,\nvarious lengths: 300, 500, 750, 1000mm are avaliable. Cluster of 5No. Reeds of mixed heights installed on bespoke mounting plate will form each luminaire.\nRemote DALI control to be supplied for each cluster.\n\n115\n\n\n\nLooking forward to your prompt response.\n\n[Masoud Wahid.png]\n\nfollow us:\n\n[5.png]<https://sa.linkedin.com/company/vialighting> [2.png] <https://www.instagram.com/via.lighting?igsh=MTJrODcwcGxpcTM1Mg%3D%3D>  [4.png] <https://x.com/Vialightin31085>  [1.png] <https://www.facebook.com/vialightingtrading?mibextid=wwXIfr&rdid=v1W9mqsAXlUHJRHD&share_url=https%3A%2F%2Fwww.facebook.com%2Fshare%2F17jiD1T2aJ%2F%3Fmibextid%3DwwXIfr#>\n\n\n\n\n\nThis email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify us immediately and delete the message from your system.\n\n		[]	2026-02-02 11:28:37+00	\N	<PAXPR09MB50210087733093C8CFC2B1C3A69AA@PAXPR09MB5021.eurprd09.prod.outlook.com>	<VI0P190MB2417C7395CAECCD32FE1486ED49DA@VI0P190MB2417.EURP190.PROD.OUTLOOK.COM>		\N	\N	inbound	20306	{}	admin@tzzrdeck.me	12	\N	\N	\N	\N	\N
54e4545db951411088bf94ba9383e189	"Laura Moreno" <laura@sparklight.es>	marco@studiobravo.es	RE: Facturas airtable	Hola Marco,\n\nGracias. Falta la de noviembre y la de enero. ¿Puedes enviármelas lo antes posible por favor?\n\nMuchas gracias.\n\nCRISTINA EL MERSALI\nFinance-Admin & OHS-HR department\n\nSPARKLIGHT GROUP\n+34 937 364 203\nlaura@sparklight.es\nC/Colom 416 08223 Terrassa\n(Barcelona, SPAIN)\n\n"La información contenida en este mensaje y/o archivo(s) adjunto(s), enviada desde LED DREAM SL, es confidencial/privilegiada y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Le recordamos que sus datos han sido incorporados en el sistema de  tratamiento de LED DREAM SL y que siempre y cuando se cumplan los requisitos exigidos por la normativa, usted podrá ejercer sus derechos de acceso, rectificación, limitación de tratamiento, supresión, portabilidad y oposición/revocación, en los términos que establece la normativa vigente en materia de protección de datos, dirigiendo su petición a la dirección postal CL ALBERT EINSTEIN 48 08223, TERRASSA (BARCELONA) o bien a través de correo electrónico ADMINISTRACIONRECURSOS@SPARKLIGHT.ES<mailto:ADMINISTRACIONRECURSOS@SPARKLIGHT.ES>\n\nSi usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada. Gracias".\n\n\n\nDe: Marco Ríos <marco@studiobravo.es>\nEnviado el: lunes, 9 de febrero de 2026 3:55\nPara: Laura Moreno <laura@sparklight.es>; Elena Navarro <elena@sparklight.es>\nAsunto: Facturas airtable\n\n\n\nBuenos días Cristina\n\n\n\nTengo por fin las facturas de Airtable, hicieron cambios en la plataforma y supongo que por eso no salía, os envío las últimas, tendréis alguna repetida, no sé cual es la última que iba\n\n\n\nUn saludo\n		[]	2026-02-09 07:45:39+00	\N	<AM6PR09MB28381FA6C9BC4A823D1DC33FC965A@AM6PR09MB2838.eurprd09.prod.outlook.com>	<FR8PR09MB8528ADFAA8146DDF81079007C365A@FR8PR09MB8528.eurprd09.prod.outlook.com>		\N	\N	inbound	13649	{}	admin@tzzrdeck.me	13	\N	\N	\N	\N	\N
a9b676d2e94ad032e8efde986a0261b7	"Marco Ríos" <marco@studiobravo.es>	marco@studiobravo.es	Re: Solicitud boq proyectores y pixels	Ayer estuve mirándolo con John, hoy espero poder solucionarlo\n\nEstuve avanzando con el tema de la luminaria de LDC, espero tener pronto una respuesta concreta\n\nRespecto de proyectores, creo que sería buena idea tratar de mover algo con marcas premium y luego a lo mejor sondear el mercado Chino\n\nEl panel es un buen ejemplo de donde estamos, me cuesta muchísimo mover cosas en Best Art, no puedo tener absolutamente ninguna queja de ellos, pero el panel es un ejemplo perfecto\n\nLo estuvieron probando con un receptor que diseñaron ellos porque solo llevo meses diciendo que necesito exactamente el que usamos nosotros\n\nCambiaron el conector de alimentación por uno que es "igual" pero eso hizo que estén los pines al revés, al probarlo John le metió corriente inversa y se jodió el receptor y no sabemos si los chips se estropearon\n\nCreo que se va a poder solucionar para enseñárselo al cliente sin problemas, pero no sé como solucionar todos estos "es lo mismo"\n\nPedí unas muestras para tener una referencia para la luminaria de LDC\n\nLuego comentamos\n\n\n\n\n\n[2693c3afe2b6492fd50c4217dc8acf6a.jpg]\n\n\nEnviado desde Outlook para Mac\n\nDe: Andrés Ríos <andres@studiobravo.es>\nFecha: jueves, 5 de febrero de 2026, 7:30\nPara: Marco Ríos <marco@studiobravo.es>\nAsunto: Solicitud boq proyectores y pixels\n\nBuenas, me pasaron el otro día de unos de los pretendientes al proyecto de kuwait una solicitud de presupuesto, una boq, te la adjunto. También comparativas en excel que pedi a la IA\nFíjate sobre todo en los dos primeros items, proyectores y pixels. Segun IA son proyectores de rango de 2500 eur, se ve que son high end. No se si tiene sentido sondear mercado chino, entiendo que se quedará por debajo en especificaciones o calidad, pero dale una pensada.\nMi idea es hablar con los de phillips/signify para ver si tienen alternativa equivalente, y también con los de prolights. Hay varias barras de phillips, poca cosa. Si le podemos dar un precio competitivo, llevar un margen y aparte que estos de phillips vean que movemos producto sería cojonudo.\n\nHoy no estuve en la ofi, estuve en ISE, pero se ve que hay algo de drama con el panel de kuwait. Espero que mañana podamos resolverlo, las arquitectas vienen pasado. Hay que checkear bien que pasó.\n\nXa falamos.\n\n\nAndrés Ríos Carracedo\n\n\n\nStudioBravo CEO\n\n\n\n+34 644056762\n\n\n\nAlbert Einstein 48, Terrassa 08203\n\n\n		[]	2026-02-05 08:02:42+00	\N	<FR8PR09MB85280195F0ABD0C1F226CD91C399A@FR8PR09MB8528.eurprd09.prod.outlook.com>	<PAXPR09MB5021D3A267322E2F149475BEA698A@PAXPR09MB5021.eurprd09.prod.outlook.com>		\N	\N	outbound	13414	{}	admin@tzzrdeck.me	14	\N	\N	\N	\N	\N
0ba1075558ddc23e8324a86468b35932	"Marco Ríos" <marco@studiobravo.es>	marco@studiobravo.es	Facturas airtable	\nBuenos días Cristina\n\n\nTengo por fin las facturas de Airtable, hicieron cambios en la plataforma y supongo que por eso no salía, os envío las últimas, tendréis alguna repetida, no sé cual es la última que iba\n\n\nUn saludo\n		[]	2026-02-09 02:55:22+00	\N	<FR8PR09MB8528ADFAA8146DDF81079007C365A@FR8PR09MB8528.eurprd09.prod.outlook.com>			\N	\N	outbound	4147	{}	admin@tzzrdeck.me	15	\N	\N	\N	\N	\N
c1a83667fe64664944dc30a7dfac56c8	"Perplexity AI, Inc" <failed-payments@perplexity.ai>	inbox@deck.pro	El pago por valor de 24,20 US$ a Perplexity AI, Inc ha fallado	Perplexity AI, Inc  (http://www.perplexity.ai)\n\nPerplexity AI, Inc\n\nEl pago por valor de 24,20 US$ a Perplexity AI, Inc ha fallado No hemos podido realizar un cobro en tu card para tu Perplexity AI, Inc suscripción. Actualiza tu información de facturación para continuar con tu suscripción. Actualiza el método de pago (https://stripe.perplexity.ai/p/subscription/recovery/live_YWNjdF8xTjlZcUJHWndqcVBmeGtaLF9VMkJyR01TY211eU5tU1duZHJ3SzFPOHlLQ2VmbUdO0100G2yYQVxb?referer=failed_payment) Gestiona tus suscripciones (https://stripe.perplexity.ai/p/login/6oEeXaewnb3z1facMM) ¿Tienes alguna pregunta? Escríbenos a support@perplexity.ai (support@perplexity.ai)\n\nPowered by    stripe logo (https://stripe.com)  |    Más información acerca de Stripe Billing (https://stripe.com/billing)		[]	2026-02-23 22:19:34+00	\N	<0101019c8c961f9f-431a826d-caf0-4f77-b2e4-d18a83daf5a6-000000@us-west-2.amazonses.com>			\N	\N	inbound	27269	{}	info@tzzrdeck.me	16	\N	\N	\N	\N	\N
1ec6ac78b131d0e335b4d1d0aff090fb	"Marco - Principal" <marco@deck.pro>	inbox@deck.pro	Pago mensualidad enero y febrero	Buenas tardes,\n\nMe pongo en contacto con ustedes porque cambiamos la cuenta desde la queos podemos hacer el pago de las mensualidades\n\nEstamos en proceso de trasladarnos al extranjero, Víctor se va a ir a Dubai y yo a China, en España cada vez nos resulta más complicado conseguir proyectos con los que mantener la viabilidad de la empresa y empezamos este proyecto de traslado hace un par de años. Cada vez pasamos menos tiempo en España pero aún nos llevará un tiempo irnos de forma definitiva\n\nYa tratamos de ponernos en contacto con vosotros anterioremente por teléfono, tamibién me puse en contacto con Montse por whatsapp pero parece que no recibió el mensaje\n\nNo tenemos problemas en seguir haciendo frente a las mensualidades, pero ya no tenemos una cuenta en España desde la que hacer los pagos\n\nSi nos podéis facilitar el código swift de la cuenta, os hacemos el pago de las mensualidades vencidas inmediatamente\n\nUn saludo y disculpad las molestias\n\nMarco Ríos		[]	2026-02-18 18:21:52+00	\N	<ff256278d8f03492ab7c55fff4676ce47defb02d@deck.pro>			\N	\N	outbound	3129	{}	info@tzzrdeck.me	17	\N	\N	\N	\N	\N
bf90752410d7ec88e1294adcae41dd83	"Laura Moreno" <laura@sparklight.es>	marco@studiobravo.es	RE: Facturas airtable	Hola Marco,\n\nCuando puedas envíame la factura de Airtable correspondiente a este mes.\n\nSaludos,\n\nCRISTINA EL MERSALI\nFinance department\nLED DREAM, SL\nT. +34 937364203\n[cid:image002.png@01DCA721.8DF49CD0]\n"La información contenida en este mensaje y/o archivo(s) adjunto(s), enviada desde LED DREAM SL, es confidencial/privilegiada y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Le recordamos que sus datos han sido incorporados en el sistema de  tratamiento de LED DREAM SL y que siempre y cuando se cumplan los requisitos exigidos por la normativa, usted podrá ejercer sus derechos de acceso, rectificación, limitación de tratamiento, supresión, portabilidad y oposición/revocación, en los términos que establece la normativa vigente en materia de protección de datos, dirigiendo su petición a la dirección postal CL ALBERT EINSTEIN 48 08223, TERRASSA (BARCELONA) o bien a través de correo electrónico ADMINISTRACIONRECURSOS@SPARKLIGHT.ES<mailto:ADMINISTRACIONRECURSOS@SPARKLIGHT.ES>\n\nSi usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada. Gracias".\n\n\n\nDe: Laura Moreno\nEnviado el: martes, 10 de febrero de 2026 8:13\nPara: Marco Ríos <marco@studiobravo.es>; Elena Navarro <elena@sparklight.es>\nAsunto: RE: Facturas airtable\n\nAhora sí. Gracias.\n\nCRISTINA EL MERSALI\nFinance- Admin & OHS- HR department\n\n[cid:image003.png@01DCA721.8DF49CD0]\nC/Colom 416 08223 Terrassa\n(Barcelona, SPAIN)\n\n\n\nDe: Marco Ríos <marco@studiobravo.es<mailto:marco@studiobravo.es>>\nEnviado el: martes, 10 de febrero de 2026 1:32\nPara: Laura Moreno <laura@sparklight.es<mailto:laura@sparklight.es>>; Elena Navarro <elena@sparklight.es<mailto:elena@sparklight.es>>\nAsunto: Re: Facturas airtable\n\nHola Cristina,\n\nConfírmame que te hayan llegado porque ya deberían haber entrado en el anterior mail\n\nUn saludo\n\n\nEnviado desde Outlook para Mac\nDe: Laura Moreno <laura@sparklight.es<mailto:laura@sparklight.es>>\nFecha: lunes, 9 de febrero de 2026, 15:45\nPara: Marco Ríos <marco@studiobravo.es<mailto:marco@studiobravo.es>>, Elena Navarro <elena@sparklight.es<mailto:elena@sparklight.es>>\nAsunto: RE: Facturas airtable\nHola Marco,\n\nGracias. Falta la de noviembre y la de enero. ¿Puedes enviármelas lo antes posible por favor?\n\nMuchas gracias.\n\nCRISTINA EL MERSALI\nFinance-Admin & OHS-HR department\n\nSPARKLIGHT GROUP\n+34 937 364 203\nlaura@sparklight.es<mailto:laura@sparklight.es>\nC/Colom 416 08223 Terrassa\n(Barcelona, SPAIN)\n\n"La información contenida en este mensaje y/o archivo(s) adjunto(s), enviada desde LED DREAM SL, es confidencial/privilegiada y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Le recordamos que sus datos han sido incorporados en el sistema de  tratamiento de LED DREAM SL y que siempre y cuando se cumplan los requisitos exigidos por la normativa, usted podrá ejercer sus derechos de acceso, rectificación, limitación de tratamiento, supresión, portabilidad y oposición/revocación, en los términos que establece la normativa vigente en materia de protección de datos, dirigiendo su petición a la dirección postal CL ALBERT EINSTEIN 48 08223, TERRASSA (BARCELONA) o bien a través de correo electrónico ADMINISTRACIONRECURSOS@SPARKLIGHT.ES<mailto:ADMINISTRACIONRECURSOS@SPARKLIGHT.ES>\n\nSi usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada. Gracias".\n\n\n\nDe: Marco Ríos <marco@studiobravo.es<mailto:marco@studiobravo.es>>\nEnviado el: lunes, 9 de febrero de 2026 3:55\nPara: Laura Moreno <laura@sparklight.es<mailto:laura@sparklight.es>>; Elena Navarro <elena@sparklight.es<mailto:elena@sparklight.es>>\nAsunto: Facturas airtable\n\n\n\nBuenos días Cristina\n\n\n\nTengo por fin las facturas de Airtable, hicieron cambios en la plataforma y supongo que por eso no salía, os envío las últimas, tendréis alguna repetida, no sé cual es la última que iba\n\n\n\nUn saludo\n		[]	2026-02-26 12:12:27+00	\N	<AM6PR09MB28381BA043F24EAFC593A99EC972A@AM6PR09MB2838.eurprd09.prod.outlook.com>	<AM6PR09MB2838A453FF8E0CAABCAA1B12C962A@AM6PR09MB2838.eurprd09.prod.outlook.com>		\N	\N	inbound	26479	{}	admin@tzzrdeck.me	18	\N	\N	\N	\N	\N
b7fe493b97afcbaff3f4693dd52f5bd7	"Google" <no-reply@accounts.google.com>	inbox@deck.systems	Se ha activado la verificación en dos pasos	[image: Google]\nSe ha activado la verificación en dos pasos\n\n\ntzrsystems@gmail.com\n\nAhora, tu cuenta de Google, tzrsystems@gmail.com, está protegida con la\nverificación en dos pasos. Si inicias sesión en un dispositivo nuevo o que\nno sea de confianza, tendrás que usar tu segundo factor para verificar que\neres tú.\n\n*No permitas que se bloquee el acceso a tu cuenta*\nPuedes añadir un teléfono alternativo o conseguir códigos de seguridad para\nusarlos cuando no tengas a mano tu segundo factor.\nPuedes revisar los ajustes de la verificación en dos pasos\n<https://accounts.google.com/AccountChooser?Email=tzrsystems@gmail.com&continue=https://myaccount.google.com/signinoptions/twosv?rfn%3D16%26rfnc%3D1%26eid%3D-6776847572214135182%26et%3D0>\npara hacer cambios.\nTambién puedes ver toda la actividad de seguridad en\nhttps://myaccount.google.com/notifications\nTe hemos enviado este correo electrónico para informarte de cambios\nimportantes en tu cuenta y en los servicios de Google.\n© 2026 Google Ireland Ltd., Gordon House, Barrow Street, Dublin 4, Ireland		[]	2026-02-23 21:15:02+00	\N	<gPguOLKqXEV9y_TMRtX1LQ@notifications.google.com>			\N	\N	inbound	12695	{}	admin@tzzrdeck.me	19	\N	\N	\N	\N	\N
f828d05a5adef3f84dda181b5222c491	test@example.com	info@tzzrdeck.me	Test DECK 0	Test email para verificar configuracion.\r\n\r\n		[]	\N	\N						inbound	1115	{}	info@tzzrdeck.me	20	\N	\N	\N	\N	\N
50d3c7281dbbc4c7242b8ebe702ac25e	"Andrés Ríos" <andres@studiobravo.es>	marco@studiobravo.es	Solicitud boq proyectores y pixels	Buenas, me pasaron el otro día de unos de los pretendientes al proyecto de kuwait una solicitud de presupuesto, una boq, te la adjunto. También comparativas en excel que pedi a la IA\nFíjate sobre todo en los dos primeros items, proyectores y pixels. Segun IA son proyectores de rango de 2500 eur, se ve que son high end. No se si tiene sentido sondear mercado chino, entiendo que se quedará por debajo en especificaciones o calidad, pero dale una pensada.\nMi idea es hablar con los de phillips/signify para ver si tienen alternativa equivalente, y también con los de prolights. Hay varias barras de phillips, poca cosa. Si le podemos dar un precio competitivo, llevar un margen y aparte que estos de phillips vean que movemos producto sería cojonudo.\n\nHoy no estuve en la ofi, estuve en ISE, pero se ve que hay algo de drama con el panel de kuwait. Espero que mañana podamos resolverlo, las arquitectas vienen pasado. Hay que checkear bien que pasó.\n\nXa falamos.\n\n\nAndrés Ríos Carracedo\n\n\n\nStudioBravo CEO\n\n\n\n+34 644056762\n\n\n\nAlbert Einstein 48, Terrassa 08203\n\n\n		[]	2026-02-04 23:30:31+00	\N	<PAXPR09MB5021D3A267322E2F149475BEA698A@PAXPR09MB5021.eurprd09.prod.outlook.com>			\N	\N	inbound	9879	{}	admin@tzzrdeck.me	21	\N	\N	\N	\N	\N
02e0d7eb7644f51c4bb3665d325d4a91	"Elena Navarro" <elena@sparklight.es>	marco@studiobravo.es	STUDIOBRAVO - INMOBILIZADO	Buenos días Marco,\n\nDe cara a cerrar la contabilidad del 2025, necesitaríamos saber los elementos de inmovilizado material de los que disponéis, es decir, por ejemplo aquellos elementos electrónicos que habéis comprado durante este año y que están en uso (iPad, ordenadores, maquinaria destinada a producción, etc....)\n\nSi tenéis dudas, anotadlas igualmente, con su descripción y uso, y ya lo valoraremos en contabilidad.\n\nGracias.\n\nSaludos.\n\nSANDRA FERNÁNDEZ\nAccounting and Admin Department\n\nSPARKLIGHT GROUP\n+34 937 364 203/+34 673 373 592\nelena@sparklight.es<mailto:elena@sparklight.es>\nC/Colom 416 08223 Terrassa\n(Barcelona, SPAIN)\n\n\n"La información contenida en este mensaje y/o archivo(s) adjunto(s), enviada desde LED DREAM SL, es confidencial/privilegiada y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Le recordamos que sus datos han sido incorporados en el sistema de  tratamiento de LED DREAM SL y que siempre y cuando se cumplan los requisitos exigidos por la normativa, usted podrá ejercer sus derechos de acceso, rectificación, limitación de tratamiento, supresión, portabilidad y oposición/revocación, en los términos que establece la normativa vigente en materia de protección de datos, dirigiendo su petición a la dirección postal CL ALBERT EINSTEIN 48 08223, TERRASSA (BARCELONA) o bien a través de correo electrónico ADMINISTRACIONRECURSOS@SPARKLIGHT.ES<mailto:ADMINISTRACIONRECURSOS@SPARKLIGHT.ES>\n\nSi usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada. Gracias".\n\n\n		[]	2026-02-03 10:56:58+00	\N	<AM7PR09MB365649431633EA093A4B347ADB9BA@AM7PR09MB3656.eurprd09.prod.outlook.com>		"Marta Díaz" <marta@SparkLight.es>, "Carlos Ruiz" <carlosruiz@sparklight.es>	\N	\N	inbound	12224	{}	admin@tzzrdeck.me	22	\N	\N	\N	\N	\N
bd6310ea2de4d5eefedee334847e731c	"Perplexity AI, Inc" <failed-payments@perplexity.ai>	inbox@deck.pro	El pago por valor de 24,20 US$ a Perplexity AI, Inc ha fallado de nuevo	Perplexity AI, Inc  (http://www.perplexity.ai)\n\nPerplexity AI, Inc\n\nEl pago por valor de 24,20 US$ a Perplexity AI, Inc ha fallado Hemos intentado realizar un cobro en tu card para tu Perplexity AI, Inc suscripción de nuevo, pero no ha sido posible. Actualiza tu información de facturación para continuar con tu suscripción. Actualiza el método de pago (https://stripe.perplexity.ai/p/subscription/recovery/live_YWNjdF8xTjlZcUJHWndqcVBmeGtaLF9VMkJyR01TY211eU5tU1duZHJ3SzFPOHlLQ2VmbUdO0100G2yYQVxb?referer=failed_payment) Gestiona tus suscripciones (https://stripe.perplexity.ai/p/login/6oEeXaewnb3z1facMM) ¿Tienes alguna pregunta? Escríbenos a support@perplexity.ai (support@perplexity.ai)\n\nPowered by    stripe logo (https://stripe.com)  |    Más información acerca de Stripe Billing (https://stripe.com/billing)		[]	2026-02-26 13:19:41+00	\N	<0101019c9a1aed52-e819e49a-496d-4155-9efa-89e23e5d1a65-000000@us-west-2.amazonses.com>			\N	\N	inbound	27367	{}	info@tzzrdeck.me	23	\N	\N	\N	\N	\N
b1fe5ec3bd2f8cf546858d221b720c86	"Laura Moreno" <laura@sparklight.es>	marco@studiobravo.es	RE: Facturas airtable	Ahora sí. Gracias.\n\nCRISTINA EL MERSALI\nFinance- Admin & OHS- HR department\n\n[cid:image001.png@01DC9A65.0958C820]\nC/Colom 416 08223 Terrassa\n(Barcelona, SPAIN)\n\n\n\nDe: Marco Ríos <marco@studiobravo.es>\nEnviado el: martes, 10 de febrero de 2026 1:32\nPara: Laura Moreno <laura@sparklight.es>; Elena Navarro <elena@sparklight.es>\nAsunto: Re: Facturas airtable\n\nHola Cristina,\n\nConfírmame que te hayan llegado porque ya deberían haber entrado en el anterior mail\n\nUn saludo\n\n\nEnviado desde Outlook para Mac\nDe: Laura Moreno <laura@sparklight.es<mailto:laura@sparklight.es>>\nFecha: lunes, 9 de febrero de 2026, 15:45\nPara: Marco Ríos <marco@studiobravo.es<mailto:marco@studiobravo.es>>, Elena Navarro <elena@sparklight.es<mailto:elena@sparklight.es>>\nAsunto: RE: Facturas airtable\nHola Marco,\n\nGracias. Falta la de noviembre y la de enero. ¿Puedes enviármelas lo antes posible por favor?\n\nMuchas gracias.\n\nCRISTINA EL MERSALI\nFinance-Admin & OHS-HR department\n\nSPARKLIGHT GROUP\n+34 937 364 203\nlaura@sparklight.es<mailto:laura@sparklight.es>\nC/Colom 416 08223 Terrassa\n(Barcelona, SPAIN)\n\n"La información contenida en este mensaje y/o archivo(s) adjunto(s), enviada desde LED DREAM SL, es confidencial/privilegiada y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Le recordamos que sus datos han sido incorporados en el sistema de  tratamiento de LED DREAM SL y que siempre y cuando se cumplan los requisitos exigidos por la normativa, usted podrá ejercer sus derechos de acceso, rectificación, limitación de tratamiento, supresión, portabilidad y oposición/revocación, en los términos que establece la normativa vigente en materia de protección de datos, dirigiendo su petición a la dirección postal CL ALBERT EINSTEIN 48 08223, TERRASSA (BARCELONA) o bien a través de correo electrónico ADMINISTRACIONRECURSOS@SPARKLIGHT.ES<mailto:ADMINISTRACIONRECURSOS@SPARKLIGHT.ES>\n\nSi usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada. Gracias".\n\n\n\nDe: Marco Ríos <marco@studiobravo.es<mailto:marco@studiobravo.es>>\nEnviado el: lunes, 9 de febrero de 2026 3:55\nPara: Laura Moreno <laura@sparklight.es<mailto:laura@sparklight.es>>; Elena Navarro <elena@sparklight.es<mailto:elena@sparklight.es>>\nAsunto: Facturas airtable\n\n\n\nBuenos días Cristina\n\n\n\nTengo por fin las facturas de Airtable, hicieron cambios en la plataforma y supongo que por eso no salía, os envío las últimas, tendréis alguna repetida, no sé cual es la última que iba\n\n\n\nUn saludo\n		[]	2026-02-10 07:12:46+00	\N	<AM6PR09MB2838A453FF8E0CAABCAA1B12C962A@AM6PR09MB2838.eurprd09.prod.outlook.com>	<FR8PR09MB85283EDD3B0A141203E6A7C2C365A@FR8PR09MB8528.eurprd09.prod.outlook.com>		\N	\N	inbound	18454	{}	admin@tzzrdeck.me	24	\N	\N	\N	\N	\N
5f1bb58fe563a839165f9df1116eeed6	"Marta Gil" <mgil@eventpro.com>	marco@studiobravo.es	Re: Vuelta a España	Buenos días Marco,\n\nLa mejor opción por precio es regresando el 26 de madrugada ( estar en el aeropuerto el 25 noche ):\n\n/Emirates/\n_*26FEB*_\n*SZX 00:45 - DXB 05:25 -- DXB 08:15 - BCN 12:50*\nPrecio actual en pantalla con maleta facturada: 747.42€ + 39€Fee\nTarifa no reembolsable pero permite cambios con penalización\n\n\nEl vuelo directo saldria el 27FEB a las 01:40am pero va muy lleno y o que queda asciende a 2298.97€.. y el mismo que te he puesto de Emirates peor saliendo el 27FEB  a las 00:45 sólo queda una plaza en business y el precio es desorbitado..\n\nYa me dices!\n\n\nEl 23/02/2026 a las 11:19, Marco Ríos escribió:\n> Buenos días Sara\n>\n> Podemos buscar un vuelo de vuelta a España para el 26 o 27? Se me > acaba el tiempo de estancia libre en China el día 27\n>\n> Gracias\n-- \n\n*Marta Gil*\nHead of Office EventPro Terrassa\nmgil@eventpro.com\nMobile +34 654 150 030\n\n/IATA Agent Member; Travel Agency License GC 2313, ACAVe Member/\n//\nAntes de imprimir este mensaje, asegúrese de que es realmente necesario. Please consider your environmental responsibility before printing this e-mail.\n/Este mensaje de correo electrónico y sus archivos adjuntos son confidenciales y están legalmente protegidos. Se dirige exclusivamente al destinatario o destinatarios. No está autorizado el acceso a este mensaje por otras personas. Si Vd. no es la persona a la que va dirigido, cualquier uso, tratamiento, información, copia o distribución y cualquier acción u omisión basada en la información contenida en este mensaje quedan prohibidos y es ilegal. Así mismo, de acuerdo al Reglamento EU 2016/679 sobre Protección de Datos Personales, informamos que su dirección e-mail forma parte de los ficheros de las empresas de Center World Travel, S.L. con CIF: B65673618, porque en su momento nos autorizó el tratamiento para mantener una relación comercial y/o informativa de nuestros productos y servicios; Usted puede ejercer en cualquier momento sus derechos de acceso, rectificación, supresión, limitación y oposición dirigiéndose por escrito a Provençals, 4, local 1 08019 Barcelona Tel.: +34 93 535 02 83, Email:privacy@eventpro.com. Si ha recibido este mensaje por error, por favor, destrúyalo y notifíquelo. Gracias./\n/This message and its annexed files may contain confidential information which is exclusively for the use of the addressee. Access to this message by other people is not authorized. If you are not the person to whom it is addressed, any use, treatment, information, copy or distribution and any action or omission based on the information contained in this message are strictly forbidden and illegal. According to Regulation EU 2016/679 on Protection of Personal Data, we inform you that your e-mail address is part of the files of the companies, de Center World Travel, S.L. con CIF: B65673618,because at the time we authorized the treatment to maintain a commercial and / or informative relationship of our products and services; You can exercise your rights of access, rectification, deletion, limitation and opposition at any time by writing to Provençals, 4, local 1 08019 Barcelona Tel.: +34 93 535 02 83, Email: privacy@eventpro.com. If you have received this message in error, please destroy it and notify it. Thank you./		[]	2026-02-23 10:30:43+00	\N	<f442da19-0bfa-4137-a4b1-74830ae97c7e@eventpro.com>	<FR8PR09MB8528325324DF0F6B9BB7F939C377A@FR8PR09MB8528.eurprd09.prod.outlook.com>		\N	\N	inbound	21379	{}	admin@tzzrdeck.me	25	\N	\N	\N	\N	\N
deca96dc89a8d78f62578861c092309b	"Marco Ríos" <marco@studiobravo.es>	marco@studiobravo.es	Factura Shapr3D	Buenos días Cristina,\n\nTe adjunto la factura de Shapr3D\n\nUn saludo\n\nMarco Ríos\nStudioBravo Studio\n		[]	2026-02-17 20:58:59+00	\N	<FR8PR09MB852864299DA5E246B8BFF16BC36DA@FR8PR09MB8528.eurprd09.prod.outlook.com>			\N	\N	outbound	3098	{}	admin@tzzrdeck.me	26	\N	\N	\N	\N	\N
919b993daeb480dc30a86709608d71d7	"Marco Ríos" <marco@studiobravo.es>	marco@studiobravo.es	Luminaria Halo	Buenas tardes Marc\n\nTe adjunto el despiece de la luminaria que comentamos el otro día,\n\nNos hace falta enviar una muestra al cliente, pero entiendo que lo suyo será fabricar un par de unidades por si tenemos algún problema en fabricación\n\nUn saludo\n\n[IMG_3741.PNG][IMG_3737.PNG]\n		[]	2025-11-06 15:47:06+00	\N	<PR3PR09MB5409BC15B766E43E327E5ABFC3C2A@PR3PR09MB5409.eurprd09.prod.outlook.com>			\N	\N	outbound	9323	{}	admin@tzzrdeck.me	27	\N	\N	\N	\N	\N
e77f972104a9635ee0ec67e37e854a7f	"Marco Ríos" <marco@studiobravo.es>	marco@studiobravo.es	Re: Facturas airtable	Hola Cristina,\n\nConfírmame que te hayan llegado porque ya deberían haber entrado en el anterior mail\n\nUn saludo\n\n\nEnviado desde Outlook para Mac\n\nDe: Laura Moreno <laura@sparklight.es>\nFecha: lunes, 9 de febrero de 2026, 15:45\nPara: Marco Ríos <marco@studiobravo.es>, Elena Navarro <elena@sparklight.es>\nAsunto: RE: Facturas airtable\n\nHola Marco,\n\nGracias. Falta la de noviembre y la de enero. ¿Puedes enviármelas lo antes posible por favor?\n\nMuchas gracias.\n\nCRISTINA EL MERSALI\nFinance-Admin & OHS-HR department\n\nSPARKLIGHT GROUP\n+34 937 364 203\nlaura@sparklight.es\nC/Colom 416 08223 Terrassa\n(Barcelona, SPAIN)\n\n“La información contenida en este mensaje y/o archivo(s) adjunto(s), enviada desde LED DREAM SL, es confidencial/privilegiada y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Le recordamos que sus datos han sido incorporados en el sistema de  tratamiento de LED DREAM SL y que siempre y cuando se cumplan los requisitos exigidos por la normativa, usted podrá ejercer sus derechos de acceso, rectificación, limitación de tratamiento, supresión, portabilidad y oposición/revocación, en los términos que establece la normativa vigente en materia de protección de datos, dirigiendo su petición a la dirección postal CL ALBERT EINSTEIN 48 08223, TERRASSA (BARCELONA) o bien a través de correo electrónico ADMINISTRACIONRECURSOS@SPARKLIGHT.ES<mailto:ADMINISTRACIONRECURSOS@SPARKLIGHT.ES>\n\nSi usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada. Gracias”.\n\n\n\nDe: Marco Ríos <marco@studiobravo.es>\nEnviado el: lunes, 9 de febrero de 2026 3:55\nPara: Laura Moreno <laura@sparklight.es>; Elena Navarro <elena@sparklight.es>\nAsunto: Facturas airtable\n\n\n\nBuenos días Cristina\n\n\n\nTengo por fin las facturas de Airtable, hicieron cambios en la plataforma y supongo que por eso no salía, os envío las últimas, tendréis alguna repetida, no sé cual es la última que iba\n\n\n\nUn saludo\n		[]	2026-02-10 00:32:00+00	\N	<FR8PR09MB85283EDD3B0A141203E6A7C2C365A@FR8PR09MB8528.eurprd09.prod.outlook.com>	<AM6PR09MB28381FA6C9BC4A823D1DC33FC965A@AM6PR09MB2838.eurprd09.prod.outlook.com>		\N	\N	outbound	13774	{}	admin@tzzrdeck.me	28	\N	\N	\N	\N	\N
47039668fafb811e2914f9dc01782c26	"Elena Navarro" <elena@sparklight.es>	marco@studiobravo.es	RE: STUDIOBRAVO - INMOBILIZADO	Buenos días Marco,\n\n¿Podrías decirnos cuando se compraron y donde para buscar la factura?\n\nPor otro lado, nos comentaron que se había fabricado una máquina, necesitaríamos los detalles de la misma para poder introducirla en el inmovilizado de la empresa.\n\nGracias.\n\nSaludos.\n\nSANDRA FERNÁNDEZ\nAccounting and Admin Department\n\nSPARKLIGHT GROUP\n+34 937 364 203/+34 673 373 592\nelena@sparklight.es<mailto:elena@sparklight.es>\nC/Colom 416 08223 Terrassa\n(Barcelona, SPAIN)\n\n\n"La información contenida en este mensaje y/o archivo(s) adjunto(s), enviada desde LED DREAM SL, es confidencial/privilegiada y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Le recordamos que sus datos han sido incorporados en el sistema de  tratamiento de LED DREAM SL y que siempre y cuando se cumplan los requisitos exigidos por la normativa, usted podrá ejercer sus derechos de acceso, rectificación, limitación de tratamiento, supresión, portabilidad y oposición/revocación, en los términos que establece la normativa vigente en materia de protección de datos, dirigiendo su petición a la dirección postal CL ALBERT EINSTEIN 48 08223, TERRASSA (BARCELONA) o bien a través de correo electrónico ADMINISTRACIONRECURSOS@SPARKLIGHT.ES<mailto:ADMINISTRACIONRECURSOS@SPARKLIGHT.ES>\n\nSi usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada. Gracias".\n\n\nDe: Marco Ríos <marco@studiobravo.es>\nEnviado el: jueves, 5 de febrero de 2026 8:47\nPara: Elena Navarro <elena@sparklight.es>; Andrés Ríos <andres@studiobravo.es>\nCC: Marta Díaz <marta@SparkLight.es>; Carlos Ruiz <carlosruiz@sparklight.es>\nAsunto: Re: STUDIOBRAVO - INMOBILIZADO\n\nBuenos días Sandra,\n\nHay un ipad y un ordenador, ¿qué es lo que necesitáis por mi parte?\n\nUn saludo\n\n\nEnviado desde Outlook para Mac\nDe: Elena Navarro <elena@sparklight.es<mailto:elena@sparklight.es>>\nFecha: martes, 3 de febrero de 2026, 18:57\nPara: Marco Ríos <marco@studiobravo.es<mailto:marco@studiobravo.es>>, Andrés Ríos <andres@studiobravo.es<mailto:andres@studiobravo.es>>\nCC: Marta Díaz <marta@SparkLight.es<mailto:marta@SparkLight.es>>, Carlos Ruiz <carlosruiz@sparklight.es<mailto:carlosruiz@sparklight.es>>\nAsunto: STUDIOBRAVO - INMOBILIZADO\nBuenos días Marco,\n\nDe cara a cerrar la contabilidad del 2025, necesitaríamos saber los elementos de inmovilizado material de los que disponéis, es decir, por ejemplo aquellos elementos electrónicos que habéis comprado durante este año y que están en uso (iPad, ordenadores, maquinaria destinada a producción, etc....)\n\nSi tenéis dudas, anotadlas igualmente, con su descripción y uso, y ya lo valoraremos en contabilidad.\n\nGracias.\n\nSaludos.\n\nSANDRA FERNÁNDEZ\nAccounting and Admin Department\n\nSPARKLIGHT GROUP\n+34 937 364 203/+34 673 373 592\nelena@sparklight.es<mailto:elena@sparklight.es>\nC/Colom 416 08223 Terrassa\n(Barcelona, SPAIN)\n\n\n"La información contenida en este mensaje y/o archivo(s) adjunto(s), enviada desde LED DREAM SL, es confidencial/privilegiada y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Le recordamos que sus datos han sido incorporados en el sistema de  tratamiento de LED DREAM SL y que siempre y cuando se cumplan los requisitos exigidos por la normativa, usted podrá ejercer sus derechos de acceso, rectificación, limitación de tratamiento, supresión, portabilidad y oposición/revocación, en los términos que establece la normativa vigente en materia de protección de datos, dirigiendo su petición a la dirección postal CL ALBERT EINSTEIN 48 08223, TERRASSA (BARCELONA) o bien a través de correo electrónico ADMINISTRACIONRECURSOS@SPARKLIGHT.ES<mailto:ADMINISTRACIONRECURSOS@SPARKLIGHT.ES>\n\nSi usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada. Gracias".\n\n\n		[]	2026-02-06 07:28:07+00	\N	<AM7PR09MB3656B1DCECDE3CEFDE65DADFDB66A@AM7PR09MB3656.eurprd09.prod.outlook.com>	<FR8PR09MB85286BD47D38875FEBF45A7AC399A@FR8PR09MB8528.eurprd09.prod.outlook.com>	"Marta Díaz" <marta@SparkLight.es>, "Carlos Ruiz" <carlosruiz@sparklight.es>	\N	\N	inbound	24106	{}	admin@tzzrdeck.me	29	\N	\N	\N	\N	\N
7e50b8ca5e24d1b9d6f60483b3a4eb6f	"Marco Ríos" <marco@studiobravo.es>	marco@studiobravo.es	RV: Luminaria Halo	Hola Marc\n\nTe reenvío las piezas de la luminaria\n\nEstuve revisando los ajustes y la rosca tocaba un poco con la pintura, funcionaría mejor si en vez de ser de 22mm, es de 21,5mm\n\nPor otro lado, la platina trasera también tocaba un poco\n\nSi pudiérais hacer que sobre salga 11mm en vez de 12mm sería perfecto, pero ta y como está funciona\n\nSon dos piezas, para pintar en blanco texturizado\n\nMuchas gracias\n\n\nEnviado desde Outlook para Mac\n\nDe: Marco Ríos <marco@studiobravo.es>\nFecha: jueves, 6 de noviembre de 2025, 23:47\nPara: Marc Gimenez <marc.gimenez@ansamec.com>, Adrián Fernández <adrianf@studiobravo.es>, Nacho Medina <nacho.medina@ansamec.com>\nAsunto: Luminaria Halo\n\nBuenas tardes Marc\n\nTe adjunto el despiece de la luminaria que comentamos el otro día,\n\nNos hace falta enviar una muestra al cliente, pero entiendo que lo suyo será fabricar un par de unidades por si tenemos algún problema en fabricación\n\nUn saludo\n\n[IMG_3741.PNG][IMG_3737.PNG]\n		[]	2026-01-28 20:24:35+00	\N	<FR8PR09MB8528E779DAD11397DD9585BAC391A@FR8PR09MB8528.eurprd09.prod.outlook.com>	<PR3PR09MB5409BC15B766E43E327E5ABFC3C2A@PR3PR09MB5409.eurprd09.prod.outlook.com>		\N	\N	outbound	11782	{}	admin@tzzrdeck.me	30	\N	\N	\N	\N	\N
044c8d8b70b8a5d00d914a20044094d2	"Marco Ríos" <marco@studiobravo.es>	marco@studiobravo.es	Vuelta a España	Buenos días Sara\n\nPodemos buscar un vuelo de vuelta a España para el 26 o 27? Se me acaba el tiempo de estancia libre en China el día 27\n\nGracias\n		[]	2026-02-23 10:19:51+00	\N	<FR8PR09MB8528325324DF0F6B9BB7F939C377A@FR8PR09MB8528.eurprd09.prod.outlook.com>			\N	\N	outbound	2133	{}	admin@tzzrdeck.me	31	\N	\N	\N	\N	\N
a74f0a8177fd266d31a130d092e1da5f	TZR Systems <cloudflare@tzr.systems>	pablo@tzzrdeck.me	Test Email - Invoice IN-55586589	This is a test email from the send-mail script.\r\n\r\nTesting functionality before sending to external recipients.\r\n\r\nBest regards,\r\nTZR Systems\r\n\r\n\r\n		[]	2026-01-22 16:34:13+00	\N						inbound	863	{}	pablo@tzzrdeck.me	32	\N	\N	\N	\N	\N
\.


--
