--
-- PostgreSQL database dump
--

\restrict 0krocfDPMaK1sBrD2ONCgYnidCCNdmHii0jrac0hs8qrScdjpJ5auPue4pIbYyg

-- Dumped from database version 15.16 (Debian 15.16-0+deb12u1)
-- Dumped by pg_dump version 15.16 (Debian 15.16-0+deb12u1)

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

--
-- Name: citext; Type: EXTENSION; Schema: -; Owner: -
--

CREATE EXTENSION IF NOT EXISTS citext WITH SCHEMA public;


--
-- Name: EXTENSION citext; Type: COMMENT; Schema: -; Owner: 
--

COMMENT ON EXTENSION citext IS 'data type for case-insensitive character strings';


--
-- Name: pg_trgm; Type: EXTENSION; Schema: -; Owner: -
--

CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA public;


--
-- Name: EXTENSION pg_trgm; Type: COMMENT; Schema: -; Owner: 
--

COMMENT ON EXTENSION pg_trgm IS 'text similarity measurement and index searching based on trigrams';


--
-- Name: uuid-ossp; Type: EXTENSION; Schema: -; Owner: -
--

CREATE EXTENSION IF NOT EXISTS "uuid-ossp" WITH SCHEMA public;


--
-- Name: EXTENSION "uuid-ossp"; Type: COMMENT; Schema: -; Owner: 
--

COMMENT ON EXTENSION "uuid-ossp" IS 'generate universally unique identifiers (UUIDs)';


--
-- Name: update_domenv_count(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.update_domenv_count() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
BEGIN
    IF TG_OP = 'INSERT' OR TG_OP = 'UPDATE' THEN
        UPDATE domain_environments SET nb_servers = (
            SELECT COUNT(*) FROM servers WHERE domain_env_id = NEW.domain_env_id
        ) WHERE id = NEW.domain_env_id;
    END IF;
    IF TG_OP = 'DELETE' OR TG_OP = 'UPDATE' THEN
        UPDATE domain_environments SET nb_servers = (
            SELECT COUNT(*) FROM servers WHERE domain_env_id = OLD.domain_env_id
        ) WHERE id = OLD.domain_env_id;
    END IF;
    RETURN NULL;
END;
$$;


ALTER FUNCTION public.update_domenv_count() OWNER TO postgres;

--
-- Name: update_timestamp(); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.update_timestamp() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
BEGIN
    NEW.updated_at = now();
    RETURN NEW;
END;
$$;


ALTER FUNCTION public.update_timestamp() OWNER TO postgres;

SET default_tablespace = '';

SET default_table_access_method = heap;

--
-- Name: allowed_networks; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.allowed_networks (
    id integer NOT NULL,
    cidr character varying(50) NOT NULL,
    description character varying(200),
    is_active boolean DEFAULT true NOT NULL,
    created_at timestamp with time zone DEFAULT now() NOT NULL
);


ALTER TABLE public.allowed_networks OWNER TO postgres;

--
-- Name: allowed_networks_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.allowed_networks_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.allowed_networks_id_seq OWNER TO postgres;

--
-- Name: allowed_networks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.allowed_networks_id_seq OWNED BY public.allowed_networks.id;


--
-- Name: app_map; Type: TABLE; Schema: public; Owner: patchcenter
--

CREATE TABLE public.app_map (
    id integer NOT NULL,
    app_name character varying(200) NOT NULL,
    app_type character varying(50),
    description text,
    servers jsonb DEFAULT '[]'::jsonb,
    ports jsonb DEFAULT '[]'::jsonb,
    flows jsonb DEFAULT '[]'::jsonb,
    last_scan timestamp with time zone,
    created_at timestamp with time zone DEFAULT now(),
    updated_at timestamp with time zone DEFAULT now()
);


ALTER TABLE public.app_map OWNER TO patchcenter;

--
-- Name: app_map_id_seq; Type: SEQUENCE; Schema: public; Owner: patchcenter
--

CREATE SEQUENCE public.app_map_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.app_map_id_seq OWNER TO patchcenter;

--
-- Name: app_map_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: patchcenter
--

ALTER SEQUENCE public.app_map_id_seq OWNED BY public.app_map.id;


--
-- Name: app_secrets; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.app_secrets (
    key character varying(100) NOT NULL,
    value text NOT NULL,
    description character varying(255),
    updated_at timestamp with time zone DEFAULT now() NOT NULL
);


ALTER TABLE public.app_secrets OWNER TO postgres;

--
-- Name: applications; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.applications (
    id integer NOT NULL,
    nom_court character varying(50) NOT NULL,
    nom_complet character varying(200),
    description text,
    editeur character varying(100),
    criticite character varying(10) DEFAULT 'standard'::character varying,
    need_pre_stop boolean DEFAULT false NOT NULL,
    pre_stop_cmd text,
    post_start_cmd text,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    updated_at timestamp with time zone DEFAULT now() NOT NULL,
    itop_id integer,
    status character varying(30),
    CONSTRAINT applications_criticite_check CHECK (((criticite)::text = ANY (ARRAY[('critique'::character varying)::text, ('haute'::character varying)::text, ('standard'::character varying)::text, ('basse'::character varying)::text])))
);


ALTER TABLE public.applications OWNER TO postgres;

--
-- Name: TABLE applications; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON TABLE public.applications IS 'Catalogue applications — permet pre/post scripts par app';


--
-- Name: applications_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.applications_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.applications_id_seq OWNER TO postgres;

--
-- Name: applications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.applications_id_seq OWNED BY public.applications.id;


--
-- Name: audit_log; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.audit_log (
    id bigint NOT NULL,
    "timestamp" timestamp with time zone DEFAULT now() NOT NULL,
    user_id integer,
    username character varying(50),
    action character varying(50) NOT NULL,
    entity_type character varying(30),
    entity_id integer,
    details jsonb,
    ip_address inet
);


ALTER TABLE public.audit_log OWNER TO postgres;

--
-- Name: audit_log_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.audit_log_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.audit_log_id_seq OWNER TO postgres;

--
-- Name: audit_log_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.audit_log_id_seq OWNED BY public.audit_log.id;


--
-- Name: campaign_accord_details; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.campaign_accord_details (
    id integer NOT NULL,
    accord_id integer NOT NULL,
    session_id integer NOT NULL,
    decision character varying(20) DEFAULT 'approved'::character varying NOT NULL,
    reason text,
    CONSTRAINT campaign_accord_details_decision_check CHECK (((decision)::text = ANY (ARRAY[('approved'::character varying)::text, ('rejected'::character varying)::text, ('reported'::character varying)::text])))
);


ALTER TABLE public.campaign_accord_details OWNER TO postgres;

--
-- Name: campaign_accord_details_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.campaign_accord_details_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.campaign_accord_details_id_seq OWNER TO postgres;

--
-- Name: campaign_accord_details_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.campaign_accord_details_id_seq OWNED BY public.campaign_accord_details.id;


--
-- Name: campaign_accords; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.campaign_accords (
    id integer NOT NULL,
    campaign_id integer NOT NULL,
    contact_id integer NOT NULL,
    status character varying(20) DEFAULT 'pending'::character varying NOT NULL,
    response_date timestamp with time zone,
    comment text,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    CONSTRAINT campaign_accords_status_check CHECK (((status)::text = ANY (ARRAY[('pending'::character varying)::text, ('approved'::character varying)::text, ('partial'::character varying)::text, ('rejected'::character varying)::text, ('reported'::character varying)::text])))
);


ALTER TABLE public.campaign_accords OWNER TO postgres;

--
-- Name: campaign_accords_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.campaign_accords_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.campaign_accords_id_seq OWNER TO postgres;

--
-- Name: campaign_accords_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.campaign_accords_id_seq OWNED BY public.campaign_accords.id;


--
-- Name: campaign_operator_limits; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.campaign_operator_limits (
    id integer NOT NULL,
    campaign_id integer NOT NULL,
    user_id integer NOT NULL,
    max_servers integer DEFAULT 0 NOT NULL,
    note text
);


ALTER TABLE public.campaign_operator_limits OWNER TO postgres;

--
-- Name: campaign_operator_limits_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.campaign_operator_limits_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.campaign_operator_limits_id_seq OWNER TO postgres;

--
-- Name: campaign_operator_limits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.campaign_operator_limits_id_seq OWNED BY public.campaign_operator_limits.id;


--
-- Name: campaigns; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.campaigns (
    id integer NOT NULL,
    week_code character varying(10) NOT NULL,
    year integer DEFAULT EXTRACT(year FROM now()) NOT NULL,
    label character varying(100),
    status character varying(20) DEFAULT 'draft'::character varying NOT NULL,
    date_start date,
    date_end date,
    total_servers integer DEFAULT 0,
    patched_ok integer DEFAULT 0,
    patched_ko integer DEFAULT 0,
    pending integer DEFAULT 0,
    created_by integer,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    updated_at timestamp with time zone DEFAULT now() NOT NULL,
    campaign_type character varying(20) DEFAULT 'standard'::character varying NOT NULL,
    CONSTRAINT campaigns_campaign_type_check CHECK (((campaign_type)::text = ANY (ARRAY[('standard'::character varying)::text, ('quickwin'::character varying)::text, ('safe_patching'::character varying)::text]))),
    CONSTRAINT campaigns_status_check CHECK (((status)::text = ANY (ARRAY[('draft'::character varying)::text, ('pending_validation'::character varying)::text, ('planned'::character varying)::text, ('in_progress'::character varying)::text, ('completed'::character varying)::text, ('cancelled'::character varying)::text])))
);


ALTER TABLE public.campaigns OWNER TO postgres;

--
-- Name: campaigns_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.campaigns_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.campaigns_id_seq OWNER TO postgres;

--
-- Name: campaigns_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.campaigns_id_seq OWNED BY public.campaigns.id;


--
-- Name: cluster_members; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.cluster_members (
    id integer NOT NULL,
    cluster_id integer NOT NULL,
    server_id integer NOT NULL,
    patch_order integer DEFAULT 1 NOT NULL,
    is_active boolean DEFAULT true NOT NULL
);


ALTER TABLE public.cluster_members OWNER TO postgres;

--
-- Name: cluster_members_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.cluster_members_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.cluster_members_id_seq OWNER TO postgres;

--
-- Name: cluster_members_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.cluster_members_id_seq OWNED BY public.cluster_members.id;


--
-- Name: clusters; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.clusters (
    id integer NOT NULL,
    name character varying(100) NOT NULL,
    description text,
    patch_strategy character varying(20) DEFAULT 'sequential'::character varying NOT NULL,
    max_parallel integer DEFAULT 1 NOT NULL,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    CONSTRAINT clusters_patch_strategy_check CHECK (((patch_strategy)::text = ANY (ARRAY[('sequential'::character varying)::text, ('rolling'::character varying)::text, ('parallel'::character varying)::text])))
);


ALTER TABLE public.clusters OWNER TO postgres;

--
-- Name: TABLE clusters; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON TABLE public.clusters IS 'Groupes de serveurs avec ordre de patching (ex: Satellite SAT1 avant SAT2)';


--
-- Name: clusters_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.clusters_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.clusters_id_seq OWNER TO postgres;

--
-- Name: clusters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.clusters_id_seq OWNED BY public.clusters.id;


--
-- Name: contact_scopes; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.contact_scopes (
    id integer NOT NULL,
    contact_id integer NOT NULL,
    scope_type character varying(20) NOT NULL,
    scope_value character varying(100) NOT NULL,
    env_scope character varying(20) DEFAULT 'all'::character varying,
    CONSTRAINT contact_scopes_scope_type_check CHECK (((scope_type)::text = ANY (ARRAY[('domain'::character varying)::text, ('application'::character varying)::text, ('server'::character varying)::text, ('app_group'::character varying)::text, ('zone'::character varying)::text])))
);


ALTER TABLE public.contact_scopes OWNER TO postgres;

--
-- Name: contact_scopes_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.contact_scopes_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.contact_scopes_id_seq OWNER TO postgres;

--
-- Name: contact_scopes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.contact_scopes_id_seq OWNED BY public.contact_scopes.id;


--
-- Name: contacts; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.contacts (
    id integer NOT NULL,
    name character varying(150) NOT NULL,
    email character varying(255) NOT NULL,
    role character varying(30) DEFAULT 'responsable'::character varying NOT NULL,
    is_active boolean DEFAULT false NOT NULL,
    is_verified boolean DEFAULT false NOT NULL,
    portal_token character varying(100),
    portal_token_expires timestamp with time zone,
    last_portal_access timestamp with time zone,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    updated_at timestamp with time zone DEFAULT now() NOT NULL,
    itop_id integer,
    telephone character varying(50),
    team character varying(100),
    function character varying(200),
    CONSTRAINT contacts_role_check CHECK (((role)::text = ANY (ARRAY[('responsable_domaine'::character varying)::text, ('responsable_prod'::character varying)::text, ('responsable_applicatif'::character varying)::text, ('referent_technique'::character varying)::text, ('chef_projet'::character varying)::text, ('editeur'::character varying)::text, ('ra_prod'::character varying)::text, ('ra_recette'::character varying)::text, ('ra_preprod'::character varying)::text, ('ra_test'::character varying)::text, ('ra_dev'::character varying)::text, ('contact_technique'::character varying)::text, ('autre'::character varying)::text])))
);


ALTER TABLE public.contacts OWNER TO postgres;

--
-- Name: contacts_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.contacts_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.contacts_id_seq OWNER TO postgres;

--
-- Name: contacts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.contacts_id_seq OWNED BY public.contacts.id;


--
-- Name: default_assignments; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.default_assignments (
    id integer NOT NULL,
    rule_type character varying(20) NOT NULL,
    rule_value character varying(100) NOT NULL,
    user_id integer NOT NULL,
    priority integer DEFAULT 10 NOT NULL,
    note text,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    CONSTRAINT default_assignments_rule_type_check CHECK (((rule_type)::text = ANY (ARRAY[('server'::character varying)::text, ('app_type'::character varying)::text, ('app_group'::character varying)::text, ('domain'::character varying)::text, ('zone'::character varying)::text])))
);


ALTER TABLE public.default_assignments OWNER TO postgres;

--
-- Name: default_assignments_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.default_assignments_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.default_assignments_id_seq OWNER TO postgres;

--
-- Name: default_assignments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.default_assignments_id_seq OWNED BY public.default_assignments.id;


--
-- Name: domain_environments; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.domain_environments (
    id integer NOT NULL,
    domain_id integer NOT NULL,
    environment_id integer NOT NULL,
    responsable_nom character varying(100),
    responsable_email character varying(255),
    referent_nom character varying(100),
    referent_email character varying(255),
    patch_window character varying(100),
    patch_excludes text,
    nb_servers integer DEFAULT 0,
    is_active boolean DEFAULT true NOT NULL,
    created_at timestamp with time zone DEFAULT now() NOT NULL
);


ALTER TABLE public.domain_environments OWNER TO postgres;

--
-- Name: TABLE domain_environments; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON TABLE public.domain_environments IS 'Combinaison domaine+env avec responsables spécifiques';


--
-- Name: domain_environments_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.domain_environments_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.domain_environments_id_seq OWNER TO postgres;

--
-- Name: domain_environments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.domain_environments_id_seq OWNED BY public.domain_environments.id;


--
-- Name: domain_ltd_list; Type: TABLE; Schema: public; Owner: patchcenter
--

CREATE TABLE public.domain_ltd_list (
    id integer NOT NULL,
    name character varying NOT NULL,
    description text,
    is_active boolean DEFAULT true NOT NULL,
    created_at timestamp with time zone DEFAULT now() NOT NULL
);


ALTER TABLE public.domain_ltd_list OWNER TO patchcenter;

--
-- Name: domain_ltd_list_id_seq; Type: SEQUENCE; Schema: public; Owner: patchcenter
--

CREATE SEQUENCE public.domain_ltd_list_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.domain_ltd_list_id_seq OWNER TO patchcenter;

--
-- Name: domain_ltd_list_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: patchcenter
--

ALTER SEQUENCE public.domain_ltd_list_id_seq OWNED BY public.domain_ltd_list.id;


--
-- Name: domain_responsables; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.domain_responsables (
    id integer NOT NULL,
    domain_id integer NOT NULL,
    nom character varying(100) NOT NULL,
    email character varying(255),
    telephone character varying(20),
    role_resp character varying(50) DEFAULT 'responsable'::character varying,
    is_primary boolean DEFAULT false NOT NULL,
    is_active boolean DEFAULT true NOT NULL,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    CONSTRAINT domain_responsables_role_resp_check CHECK (((role_resp)::text = ANY (ARRAY[('responsable'::character varying)::text, ('adjoint'::character varying)::text, ('referent'::character varying)::text])))
);


ALTER TABLE public.domain_responsables OWNER TO postgres;

--
-- Name: domain_responsables_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.domain_responsables_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.domain_responsables_id_seq OWNER TO postgres;

--
-- Name: domain_responsables_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.domain_responsables_id_seq OWNED BY public.domain_responsables.id;


--
-- Name: domains; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.domains (
    id integer NOT NULL,
    name character varying(50) NOT NULL,
    code character varying(10) NOT NULL,
    description text,
    default_excludes text,
    default_patch_window character varying(100),
    default_patch_frequency character varying(20) DEFAULT 'monthly'::character varying,
    teams_webhook_url character varying(500),
    teams_sharepoint_folder character varying(100),
    display_order integer DEFAULT 0 NOT NULL,
    is_active boolean DEFAULT true NOT NULL,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    updated_at timestamp with time zone DEFAULT now() NOT NULL
);


ALTER TABLE public.domains OWNER TO postgres;

--
-- Name: domains_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.domains_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.domains_id_seq OWNER TO postgres;

--
-- Name: domains_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

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


--
-- Name: environments; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.environments (
    id integer NOT NULL,
    name character varying(50) NOT NULL,
    code character varying(10) NOT NULL,
    ssh_method character varying(20) DEFAULT 'ssh_key'::character varying NOT NULL,
    requires_approval boolean DEFAULT false NOT NULL,
    approval_level character varying(20) DEFAULT 'operator'::character varying,
    display_order integer DEFAULT 0 NOT NULL,
    is_active boolean DEFAULT true NOT NULL,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    CONSTRAINT environments_approval_level_check CHECK (((approval_level)::text = ANY (ARRAY[('operator'::character varying)::text, ('secops'::character varying)::text, ('dsi'::character varying)::text]))),
    CONSTRAINT environments_ssh_method_check CHECK (((ssh_method)::text = ANY (ARRAY[('ssh_key'::character varying)::text, ('ssh_pwd'::character varying)::text, ('ssh_psmp'::character varying)::text, ('rdp_psm'::character varying)::text, ('rdp_pwd'::character varying)::text])))
);


ALTER TABLE public.environments OWNER TO postgres;

--
-- Name: environments_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.environments_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.environments_id_seq OWNER TO postgres;

--
-- Name: environments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.environments_id_seq OWNED BY public.environments.id;


--
-- Name: eol_references; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.eol_references (
    id integer NOT NULL,
    os_pattern character varying(100) NOT NULL,
    eol_date date NOT NULL,
    els_date date,
    status character varying(10) NOT NULL,
    notes text,
    CONSTRAINT eol_references_status_check CHECK (((status)::text = ANY (ARRAY[('eol'::character varying)::text, ('els'::character varying)::text, ('active'::character varying)::text])))
);


ALTER TABLE public.eol_references OWNER TO postgres;

--
-- Name: eol_references_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.eol_references_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.eol_references_id_seq OWNER TO postgres;

--
-- Name: eol_references_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.eol_references_id_seq OWNED BY public.eol_references.id;


--
-- Name: import_history; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.import_history (
    id integer NOT NULL,
    source character varying(50) NOT NULL,
    filename character varying(255),
    imported_by integer,
    imported_at timestamp with time zone DEFAULT now() NOT NULL,
    total_rows integer DEFAULT 0,
    created_count integer DEFAULT 0,
    updated_count integer DEFAULT 0,
    skipped_count integer DEFAULT 0,
    error_count integer DEFAULT 0,
    errors jsonb,
    status character varying(20) DEFAULT 'completed'::character varying
);


ALTER TABLE public.import_history OWNER TO postgres;

--
-- Name: import_history_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.import_history_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.import_history_id_seq OWNER TO postgres;

--
-- Name: import_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.import_history_id_seq OWNED BY public.import_history.id;


--
-- Name: network_flow_map; Type: TABLE; Schema: public; Owner: patchcenter
--

CREATE TABLE public.network_flow_map (
    id integer NOT NULL,
    audit_id integer,
    source_server_id integer,
    source_hostname character varying(200),
    source_ip character varying(50),
    dest_ip character varying(50),
    dest_port integer,
    dest_hostname character varying(200),
    dest_server_id integer,
    process_name character varying(150),
    process_user character varying(50),
    service_name character varying(50),
    direction character varying(10),
    connection_count integer DEFAULT 1,
    state character varying(20),
    audit_date timestamp with time zone DEFAULT now()
);


ALTER TABLE public.network_flow_map OWNER TO patchcenter;

--
-- Name: network_flow_map_id_seq; Type: SEQUENCE; Schema: public; Owner: patchcenter
--

CREATE SEQUENCE public.network_flow_map_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.network_flow_map_id_seq OWNER TO patchcenter;

--
-- Name: network_flow_map_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: patchcenter
--

ALTER SEQUENCE public.network_flow_map_id_seq OWNED BY public.network_flow_map.id;


--
-- Name: patch_history; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.patch_history (
    id integer NOT NULL,
    server_id integer NOT NULL,
    campaign_id integer,
    intervenant_id integer,
    date_patch timestamp with time zone NOT NULL,
    status character varying(20) NOT NULL,
    command text,
    packages_updated integer DEFAULT 0,
    reboot_done boolean DEFAULT false,
    snapshot_name character varying(200),
    notes text,
    created_at timestamp with time zone DEFAULT now() NOT NULL
);


ALTER TABLE public.patch_history OWNER TO postgres;

--
-- Name: TABLE patch_history; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON TABLE public.patch_history IS 'Historique résumé — alimenté automatiquement après chaque campagne';


--
-- Name: patch_history_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.patch_history_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.patch_history_id_seq OWNER TO postgres;

--
-- Name: patch_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.patch_history_id_seq OWNED BY public.patch_history.id;


--
-- Name: patch_planning; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.patch_planning (
    id integer NOT NULL,
    year integer NOT NULL,
    week_number integer NOT NULL,
    week_code character varying(5) NOT NULL,
    week_start date NOT NULL,
    week_end date NOT NULL,
    cycle integer,
    domain_code character varying(20),
    env_scope character varying(20) DEFAULT 'all'::character varying NOT NULL,
    status character varying(20) DEFAULT 'open'::character varying NOT NULL,
    note text,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    CONSTRAINT patch_planning_env_scope_check CHECK (((env_scope)::text = ANY (ARRAY[('prod'::character varying)::text, ('hprod'::character varying)::text, ('all'::character varying)::text, ('pilot'::character varying)::text, ('prod_pilot'::character varying)::text]))),
    CONSTRAINT patch_planning_status_check CHECK (((status)::text = ANY (ARRAY[('open'::character varying)::text, ('freeze'::character varying)::text, ('holiday'::character varying)::text, ('empty'::character varying)::text])))
);


ALTER TABLE public.patch_planning OWNER TO postgres;

--
-- Name: patch_planning_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.patch_planning_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.patch_planning_id_seq OWNER TO postgres;

--
-- Name: patch_planning_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.patch_planning_id_seq OWNED BY public.patch_planning.id;


--
-- Name: patch_sessions; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.patch_sessions (
    id integer NOT NULL,
    campaign_id integer NOT NULL,
    server_id integer NOT NULL,
    intervenant_id integer,
    date_prevue timestamp with time zone,
    duree_estimee character varying(20),
    accord_responsable boolean DEFAULT false,
    date_report timestamp with time zone,
    motif_report text,
    prereq_ssh character varying(10) DEFAULT 'pending'::character varying,
    prereq_disk_root integer,
    prereq_disk_log integer,
    prereq_satellite character varying(10) DEFAULT 'pending'::character varying,
    prereq_date timestamp with time zone,
    snapshot_name character varying(200),
    snapshot_created boolean DEFAULT false,
    snapshot_forced boolean DEFAULT false,
    snapshot_justif text,
    snapshot_date timestamp with time zone,
    patch_command text,
    patch_output text,
    pb_espace_disque boolean DEFAULT false,
    status character varying(20) DEFAULT 'pending'::character varying NOT NULL,
    date_realise timestamp with time zone,
    reboot_required boolean DEFAULT false,
    reboot_date timestamp with time zone,
    packages_before text,
    packages_after text,
    packages_updated integer DEFAULT 0,
    postcheck_services character varying(10) DEFAULT 'pending'::character varying,
    postcheck_ports character varying(10) DEFAULT 'pending'::character varying,
    postcheck_date timestamp with time zone,
    notif_debut_sent boolean DEFAULT false,
    notif_reboot_sent boolean DEFAULT false,
    notif_fin_sent boolean DEFAULT false,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    updated_at timestamp with time zone DEFAULT now() NOT NULL,
    exclusion_reason character varying(30),
    exclusion_detail text,
    excluded_by character varying(100),
    excluded_at timestamp with time zone,
    rollback_method character varying(20),
    rollback_justif text,
    prereq_validated boolean DEFAULT false NOT NULL,
    prereq_validated_by character varying(100),
    prereq_validated_at timestamp with time zone,
    prereq_disk_root_mb integer,
    prereq_disk_var_mb integer,
    prereq_disk_ok boolean,
    heure_prevue character varying(20),
    assigned_at timestamp with time zone,
    forced_assignment boolean DEFAULT false NOT NULL,
    state_before jsonb,
    state_after jsonb,
    state_diff jsonb,
    note text,
    CONSTRAINT patch_sessions_exclusion_check CHECK (((exclusion_reason IS NULL) OR ((exclusion_reason)::text = ANY (ARRAY[('eol'::character varying)::text, ('creneau_inadequat'::character varying)::text, ('intervention_non_secops'::character varying)::text, ('report_cycle'::character varying)::text, ('non_patchable'::character varying)::text, ('autre'::character varying)::text])))),
    CONSTRAINT patch_sessions_postcheck_services_check CHECK (((postcheck_services)::text = ANY (ARRAY[('pending'::character varying)::text, ('ok'::character varying)::text, ('ko'::character varying)::text, ('skip'::character varying)::text]))),
    CONSTRAINT patch_sessions_prereq_satellite_check CHECK (((prereq_satellite)::text = ANY (ARRAY[('pending'::character varying)::text, ('ok'::character varying)::text, ('ko'::character varying)::text, ('na'::character varying)::text, ('skip'::character varying)::text]))),
    CONSTRAINT patch_sessions_prereq_ssh_check CHECK (((prereq_ssh)::text = ANY (ARRAY[('pending'::character varying)::text, ('ok'::character varying)::text, ('ko'::character varying)::text, ('skip'::character varying)::text]))),
    CONSTRAINT patch_sessions_rollback_check CHECK (((rollback_method IS NULL) OR ((rollback_method)::text = ANY (ARRAY[('snapshot'::character varying)::text, ('commvault'::character varying)::text, ('commcell'::character varying)::text, ('force'::character varying)::text, ('na'::character varying)::text])))),
    CONSTRAINT patch_sessions_status_check CHECK (((status)::text = ANY (ARRAY[('pending'::character varying)::text, ('prereq_ok'::character varying)::text, ('in_progress'::character varying)::text, ('patched'::character varying)::text, ('up_to_date'::character varying)::text, ('failed'::character varying)::text, ('skipped'::character varying)::text, ('cancelled'::character varying)::text, ('reported'::character varying)::text, ('excluded'::character varying)::text])))
);


ALTER TABLE public.patch_sessions OWNER TO postgres;

--
-- Name: TABLE patch_sessions; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON TABLE public.patch_sessions IS 'Données dynamiques de patching par campagne — 1 ligne = 1 serveur dans 1 semaine';


--
-- Name: COLUMN patch_sessions.snapshot_forced; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.patch_sessions.snapshot_forced IS 'True si patcheur a forcé le patch sans snapshot — justification obligatoire';


--
-- Name: patch_sessions_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.patch_sessions_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.patch_sessions_id_seq OWNER TO postgres;

--
-- Name: patch_sessions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.patch_sessions_id_seq OWNED BY public.patch_sessions.id;


--
-- Name: patch_validation; Type: TABLE; Schema: public; Owner: patchcenter
--

CREATE TABLE public.patch_validation (
    id integer NOT NULL,
    server_id integer,
    campaign_id integer,
    campaign_type character varying(30),
    patch_date timestamp without time zone DEFAULT now(),
    status character varying(20) DEFAULT 'en_attente'::character varying NOT NULL,
    validated_by_contact_id integer,
    validated_by_name character varying(200),
    validated_at timestamp without time zone,
    marked_by_user_id integer,
    forced_reason text,
    notes text,
    created_at timestamp without time zone DEFAULT now(),
    updated_at timestamp without time zone DEFAULT now(),
    CONSTRAINT patch_validation_status_check CHECK (((status)::text = ANY ((ARRAY['en_attente'::character varying, 'validated_ok'::character varying, 'validated_ko'::character varying, 'forced'::character varying])::text[])))
);


ALTER TABLE public.patch_validation OWNER TO patchcenter;

--
-- Name: patch_validation_id_seq; Type: SEQUENCE; Schema: public; Owner: patchcenter
--

CREATE SEQUENCE public.patch_validation_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.patch_validation_id_seq OWNER TO patchcenter;

--
-- Name: patch_validation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: patchcenter
--

ALTER SEQUENCE public.patch_validation_id_seq OWNED BY public.patch_validation.id;


--
-- Name: qualys_asset_tags; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.qualys_asset_tags (
    id integer NOT NULL,
    qualys_asset_id bigint NOT NULL,
    qualys_tag_id bigint NOT NULL,
    assigned_at timestamp with time zone DEFAULT now() NOT NULL
);


ALTER TABLE public.qualys_asset_tags OWNER TO postgres;

--
-- Name: qualys_asset_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.qualys_asset_tags_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.qualys_asset_tags_id_seq OWNER TO postgres;

--
-- Name: qualys_asset_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.qualys_asset_tags_id_seq OWNED BY public.qualys_asset_tags.id;


--
-- Name: qualys_assets; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.qualys_assets (
    id integer NOT NULL,
    qualys_asset_id bigint NOT NULL,
    name character varying(255) NOT NULL,
    hostname public.citext,
    fqdn character varying(255),
    ip_address inet,
    os text,
    os_family character varying(10),
    agent_status character varying(30),
    agent_version character varying(30),
    last_checkin timestamp with time zone,
    server_id integer,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    updated_at timestamp with time zone DEFAULT now() NOT NULL
);


ALTER TABLE public.qualys_assets OWNER TO postgres;

--
-- Name: qualys_assets_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.qualys_assets_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.qualys_assets_id_seq OWNER TO postgres;

--
-- Name: qualys_assets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.qualys_assets_id_seq OWNED BY public.qualys_assets.id;


--
-- Name: qualys_tags; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.qualys_tags (
    id integer NOT NULL,
    qualys_tag_id bigint NOT NULL,
    name character varying(200) NOT NULL,
    is_dynamic boolean DEFAULT false NOT NULL,
    rule_type character varying(50),
    rule_text text,
    category character varying(50),
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    updated_at timestamp with time zone DEFAULT now() NOT NULL,
    v3_name character varying(100),
    v3_type character varying(10)
);


ALTER TABLE public.qualys_tags OWNER TO postgres;

--
-- Name: qualys_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.qualys_tags_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.qualys_tags_id_seq OWNER TO postgres;

--
-- Name: qualys_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.qualys_tags_id_seq OWNED BY public.qualys_tags.id;


--
-- Name: quickwin_entries; Type: TABLE; Schema: public; Owner: patchcenter
--

CREATE TABLE public.quickwin_entries (
    id integer NOT NULL,
    run_id integer NOT NULL,
    server_id integer NOT NULL,
    branch character varying(10) DEFAULT 'hprod'::character varying NOT NULL,
    status character varying(20) DEFAULT 'pending'::character varying NOT NULL,
    general_excludes text DEFAULT ''::text NOT NULL,
    specific_excludes text DEFAULT ''::text NOT NULL,
    patch_command text,
    patch_output text,
    patch_packages_count integer DEFAULT 0,
    patch_packages text,
    patch_date timestamp with time zone,
    reboot_required boolean DEFAULT false NOT NULL,
    prereq_ok boolean,
    prereq_detail text,
    snap_done boolean DEFAULT false NOT NULL,
    dryrun_output text,
    notes text,
    updated_at timestamp with time zone DEFAULT now() NOT NULL,
    prereq_date timestamp with time zone,
    snap_date timestamp with time zone,
    prereq_ssh boolean,
    prereq_satellite boolean,
    prereq_disk boolean,
    prod_pair_entry_id integer,
    snap_detail text,
    CONSTRAINT quickwin_entries_branch_check CHECK (((branch)::text = ANY (ARRAY[('hprod'::character varying)::text, ('prod'::character varying)::text]))),
    CONSTRAINT quickwin_entries_status_check CHECK (((status)::text = ANY (ARRAY[('pending'::character varying)::text, ('in_progress'::character varying)::text, ('patched'::character varying)::text, ('failed'::character varying)::text, ('skipped'::character varying)::text, ('excluded'::character varying)::text])))
);


ALTER TABLE public.quickwin_entries OWNER TO patchcenter;

--
-- Name: quickwin_entries_id_seq; Type: SEQUENCE; Schema: public; Owner: patchcenter
--

CREATE SEQUENCE public.quickwin_entries_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.quickwin_entries_id_seq OWNER TO patchcenter;

--
-- Name: quickwin_entries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: patchcenter
--

ALTER SEQUENCE public.quickwin_entries_id_seq OWNED BY public.quickwin_entries.id;


--
-- Name: quickwin_logs; Type: TABLE; Schema: public; Owner: patchcenter
--

CREATE TABLE public.quickwin_logs (
    id integer NOT NULL,
    run_id integer NOT NULL,
    entry_id integer,
    hostname character varying(255),
    step character varying(30) NOT NULL,
    level character varying(10) DEFAULT 'info'::character varying NOT NULL,
    message text NOT NULL,
    detail text,
    created_at timestamp without time zone DEFAULT now(),
    created_by character varying(100)
);


ALTER TABLE public.quickwin_logs OWNER TO patchcenter;

--
-- Name: quickwin_logs_id_seq; Type: SEQUENCE; Schema: public; Owner: patchcenter
--

CREATE SEQUENCE public.quickwin_logs_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.quickwin_logs_id_seq OWNER TO patchcenter;

--
-- Name: quickwin_logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: patchcenter
--

ALTER SEQUENCE public.quickwin_logs_id_seq OWNED BY public.quickwin_logs.id;


--
-- Name: quickwin_runs; Type: TABLE; Schema: public; Owner: patchcenter
--

CREATE TABLE public.quickwin_runs (
    id integer NOT NULL,
    year integer NOT NULL,
    week_number integer NOT NULL,
    label text DEFAULT ''::text NOT NULL,
    status character varying(20) DEFAULT 'draft'::character varying NOT NULL,
    created_by integer,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    updated_at timestamp with time zone DEFAULT now() NOT NULL,
    notes text,
    CONSTRAINT quickwin_runs_status_check CHECK (((status)::text = ANY (ARRAY[('draft'::character varying)::text, ('prereq'::character varying)::text, ('snapshot'::character varying)::text, ('patching'::character varying)::text, ('result'::character varying)::text, ('completed'::character varying)::text, ('failed'::character varying)::text])))
);


ALTER TABLE public.quickwin_runs OWNER TO patchcenter;

--
-- Name: quickwin_runs_id_seq; Type: SEQUENCE; Schema: public; Owner: patchcenter
--

CREATE SEQUENCE public.quickwin_runs_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.quickwin_runs_id_seq OWNER TO patchcenter;

--
-- Name: quickwin_runs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: patchcenter
--

ALTER SEQUENCE public.quickwin_runs_id_seq OWNED BY public.quickwin_runs.id;


--
-- Name: quickwin_server_config; Type: TABLE; Schema: public; Owner: patchcenter
--

CREATE TABLE public.quickwin_server_config (
    id integer NOT NULL,
    server_id integer NOT NULL,
    general_excludes text DEFAULT ''::text NOT NULL,
    specific_excludes text DEFAULT ''::text NOT NULL,
    last_yum_commands jsonb DEFAULT '[]'::jsonb,
    notes text,
    updated_at timestamp with time zone DEFAULT now() NOT NULL
);


ALTER TABLE public.quickwin_server_config OWNER TO patchcenter;

--
-- Name: quickwin_server_config_id_seq; Type: SEQUENCE; Schema: public; Owner: patchcenter
--

CREATE SEQUENCE public.quickwin_server_config_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.quickwin_server_config_id_seq OWNER TO patchcenter;

--
-- Name: quickwin_server_config_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: patchcenter
--

ALTER SEQUENCE public.quickwin_server_config_id_seq OWNED BY public.quickwin_server_config.id;


--
-- Name: server_audit; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.server_audit (
    id integer NOT NULL,
    server_id integer,
    hostname character varying(100) NOT NULL,
    audit_date timestamp with time zone NOT NULL,
    status character varying(30) NOT NULL,
    connection_method text,
    resolved_fqdn character varying(150),
    os_release text,
    kernel character varying(100),
    uptime text,
    selinux character varying(50),
    disk_detail text,
    disk_root_free_mb integer,
    disk_var_free_mb integer,
    disk_applis_pct integer,
    disk_alert boolean DEFAULT false,
    network_mounts text,
    fstab_network text,
    apps_installed text,
    services_running text,
    services_enabled text,
    running_not_enabled text,
    custom_processes text,
    pm2_processes text,
    rc_scripts text,
    applis_scripts text,
    crontab_root text,
    crontab_users text,
    containers text,
    podman_systemd text,
    listening_ports text,
    db_detected text,
    cluster_detected text,
    agents text,
    qualys_active boolean,
    sentinelone_active boolean,
    last_patch text,
    failed_services text,
    created_at timestamp with time zone DEFAULT now() NOT NULL
);


ALTER TABLE public.server_audit OWNER TO postgres;

--
-- Name: server_audit_full; Type: TABLE; Schema: public; Owner: patchcenter
--

CREATE TABLE public.server_audit_full (
    id integer NOT NULL,
    server_id integer,
    hostname character varying(200) NOT NULL,
    audit_date timestamp with time zone DEFAULT now(),
    os_release text,
    kernel text,
    uptime text,
    services jsonb DEFAULT '[]'::jsonb,
    processes jsonb DEFAULT '[]'::jsonb,
    services_failed text,
    needs_restarting text,
    reboot_required boolean DEFAULT false,
    disk_usage jsonb DEFAULT '[]'::jsonb,
    interfaces jsonb DEFAULT '[]'::jsonb,
    routes jsonb DEFAULT '[]'::jsonb,
    listen_ports jsonb DEFAULT '[]'::jsonb,
    connections jsonb DEFAULT '[]'::jsonb,
    flux_in jsonb DEFAULT '[]'::jsonb,
    flux_out jsonb DEFAULT '[]'::jsonb,
    conn_wait jsonb DEFAULT '[]'::jsonb,
    net_stats jsonb DEFAULT '{}'::jsonb,
    traffic jsonb DEFAULT '[]'::jsonb,
    firewall jsonb DEFAULT '{}'::jsonb,
    correlation_matrix jsonb DEFAULT '[]'::jsonb,
    outbound_only jsonb DEFAULT '[]'::jsonb,
    raw_output text,
    status character varying(20) DEFAULT 'ok'::character varying,
    error_msg text,
    created_at timestamp with time zone DEFAULT now(),
    last_patch_date character varying(20),
    last_patch_week character varying(10),
    last_patch_year integer,
    patch_count_2026 integer DEFAULT 0,
    patch_weeks_2026 text,
    patch_count_2025 integer DEFAULT 0,
    patch_weeks_2025 text,
    patch_status_2026 character varying(20) DEFAULT NULL::character varying,
    cancelled_weeks_2026 text
);


ALTER TABLE public.server_audit_full OWNER TO patchcenter;

--
-- Name: server_audit_full_id_seq; Type: SEQUENCE; Schema: public; Owner: patchcenter
--

CREATE SEQUENCE public.server_audit_full_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.server_audit_full_id_seq OWNER TO patchcenter;

--
-- Name: server_audit_full_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: patchcenter
--

ALTER SEQUENCE public.server_audit_full_id_seq OWNED BY public.server_audit_full.id;


--
-- Name: server_audit_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.server_audit_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.server_audit_id_seq OWNER TO postgres;

--
-- Name: server_audit_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.server_audit_id_seq OWNED BY public.server_audit.id;


--
-- Name: server_correspondance; Type: TABLE; Schema: public; Owner: patchcenter
--

CREATE TABLE public.server_correspondance (
    id integer NOT NULL,
    prod_server_id integer,
    nonprod_server_id integer,
    environment_code character varying(50),
    source character varying(20) DEFAULT 'auto'::character varying NOT NULL,
    note text,
    created_by integer,
    created_at timestamp without time zone DEFAULT now(),
    updated_at timestamp without time zone DEFAULT now(),
    CONSTRAINT server_correspondance_source_check CHECK (((source)::text = ANY ((ARRAY['auto'::character varying, 'manual'::character varying, 'exception'::character varying])::text[])))
);


ALTER TABLE public.server_correspondance OWNER TO patchcenter;

--
-- Name: server_correspondance_id_seq; Type: SEQUENCE; Schema: public; Owner: patchcenter
--

CREATE SEQUENCE public.server_correspondance_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.server_correspondance_id_seq OWNER TO patchcenter;

--
-- Name: server_correspondance_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: patchcenter
--

ALTER SEQUENCE public.server_correspondance_id_seq OWNED BY public.server_correspondance.id;


--
-- Name: server_ips; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.server_ips (
    id integer NOT NULL,
    server_id integer NOT NULL,
    ip_address inet NOT NULL,
    ip_type character varying(20) DEFAULT 'primary'::character varying NOT NULL,
    is_ssh boolean DEFAULT false NOT NULL,
    vlan_id integer,
    interface character varying(30),
    description character varying(200),
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    CONSTRAINT server_ips_ip_type_check CHECK (((ip_type)::text = ANY (ARRAY[('primary'::character varying)::text, ('secondary'::character varying)::text, ('management'::character varying)::text, ('vlan'::character varying)::text])))
);


ALTER TABLE public.server_ips OWNER TO postgres;

--
-- Name: server_ips_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.server_ips_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.server_ips_id_seq OWNER TO postgres;

--
-- Name: server_ips_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.server_ips_id_seq OWNED BY public.server_ips.id;


--
-- Name: server_pairs; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.server_pairs (
    id integer NOT NULL,
    prod_server_id integer NOT NULL,
    hprod_server_id integer NOT NULL,
    relation_type character varying(20) DEFAULT 'same_app'::character varying NOT NULL,
    auto_detected boolean DEFAULT false NOT NULL,
    note text,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    CONSTRAINT server_pairs_relation_type_check CHECK (((relation_type)::text = ANY (ARRAY[('same_app'::character varying)::text, ('cluster_pair'::character varying)::text, ('dr_pair'::character varying)::text, ('manual'::character varying)::text])))
);


ALTER TABLE public.server_pairs OWNER TO postgres;

--
-- Name: server_pairs_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.server_pairs_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.server_pairs_id_seq OWNER TO postgres;

--
-- Name: server_pairs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.server_pairs_id_seq OWNED BY public.server_pairs.id;


--
-- Name: server_specifics; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.server_specifics (
    id integer NOT NULL,
    server_id integer NOT NULL,
    reboot_order integer,
    reboot_order_note text,
    cmd_before_patch text,
    cmd_after_patch text,
    cmd_before_reboot text,
    cmd_after_reboot text,
    is_cluster boolean DEFAULT false NOT NULL,
    cluster_role character varying(20),
    cluster_note text,
    is_db boolean DEFAULT false NOT NULL,
    db_type character varying(50),
    db_note text,
    is_middleware boolean DEFAULT false NOT NULL,
    mw_type character varying(50),
    mw_note text,
    has_agent_special boolean DEFAULT false NOT NULL,
    agent_note text,
    has_service_critical boolean DEFAULT false NOT NULL,
    service_note text,
    needs_manual_step boolean DEFAULT false NOT NULL,
    manual_step_detail text,
    reboot_delay_minutes integer,
    patch_excludes text,
    no_reboot_reason text,
    dependency_server_id integer,
    dependency_note text,
    note text,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    updated_at timestamp with time zone DEFAULT now() NOT NULL,
    app_type character varying(50),
    stop_command text,
    start_command text,
    stop_user character varying(50),
    start_user character varying(50),
    kernel_update_blocked boolean DEFAULT false NOT NULL,
    kernel_block_reason text,
    reboot_min_interval_minutes integer,
    sentinel_disable_required boolean DEFAULT false NOT NULL,
    ip_forwarding_required boolean DEFAULT false NOT NULL,
    rolling_update boolean DEFAULT false NOT NULL,
    rolling_update_note text,
    auto_restart boolean DEFAULT true NOT NULL,
    patch_order_group character varying(50),
    extra_excludes text,
    stop_order integer,
    patch_wave integer,
    patch_wave_group character varying(50),
    patch_wave_delay_days integer DEFAULT 1,
    patch_wave_note text
);


ALTER TABLE public.server_specifics OWNER TO postgres;

--
-- Name: server_specifics_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.server_specifics_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.server_specifics_id_seq OWNER TO postgres;

--
-- Name: server_specifics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.server_specifics_id_seq OWNED BY public.server_specifics.id;


--
-- Name: servers; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.servers (
    id integer NOT NULL,
    hostname public.citext NOT NULL,
    fqdn character varying(255),
    domain_ltd character varying(50),
    domain_env_id integer,
    zone_id integer,
    vcenter_id integer,
    application_id integer,
    cluster_id integer,
    os_family character varying(10),
    os_version character varying(200),
    machine_type character varying(10) DEFAULT 'vm'::character varying NOT NULL,
    vcenter_vm_name character varying(100),
    is_bdd boolean DEFAULT false NOT NULL,
    is_flux_libre boolean DEFAULT false NOT NULL,
    is_emv boolean DEFAULT false NOT NULL,
    is_podman boolean DEFAULT false NOT NULL,
    need_pct boolean DEFAULT false NOT NULL,
    tier character varying(10) DEFAULT 'a_definir'::character varying NOT NULL,
    etat character varying(30) DEFAULT 'production'::character varying NOT NULL,
    licence_support character varying(10) DEFAULT 'active'::character varying NOT NULL,
    eol_date date,
    site character varying(50),
    ssh_method character varying(20) DEFAULT 'ssh_key'::character varying,
    ssh_port integer DEFAULT 22 NOT NULL,
    ssh_user character varying(50),
    cyberark_safe character varying(100),
    patch_os_owner character varying(20) DEFAULT 'secops'::character varying NOT NULL,
    patch_mw_owner character varying(20) DEFAULT 'a_definir'::character varying NOT NULL,
    patch_app_owner character varying(20) DEFAULT 'a_definir'::character varying NOT NULL,
    patch_owner_details text,
    patch_frequency character varying(20) DEFAULT 'monthly'::character varying,
    patch_window character varying(100),
    patch_excludes text,
    patch_custom_cmd text,
    reboot_allowed boolean DEFAULT true NOT NULL,
    snapshot_required boolean DEFAULT true NOT NULL,
    pre_patch_script text,
    post_patch_script text,
    responsable_nom text,
    responsable_email character varying(255),
    referent_nom text,
    referent_email character varying(255),
    default_intervenant_id integer,
    qualys_asset_id bigint,
    centreon_host_id integer,
    cve_critical_count integer DEFAULT 0,
    last_qualys_scan timestamp with time zone,
    mode_operatoire text,
    commentaire text,
    notes text,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    updated_at timestamp with time zone DEFAULT now() NOT NULL,
    created_by integer,
    satellite_host character varying(100),
    pref_patch_jour character varying(20) DEFAULT 'indifferent'::character varying,
    pref_patch_heure character varying(50) DEFAULT 'indifferent'::character varying,
    application_name character varying(200),
    app_group character varying(50),
    use_proxy boolean DEFAULT true NOT NULL,
    CONSTRAINT servers_etat_check CHECK (((etat)::text = ANY ((ARRAY['production'::character varying, 'implementation'::character varying, 'stock'::character varying, 'obsolete'::character varying, 'eol'::character varying])::text[]))),
    CONSTRAINT servers_licence_support_check CHECK (((licence_support)::text = ANY (ARRAY[('active'::character varying)::text, ('eol'::character varying)::text, ('els'::character varying)::text, ('missing'::character varying)::text]))),
    CONSTRAINT servers_machine_type_check CHECK (((machine_type)::text = ANY (ARRAY[('vm'::character varying)::text, ('physical'::character varying)::text]))),
    CONSTRAINT servers_os_family_check CHECK (((os_family)::text = ANY (ARRAY[('linux'::character varying)::text, ('windows'::character varying)::text]))),
    CONSTRAINT servers_patch_app_owner_check CHECK (((patch_app_owner)::text = ANY (ARRAY[('secops'::character varying)::text, ('ipop'::character varying)::text, ('editeur'::character varying)::text, ('tiers'::character varying)::text, ('na'::character varying)::text, ('a_definir'::character varying)::text]))),
    CONSTRAINT servers_patch_mw_owner_check CHECK (((patch_mw_owner)::text = ANY (ARRAY[('secops'::character varying)::text, ('ipop'::character varying)::text, ('editeur'::character varying)::text, ('tiers'::character varying)::text, ('na'::character varying)::text, ('a_definir'::character varying)::text]))),
    CONSTRAINT servers_patch_os_owner_check CHECK (((patch_os_owner)::text = ANY (ARRAY[('secops'::character varying)::text, ('ipop'::character varying)::text, ('editeur'::character varying)::text, ('tiers'::character varying)::text, ('na'::character varying)::text, ('a_definir'::character varying)::text]))),
    CONSTRAINT servers_ssh_method_check CHECK (((ssh_method)::text = ANY ((ARRAY['ssh_key'::character varying, 'ssh_psmp'::character varying, 'ssh_pwd'::character varying, 'rdp_psm'::character varying, 'rdp_pwd'::character varying, 'rdp_user'::character varying, 'ssh_user'::character varying])::text[]))),
    CONSTRAINT servers_tier_check CHECK (((tier)::text = ANY (ARRAY[('tier0'::character varying)::text, ('tier1'::character varying)::text, ('tier2'::character varying)::text, ('tier3'::character varying)::text, ('a_definir'::character varying)::text])))
);


ALTER TABLE public.servers OWNER TO postgres;

--
-- Name: TABLE servers; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON TABLE public.servers IS 'Inventaire serveurs SANEF — source de vérité unique';


--
-- Name: COLUMN servers.is_podman; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.servers.is_podman IS 'True si Flux Libre avec Podman (bot/boo/boc) — False pour BST';


--
-- Name: COLUMN servers.need_pct; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN public.servers.need_pct IS 'True si prévenance PCT nécessaire avant intervention';


--
-- Name: servers_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.servers_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.servers_id_seq OWNER TO postgres;

--
-- Name: servers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.servers_id_seq OWNED BY public.servers.id;


--
-- Name: settings; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.settings (
    key character varying(100) NOT NULL,
    value text NOT NULL,
    description text,
    updated_at timestamp with time zone DEFAULT now() NOT NULL,
    updated_by integer
);


ALTER TABLE public.settings OWNER TO postgres;

--
-- Name: tier_policies; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.tier_policies (
    id integer NOT NULL,
    tier character varying(10) NOT NULL,
    max_parallel integer DEFAULT 1 NOT NULL,
    approval_level character varying(20) NOT NULL,
    maintenance_window character varying(100),
    pre_notification_hours integer DEFAULT 0 NOT NULL,
    snapshot_mandatory boolean DEFAULT true NOT NULL,
    post_check_level character varying(20) DEFAULT 'basic'::character varying NOT NULL,
    notes text
);


ALTER TABLE public.tier_policies OWNER TO postgres;

--
-- Name: tier_policies_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.tier_policies_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tier_policies_id_seq OWNER TO postgres;

--
-- Name: tier_policies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.tier_policies_id_seq OWNED BY public.tier_policies.id;


--
-- Name: user_permissions; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.user_permissions (
    id integer NOT NULL,
    user_id integer NOT NULL,
    module character varying(30) NOT NULL,
    level character varying(10) DEFAULT 'view'::character varying NOT NULL,
    CONSTRAINT user_permissions_level_check CHECK (((level)::text = ANY (ARRAY[('view'::character varying)::text, ('edit'::character varying)::text, ('admin'::character varying)::text]))),
    CONSTRAINT user_permissions_module_check CHECK (((module)::text = ANY (ARRAY[('servers'::character varying)::text, ('campaigns'::character varying)::text, ('qualys'::character varying)::text, ('audit'::character varying)::text, ('settings'::character varying)::text, ('users'::character varying)::text, ('planning'::character varying)::text, ('specifics'::character varying)::text, ('quickwin'::character varying)::text])))
);


ALTER TABLE public.user_permissions OWNER TO postgres;

--
-- Name: user_permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.user_permissions_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.user_permissions_id_seq OWNER TO postgres;

--
-- Name: user_permissions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.user_permissions_id_seq OWNED BY public.user_permissions.id;


--
-- Name: users; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.users (
    id integer NOT NULL,
    username public.citext NOT NULL,
    display_name character varying(100) NOT NULL,
    email character varying(255),
    password_hash character varying(255),
    role character varying(20) DEFAULT 'operator'::character varying NOT NULL,
    auth_type character varying(10) DEFAULT 'local'::character varying NOT NULL,
    is_active boolean DEFAULT true NOT NULL,
    last_login timestamp with time zone,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    updated_at timestamp with time zone DEFAULT now() NOT NULL,
    itop_person_id integer,
    last_itop_sync timestamp without time zone,
    force_password_change boolean DEFAULT false,
    CONSTRAINT users_auth_type_check CHECK (((auth_type)::text = ANY (ARRAY[('local'::character varying)::text, ('ldap'::character varying)::text]))),
    CONSTRAINT users_role_check CHECK (((role)::text = ANY (ARRAY[('admin'::character varying)::text, ('coordinator'::character varying)::text, ('operator'::character varying)::text, ('viewer'::character varying)::text])))
);


ALTER TABLE public.users OWNER TO postgres;

--
-- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.users_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.users_id_seq OWNER TO postgres;

--
-- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.users_id_seq OWNED BY public.users.id;


--
-- Name: v_campaign_dashboard; Type: VIEW; Schema: public; Owner: postgres
--

CREATE VIEW public.v_campaign_dashboard AS
 SELECT c.id,
    c.week_code,
    c.year,
    c.status,
    count(ps.id) AS total,
    count(*) FILTER (WHERE ((ps.status)::text = 'patched'::text)) AS patched,
    count(*) FILTER (WHERE ((ps.status)::text = 'failed'::text)) AS failed,
    count(*) FILTER (WHERE ((ps.status)::text = 'pending'::text)) AS pending
   FROM (public.campaigns c
     LEFT JOIN public.patch_sessions ps ON ((c.id = ps.campaign_id)))
  GROUP BY c.id, c.week_code, c.year, c.status;


ALTER TABLE public.v_campaign_dashboard OWNER TO postgres;

--
-- Name: v_conformity_todo; Type: VIEW; Schema: public; Owner: postgres
--

CREATE VIEW public.v_conformity_todo AS
 SELECT s.hostname,
    d.name AS domaine,
    e.name AS environnement,
    s.tier,
    s.patch_os_owner,
    (s.responsable_nom IS NULL) AS resp_missing
   FROM (((public.servers s
     LEFT JOIN public.domain_environments de ON ((s.domain_env_id = de.id)))
     LEFT JOIN public.domains d ON ((de.domain_id = d.id)))
     LEFT JOIN public.environments e ON ((de.environment_id = e.id)))
  WHERE (((s.etat)::text = 'en_production'::text) AND (((s.patch_os_owner)::text = 'a_definir'::text) OR (s.responsable_nom IS NULL)));


ALTER TABLE public.v_conformity_todo OWNER TO postgres;

--
-- Name: zones; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.zones (
    id integer NOT NULL,
    name character varying(30) NOT NULL,
    description text,
    is_dmz boolean DEFAULT false NOT NULL,
    created_at timestamp with time zone DEFAULT now() NOT NULL
);


ALTER TABLE public.zones OWNER TO postgres;

--
-- Name: v_servers; Type: VIEW; Schema: public; Owner: postgres
--

CREATE VIEW public.v_servers AS
 SELECT s.id,
    s.hostname,
    s.fqdn,
    s.domain_ltd,
    d.name AS domaine,
    d.code AS domaine_code,
    e.name AS environnement,
    e.code AS env_code,
    z.name AS zone_reseau,
    s.os_family,
    s.os_version,
    s.machine_type,
    s.tier,
    s.etat,
    s.licence_support,
    s.is_bdd,
    s.is_flux_libre,
    s.is_emv,
    s.is_podman,
    s.need_pct,
    s.patch_os_owner,
    COALESCE(s.patch_excludes, de.patch_excludes, d.default_excludes) AS effective_excludes,
    s.responsable_nom,
    s.referent_nom,
    s.ssh_method,
    s.ssh_user,
    s.mode_operatoire,
    s.commentaire
   FROM ((((public.servers s
     LEFT JOIN public.domain_environments de ON ((s.domain_env_id = de.id)))
     LEFT JOIN public.domains d ON ((de.domain_id = d.id)))
     LEFT JOIN public.environments e ON ((de.environment_id = e.id)))
     LEFT JOIN public.zones z ON ((s.zone_id = z.id)));


ALTER TABLE public.v_servers OWNER TO postgres;

--
-- Name: v_patchable; Type: VIEW; Schema: public; Owner: postgres
--

CREATE VIEW public.v_patchable AS
 SELECT v_servers.id,
    v_servers.hostname,
    v_servers.fqdn,
    v_servers.domain_ltd,
    v_servers.domaine,
    v_servers.domaine_code,
    v_servers.environnement,
    v_servers.env_code,
    v_servers.zone_reseau,
    v_servers.os_family,
    v_servers.os_version,
    v_servers.machine_type,
    v_servers.tier,
    v_servers.etat,
    v_servers.licence_support,
    v_servers.is_bdd,
    v_servers.is_flux_libre,
    v_servers.is_emv,
    v_servers.is_podman,
    v_servers.need_pct,
    v_servers.patch_os_owner,
    v_servers.effective_excludes,
    v_servers.responsable_nom,
    v_servers.referent_nom,
    v_servers.ssh_method,
    v_servers.ssh_user,
    v_servers.mode_operatoire,
    v_servers.commentaire
   FROM public.v_servers
  WHERE (((v_servers.patch_os_owner)::text = 'secops'::text) AND ((v_servers.etat)::text = 'en_production'::text) AND ((v_servers.licence_support)::text = ANY (ARRAY[('active'::character varying)::text, ('els'::character varying)::text])));


ALTER TABLE public.v_patchable OWNER TO postgres;

--
-- Name: vcenters; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.vcenters (
    id integer NOT NULL,
    name character varying(100) NOT NULL,
    endpoint character varying(255) NOT NULL,
    datacenter character varying(100),
    is_active boolean DEFAULT true NOT NULL,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    description character varying(255),
    responsable character varying(100)
);


ALTER TABLE public.vcenters OWNER TO postgres;

--
-- Name: vcenters_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.vcenters_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.vcenters_id_seq OWNER TO postgres;

--
-- Name: vcenters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.vcenters_id_seq OWNED BY public.vcenters.id;


--
-- Name: zones_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

CREATE SEQUENCE public.zones_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.zones_id_seq OWNER TO postgres;

--
-- Name: zones_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--

ALTER SEQUENCE public.zones_id_seq OWNED BY public.zones.id;


--
-- Name: allowed_networks id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.allowed_networks ALTER COLUMN id SET DEFAULT nextval('public.allowed_networks_id_seq'::regclass);


--
-- Name: app_map id; Type: DEFAULT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.app_map ALTER COLUMN id SET DEFAULT nextval('public.app_map_id_seq'::regclass);


--
-- Name: applications id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.applications ALTER COLUMN id SET DEFAULT nextval('public.applications_id_seq'::regclass);


--
-- Name: audit_log id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.audit_log ALTER COLUMN id SET DEFAULT nextval('public.audit_log_id_seq'::regclass);


--
-- Name: campaign_accord_details id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.campaign_accord_details ALTER COLUMN id SET DEFAULT nextval('public.campaign_accord_details_id_seq'::regclass);


--
-- Name: campaign_accords id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.campaign_accords ALTER COLUMN id SET DEFAULT nextval('public.campaign_accords_id_seq'::regclass);


--
-- Name: campaign_operator_limits id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.campaign_operator_limits ALTER COLUMN id SET DEFAULT nextval('public.campaign_operator_limits_id_seq'::regclass);


--
-- Name: campaigns id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.campaigns ALTER COLUMN id SET DEFAULT nextval('public.campaigns_id_seq'::regclass);


--
-- Name: cluster_members id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cluster_members ALTER COLUMN id SET DEFAULT nextval('public.cluster_members_id_seq'::regclass);


--
-- Name: clusters id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clusters ALTER COLUMN id SET DEFAULT nextval('public.clusters_id_seq'::regclass);


--
-- Name: contact_scopes id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contact_scopes ALTER COLUMN id SET DEFAULT nextval('public.contact_scopes_id_seq'::regclass);


--
-- Name: contacts id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contacts ALTER COLUMN id SET DEFAULT nextval('public.contacts_id_seq'::regclass);


--
-- Name: default_assignments id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.default_assignments ALTER COLUMN id SET DEFAULT nextval('public.default_assignments_id_seq'::regclass);


--
-- Name: domain_environments id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.domain_environments ALTER COLUMN id SET DEFAULT nextval('public.domain_environments_id_seq'::regclass);


--
-- Name: domain_ltd_list id; Type: DEFAULT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.domain_ltd_list ALTER COLUMN id SET DEFAULT nextval('public.domain_ltd_list_id_seq'::regclass);


--
-- Name: domain_responsables id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.domain_responsables ALTER COLUMN id SET DEFAULT nextval('public.domain_responsables_id_seq'::regclass);


--
-- Name: domains id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.domains ALTER COLUMN id SET DEFAULT nextval('public.domains_id_seq'::regclass);


--
-- Name: environments id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.environments ALTER COLUMN id SET DEFAULT nextval('public.environments_id_seq'::regclass);


--
-- Name: eol_references id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.eol_references ALTER COLUMN id SET DEFAULT nextval('public.eol_references_id_seq'::regclass);


--
-- Name: import_history id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.import_history ALTER COLUMN id SET DEFAULT nextval('public.import_history_id_seq'::regclass);


--
-- Name: network_flow_map id; Type: DEFAULT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.network_flow_map ALTER COLUMN id SET DEFAULT nextval('public.network_flow_map_id_seq'::regclass);


--
-- Name: patch_history id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.patch_history ALTER COLUMN id SET DEFAULT nextval('public.patch_history_id_seq'::regclass);


--
-- Name: patch_planning id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.patch_planning ALTER COLUMN id SET DEFAULT nextval('public.patch_planning_id_seq'::regclass);


--
-- Name: patch_sessions id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.patch_sessions ALTER COLUMN id SET DEFAULT nextval('public.patch_sessions_id_seq'::regclass);


--
-- Name: patch_validation id; Type: DEFAULT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.patch_validation ALTER COLUMN id SET DEFAULT nextval('public.patch_validation_id_seq'::regclass);


--
-- Name: qualys_asset_tags id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.qualys_asset_tags ALTER COLUMN id SET DEFAULT nextval('public.qualys_asset_tags_id_seq'::regclass);


--
-- Name: qualys_assets id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.qualys_assets ALTER COLUMN id SET DEFAULT nextval('public.qualys_assets_id_seq'::regclass);


--
-- Name: qualys_tags id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.qualys_tags ALTER COLUMN id SET DEFAULT nextval('public.qualys_tags_id_seq'::regclass);


--
-- Name: quickwin_entries id; Type: DEFAULT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.quickwin_entries ALTER COLUMN id SET DEFAULT nextval('public.quickwin_entries_id_seq'::regclass);


--
-- Name: quickwin_logs id; Type: DEFAULT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.quickwin_logs ALTER COLUMN id SET DEFAULT nextval('public.quickwin_logs_id_seq'::regclass);


--
-- Name: quickwin_runs id; Type: DEFAULT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.quickwin_runs ALTER COLUMN id SET DEFAULT nextval('public.quickwin_runs_id_seq'::regclass);


--
-- Name: quickwin_server_config id; Type: DEFAULT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.quickwin_server_config ALTER COLUMN id SET DEFAULT nextval('public.quickwin_server_config_id_seq'::regclass);


--
-- Name: server_audit id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.server_audit ALTER COLUMN id SET DEFAULT nextval('public.server_audit_id_seq'::regclass);


--
-- Name: server_audit_full id; Type: DEFAULT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.server_audit_full ALTER COLUMN id SET DEFAULT nextval('public.server_audit_full_id_seq'::regclass);


--
-- Name: server_correspondance id; Type: DEFAULT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.server_correspondance ALTER COLUMN id SET DEFAULT nextval('public.server_correspondance_id_seq'::regclass);


--
-- Name: server_ips id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.server_ips ALTER COLUMN id SET DEFAULT nextval('public.server_ips_id_seq'::regclass);


--
-- Name: server_pairs id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.server_pairs ALTER COLUMN id SET DEFAULT nextval('public.server_pairs_id_seq'::regclass);


--
-- Name: server_specifics id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.server_specifics ALTER COLUMN id SET DEFAULT nextval('public.server_specifics_id_seq'::regclass);


--
-- Name: servers id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.servers ALTER COLUMN id SET DEFAULT nextval('public.servers_id_seq'::regclass);


--
-- Name: tier_policies id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tier_policies ALTER COLUMN id SET DEFAULT nextval('public.tier_policies_id_seq'::regclass);


--
-- Name: user_permissions id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.user_permissions ALTER COLUMN id SET DEFAULT nextval('public.user_permissions_id_seq'::regclass);


--
-- Name: users id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.users ALTER COLUMN id SET DEFAULT nextval('public.users_id_seq'::regclass);


--
-- Name: vcenters id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.vcenters ALTER COLUMN id SET DEFAULT nextval('public.vcenters_id_seq'::regclass);


--
-- Name: zones id; Type: DEFAULT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.zones ALTER COLUMN id SET DEFAULT nextval('public.zones_id_seq'::regclass);


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

COPY public.allowed_networks (id, cidr, description, is_active, created_at) FROM stdin;
\.


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

COPY public.app_map (id, app_name, app_type, description, servers, ports, flows, last_scan, created_at, updated_at) FROM stdin;
\.


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

COPY public.app_secrets (key, value, description, updated_at) FROM stdin;
qualys_pass	gAAAAABp2TUDNHke_jGFLafq5V5fp9O4RmXofUbsuhpD9m-0Ejp8BBHsjXLidHLemL9ZOcXAIn76oWFgDCCOT_4QrhUSn66oX_Q4MaPKBXIhKHTMiHWVH-I=	Mot de passe	2026-04-10 17:36:03.840968+00
qualys_url	gAAAAABp2TVThuXgDda5X2IewA7v8HCsmfIQ0VsgQXX8sphe6KajpyTNpheXjag51lAqPipmxS_K7yiLX6NPB1fIvMkvntne4uUlGW9jcl2xVlucJ_Zo5Q_YdB2xduxBLu7M0oIQ5-dt	URL API	2026-04-10 17:37:23.620345+00
qualys_user	gAAAAABp2TVTnUIe2JH6hs1Gg8vWwKKSmfsgB_ahcLpWKPgmzUAUCWllZgKA6prBUrgpy5eZMxf_IsSe4jlE0IUnXBUYsquEKQ==	Utilisateur	2026-04-10 17:37:23.622325+00
qualys_proxy	gAAAAABp2TVTJCAOlBgfbGMSfwWDGaiZFx1ZbxJD9qj78mCdN87ET40fhe5HJ22Po1OJQDNAXGe76OrajsciOuZ_FCBK6f3PuUcWKatAUwZ_BoOvhWHt9tY=	Proxy	2026-04-10 17:37:23.623046+00
qualys_bypass_proxy	gAAAAABp2TVTWd50HuLIYoyNZEANEkyaq-o15ZZ2mutq45dBF2omz8MWNp_YQOFG7wNKLAdw9fOn-MNQFetdddAANMU2mfG7Vw==	Bypass proxy (true/false)	2026-04-10 17:37:23.623714+00
ssh_key_file	/opt/patchcenter/keys/id_ed25519	\N	2026-04-10 17:52:17.765573+00
ssh_key_private_key	gAAAAABp2TmR6UsLIaLk_vhkoGELkSPVUmLpUKeeQzWfWVzgWnNyf1eDz181aUZloN1lFZFbsxk8Nag3j7SBngzoDFOAwBFiXilxGrBYnLzhylj30rEbvREhgYb63wVLY62GD3RrPde1BDOdxWHIYlLfG1muIMX0x7CL2zG33d-sOywF4RwdOZiq3Mp08vTbK7ZnQsXQ9f7fmmsOH58aDG9uLPCrakL2Z7XtET7BAlIGf1oXjP8pN7fWTBzZszZ5jhiHxN8RFRd9GLNkU-33xOriJLs-H-QK6RSeipIP2rRZJNe-lNCxbzqf9g9KKNLCeie5Lg0mvitSjRe-eI_fcbM-J0yuXGRDFlUnwejYRkNSNi7qvqvBcK-66XsZwMjgxJbekKkwhBelAmKQ6k1UA2wNj0dC5wu8FJia_LzqMPb6XnFs_tOe-f6LyLPvxvCSBfTUZlR_SnI864LwioMGuaDjT_k118-GkP1ZzMbDDjAsAIlkUl3k_pIhnTQTM3a8oo4mnTugpBPZmg5PrhRbM5-1omLTpf8BKvnoF9AZ9X4uj8Hkcl8TrhKgvJMpz_DBrOpYJFUD-_4MW07aBtkZG35gStj-EPaHbgBnk_USIvcebP9xzyUkj_HuL-DIi4lHwd8h_qixk6yl	Cle privee (PEM)	2026-04-10 17:55:29.531976+00
ssh_user	root	\N	2026-04-10 18:00:09.087932+00
itop_url	gAAAAABp2XRXfMLs-x9pecDWX03XxW9RXYS3gxsaOcTXc16iVt_wBuERUaMeoVMRaoR3_Vhk4gIKhRw8Ozn7RGLeDupKbEhk24XIYqOd6nmwRR_itKxfUk4=	URL API	2026-04-10 22:06:15.38609+00
itop_user	gAAAAABp2XRXaY3XAhYw7lDeZc6fsG_OK_CUEINfD1Fp5gioHExDOEc5SyfRvH32UZWeW08LvKvCn8OIOgp1Ow4Nk5M1uylAGg==	Utilisateur	2026-04-10 22:06:15.38797+00
itop_pass	gAAAAABp2XRXJuvdMWek_-sD7Eua98wvhSrOfP0zaohID-WWGEJK-IWliIqu1D7CsZ2K50O6pOouQbIk83AgCZjSdXy8jzVVPQ==	Mot de passe	2026-04-10 22:06:15.388636+00
patching_reboot_packages	gAAAAABp25jPVN-Hrt7zyhiu-qJu4H0RpJ_3a9IvsDp2lGx9AlGPTWqqd-KMCWrKlPsKeNy58KCRdIZKpwkNwHJUxqla2Ee2uOxVJy-EZ-M-Dm_NX-JAb_NC_rjk9McZb3iUV5DdRJAGj0mmHbYYdr7CBqLEWcXunAqWi1qA2eM-beM3Yzgzw7LQIPmdBai0xLiB4r7lGrzv7OYisRMqSKHR5Wl9yT9fG_Sl-9Ofr0D5Ghn3slAMprP7v3NAu9fK78Q3nUbD2MOU6BJVNavhSD1qvT2La0ZqXMCtDLeBSLLMa65uJbBrDNP7h2biVZmrdjg3VL-PjoiJ5aBi5ScLnMFNyHXmBa0WI5dXbVz_Rwe2gaj_J3oS6aM=	Packages nécessitant un reboot (utilisés pour QuickWin)	2026-04-12 13:06:23.571484+00
\.


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

COPY public.applications (id, nom_court, nom_complet, description, editeur, criticite, need_pre_stop, pre_stop_cmd, post_start_cmd, created_at, updated_at, itop_id, status) FROM stdin;
1	3PAR StoreServ (SSMC)	3PAR StoreServ (SSMC)		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	40	active
2	Active Directory	Active Directory		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	41	active
3	AD Manager plus	AD Manager plus		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	42	active
4	AD SelfService plus	AD SelfService plus		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	43	active
5	ADV-U facturation sanef 1.29g	ADV-U facturation sanef 1.29g		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	44	active
6	Affichage Public	Affichage Public	Domaine affichage horaires mosquee	\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	39	active
7	AgileTime - HR Performance	AgileTime - HR Performance		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	45	active
8	AgileTime - Sapn	AgileTime - Sapn		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	46	active
9	AgileTime - Self service sanef	AgileTime - Self service sanef		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	47	active
10	AgileTime 2.7.9	AgileTime 2.7.9		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	48	active
11	Alpha Pro	Alpha Pro		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	49	active
12	AlwaysOnVPN	AlwaysOnVPN		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	50	active
13	Amelie	Amelie		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	51	active
14	AMELIE - Exploitation autoroutière	AMELIE - Exploitation autoroutière		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	52	active
15	ASUR (RAU)	ASUR (RAU)		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	53	active
16	Autoroute Trafic	Autoroute Trafic		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	54	active
17	Babylon 4.0 build 2.3.0.7	Babylon 4.0 build 2.3.0.7		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	55	active
18	BOOST 1.0 1 1.0	BOOST 1.0 1 1.0		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	56	active
19	Centreon	Centreon		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	57	active
20	Collecte Serveur	Collecte Serveur		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	58	active
21	Controleur de Domaine	Controleur de Domaine		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	59	active
22	COSWIN Entreprise Edition 8i	COSWIN Entreprise Edition 8i		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	60	active
23	CVS	CVS		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	61	active
24	DAI (Analyseur)	DAI (Analyseur)		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	62	active
25	Décisionnel Bip and GO (Inside) 4.20.26	Décisionnel Bip and GO (Inside) 4.20.26		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	67	active
26	Declaweb v2 1.0.12	Declaweb v2 1.0.12		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	63	active
27	DESIGO CC .	DESIGO CC .		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	64	active
28	Détection fraude (BOE) 1.4.1.0	Détection fraude (BOE) 1.4.1.0		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	68	active
29	Documentation et Wiki	Documentation et Wiki	Domaine documentation interne wiki	\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	35	active
30	DokuWiki sécurité opérationnelle	DokuWiki sécurité opérationnelle		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	65	active
31	DOLLAR UNIVERSE	DOLLAR UNIVERSE		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	66	active
32	Elastic search	Elastic search		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	69	active
33	ElasticSearch 8	ElasticSearch 8		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	70	active
34	EMV V17 17	EMV V17 17		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	71	active
35	Enregistrement communications PCE_PSI	Enregistrement communications PCE_PSI		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	72	active
36	eReport	eReport		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	73	active
37	EtlTool - ordonnanceur	EtlTool - ordonnanceur		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	74	active
38	EXCHANGE SERVER Enterprise Edition 2013	EXCHANGE SERVER Enterprise Edition 2013		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	75	active
39	Filers (DFS) 2012	Filers (DFS) 2012		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	76	active
40	Flux libre A13-A14 -	Flux libre A13-A14 -		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	77	active
41	Flux libre A13-A14 - BOC	Flux libre A13-A14 - BOC		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	78	active
42	Free Flow	Free Flow		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	79	active
43	Free Flow - Trafic	Free Flow - Trafic		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	80	active
44	Free Flow 1 (HA proxy A13-A14)	Free Flow 1 (HA proxy A13-A14)		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	81	active
45	Free Flow BOC - env DEV	Free Flow BOC - env DEV		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	82	active
46	Free Flow BOC - env PREPROD	Free Flow BOC - env PREPROD		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	83	active
47	Free Flow BOC - env PROD	Free Flow BOC - env PROD		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	84	active
48	Free Flow BOC - env TEST	Free Flow BOC - env TEST		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	85	active
49	Free Flow BOO - env PREPROD	Free Flow BOO - env PREPROD		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	86	active
50	Free Flow BOO - env PROD	Free Flow BOO - env PROD		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	87	active
51	Free Flow BOO - env TEST	Free Flow BOO - env TEST		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	88	active
52	Free Flow BOT - env PREPROD	Free Flow BOT - env PREPROD		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	89	active
53	Free Flow BOT - env PROD	Free Flow BOT - env PROD		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	90	active
54	Free Flow BOT - env TEST	Free Flow BOT - env TEST		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	91	active
55	Free Flow Boulay	Free Flow Boulay		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	92	active
56	Free Flow DWH BI - env DEV	Free Flow DWH BI - env DEV		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	93	active
57	Free Flow DWH BI - env PREPROD	Free Flow DWH BI - env PREPROD		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	94	active
58	Free Flow DWH BI - env PROD	Free Flow DWH BI - env PROD		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	95	active
59	Free Flow DWH BI - env TEST	Free Flow DWH BI - env TEST		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	96	active
60	Free Flow RCV - env PREPROD	Free Flow RCV - env PREPROD		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	97	active
61	Free Flow RCV - env PROD	Free Flow RCV - env PROD		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	98	active
62	Free Flow RCV - env TEST	Free Flow RCV - env TEST		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	99	active
63	Free Flow SIT - env PREPROD	Free Flow SIT - env PREPROD		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	100	active
64	Free Flow SIT - env PROD	Free Flow SIT - env PROD		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	101	active
65	Free Flow SIT - env TEST	Free Flow SIT - env TEST		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	102	active
66	Gaspar	Gaspar		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	103	active
67	Gdepa	Gdepa		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	104	active
68	GEMALTO .	GEMALTO .		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	105	active
69	Géolocalisation	Géolocalisation		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	123	active
70	Gestion ADFS	Gestion ADFS		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	106	active
71	Gestion de déchets	Gestion de déchets		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	107	active
72	Gestion des DATI	Gestion des DATI		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	108	active
73	Gestion DHCP	Gestion DHCP		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	109	active
74	Gestion DNS	Gestion DNS		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	110	active
75	Gestion interface Waze	Gestion interface Waze		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	111	active
76	Gestion Locative	Gestion Locative	Domaine MicroRealEstate gestion locative	\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	29	active
77	Gestion oracle	Gestion oracle		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	112	active
78	Gestion Pki	Gestion Pki		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	113	active
79	Gestion Postgres	Gestion Postgres		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	114	active
80	Gestion Radio 3RP	Gestion Radio 3RP		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	115	active
81	Gestion sauvegarde	Gestion sauvegarde		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	116	active
82	Gestion sécurité windows	Gestion sécurité windows		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	118	active
83	Gestion site institutionnel	Gestion site institutionnel		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	117	active
84	Gestion Vidéo NVR	Gestion Vidéo NVR		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	119	active
85	GitLab 17.5	GitLab 17.5		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	120	active
86	GoAnyWhere 7.7.1	GoAnyWhere 7.7.1		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	121	active
87	Grid control 12	Grid control 12		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	122	active
88	Infra Core	Infra Core	Domaine infrastructure socle virtualisation reseau stockage	\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	33	active
89	Interface API REST pour ERP5	Interface API REST pour ERP5		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	124	active
90	IRS (Insight Repport Support)	IRS (Insight Repport Support)		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	125	active
91	ISI-COM 16.12	ISI-COM 16.12		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	126	active
92	Isis/Fénix (anciennement Aquarius)	Isis/Fénix (anciennement Aquarius)		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	127	active
93	ITOP 2.6	ITOP 2.6		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	128	active
94	ITSM et CMDB	ITSM et CMDB	Domaine gestion services IT	\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	37	active
95	KME	KME		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	129	active
96	L2R	L2R		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	130	active
97	Lago 17	Lago 17		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	131	active
98	Logiciel gestion vidéo	Logiciel gestion vidéo		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	132	active
99	Masterparc	Masterparc		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	133	active
100	microsesame	microsesame		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	134	active
101	MIRA	MIRA		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	135	active
102	MIVISU PMV	MIVISU PMV		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	136	active
103	MIVISU PMV 1?	MIVISU PMV 1?		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	137	active
104	Modalisa	Modalisa		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	138	active
105	mur d'image	mur d'image		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	139	active
106	Nedap	Nedap		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	140	active
107	Nextcloud 31.0.7	Nextcloud 31.0.7		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	141	active
108	Octan 1.0	Octan 1.0		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	142	active
109	Open Touch	Open Touch		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	143	active
110	Oracle 19 (12.2.0.3)	Oracle 19 (12.2.0.3)		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	144	active
111	OSAP	OSAP		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	145	active
112	OSAP 1.0	OSAP 1.0		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	146	active
113	OSAP 1.1	OSAP 1.1		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	147	active
114	Owncloud	Owncloud		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	148	active
115	PaperCut 19.1.3 (Build 52103)	PaperCut 19.1.3 (Build 52103)		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	149	active
116	Patching et Conformite	Patching et Conformite	Domaine patching serveurs conformite	\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	38	active
117	Pompes carburants (ALX)	Pompes carburants (ALX)		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	150	active
118	Portail Sharepoint	Portail Sharepoint		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	151	active
119	postfix	postfix		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	152	active
120	PostgreSQL 15	PostgreSQL 15		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	153	active
121	PowerBI	PowerBI		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	154	active
122	Proxy et Acces Web	Proxy et Acces Web	Domaine proxy filtrage web reverse proxy	\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	34	active
123	PX-Prévia	PX-Prévia		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	155	active
124	Quorum Microsoft	Quorum Microsoft		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	156	active
125	RAU	RAU		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	157	active
126	Red Hat Satellite Satellite	Red Hat Satellite Satellite		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	158	active
127	REDHAT Ansible 2.9	REDHAT Ansible 2.9		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	159	active
128	Référentiel Péage A150 Albéa	Référentiel Péage A150 Albéa		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	160	active
129	Référentiel Péage Sanef	Référentiel Péage Sanef		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	161	active
130	Référentiel Péage sapn	Référentiel Péage sapn		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	162	active
131	SAM - Gestion des Actifs Logiciels	SAM - Gestion des Actifs Logiciels		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	163	active
132	SAS	SAS		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	164	active
133	SAS Viya	SAS Viya		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	165	active
134	Satellite	Satellite		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	166	active
135	Satisf'aire Web 1.2.0.1	Satisf'aire Web 1.2.0.1		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	167	active
136	SCCM	SCCM		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	168	active
137	SCCM MECM	SCCM MECM		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	169	active
138	Scoop	Scoop		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	170	active
139	Securite et SIEM	Securite et SIEM	Domaine securite logs analyse vulnerabilites	\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	32	active
140	SED	SED		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	171	active
141	Serveur Administration	Serveur Administration		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	172	active
142	Serveur de rebond	Serveur de rebond		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	173	active
143	Serveur de Test	Serveur de Test		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	174	active
144	Serveur de test et recette Oracle RAC	Serveur de test et recette Oracle RAC		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	175	active
145	Serveur de test pour les DBA	Serveur de test pour les DBA		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	176	active
146	Sextan 2.0	Sextan 2.0		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	177	active
147	Sextan 3.0	Sextan 3.0		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	178	active
148	SI PATRIMOINE 1.0	SI PATRIMOINE 1.0		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	179	active
149	SIG (Application)	SIG (Application)		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	180	active
150	SIP PAT	SIP PAT		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	181	active
151	SQL SERVER Licence - Express	SQL SERVER Licence - Express		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	182	active
152	SSTG	SSTG		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	183	active
153	Stockage	Stockage		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	184	active
154	Supervision et Monitoring	Supervision et Monitoring	Domaine supervision infrastructure Zabbix	\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	30	active
155	Supervision Neurone	Supervision Neurone		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	185	active
156	supervision pct TOPS	supervision pct TOPS		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	186	active
157	Support Utilisateurs	Support Utilisateurs	Domaine helpdesk support technique	\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	36	active
158	SVP sanef	SVP sanef		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	187	active
159	Talaxie - Studio de dev ETL	Talaxie - Studio de dev ETL		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	188	active
160	TALEND IS Professional Edition - Named User	TALEND IS Professional Edition - Named User		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	189	active
161	TALEND IS Professional Edition - Named User 1 - Ge	TALEND IS Professional Edition - Named User 1 - Gestion ETL et des échanges		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	190	active
162	Telephonie IP	Telephonie IP	Domaine telephonie VoIP FreePBX	\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	31	active
163	Temps de parcours v2	Temps de parcours v2		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	191	active
164	Temps de parcours v2 1 - Calcul temps de parcours	Temps de parcours v2 1 - Calcul temps de parcours		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	192	active
165	Transports Exceptionnels 1.0	Transports Exceptionnels 1.0		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	193	active
166	TSE (AgileTime sanef)	TSE (AgileTime sanef)		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	194	active
167	U2000	U2000		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	195	active
168	VCENTER Server Standard	VCENTER Server Standard		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	196	active
169	Vision'Aire	Vision'Aire		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	197	active
170	VM de production pour l'authentification forte pou	VM de production pour l'authentification forte pour les accès distants SSL.		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	198	active
171	vpsim	vpsim		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	199	active
172	Web Immobilier	Web Immobilier	Domaine application immobiliere web	\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	28	active
173	WSUS (Gestion Mise à jour Windows)	WSUS (Gestion Mise à jour Windows)		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	200	active
174	XFB Gateway	XFB Gateway		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	201	active
175	XMedius FAX	XMedius FAX		\N	basse	f	\N	\N	2026-04-12 13:43:40.70172+00	2026-04-12 13:43:40.70172+00	202	active
\.


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

COPY public.audit_log (id, "timestamp", user_id, username, action, entity_type, entity_id, details, ip_address) FROM stdin;
1	2026-04-10 17:34:46.196+00	\N	system	LOGIN_FAILED	user	\N	{"username": "admin"}	172.28.199.121
2	2026-04-10 17:34:52.269843+00	1	admin	LOGIN	user	1	\N	172.28.199.121
3	2026-04-10 18:22:40.366871+00	\N	admin	EDIT_SERVER	server	7	\N	\N
4	2026-04-10 18:28:07.112063+00	\N	admin	EDIT_SERVER	server	7	\N	\N
5	2026-04-10 18:28:49.615657+00	\N	admin	EDIT_SERVER	server	6	\N	\N
6	2026-04-10 18:35:32.527334+00	\N	system	LOGIN_FAILED	user	\N	{"username": "admin"}	172.28.199.121
7	2026-04-10 18:35:37.702031+00	1	admin	LOGIN	user	1	\N	172.28.199.121
8	2026-04-10 18:58:49.4578+00	\N	admin	EDIT_SERVER	server	26	\N	\N
9	2026-04-10 18:59:43.696205+00	\N	admin	EDIT_SERVER	server	22	\N	\N
10	2026-04-10 19:00:13.030612+00	\N	admin	EDIT_SERVER	server	21	\N	\N
11	2026-04-10 21:14:05.40094+00	\N	system	LOGIN_FAILED	user	\N	{"username": "admin"}	172.28.199.121
12	2026-04-10 21:14:22.655129+00	\N	system	LOGIN_FAILED	user	\N	{"username": "admin"}	172.28.199.121
13	2026-04-10 21:14:32.979385+00	1	admin	LOGIN	user	1	\N	172.28.199.121
14	2026-04-10 21:14:59.789284+00	1	admin	LOGOUT	user	1	\N	172.28.199.121
15	2026-04-10 21:15:01.663846+00	1	admin	LOGIN	user	1	\N	172.28.199.121
16	2026-04-10 21:15:06.672533+00	1	admin	LOGOUT	user	1	\N	172.28.199.121
17	2026-04-10 21:15:11.758828+00	\N	system	LOGIN_FAILED	user	\N	{"username": "admin"}	172.28.199.121
18	2026-04-10 21:15:15.737326+00	1	admin	LOGIN	user	1	\N	172.28.199.121
19	2026-04-10 22:02:29.893055+00	1	admin	LOGOUT	user	1	\N	172.28.199.121
20	2026-04-10 22:05:52.473286+00	1	admin	LOGIN	user	1	\N	172.28.199.121
21	2026-04-11 00:32:49.866657+00	1	admin	LOGIN	user	1	\N	172.28.199.121
22	2026-04-11 01:39:04.066605+00	1	admin	LOGIN	user	1	\N	172.28.199.121
23	2026-04-11 11:12:50.718477+00	1	admin	LOGIN	user	1	\N	172.28.199.121
24	2026-04-11 12:23:07.97238+00	1	admin	LOGIN	user	1	\N	172.28.199.121
25	2026-04-11 18:33:28.749348+00	1	admin	LOGIN	user	1	\N	172.28.199.121
26	2026-04-11 19:34:02.372717+00	1	admin	LOGIN	user	1	\N	172.28.199.121
27	2026-04-11 19:40:01.312462+00	1	admin	LOGOUT	user	1	\N	172.28.199.121
28	2026-04-11 19:40:05.655658+00	1	admin	LOGIN	user	1	\N	172.28.199.121
29	2026-04-11 19:44:04.078711+00	1	admin	qualys_deploy	0 OK, 1 fail sur 1 serveurs	\N	\N	172.28.199.121
30	2026-04-11 20:00:25.765518+00	1	admin	qualys_deploy	1 OK, 0 fail sur 1 serveurs	\N	\N	172.28.199.121
31	2026-04-11 20:04:53.168239+00	1	admin	qualys_deploy	1 OK, 0 fail sur 1 serveurs	\N	\N	172.28.199.121
32	2026-04-11 20:18:25.380478+00	1	admin	qualys_deploy	3 OK, 0 fail sur 3 serveurs	\N	\N	172.28.199.121
33	2026-04-11 20:46:18.928478+00	1	admin	LOGIN	user	1	\N	172.28.199.121
34	2026-04-11 21:46:25.486507+00	1	admin	LOGIN	user	1	\N	172.28.199.121
35	2026-04-11 22:17:15.891007+00	1	admin	LOGOUT	user	1	\N	172.28.199.121
36	2026-04-11 22:17:18.805537+00	1	admin	LOGIN	user	1	\N	172.28.199.121
37	2026-04-11 22:19:39.765892+00	1	admin	qualys_deploy	deploy_job	\N	{"job_id": "d68bc0a8", "servers": 1}	172.28.199.121
38	2026-04-11 22:25:34.484348+00	1	admin	qualys_deploy	deploy_job	\N	{"job_id": "0093ebda", "servers": 1}	172.28.199.121
39	2026-04-12 08:44:53.481964+00	1	admin	LOGIN	user	1	\N	172.28.199.121
40	2026-04-12 08:45:22.036011+00	\N	admin	EDIT_SERVER	server	46	\N	\N
41	2026-04-12 08:45:53.900707+00	\N	admin	EDIT_SERVER	server	46	\N	\N
42	2026-04-12 10:11:26.940161+00	1	admin	LOGIN	user	1	\N	172.28.199.121
43	2026-04-12 11:25:02.113116+00	1	admin	LOGIN	user	1	\N	172.28.199.121
44	2026-04-12 11:57:18.375316+00	16	ahmed	LOGIN	user	16	\N	172.28.199.121
45	2026-04-12 12:01:49.416706+00	16	ahmed	LOGOUT	user	16	\N	172.28.199.121
46	2026-04-12 12:06:11.121432+00	16	ahmed	LOGIN	user	16	\N	172.28.199.121
47	2026-04-12 12:07:00.671324+00	\N	ahmed	EDIT_SERVER	server	36	\N	\N
48	2026-04-12 12:25:33.959288+00	1	admin	LOGIN	user	1	\N	172.28.199.121
49	2026-04-12 13:26:41.689891+00	1	admin	LOGIN	user	1	\N	172.28.199.121
50	2026-04-12 14:29:47.200497+00	1	admin	LOGIN	user	1	\N	172.28.199.121
51	2026-04-12 14:35:44.111184+00	1	admin	LOGOUT	user	1	\N	172.28.199.121
52	2026-04-12 14:35:46.466797+00	1	admin	LOGIN	user	1	\N	172.28.199.121
53	2026-04-12 15:36:15.053244+00	1	admin	LOGIN	user	1	\N	172.28.199.121
54	2026-04-12 17:47:09.332406+00	1	admin	LOGIN	user	1	\N	172.28.199.121
55	2026-04-12 19:49:41.565381+00	1	admin	LOGIN	user	1	\N	172.28.199.121
56	2026-04-12 19:49:56.899552+00	1	admin	LOGOUT	user	1	\N	172.28.199.121
57	2026-04-13 08:13:59.105306+00	1	admin	LOGIN	user	1	\N	172.28.199.121
58	2026-04-13 08:15:27.286643+00	1	admin	qualys_deploy	deploy_job	\N	{"job_id": "ba1e3981", "servers": 1}	172.28.199.121
59	2026-04-13 08:37:32.476406+00	1	admin	qualys_deploy	deploy_job	\N	{"job_id": "a388d4d8", "servers": 2}	172.28.199.121
60	2026-04-13 08:37:47.862236+00	1	admin	qualys_deploy	deploy_job	\N	{"job_id": "80bc6949", "servers": 2}	172.28.199.121
61	2026-04-13 08:41:16.228966+00	1	admin	qualys_deploy	deploy_job	\N	{"job_id": "8bd34370", "servers": 1}	172.28.199.121
62	2026-04-13 08:41:56.86056+00	1	admin	qualys_deploy	deploy_job	\N	{"job_id": "94554776", "servers": 1}	172.28.199.121
63	2026-04-13 12:28:10.015084+00	\N	system	LOGIN_FAILED	user	\N	{"username": "admin"}	172.28.199.121
64	2026-04-13 13:26:48.46998+00	1	admin	LOGIN	user	1	\N	172.28.199.121
65	2026-04-13 18:57:39.089464+00	1	admin	LOGIN	user	1	\N	172.28.199.121
66	2026-04-13 18:57:41.547991+00	1	admin	LOGOUT	user	1	\N	172.28.199.121
67	2026-04-13 18:57:45.430199+00	1	admin	LOGIN	user	1	\N	172.28.199.121
68	2026-04-13 18:58:39.554263+00	1	admin	LOGOUT	user	1	\N	172.28.199.121
\.


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

COPY public.campaign_accord_details (id, accord_id, session_id, decision, reason) FROM stdin;
\.


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

COPY public.campaign_accords (id, campaign_id, contact_id, status, response_date, comment, created_at) FROM stdin;
\.


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

COPY public.campaign_operator_limits (id, campaign_id, user_id, max_servers, note) FROM stdin;
\.


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

COPY public.campaigns (id, week_code, year, label, status, date_start, date_end, total_servers, patched_ok, patched_ko, pending, created_by, created_at, updated_at, campaign_type) FROM stdin;
\.


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

COPY public.cluster_members (id, cluster_id, server_id, patch_order, is_active) FROM stdin;
\.


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

COPY public.clusters (id, name, description, patch_strategy, max_parallel, created_at) FROM stdin;
\.


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

COPY public.contact_scopes (id, contact_id, scope_type, scope_value, env_scope) FROM stdin;
1	12	domain	FL	recette
2	18	domain	FL	recette
\.


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

COPY public.contacts (id, name, email, role, is_active, is_verified, portal_token, portal_token_expires, last_portal_access, created_at, updated_at, itop_id, telephone, team, function) FROM stdin;
12	Ahmed TAZI	ahmed.tazi@mpcz.fr	referent_technique	f	f	\N	\N	\N	2026-04-11 00:48:53.177962+00	2026-04-12 11:25:51.547322+00	4	0600000003	SecOps	Technicien Support N2
13	Fatima EL HASSAN	fatima.elhassan@mpcz.fr	referent_technique	f	f	\N	\N	\N	2026-04-11 00:48:53.177962+00	2026-04-12 11:25:51.547322+00	5	0600000004	SecOps	Responsable IT
14	Khalid MOUTAOUAKIL	khalid.moutaouakil@mpcz.fr	referent_technique	f	f	\N	\N	\N	2026-04-11 00:48:53.177962+00	2026-04-12 11:25:51.547322+00	2	0600000001	SecOps	Administrateur Systeme et Reseau
15	Laila SENHAJI	laila.senhaji@mpcz.fr	referent_technique	f	f	\N	\N	\N	2026-04-11 00:48:53.177962+00	2026-04-12 11:25:51.547322+00	11	0600000010	SecOps	Ingenieur DevOps
16	Mehdi ALAOUI	mehdi.alaoui@mpcz.fr	referent_technique	f	f	\N	\N	\N	2026-04-11 00:48:53.177962+00	2026-04-12 11:25:51.547322+00	8	0600000007	SecOps	Technicien Support N1
17	My first name My last name	my.email@foo.org	referent_technique	f	f	\N	\N	\N	2026-04-11 00:48:53.177962+00	2026-04-12 11:25:51.547322+00	1		SecOps	
18	Nadia FASSI	nadia.fassi@mpcz.fr	referent_technique	f	f	\N	\N	\N	2026-04-11 00:48:53.177962+00	2026-04-12 11:25:51.547322+00	9	0600000008	SecOps	Chef de Projet IT
19	Omar CHRAIBI	omar.chraibi@mpcz.fr	responsable_applicatif	f	f	\N	\N	\N	2026-04-11 00:48:53.177962+00	2026-04-12 11:25:51.547322+00	6	0600000005	iPOP	Administrateur Base de Donnees
20	Rachid BENJELLOUN	rachid.benjelloun@mpcz.fr	responsable_applicatif	f	f	\N	\N	\N	2026-04-11 00:48:53.177962+00	2026-04-12 11:25:51.547322+00	10	0600000009	iPOP	Administrateur Virtualisation
21	Sara KABBAJ	sara.kabbaj@mpcz.fr	responsable_applicatif	f	f	\N	\N	\N	2026-04-11 00:48:53.177962+00	2026-04-12 11:25:51.547322+00	7	0600000006	iPOP	Ingenieur Reseau
22	Youssef BENALI	youssef.benali@mpcz.fr	responsable_applicatif	f	f	\N	\N	\N	2026-04-11 00:48:53.177962+00	2026-04-12 11:25:51.547322+00	3	0600000002	iPOP	Ingenieur Securite
\.


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

COPY public.default_assignments (id, rule_type, rule_value, user_id, priority, note, created_at) FROM stdin;
\.


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

COPY public.domain_environments (id, domain_id, environment_id, responsable_nom, responsable_email, referent_nom, referent_email, patch_window, patch_excludes, nb_servers, is_active, created_at) FROM stdin;
6	1	3	Fatima EL HASSAN	fatima.elhassan@mpcz.fr	\N	\N	\N	\N	1	t	2026-04-11 11:29:48.715428+00
7	2	4	Youssef BENALI	youssef.benali@mpcz.fr	\N	\N	\N	\N	1	t	2026-04-11 11:29:48.981964+00
9	5	1	Laila SENHAJI	laila.senhaji@mpcz.fr	\N	\N	\N	\N	5	t	2026-04-11 11:29:49.153786+00
10	3	1	Omar CHRAIBI	omar.chraibi@mpcz.fr	\N	\N	\N	\N	2	t	2026-04-11 11:29:49.156022+00
11	7	1	Omar CHRAIBI	omar.chraibi@mpcz.fr	\N	\N	\N	\N	2	t	2026-04-11 11:29:49.174807+00
12	1	2	Fatima EL HASSAN	fatima.elhassan@mpcz.fr	\N	\N	\N	\N	1	t	2026-04-11 11:29:49.190294+00
13	7	2	Omar CHRAIBI	omar.chraibi@mpcz.fr	\N	\N	\N	\N	1	t	2026-04-11 11:29:49.205099+00
8	3	9	Omar CHRAIBI	omar.chraibi@mpcz.fr	\N	\N	\N	\N	2	t	2026-04-11 11:29:49.150818+00
3	1	1	Fatima EL HASSAN	fatima.elhassan@mpcz.fr	\N	\N	\N	\N	6	t	2026-04-11 01:05:56.753942+00
5	2	2	Youssef BENALI	youssef.benali@mpcz.fr	\N	\N	\N	\N	2	t	2026-04-11 01:05:56.757061+00
4	2	1	Khalid MOUTAOUAKIL	khalid.moutaouakil@mpcz.fr	\N	\N	\N	\N	18	t	2026-04-11 01:05:56.755824+00
\.


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

COPY public.domain_ltd_list (id, name, description, is_active, created_at) FROM stdin;
3	sanef.groupe		t	2026-04-11 01:54:40.340128+00
4	sanef-rec.fr		t	2026-04-11 01:54:46.382039+00
5	sanef.fr		t	2026-04-11 01:54:57.796556+00
6	mpcz-rec.fr		t	2026-04-11 01:55:08.066855+00
7	mpcz.fr		t	2026-04-11 01:55:17.518892+00
8	tst.ts		t	2026-04-11 11:29:41.317469+00
9	sanef.inte-adds	\N	t	2026-04-11 11:29:48.630455+00
10	workgroupe	\N	t	2026-04-11 11:29:48.632756+00
\.


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

COPY public.domain_responsables (id, domain_id, nom, email, telephone, role_resp, is_primary, is_active, created_at) FROM stdin;
\.


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

COPY public.domains (id, name, code, description, default_excludes, default_patch_window, default_patch_frequency, teams_webhook_url, teams_sharepoint_folder, display_order, is_active, created_at, updated_at) FROM stdin;
3	Flux Libre	FL	Flux Libre			monthly	\N	\N	0	t	2026-04-11 01:50:51.157561+00	2026-04-11 01:50:51.157561+00
5	BI	BI	BI			monthly	\N	\N	0	t	2026-04-11 01:51:39.723213+00	2026-04-11 01:51:57.644434+00
1	Gestion	GESTION	Gestion			monthly	\N	\N	0	t	2026-04-11 01:05:56.453449+00	2026-04-11 01:52:07.11651+00
2	Infrastructure	INFRASTRUC	Infrastructure			monthly	\N	\N	0	t	2026-04-11 01:05:56.747618+00	2026-04-11 01:53:31.933235+00
7	Peages	PEAGES	\N	\N	\N	monthly	\N	\N	0	t	2026-04-11 11:29:48.378851+00	2026-04-11 11:29:48.378851+00
4	Péage	PEA	Péage			monthly	\N	\N	0	t	2026-04-11 01:51:11.019014+00	2026-04-11 18:34:41.038+00
6	testdom	TSTDOM	tdst			monthly	\N	\N	0	t	2026-04-11 02:19:17.913513+00	2026-04-11 18:34:46.784182+00
\.


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

COPY public.environments (id, name, code, ssh_method, requires_approval, approval_level, display_order, is_active, created_at) FROM stdin;
1	Production	PRODUCTION	ssh_key	f	operator	0	t	2026-04-11 01:05:56.748736+00
2	Recette	RECETTE	ssh_key	f	operator	0	t	2026-04-11 01:05:56.750266+00
3	Test	TST	ssh_key	f	operator	0	t	2026-04-11 01:52:34.793568+00
6	Test1	TST1	ssh_key	f	operator	0	t	2026-04-11 01:53:06.987048+00
7	Test2	TST2	ssh_key	f	operator	0	t	2026-04-11 01:56:19.513909+00
5	Pre-production	PPR	ssh_key	f	operator	0	t	2026-04-11 01:52:58.253248+00
4	Developpement	DEV	ssh_key	f	operator	0	t	2026-04-11 01:52:47.537725+00
8	Formation	FORMATION	ssh_key	f	operator	0	t	2026-04-11 11:29:48.376433+00
9	Integration	INTEGRATIO	ssh_key	f	operator	0	t	2026-04-11 11:29:48.377969+00
\.


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

COPY public.eol_references (id, os_pattern, eol_date, els_date, status, notes) FROM stdin;
\.


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

COPY public.import_history (id, source, filename, imported_by, imported_at, total_rows, created_count, updated_count, skipped_count, error_count, errors, status) FROM stdin;
\.


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

COPY public.network_flow_map (id, audit_id, source_server_id, source_hostname, source_ip, dest_ip, dest_port, dest_hostname, dest_server_id, process_name, process_user, service_name, direction, connection_count, state, audit_date) FROM stdin;
\.


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

COPY public.patch_history (id, server_id, campaign_id, intervenant_id, date_patch, status, command, packages_updated, reboot_done, snapshot_name, notes, created_at) FROM stdin;
\.


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

COPY public.patch_planning (id, year, week_number, week_code, week_start, week_end, cycle, domain_code, env_scope, status, note, created_at) FROM stdin;
1	2026	16	S16	2026-04-13	2026-04-19	2	FL	hprod	open	\N	2026-04-11 19:33:02.745757+00
2	2026	17	S17	2026-04-20	2026-04-26	2	FL	hprod	open	\N	2026-04-11 19:33:26.548952+00
3	2026	18	S18	2026-04-27	2026-05-03	2	FL	prod	open	\N	2026-04-11 19:34:22.693866+00
4	2026	19	S19	2026-05-04	2026-05-10	2	FL	prod	open	\N	2026-04-11 19:35:00.637579+00
5	2026	20	S20	2026-05-11	2026-05-17	\N	\N	all	freeze	\N	2026-04-11 19:35:31.7253+00
6	2026	21	S21	2026-05-18	2026-05-24	\N	\N	all	freeze	\N	2026-04-11 19:35:49.36111+00
7	2026	22	S22	2026-05-25	2026-05-31	\N	INFRASTRUC	hprod	open	\N	2026-04-11 19:36:51.197414+00
8	2026	23	S23	2026-06-01	2026-06-07	\N	INFRASTRUC	prod	open	\N	2026-04-11 19:37:24.238933+00
9	2026	24	S24	2026-06-08	2026-06-14	\N	INFRASTRUC	prod	open	\N	2026-04-11 19:37:55.164255+00
10	2026	16	S16	2026-04-13	2026-04-19	\N	BI	hprod	open	\N	2026-04-11 19:38:42.824854+00
11	2026	17	S17	2026-04-20	2026-04-26	\N	BI	prod	open	\N	2026-04-11 19:39:05.833418+00
\.


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

COPY public.patch_sessions (id, campaign_id, server_id, intervenant_id, date_prevue, duree_estimee, accord_responsable, date_report, motif_report, prereq_ssh, prereq_disk_root, prereq_disk_log, prereq_satellite, prereq_date, snapshot_name, snapshot_created, snapshot_forced, snapshot_justif, snapshot_date, patch_command, patch_output, pb_espace_disque, status, date_realise, reboot_required, reboot_date, packages_before, packages_after, packages_updated, postcheck_services, postcheck_ports, postcheck_date, notif_debut_sent, notif_reboot_sent, notif_fin_sent, created_at, updated_at, exclusion_reason, exclusion_detail, excluded_by, excluded_at, rollback_method, rollback_justif, prereq_validated, prereq_validated_by, prereq_validated_at, prereq_disk_root_mb, prereq_disk_var_mb, prereq_disk_ok, heure_prevue, assigned_at, forced_assignment, state_before, state_after, state_diff, note) FROM stdin;
\.


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

COPY public.patch_validation (id, server_id, campaign_id, campaign_type, patch_date, status, validated_by_contact_id, validated_by_name, validated_at, marked_by_user_id, forced_reason, notes, created_at, updated_at) FROM stdin;
\.


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

COPY public.qualys_asset_tags (id, qualys_asset_id, qualys_tag_id, assigned_at) FROM stdin;
32	442020687	187346121	2026-04-11 01:47:18.49462+00
33	442020687	187378074	2026-04-11 01:47:18.49462+00
34	442020687	187346316	2026-04-11 01:47:18.49462+00
35	442020687	187346318	2026-04-11 01:47:18.49462+00
36	442017918	187359896	2026-04-11 11:55:26.100639+00
37	442017918	187359899	2026-04-11 11:55:26.100639+00
38	442017918	187378074	2026-04-11 11:55:26.100639+00
39	442017918	187346121	2026-04-11 11:55:26.100639+00
40	442017918	187346318	2026-04-11 11:55:26.100639+00
45	442520259	187378074	2026-04-11 18:45:02.022971+00
46	442520259	187346318	2026-04-11 18:45:02.022971+00
47	442520259	187346316	2026-04-11 18:45:02.022971+00
48	442520259	187346121	2026-04-11 18:45:02.022971+00
49	442520686	187378074	2026-04-11 18:45:09.428643+00
50	442520686	187346121	2026-04-11 18:45:09.428643+00
51	442520686	187346318	2026-04-11 18:45:09.428643+00
52	442520686	187359897	2026-04-11 18:45:09.428643+00
53	442520686	187346316	2026-04-11 18:45:09.428643+00
64	442532841	187346318	2026-04-11 18:59:18.773544+00
65	442532841	187378074	2026-04-11 18:59:18.773544+00
66	442532841	187346121	2026-04-11 18:59:18.773544+00
67	442570264	187346122	2026-04-11 18:59:18.777242+00
68	442570264	187346318	2026-04-11 18:59:18.777242+00
69	442570264	187346121	2026-04-11 18:59:18.777242+00
70	442570264	187378074	2026-04-11 18:59:18.777242+00
74	442569209	187346121	2026-04-11 19:48:22.191687+00
75	442569209	187378074	2026-04-11 19:48:22.191687+00
76	442569209	187346318	2026-04-11 19:48:22.191687+00
85	449704892	187378074	2026-04-11 20:15:09.222589+00
\.


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

COPY public.qualys_assets (id, qualys_asset_id, name, hostname, fqdn, ip_address, os, os_family, agent_status, agent_version, last_checkin, server_id, created_at, updated_at) FROM stdin;
30	442471974	DESKTOP-OIRLS32	desktop-oirls32	desktop-oirls32	172.28.199.166	Microsoft Windows 10 Professionnel 10.0.19045 64 bits N/A Build 19045 UBR 6466	windows	STATUS_ACTIVE	6.4.1.22	2026-04-14 04:36:39+00	\N	2026-04-11 20:17:34.556215+00	2026-04-14 06:02:03.536868+00
31	442484132	DESKTOP-Q51J4K3	desktop-q51j4k3	DESKTOP-Q51J4K3	192.168.199.111	Microsoft Windows 10 Famille 10.0.19045 64 bits N/A Build 19045	windows	STATUS_ACTIVE	6.4.1.22	2026-04-13 16:56:24+00	\N	2026-04-11 20:17:34.556215+00	2026-04-14 06:02:03.536868+00
32	442516231	zabbix	zabbix	zabbix.mpcz.fr	172.28.199.150	Debian Linux 12.13	linux	STATUS_ACTIVE	7.3.0.40	2026-04-14 05:51:17+00	35	2026-04-11 20:17:34.556215+00	2026-04-14 06:02:03.536868+00
13	442520259	gitea	gitea	gitea.mpcz.fr	172.28.199.202	Debian Linux 12.13	linux	STATUS_ACTIVE	7.3.0.40	2026-04-14 04:14:13+00	30	2026-04-11 18:45:02.022971+00	2026-04-14 06:02:03.536868+00
14	442520686	pve01	pve01	pve01.mpcz.fr	172.28.199.185	Debian Linux 11.11	linux	STATUS_ACTIVE	7.3.0.40	2026-04-14 03:08:17+00	27	2026-04-11 18:45:09.428643+00	2026-04-14 06:02:03.536868+00
15	442532841	haproxy1	haproxy1	haproxy1.mpcz.fr	172.28.199.121	Debian Linux 12.13	linux	STATUS_ACTIVE	7.3.0.40	2026-04-14 03:11:01+00	31	2026-04-11 18:58:48.617941+00	2026-04-14 06:02:03.536868+00
33	442543612	osticket	osticket	osticket.mpcz.fr	172.28.199.205	Debian Linux 12.13	linux	STATUS_ACTIVE	7.3.0.40	2026-04-12 07:29:53+00	41	2026-04-11 20:17:34.556215+00	2026-04-14 06:02:03.536868+00
20	442569209	mre	mre	localhost	172.28.199.201	Debian Linux 13.3	linux	STATUS_ACTIVE	7.3.0.40	2026-04-14 03:02:44+00	37	2026-04-11 19:48:07.928152+00	2026-04-14 06:02:03.536868+00
34	442569212	step-ca	step-ca	step-ca.mpcz.fr	172.28.199.130	Debian Linux 12.13	linux	STATUS_ACTIVE	7.3.0.40	2026-04-12 07:28:23+00	40	2026-04-11 20:17:34.556215+00	2026-04-14 06:02:03.536868+00
16	442570264	haproxy2	haproxy2	haproxy2.mpcz.fr	172.28.199.122	Debian Linux 12.13	linux	STATUS_ACTIVE	7.3.0.40	2026-04-14 03:45:34+00	32	2026-04-11 18:58:48.617941+00	2026-04-14 06:02:03.536868+00
35	447616672	dolibarr.newsrv.fr	dolibarr	dolibarr.newsrv.fr	10.0.2.4	CentOS Linux 7.9.2009	linux	STATUS_ACTIVE	7.3.0.40	2026-04-07 21:32:13+00	28	2026-04-11 20:17:34.556215+00	2026-04-14 06:02:03.536868+00
25	449704892	itop	itop	itop.mpcz.fr	172.28.199.156	Debian Linux 12.12	linux	STATUS_ACTIVE	7.3.0.40	2026-04-14 05:42:51+00	34	2026-04-11 20:02:43.702861+00	2026-04-14 06:02:03.536868+00
36	449707636	splunk	splunk	splunk.mpcz.fr	172.28.199.155	Debian Linux 12.12	linux	STATUS_ACTIVE	7.3.0.40	2026-04-14 02:56:33+00	38	2026-04-11 20:21:42.336755+00	2026-04-14 06:02:03.536868+00
42	450092562	display-mosquee	display-mosquee	display-mosquee.mpcz.fr	172.28.199.203	Debian Linux 12.13	linux	STATUS_ACTIVE	7.3.0.40	2026-04-14 05:21:19+00	36	2026-04-13 12:02:04.859395+00	2026-04-14 06:02:03.536868+00
43	450093164	freepbx	freepbx	freepbx.mpcz.fr	172.28.199.160	Debian Linux 12.13	linux	STATUS_ACTIVE	7.3.0.40	2026-04-14 04:38:22+00	29	2026-04-13 12:02:04.859395+00	2026-04-14 06:02:03.536868+00
28	441965443	wiki	wiki	wiki.mpcz.fr	172.28.199.204	Debian Linux 12.13	linux	STATUS_ACTIVE	7.3.0.40	2026-04-14 05:43:10+00	24	2026-04-11 20:17:34.556215+00	2026-04-14 06:02:03.536868+00
11	442017918	immo	immo	immo.mpcz.fr	172.28.199.200	Debian Linux 13.4	linux	STATUS_ACTIVE	7.3.0.40	2026-04-14 02:49:17+00	33	2026-04-11 11:55:26.100639+00	2026-04-14 06:02:03.536868+00
29	442020485	squid	squid	squid.mpcz.fr	172.28.199.151	Debian Linux 12.13	linux	STATUS_ACTIVE	7.3.0.40	2026-04-14 04:28:21+00	39	2026-04-11 20:17:34.556215+00	2026-04-14 06:02:03.536868+00
10	442020687	dolibarr	dolibarr	dolibarr.mpcz.fr	172.28.199.207	Debian Linux 12.12	linux	STATUS_ACTIVE	7.3.0.40	2026-04-12 07:31:11+00	28	2026-04-11 01:47:18.49462+00	2026-04-14 06:02:03.536868+00
\.


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

COPY public.qualys_tags (id, qualys_tag_id, name, is_dynamic, rule_type, rule_text, category, created_at, updated_at, v3_name, v3_type) FROM stdin;
1	187346121	tag1	f		\N	\N	2026-04-10 18:08:57.541293+00	2026-04-12 12:14:55.150255+00	\N	\N
2	187346122	tag5	f		\N	\N	2026-04-10 18:08:57.541293+00	2026-04-12 12:14:55.150255+00	\N	\N
3	187346316	Web	f		\N	\N	2026-04-10 18:08:57.541293+00	2026-04-12 12:14:55.150255+00	\N	\N
4	187346317	tag3	f		\N	\N	2026-04-10 18:08:57.541293+00	2026-04-12 12:14:55.150255+00	\N	\N
5	187346318	tag9	f		\N	\N	2026-04-10 18:08:57.541293+00	2026-04-12 12:14:55.150255+00	\N	\N
6	187359895	tag2	f		\N	\N	2026-04-10 18:08:57.541293+00	2026-04-12 12:14:55.150255+00	\N	\N
7	187359896	tag4	f		\N	\N	2026-04-10 18:08:57.541293+00	2026-04-12 12:14:55.150255+00	\N	\N
8	187359897	tag6	f		\N	\N	2026-04-10 18:08:57.541293+00	2026-04-12 12:14:55.150255+00	\N	\N
9	187359898	tag8	f		\N	\N	2026-04-10 18:08:57.541293+00	2026-04-12 12:14:55.150255+00	\N	\N
10	187359899	tag10	f		\N	\N	2026-04-10 18:08:57.541293+00	2026-04-12 12:14:55.150255+00	\N	\N
11	187374503	tag7	f		\N	\N	2026-04-10 18:08:57.541293+00	2026-04-12 12:14:55.150255+00	\N	\N
12	187377305	Passive Sensor	f		\N	\N	2026-04-10 18:08:57.541293+00	2026-04-12 12:14:55.150255+00	\N	\N
13	187377306	Unmanaged	f		\N	\N	2026-04-10 18:08:57.541293+00	2026-04-12 12:14:55.150255+00	\N	\N
14	187377307	SEM	f		\N	\N	2026-04-10 18:08:57.541293+00	2026-04-12 12:14:55.150255+00	\N	\N
15	187377494	Business Units	f		\N	\N	2026-04-10 18:08:57.541293+00	2026-04-12 12:14:55.150255+00	\N	\N
16	187377495	Unassigned Business Unit	f		\N	\N	2026-04-10 18:08:57.541293+00	2026-04-12 12:14:55.150255+00	\N	\N
17	187377496	Internet Facing Assets	t	NETWORK_RANGE	\N	\N	2026-04-10 18:08:57.541293+00	2026-04-12 12:14:55.150255+00	\N	\N
18	187377497	Default Dashboard Access Tag	f		\N	\N	2026-04-10 18:08:57.541293+00	2026-04-12 12:14:55.150255+00	\N	\N
19	187378074	Cloud Agent	f		\N	\N	2026-04-10 18:08:57.541293+00	2026-04-12 12:14:55.150255+00	\N	\N
\.


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

COPY public.quickwin_entries (id, run_id, server_id, branch, status, general_excludes, specific_excludes, patch_command, patch_output, patch_packages_count, patch_packages, patch_date, reboot_required, prereq_ok, prereq_detail, snap_done, dryrun_output, notes, updated_at, prereq_date, snap_date, prereq_ssh, prereq_satellite, prereq_disk, prod_pair_entry_id, snap_detail) FROM stdin;
\.


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

COPY public.quickwin_logs (id, run_id, entry_id, hostname, step, level, message, detail, created_at, created_by) FROM stdin;
\.


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

COPY public.quickwin_runs (id, year, week_number, label, status, created_by, created_at, updated_at, notes) FROM stdin;
\.


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

COPY public.quickwin_server_config (id, server_id, general_excludes, specific_excludes, last_yum_commands, notes, updated_at) FROM stdin;
\.


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

COPY public.server_audit (id, server_id, hostname, audit_date, status, connection_method, resolved_fqdn, os_release, kernel, uptime, selinux, disk_detail, disk_root_free_mb, disk_var_free_mb, disk_applis_pct, disk_alert, network_mounts, fstab_network, apps_installed, services_running, services_enabled, running_not_enabled, custom_processes, pm2_processes, rc_scripts, applis_scripts, crontab_root, crontab_users, containers, podman_systemd, listening_ports, db_detected, cluster_detected, agents, qualys_active, sentinelone_active, last_patch, failed_services, created_at) FROM stdin;
36	40	step-ca	2026-04-11 22:12:56.347035+00	OK	ssh_key (root@step-ca)	step-ca	Debian GNU/Linux 12 (bookworm)	5.15.158-2-pve	up 1 day, 4 hours, 28 minutes	N/A	/            4.0G  3.4G  16%\n/dev         492K  488K   1%\n/dev/shm      14G   14G   0%\n/dev/tty      14G   14G   0%\n/run         5.5G  5.5G   1%\n/run/lock    5.0M  5.0M   0%\n/run/user/0  2.8G  2.8G   0%\nMounted on   Size Avail Use%	\N	\N	\N	f	\N	\N		cron\nqualys-cloud-agent\nssh\nstep-ca\nzabbix-agent2	\N		\N	\N	\N	\N	\N	\N		\N	*:10050 users:(("zabbix_agent2",pid=168,fd=7))\n*:443 users:(("step-ca",pid=166,fd=10))\n127.0.0.1:25 users:(("master",pid=321,fd=13))\n[::1]:25 users:(("master",pid=321,fd=14))		no_cluster	qualys-cloud-agent:active	t	f	\N		2026-04-11 21:33:38.73094+00
30	33	immo	2026-04-11 22:12:56.351587+00	OK	ssh_key (root@immo)	immo	Debian GNU/Linux 13 (trixie)	6.12.73+deb13-amd64	up 3 weeks, 3 days, 6 hours, 12 minutes	N/A	/                                                                                                    30G   25G  13%\n/boot                                                                                               933M  831M   5%\n/dev                                                                                                2,0G  2,0G   0%\n/dev/shm                                                                                            2,0G  2,0G   0%\n/mnt/backup-mre                                                                                     477G  427G  11%\nMonté sur                                                                                         Taille Dispo Uti%\n/run                                                                                                393M  392M   1%\n/run/credentials/getty@tty1.service                                                                 1,0M  1,0M   0%\n/run/credentials/getty@tty6.service                                                                 1,0M  1,0M   0%\n/run/credentials/systemd-journald.service                                                           1,0M  1,0M   0%\n/run/lock                                                                                           5,0M  5,0M   0%\n/run/user/0                                                                                         266M  266M   1%\n/srv                                                                                                 11G   10G   1%\n/tmp                                                                                                1,9G  1,9G   0%\n/var                                                                                                 16G   12G  23%\n/var/lib/docker/rootfs/overlayfs/23e774d38fc89ed1e60245fe145e96fd28f52339c8f7f10b67f3392c99d2b283    16G   12G  23%\n/var/lib/docker/rootfs/overlayfs/caa91d2a7887ad3fda6b25c0090919537af6266ff399cfffea7b5b6da8847dcd    16G   12G  23%\n/var/lib/docker/rootfs/overlayfs/f04e2023c11035e1f7199d69e50d670a7e7c65e285ebefeb21263d5831df2610    16G   12G  23%	\N	\N	\N	f	\N	\N		containerd\ncron\ndocker\nqemu-guest-agent\nqualys-cloud-agent\nsocial-publisher\nssh\nzabbix-agent2	\N	qemu-guest-agent	\N	\N	\N	\N	\N	\N	NAMES STATUS\nimmo-backend Up 3 weeks\nimmo-frontend Up 3 weeks\nboring_chatelet Exited (3) 5 weeks ago\npedantic_gauss Exited (3) 5 weeks ago\nimmo-caddy Up 3 weeks	\N	0.0.0.0:3000 users:(("docker-proxy",pid=196830,fd=8))\n0.0.0.0:4000 users:(("docker-proxy",pid=196858,fd=8))\n0.0.0.0:5001 users:(("python3",pid=730,fd=3))\n0.0.0.0:80 users:(("docker-proxy",pid=196800,fd=8))\n*:10050 users:(("zabbix_agent2",pid=732,fd=7))\n[::]:3000 users:(("docker-proxy",pid=196836,fd=8))\n[::]:4000 users:(("docker-proxy",pid=196867,fd=8))\n[::]:80 users:(("docker-proxy",pid=196807,fd=8))		no_cluster	qualys-cloud-agent:active	t	f	\N		2026-04-11 21:33:38.73094+00
35	39	squid	2026-04-11 22:12:56.353835+00	OK	ssh_key (root@squid)	squid	Debian GNU/Linux 12 (bookworm)	5.15.158-2-pve	up 4 weeks, 4 days, 21 hours, 34 minutes	N/A	/             20G   19G   7%\n/dev         492K  488K   1%\n/dev/shm      14G   14G   1%\n/dev/tty      14G   14G   0%\n/run         5.5G  5.5G   1%\n/run/lock    5.0M  5.0M   0%\n/run/user/0  2.8G  2.8G   0%\nMounted on   Size Avail Use%	\N	\N	\N	f	\N	\N		cron\nnginx\nqualys-cloud-agent\nsquid\nssh\nzabbix-agent2	\N		\N	\N	\N	\N	\N	\N		\N	*:10050 users:(("zabbix_agent2",pid=22533,fd=7))\n*:3128 users:(("squid",pid=321,fd=18))\n0.0.0.0:80 users:(("nginx",pid=188,fd=5),("nginx",pid=187,fd=5))\n127.0.0.1:25 users:(("master",pid=315,fd=13))\n[::1]:25 users:(("master",pid=315,fd=14))		no_cluster	qualys-cloud-agent:active	t	f	\N	systemd-networkd-wait-online.service	2026-04-11 21:33:38.73094+00
32	37	mre	2026-04-11 22:12:56.355795+00	OK	ssh_key (root@mre)	mre	Debian GNU/Linux 13 (trixie)	6.12.73+deb13-amd64	up 4 weeks, 4 days, 21 hours, 34 minutes	N/A	/                                                                                                   14G  5,5G  58%\n/boot                                                                                              944M  816M   8%\n/boot/efi                                                                                          975M  966M   1%\n/dev                                                                                               2,9G  2,9G   0%\n/dev/shm                                                                                           2,9G  2,9G   0%\n/home                                                                                               15G   12G  13%\n/mnt/backup-mre                                                                                    477G  427G  11%\nMonté sur                                                                                        Taille Dispo Uti%\n/opt                                                                                               5,5G  5,2G   1%\n/run                                                                                               593M  574M   4%\n/run/credentials/getty@tty1.service                                                                1,0M  1,0M   0%\n/run/credentials/systemd-journald.service                                                          1,0M  1,0M   0%\n/run/lock                                                                                          5,0M  5,0M   0%\n/run/user/0                                                                                        448M  448M   1%\n/sys/firmware/efi/efivars                                                                          256K  106K  58%\n/tmp                                                                                               614M  568M   1%\n/var                                                                                                20G  8,3G  56%\n/var/lib/docker/overlay2/04bd679a0789fb0a5da4700b31e4d1352da6be5f44568e4cc68e7eca70cae43a/merged    20G  8,3G  56%\n/var/lib/docker/overlay2/100549a831740d745dd97a492d1a0efda5b0e4dad0c13994e5dd8652600e3c8f/merged    20G  8,3G  56%\n/var/lib/docker/overlay2/19014a1876500a896fed94aa94d2a593a136d0e24fbfbcedb6a6d8954f276747/merged    20G  8,3G  56%\n/var/lib/docker/overlay2/2d72dfea4b775bb61e7ed07ed970a07e82bfd9d3ded6d8b2be87ba7274c12bd3/merged    20G  8,3G  56%\n/var/lib/docker/overlay2/2ee9c80c730f5031822e8bd1355c79a7e7e457841e714392774b11619bef40d8/merged    20G  8,3G  56%\n/var/lib/docker/overlay2/34468876886dc9e39fe8299f6cca33c72c8cfea5af050c5288c23f9704236364/merged    20G  8,3G  56%\n/var/lib/docker/overlay2/910d393a22a726adbe15579b6385d0572288f91a85ad6562076f13df707ed8db/merged    20G  8,3G  56%\n/var/lib/docker/overlay2/a88dd8b60bbb605e14d91d85ba82eb6bc57eea7d89ba6e0ba541b96d6e7ceab0/merged    20G  8,3G  56%\n/var/lib/docker/overlay2/b4666307622bbaf0b54f67ac1d0d376cb0605887a67edb05be80c5e9e85cfe81/merged    20G  8,3G  56%\n/var/lib/docker/overlay2/d0fe0579c0ebf74a2a45d3909875daa2ebd60cdf34af03c8a51151726977f367/merged    20G  8,3G  56%\n/var/lib/docker/overlay2/eb775c7616bfe4ebd692c70f57f8abeb2de70386de66e8618bc07ff67015fd5d/merged    20G  8,3G  56%	\N	\N	\N	f	\N	\N		containerd\ncron\ndocker\nqemu-guest-agent\nqualys-cloud-agent\nssh\nwpa_supplicant\nzabbix-agent2	\N	qemu-guest-agent	\N	\N	\N	\N	\N	\N	NAMES STATUS\nmre-tenant-frontend-1 Up 4 weeks (healthy)\nmre-landlord-frontend-1 Up 2 weeks (unhealthy)\nmre-gateway-1 Up 4 weeks (healthy)\nmre-api-1 Up 4 weeks (healthy)\nmre-authenticator-1 Up 4 weeks (healthy)\nmre-emailer-1 Up 2 weeks (healthy)\nmre-pdfgenerator-1 Up 4 weeks (healthy)\nmre-tenantapi-1 Up 2 weeks (healthy)\nmre-redis-1 Up 4 weeks (healthy)\nmre-mongo-1 Up 3 weeks (healthy)\nmre-reverse-proxy-1 Up 4 weeks\nbuildx_buildkit_mre-builder0 Up 4 weeks\nmicrorealestate-tenantapi-1 Exited (255) 2 months ago	\N	0.0.0.0:443 users:(("docker-proxy",pid=2215,fd=8))\n0.0.0.0:8080 users:(("docker-proxy",pid=4363,fd=8))\n0.0.0.0:80 users:(("docker-proxy",pid=2185,fd=8))\n0.0.0.0:8250 users:(("docker-proxy",pid=3811270,fd=8))\n*:10050 users:(("zabbix_agent2",pid=2882074,fd=7))		no_cluster	qualys-cloud-agent:active	t	f	\N	vboxadd-service.service\nvboxadd.service	2026-04-11 21:33:38.73094+00
33	41	osticket	2026-04-11 22:12:56.362099+00	OK	ssh_key (root@osticket)	osticket	Debian GNU/Linux 12 (bookworm)	5.15.158-2-pve	up 1 day, 4 hours, 28 minutes	N/A	/             20G   20G   5%\n/dev         492K  488K   1%\n/dev/shm      14G   14G   0%\n/dev/tty      14G   14G   0%\n/run         5.5G  5.5G   1%\n/run/lock    5.0M  5.0M   0%\n/run/user/0  2.8G  2.8G   0%\nMounted on   Size Avail Use%	\N	\N	\N	f	\N	\N		apache2\ncron\nmariadb\nqualys-cloud-agent\nssh\nzabbix-agent2	\N		\N	\N	\N	\N	\N	\N		\N	*:10050 users:(("zabbix_agent2",pid=148,fd=7))\n*:80 users:(("apache2",pid=62734,fd=4),("apache2",pid=49513,fd=4),("apache2",pid=49493,fd=4),("apache2",pid=49492,fd=4),("apache2",pid=49491,fd=4),("apache2",pid=49490,fd=4),("apache2",pid=49489,fd=4),("apache2",pid=49488,fd=4),("apache2",pid=270,fd=4))\n127.0.0.1:25 users:(("master",pid=9218,fd=13))\n127.0.0.1:3306 users:(("mariadbd",pid=252,fd=18))\n[::1]:25 users:(("master",pid=9218,fd=14))	mysqld:active	no_cluster	qualys-cloud-agent:active	t	f	\N	systemd-networkd-wait-online.service	2026-04-11 21:33:38.73094+00
34	38	splunk	2026-04-11 22:12:56.364174+00	OK	ssh_key (root@splunk)	splunk	Debian GNU/Linux 12 (bookworm)	5.15.158-2-pve	up 1 day, 4 hours, 13 minutes	N/A	/             32G   29G  10%\n/dev         492K  488K   1%\n/dev/shm      14G   14G   0%\n/run         5.5G  5.5G   1%\n/run/lock    5.0M  5.0M   0%\n/run/user/0  2.8G  2.8G   0%\nMounted on   Size Avail Use%	\N	\N	\N	f	\N	\N		cron\nqualys-cloud-agent\nssh	\N		\N	\N	\N	\N	\N	\N		\N	0.0.0.0:8000 users:(("splunkd",pid=91746,fd=108))\n0.0.0.0:8089 users:(("splunkd",pid=91746,fd=5))\n0.0.0.0:8191 users:(("mongod",pid=91963,fd=13))\n127.0.0.1:25 users:(("master",pid=277,fd=13))\n127.0.0.1:41919 users:(("agent-manager",pid=92216,fd=3))\n127.0.0.1:43781 users:(("identity",pid=92170,fd=3))\n127.0.0.1:44017 users:(("identity",pid=92170,fd=7))\n127.0.0.1:46497 users:(("agent-manager",pid=92216,fd=6))\n127.0.0.1:8065 users:(("python3.9",pid=92214,fd=8))\n[::1]:25 users:(("master",pid=277,fd=14))		no_cluster	qualys-cloud-agent:active	t	f	\N		2026-04-11 21:33:38.73094+00
28	31	haproxy1	2026-04-11 22:12:56.366275+00	OK	ssh_key (root@haproxy1)	haproxy1	Debian GNU/Linux 12 (bookworm)	5.15.158-2-pve	up 4 weeks, 4 days, 21 hours, 35 minutes	N/A	/             16G   15G   8%\n/dev         492K  488K   1%\n/dev/shm      14G   14G   0%\n/dev/tty      14G   14G   0%\n/run         5.5G  5.5G   1%\n/run/lock    5.0M  5.0M   0%\n/run/user/0  2.8G  2.8G   0%\nMounted on   Size Avail Use%	\N	\N	\N	f	\N	\N		cron\nhaproxy\nkeepalived\nqualys-cloud-agent\nssh\nzabbix-agent2	\N		\N	\N	\N	\N	\N	\N		\N	*:10050 users:(("zabbix_agent2",pid=216030,fd=7))\n0.0.0.0:443 users:(("haproxy",pid=2740937,fd=7))\n0.0.0.0:80 users:(("haproxy",pid=2740937,fd=9))\n0.0.0.0:8404 users:(("haproxy",pid=2740937,fd=10))\n127.0.0.1:25 users:(("master",pid=325,fd=13))\n[::1]:25 users:(("master",pid=325,fd=14))		no_cluster	qualys-cloud-agent:active	t	f	\N	systemd-networkd-wait-online.service	2026-04-11 21:33:38.73094+00
29	32	haproxy2	2026-04-11 22:12:56.368383+00	OK	ssh_key (root@haproxy2)	haproxy2	Debian GNU/Linux 12 (bookworm)	5.15.158-2-pve	up 4 weeks, 4 days, 21 hours, 35 minutes	N/A	/             16G   16G   6%\n/dev         492K  488K   1%\n/dev/shm      14G   14G   0%\n/dev/tty      14G   14G   0%\n/run         5.5G  5.5G   1%\n/run/lock    5.0M  5.0M   0%\n/run/user/0  2.8G  2.8G   0%\nMounted on   Size Avail Use%	\N	\N	\N	f	\N	\N		cron\nhaproxy\nkeepalived\nqualys-cloud-agent\nssh\nzabbix-agent2	\N		\N	\N	\N	\N	\N	\N		\N	*:10050 users:(("zabbix_agent2",pid=199172,fd=7))\n0.0.0.0:443 users:(("haproxy",pid=2583510,fd=7))\n0.0.0.0:80 users:(("haproxy",pid=2583510,fd=9))\n0.0.0.0:8404 users:(("haproxy",pid=2583510,fd=10))\n127.0.0.1:25 users:(("master",pid=317,fd=13))\n[::1]:25 users:(("master",pid=317,fd=14))		no_cluster	qualys-cloud-agent:active	t	f	\N	systemd-networkd-wait-online.service	2026-04-11 21:33:38.73094+00
31	34	itop	2026-04-11 22:12:56.370456+00	OK	ssh_key (root@itop)	itop	Debian GNU/Linux 12 (bookworm)	5.15.158-2-pve	up 1 day, 3 hours, 18 minutes	N/A	/             20G   20G   5%\n/dev         492K  488K   1%\n/dev/shm      14G   14G   0%\n/run         5.5G  5.5G   1%\n/run/lock    5.0M  5.0M   0%\n/run/user/0  2.8G  2.8G   0%\nMounted on   Size Avail Use%	\N	\N	\N	f	\N	\N		apache-htcacheclean\napache2\ncron\nmariadb\nqualys-cloud-agent\nssh	\N	apache-htcacheclean	\N	\N	\N	\N	\N	\N		\N	*:80 users:(("apache2",pid=48523,fd=4),("apache2",pid=48521,fd=4),("apache2",pid=48514,fd=4),("apache2",pid=48512,fd=4),("apache2",pid=48511,fd=4),("apache2",pid=19859,fd=4),("apache2",pid=19855,fd=4),("apache2",pid=19836,fd=4),("apache2",pid=19817,fd=4),("apache2",pid=19805,fd=4),("apache2",pid=17378,fd=4))\n127.0.0.1:25 users:(("master",pid=274,fd=13))\n127.0.0.1:3306 users:(("mariadbd",pid=14054,fd=21))\n[::1]:25 users:(("master",pid=274,fd=14))	mysqld:active	no_cluster	qualys-cloud-agent:active	t	f	\N		2026-04-11 21:33:38.73094+00
27	30	gitea	2026-04-11 22:12:56.372572+00	OK	ssh_key (root@gitea)	gitea	Debian GNU/Linux 12 (bookworm)	5.15.158-2-pve	up 4 weeks, 4 days, 21 hours, 34 minutes	N/A	/             40G   39G   3%\n/dev         492K  488K   1%\n/dev/shm      14G   14G   0%\n/run         5.5G  5.5G   1%\n/run/lock    5.0M  5.0M   0%\n/run/user/0  2.8G  2.8G   0%\nMounted on   Size Avail Use%	\N	\N	\N	f	\N	\N		caddy\ncron\ngitea\nqualys-cloud-agent\nssh\nzabbix-agent2	\N		\N	\N	\N	\N	\N	\N		\N	*:10050 users:(("zabbix_agent2",pid=23514,fd=7))\n*:3000 users:(("gitea",pid=151,fd=14))\n*:80 users:(("caddy",pid=204,fd=7))\n127.0.0.1:2019 users:(("caddy",pid=204,fd=3))\n127.0.0.1:25 users:(("master",pid=360,fd=13))\n[::1]:25 users:(("master",pid=360,fd=14))		no_cluster	qualys-cloud-agent:active	t	f	\N	systemd-networkd-wait-online.service	2026-04-11 21:33:38.73094+00
38	43	vpdemabst2	2026-04-11 22:12:56.374743+00	OK	ssh_key (root@vpdemabst2)	vpdemabst2	CentOS Stream release 9	5.14.0-689.el9.x86_64	up 1 day, 3 hours, 7 minutes	Enforcing	/              17G   16G  10%\n/boot         960M  565M  42%\n/dev          360M  360M   0%\n/dev/shm      383M  383M   0%\nMonté sur   Taille Dispo Uti%\n/run          153M  150M   2%\n/run/user/0    77M   77M   0%	\N	\N	\N	f	\N	\N	centos-logos-httpd 90.9\nhttpd 2.4.62\nhttpd-core 2.4.62\nhttpd-filesystem 2.4.62\nhttpd-tools 2.4.62		\N		\N	\N	\N	\N	\N	\N		\N			no_cluster		f	f	\N		2026-04-11 21:33:38.73094+00
39	44	vrdemabst1	2026-04-11 22:12:56.37749+00	OK	ssh_key (root@vrdemabst1)	vrdemabst1	CentOS Stream release 9	5.14.0-689.el9.x86_64	up 1 day, 3 hours, 9 minutes	Enforcing	/              17G   16G  10%\n/boot         960M  565M  42%\n/dev          360M  360M   0%\n/dev/shm      383M  383M   0%\nMonté sur   Taille Dispo Uti%\n/run          153M  150M   2%\n/run/user/0    77M   77M   0%	\N	\N	\N	f	\N	\N	centos-logos-httpd 90.9\nhttpd 2.4.62\nhttpd-core 2.4.62\nhttpd-filesystem 2.4.62\nhttpd-tools 2.4.62		\N		\N	\N	\N	\N	\N	\N		\N			no_cluster		f	f	\N		2026-04-11 21:33:38.73094+00
37	42	vpdemabst1	2026-04-11 22:12:56.379794+00	OK	ssh_key (root@vpdemabst1)	vpdemabst1	CentOS Stream release 9	5.14.0-689.el9.x86_64	up 1 day, 3 hours, 9 minutes	Enforcing	/              17G   16G  10%\n/boot         960M  565M  42%\n/dev          360M  360M   0%\n/dev/shm      383M  383M   0%\nMonté sur   Taille Dispo Uti%\n/run          153M  150M   2%\n/run/user/0    77M   77M   0%	\N	\N	\N	f	\N	\N	centos-logos-httpd 90.9\nhttpd 2.4.62\nhttpd-core 2.4.62\nhttpd-filesystem 2.4.62\nhttpd-tools 2.4.62		\N		\N	\N	\N	\N	\N	\N		\N			no_cluster		f	f	\N		2026-04-11 21:33:38.73094+00
26	29	freepbx	2026-04-11 22:12:56.381925+00	OK	ssh_key (root@freepbx)	freepbx	Debian GNU/Linux 12 (bookworm)	5.15.158-2-pve	up 1 day, 4 hours, 28 minutes	N/A	/             20G   14G  31%\n/dev         492K  488K   1%\n/dev/shm      14G   14G   1%\n/run         5.5G  5.5G   1%\n/run/lock    5.0M  5.0M   0%\n/run/user/0  2.8G  2.8G   0%\nMounted on   Size Avail Use%	\N	\N	\N	f	\N	\N		apache2\natd\navahi-daemon\ncron\nfail2ban\nhaproxy\nincron\nmariadb\nqualys-cloud-agent\nredis-server\nsangoma-pnpd\nssh\ntftpd-hpa\nxinetd\nzabbix-agent2	\N	tftpd-hpa\nxinetd	\N	\N	\N	\N	\N	\N		\N	*:10050 users:(("zabbix_agent2",pid=154,fd=7))\n*:6082 users:(("node\n*:6083 users:(("node\n*:80 users:(("apache2",pid=1382,fd=4),("apache2",pid=1381,fd=4),("apache2",pid=1380,fd=4),("apache2",pid=1379,fd=4),("apache2",pid=1378,fd=4),("apache2",pid=288,fd=4))\n*:8001 users:(("node\n*:8003 users:(("node\n0.0.0.0:1720 users:(("asterisk",pid=4551,fd=28))\n0.0.0.0:5060 users:(("asterisk",pid=4551,fd=19))\n127.0.0.1:25 users:(("master",pid=2597,fd=13))\n127.0.0.1:3306 users:(("mariadbd",pid=172201,fd=29))\n127.0.0.1:4573 users:(("node\n127.0.0.1:5038 users:(("asterisk",pid=4551,fd=13))\n127.0.0.1:6001 users:(("node\n127.0.0.1:6006 users:(("node\n127.0.0.1:6081 users:(("node\n127.0.0.1:6086 users:(("node\n127.0.0.1:6379 users:(("redis-server",pid=149,fd=6))\n127.0.0.1:8088 users:(("asterisk",pid=4551,fd=11))\n127.0.0.1:8089 users:(("asterisk",pid=4551,fd=12))\n[::1]:6379 users:(("redis-server",pid=149,fd=7))	mysqld:active\nredis-server:active	no_cluster	qualys-cloud-agent:active	t	f	\N	systemd-networkd-wait-online.service	2026-04-11 21:33:38.73094+00
24	36	display-mosquee	2026-04-12 12:37:59.963734+00	OK	ssh_key (root@display-mosquee)	display-mosquee	Debian GNU/Linux 12 (bookworm)	5.15.158-2-pve	up 0 minutes	N/A	/             15G   14G   9%\n/dev         492K  488K   1%\n/dev/shm      14G   14G   0%\n/dev/tty      14G   14G   0%\n/run         5.5G  5.5G   1%\n/run/lock    5.0M  5.0M   0%\n/run/user/0  2.8G  2.8G   0%\nMounted on   Size Avail Use%	\N	\N	\N	f	\N	\N		cron\nqualys-cloud-agent\nsalat-display\nssh\nzabbix-agent2	\N		\N	\N	\N	\N	\N	\N		\N	*:10050 users:(("zabbix_agent2",pid=138,fd=7))\n0.0.0.0:3000 users:(("node",pid=134,fd=19))		no_cluster	qualys-cloud-agent:active	t	f	\N		2026-04-11 21:33:38.73094+00
25	28	dolibarr	2026-04-11 22:12:56.357942+00	OK	ssh_key (root@dolibarr)	dolibarr	Debian GNU/Linux 12 (bookworm)	5.15.158-2-pve	up 1 day, 4 hours, 28 minutes	N/A	/             10G  9.1G  10%\n/dev         492K  488K   1%\n/dev/shm      14G   14G   0%\n/dev/tty      14G   14G   0%\n/run         5.5G  5.5G   1%\n/run/lock    5.0M  5.0M   0%\n/run/user/0  2.8G  2.8G   0%\nMounted on   Size Avail Use%	\N	\N	\N	f	\N	\N		apache2\ncron\nmariadb\nqualys-cloud-agent\nssh\nzabbix-agent2	\N		\N	\N	\N	\N	\N	\N		\N	*:10050 users:(("zabbix_agent2",pid=178,fd=7))\n*:443 users:(("apache2",pid=47995,fd=6),("apache2",pid=47994,fd=6),("apache2",pid=47993,fd=6),("apache2",pid=47992,fd=6),("apache2",pid=47991,fd=6),("apache2",pid=440,fd=6))\n*:80 users:(("apache2",pid=47995,fd=4),("apache2",pid=47994,fd=4),("apache2",pid=47993,fd=4),("apache2",pid=47992,fd=4),("apache2",pid=47991,fd=4),("apache2",pid=440,fd=4))\n127.0.0.1:25 users:(("master",pid=435,fd=13))\n127.0.0.1:3306 users:(("mariadbd",pid=321,fd=18))\n[::1]:25 users:(("master",pid=435,fd=14))	mysqld:active	no_cluster	qualys-cloud-agent:active	t	f	\N		2026-04-11 21:33:38.73094+00
40	24	wiki	2026-04-11 22:12:56.339962+00	OK	ssh_key (root@wiki)	wiki	Debian GNU/Linux 12 (bookworm)	5.15.158-2-pve	up 4 weeks, 4 days, 21 hours, 34 minutes	N/A	/             20G   20G   4%\n/dev         492K  488K   1%\n/dev/shm      14G   14G   0%\n/dev/tty      14G   14G   0%\n/run         5.5G  5.5G   1%\n/run/lock    5.0M  5.0M   0%\n/run/user/0  2.8G  2.8G   0%\nMounted on   Size Avail Use%	\N	\N	\N	f	\N	\N		apache2\ncron\nqualys-cloud-agent\nssh\nzabbix-agent2	\N		\N	\N	\N	\N	\N	\N		\N	*:10050 users:(("zabbix_agent2",pid=32659,fd=7))\n*:80 users:(("apache2",pid=1252028,fd=4),("apache2",pid=1252019,fd=4),("apache2",pid=1252002,fd=4),("apache2",pid=1251999,fd=4),("apache2",pid=1251989,fd=4),("apache2",pid=1251987,fd=4),("apache2",pid=1251979,fd=4),("apache2",pid=1251974,fd=4),("apache2",pid=1251967,fd=4),("apache2",pid=1251957,fd=4),("apache2",pid=180,fd=4))\n127.0.0.1:25 users:(("master",pid=380,fd=13))\n[::1]:25 users:(("master",pid=380,fd=14))		no_cluster	qualys-cloud-agent:active	t	f	\N	systemd-networkd-wait-online.service	2026-04-11 21:33:38.73094+00
41	35	zabbix	2026-04-11 22:12:56.349261+00	OK	ssh_key (root@zabbix)	zabbix	Debian GNU/Linux 12 (bookworm)	5.15.158-2-pve	up 4 weeks, 4 days, 21 hours, 34 minutes	N/A	/             20G   16G  24%\n/dev         492K  488K   1%\n/dev/shm      14G   14G   1%\n/dev/tty      14G   14G   0%\nMounted on   Size Avail Use%\n/run         5.5G  5.5G   1%\n/run/lock    5.0M  5.0M   0%\n/run/user/0  2.8G  2.8G   0%	\N	\N	\N	f	\N	\N		cron\nnginx\nphp8.2-fpm\npostgresql@15-main\nqualys-cloud-agent\nsnmpd\nssh\nzabbix-agent2\nzabbix-server	\N	postgresql@15-main	\N	\N	\N	\N	\N	\N		\N	0.0.0.0:10051 users:(("zabbix_server",pid=350,fd=10),("zabbix_server",pid=349,fd=10),("zabbix_server",pid=347,fd=10),("zabbix_server",pid=334,fd=10),("zabbix_server",pid=333,fd=10),("zabbix_server",pid=332,fd=10),("zabbix_server",pid=331,fd=10),("zabbix_server",pid=330,fd=10),("zabbix_server",pid=329,fd=10),("zabbix_server",pid=328,fd=10),("zabbix_server",pid=327,fd=10),("zabbix_server",pid=326,fd=10),("zabbix_server",pid=325,fd=10),("zabbix_server",pid=324,fd=10),("zabbix_server",pid=323,fd=10),("zabbix_server",pid=322,fd=10),("zabbix_server",pid=321,fd=10),("zabbix_server",pid=304,fd=10),("zabbix_server",pid=303,fd=10),("zabbix_server",pid=302,fd=10),("zabbix_server",pid=301,fd=10),("zabbix_server",pid=300,fd=10),("zabbix_server",pid=299,fd=10),("zabbix_server",pid=298,fd=10),("zabbix_server",pid=297,fd=10),("zabbix_server",pid=295,fd=10),("zabbix_server",pid=294,fd=10),("zabbix_server",pid=293,fd=10),("zabbix_server",pid=292,fd=10),("zabbix_server",pid=291,fd=10),("zabbix_server",pid=290,fd=10),("zabbix_server",pid=289,fd=10),("zabbix_server",pid=288,fd=10),("zabbix_server",pid=287,fd=10),("zabbix_server",pid=286,fd=10),("zabbix_server",pid=285,fd=10),("zabbix_server",pid=284,fd=10),("zabbix_server",pid=283,fd=10),("zabbix_server",pid=282,fd=10),("zabbix_server",pid=281,fd=10),("zabbix_server",pid=279,fd=10),("zabbix_server",pid=278,fd=10),("zabbix_server",pid=277,fd=10),("zabbix_server",pid=276,fd=10),("zabbix_server",pid=275,fd=10),("zabbix_server",pid=274,fd=10),("zabbix_server",pid=273,fd=10),("zabbix_server",pid=272,fd=10),("zabbix_server",pid=267,fd=10),("zabbix_server",pid=266,fd=10),("zabbix_server",pid=215,fd=10))\n0.0.0.0:80 users:(("nginx",pid=427,fd=5),("nginx",pid=426,fd=5),("nginx",pid=424,fd=5))\n*:10050 users:(("zabbix_agent2",pid=119504,fd=7))\n[::]:10051 users:(("zabbix_server",pid=350,fd=11),("zabbix_server",pid=349,fd=11),("zabbix_server",pid=347,fd=11),("zabbix_server",pid=334,fd=11),("zabbix_server",pid=333,fd=11),("zabbix_server",pid=332,fd=11),("zabbix_server",pid=331,fd=11),("zabbix_server",pid=330,fd=11),("zabbix_server",pid=329,fd=11),("zabbix_server",pid=328,fd=11),("zabbix_server",pid=327,fd=11),("zabbix_server",pid=326,fd=11),("zabbix_server",pid=325,fd=11),("zabbix_server",pid=324,fd=11),("zabbix_server",pid=323,fd=11),("zabbix_server",pid=322,fd=11),("zabbix_server",pid=321,fd=11),("zabbix_server",pid=304,fd=11),("zabbix_server",pid=303,fd=11),("zabbix_server",pid=302,fd=11),("zabbix_server",pid=301,fd=11),("zabbix_server",pid=300,fd=11),("zabbix_server",pid=299,fd=11),("zabbix_server",pid=298,fd=11),("zabbix_server",pid=297,fd=11),("zabbix_server",pid=295,fd=11),("zabbix_server",pid=294,fd=11),("zabbix_server",pid=293,fd=11),("zabbix_server",pid=292,fd=11),("zabbix_server",pid=291,fd=11),("zabbix_server",pid=290,fd=11),("zabbix_server",pid=289,fd=11),("zabbix_server",pid=288,fd=11),("zabbix_server",pid=287,fd=11),("zabbix_server",pid=286,fd=11),("zabbix_server",pid=285,fd=11),("zabbix_server",pid=284,fd=11),("zabbix_server",pid=283,fd=11),("zabbix_server",pid=282,fd=11),("zabbix_server",pid=281,fd=11),("zabbix_server",pid=279,fd=11),("zabbix_server",pid=278,fd=11),("zabbix_server",pid=277,fd=11),("zabbix_server",pid=276,fd=11),("zabbix_server",pid=275,fd=11),("zabbix_server",pid=274,fd=11),("zabbix_server",pid=273,fd=11),("zabbix_server",pid=272,fd=11),("zabbix_server",pid=267,fd=11),("zabbix_server",pid=266,fd=11),("zabbix_server",pid=215,fd=11))\n[::1]:25 users:(("master",pid=533,fd=14))\n127.0.0.1:25 users:(("master",pid=533,fd=13))\n127.0.0.1:5432 users:(("postgres",pid=194,fd=6))\n[::1]:5432 users:(("postgres",pid=194,fd=5))	postgresql:active	no_cluster	qualys-cloud-agent:active	t	f	\N	systemd-networkd-wait-online.service	2026-04-11 21:33:38.73094+00
\.


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

COPY public.server_audit_full (id, server_id, hostname, audit_date, os_release, kernel, uptime, services, processes, services_failed, needs_restarting, reboot_required, disk_usage, interfaces, routes, listen_ports, connections, flux_in, flux_out, conn_wait, net_stats, traffic, firewall, correlation_matrix, outbound_only, raw_output, status, error_msg, created_at, last_patch_date, last_patch_week, last_patch_year, patch_count_2026, patch_weeks_2026, patch_count_2025, patch_weeks_2025, patch_status_2026, cancelled_weeks_2026) FROM stdin;
\.


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

COPY public.server_correspondance (id, prod_server_id, nonprod_server_id, environment_code, source, note, created_by, created_at, updated_at) FROM stdin;
1	42	44	Recette	manual	\N	1	2026-04-12 16:03:13.173076	2026-04-12 16:03:13.173076
2	24	30	Recette	manual	\N	1	2026-04-12 16:21:17.255772	2026-04-12 16:21:17.255772
\.


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

COPY public.server_ips (id, server_id, ip_address, ip_type, is_ssh, vlan_id, interface, description, created_at) FROM stdin;
22	28	172.28.199.157	primary	t	\N	\N	itop	2026-04-11 01:56:54.773774+00
23	29	172.28.199.160	primary	t	\N	\N	itop	2026-04-11 01:56:54.773774+00
24	30	172.28.199.202	primary	t	\N	\N	itop	2026-04-11 01:56:54.773774+00
25	31	172.28.199.121	primary	t	\N	\N	itop	2026-04-11 01:56:54.773774+00
26	32	172.28.199.122	primary	t	\N	\N	itop	2026-04-11 01:56:54.773774+00
27	33	172.28.199.200	primary	t	\N	\N	itop	2026-04-11 01:56:54.773774+00
28	34	172.28.199.156	primary	t	\N	\N	itop	2026-04-11 01:56:54.773774+00
29	35	172.28.199.150	primary	t	\N	\N	itop	2026-04-11 01:56:54.773774+00
31	37	172.28.199.201	primary	t	\N	\N	itop	2026-04-11 01:56:54.773774+00
32	38	172.28.199.155	primary	t	\N	\N	itop	2026-04-11 01:56:54.773774+00
33	39	172.28.199.151	primary	t	\N	\N	itop	2026-04-11 01:56:54.773774+00
34	40	172.28.199.158	primary	t	\N	\N	itop	2026-04-11 01:56:54.773774+00
35	41	172.28.199.205	primary	t	\N	\N	itop	2026-04-11 01:56:54.773774+00
39	24	172.28.199.204	primary	t	\N	\N	itop	2026-04-11 01:56:54.773774+00
40	42	192.168.199.106	primary	t	\N	\N	itop	2026-04-11 20:46:28.207053+00
41	43	192.168.199.137	primary	t	\N	\N	itop	2026-04-11 20:46:28.207053+00
42	44	192.168.199.148	primary	t	\N	\N	itop	2026-04-11 20:46:28.207053+00
43	25	172.28.199.180	primary	t	\N	\N	itop	2026-04-11 20:54:02.100878+00
44	26	192.168.199.111	primary	t	\N	\N	itop	2026-04-11 20:54:02.100878+00
45	27	172.28.199.185	primary	t	\N	\N	itop	2026-04-11 20:54:02.100878+00
46	28	172.28.199.207	primary	t	\N	\N	audit	2026-04-11 21:33:38.73094+00
47	40	172.28.199.130	primary	t	\N	\N	audit	2026-04-11 21:33:38.73094+00
48	36	172.28.199.203	primary	t	\N	\N	\N	2026-04-12 12:07:00.671324+00
\.


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

COPY public.server_pairs (id, prod_server_id, hprod_server_id, relation_type, auto_detected, note, created_at) FROM stdin;
\.


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

COPY public.server_specifics (id, server_id, reboot_order, reboot_order_note, cmd_before_patch, cmd_after_patch, cmd_before_reboot, cmd_after_reboot, is_cluster, cluster_role, cluster_note, is_db, db_type, db_note, is_middleware, mw_type, mw_note, has_agent_special, agent_note, has_service_critical, service_note, needs_manual_step, manual_step_detail, reboot_delay_minutes, patch_excludes, no_reboot_reason, dependency_server_id, dependency_note, note, created_at, updated_at, app_type, stop_command, start_command, stop_user, start_user, kernel_update_blocked, kernel_block_reason, reboot_min_interval_minutes, sentinel_disable_required, ip_forwarding_required, rolling_update, rolling_update_note, auto_restart, patch_order_group, extra_excludes, stop_order, patch_wave, patch_wave_group, patch_wave_delay_days, patch_wave_note) FROM stdin;
1	29	\N	\N	\N	\N	\N	\N	f	\N	\N	f	\N	\N	f	\N	\N	f	\N	f	\N	f	\N	\N	\N	\N	\N	\N	\N	2026-04-11 18:50:21.341363+00	2026-04-11 18:50:21.341363+00	\N	\N	\N	\N	\N	f	\N	\N	f	f	f	\N	t	\N	\N	\N	\N	\N	1	\N
\.


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

COPY public.servers (id, hostname, fqdn, domain_ltd, domain_env_id, zone_id, vcenter_id, application_id, cluster_id, os_family, os_version, machine_type, vcenter_vm_name, is_bdd, is_flux_libre, is_emv, is_podman, need_pct, tier, etat, licence_support, eol_date, site, ssh_method, ssh_port, ssh_user, cyberark_safe, patch_os_owner, patch_mw_owner, patch_app_owner, patch_owner_details, patch_frequency, patch_window, patch_excludes, patch_custom_cmd, reboot_allowed, snapshot_required, pre_patch_script, post_patch_script, responsable_nom, responsable_email, referent_nom, referent_email, default_intervenant_id, qualys_asset_id, centreon_host_id, cve_critical_count, last_qualys_scan, mode_operatoire, commentaire, notes, created_at, updated_at, created_by, satellite_host, pref_patch_jour, pref_patch_heure, application_name, app_group, use_proxy) FROM stdin;
26	poste-admin-virtualbox	Poste-Admin-VirtualBox	\N	9	\N	\N	\N	\N	windows		physical	\N	f	f	f	f	f	tier0	production	active	\N		ssh_key	22	root	\N	secops	a_definir	a_definir	\N	monthly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N		\N	\N	\N	\N	\N	\N	0	\N	\N	Poste admin - hote VirtualBox	\N	2026-04-11 01:05:56.780491+00	2026-04-12 13:30:55.816131+00	\N	\N	indifferent	indifferent	\N	\N	t
64	vrpeatlc01	vrpeatlc01	sanef-rec.fr	13	2	\N	\N	\N	windows		vm	\N	f	f	f	f	f	tier3	production	active	\N	\N	ssh_user	22	root	\N	secops	a_definir	a_definir	\N	quarterly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Mehdi ALAOUI	mehdi.alaoui@mpcz.fr	Omar CHRAIBI	omar.chraibi@mpcz.fr	\N	\N	\N	0	\N	\N		\N	2026-04-11 11:29:49.207379+00	2026-04-12 13:32:15.091365+00	\N	\N	indifferent	indifferent	\N	\N	t
28	dolibarr	dolibarr	mpcz.fr	6	2	\N	76	\N	linux	Debian 12 (Bookworm)	vm	\N	f	f	f	f	f	tier2	production	active	\N	\N	ssh_key	22	root	\N	secops	a_definir	a_definir	\N	monthly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Rachid BENJELLOUN	rachid.benjelloun@mpcz.fr	Fatima EL HASSAN	fatima.elhassan@mpcz.fr	\N	442020687	\N	0	\N	\N	Dolibarr ERP CRM	\N	2026-04-11 01:13:19.464777+00	2026-04-12 13:43:40.856606+00	\N	\N	mercredi	09_10	Gestion Locative	\N	t
47	vpbidwh01	vpbidwh01	sanef.groupe	9	2	\N	\N	\N	windows		vm	\N	f	f	f	f	f	tier1	production	active	\N	\N	ssh_psmp	22	cybsecope	\N	secops	a_definir	a_definir	\N	monthly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Rachid BENJELLOUN	rachid.benjelloun@mpcz.fr	Laila SENHAJI	laila.senhaji@mpcz.fr	\N	\N	\N	0	\N	\N		\N	2026-04-11 11:29:49.156022+00	2026-04-12 13:30:55.816131+00	\N	\N	samedi	08_09	\N	\N	t
51	vpgescrm01	vpgescrm01	sanef.groupe	3	2	\N	\N	\N	windows		vm	\N	f	f	f	f	f	tier1	production	active	\N	\N	ssh_user	22	root	\N	secops	a_definir	a_definir	\N	monthly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Rachid BENJELLOUN	rachid.benjelloun@mpcz.fr	Fatima EL HASSAN	fatima.elhassan@mpcz.fr	\N	\N	\N	0	\N	\N		\N	2026-04-11 11:29:49.174807+00	2026-04-12 13:31:18.465084+00	\N	\N	mercredi	10_11	\N	\N	t
52	vpgeserp01	vpgeserp01	sanef.groupe	3	2	\N	\N	\N	windows		vm	\N	f	f	f	f	f	tier0	production	active	\N	\N	ssh_psmp	22	cybsecope	\N	secops	a_definir	a_definir	\N	monthly	\N	sap-hana sap-netweaver httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Ahmed TAZI	ahmed.tazi@mpcz.fr	Fatima EL HASSAN	fatima.elhassan@mpcz.fr	\N	\N	\N	0	\N	\N		\N	2026-04-11 11:29:49.174807+00	2026-04-12 13:31:18.465084+00	\N	\N	dimanche	08_09	\N	\N	t
32	haproxy2	haproxy2	mpcz.fr	4	1	\N	76	\N	linux	Debian 12 (Bookworm)	vm	\N	f	f	f	f	f	tier0	production	active	\N	\N	ssh_key	22	root	\N	secops	a_definir	a_definir	\N	monthly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Khalid MOUTAOUAKIL	khalid.moutaouakil@mpcz.fr	Khalid MOUTAOUAKIL	khalid.moutaouakil@mpcz.fr	\N	\N	\N	0	\N	\N	HAProxy node 2 standby	\N	2026-04-11 01:13:19.464777+00	2026-04-12 13:43:40.856606+00	\N	\N	dimanche	07_08	Gestion Locative	\N	t
34	itop	itop	mpcz.fr	4	2	\N	94	\N	linux	Debian 12 (Bookworm)	vm	\N	f	f	f	f	f	tier1	production	active	\N	\N	ssh_key	22	root	\N	secops	a_definir	a_definir	\N	monthly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Ahmed TAZI	ahmed.tazi@mpcz.fr	Nadia FASSI	nadia.fassi@mpcz.fr	\N	\N	\N	0	\N	\N	iTop 3.2.2 ITSM CMDB	\N	2026-04-11 01:13:19.464777+00	2026-04-12 13:43:40.856606+00	\N	\N	samedi	10_11	ITSM et CMDB	\N	t
53	vpgesrh01	vpgesrh01	sanef.groupe	3	2	\N	\N	\N	windows		vm	\N	f	f	f	f	f	tier1	production	active	\N	\N	ssh_user	22	root	\N	secops	a_definir	a_definir	\N	monthly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Rachid BENJELLOUN	rachid.benjelloun@mpcz.fr	Fatima EL HASSAN	fatima.elhassan@mpcz.fr	\N	\N	\N	0	\N	\N		\N	2026-04-11 11:29:49.174807+00	2026-04-12 13:31:18.465084+00	\N	\N	mercredi	09_10	\N	\N	t
36	display-mosquee	display-mosquee	mpcz.fr	8	2	\N	6	\N	linux	Debian 12 (Bookworm)	vm	\N	f	f	f	f	f	tier3	production	active	\N	\N	ssh_key	22	root	\N	secops	a_definir	a_definir	\N	quarterly	\N	podman*, runc*	\N	t	t	\N	\N	Mehdi ALAOUI	mehdi.alaoui@mpcz.fr	Mehdi ALAOUI	mehdi.alaoui@mpcz.fr	\N	\N	\N	0	\N		Display horaires mosquee	\N	2026-04-11 01:13:19.464777+00	2026-04-12 13:43:40.856606+00	\N	\N	indifferent	indifferent	Affichage Public	\N	t
33	immo	immo	mpcz.fr	3	2	\N	172	\N	linux	Debian 13 (Trixie)	vm	\N	f	f	f	f	f	tier1	production	active	\N	\N	ssh_key	22	root	\N	secops	a_definir	a_definir	\N	monthly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Rachid BENJELLOUN	rachid.benjelloun@mpcz.fr	Fatima EL HASSAN	fatima.elhassan@mpcz.fr	\N	\N	\N	0	\N	\N	Application immobiliere Node.js Caddy Docker	\N	2026-04-11 01:13:19.464777+00	2026-04-12 13:43:40.856606+00	\N	\N	mercredi	09_10	Web Immobilier	\N	t
54	vpinfans01	vpinfans01	sanef.groupe	4	2	\N	\N	\N	windows		vm	\N	f	f	f	f	f	tier1	production	active	\N	\N	ssh_psmp	22	cybsecope	\N	secops	a_definir	a_definir	\N	monthly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Youssef BENALI	youssef.benali@mpcz.fr	Khalid MOUTAOUAKIL	khalid.moutaouakil@mpcz.fr	\N	\N	\N	0	\N	\N		\N	2026-04-11 11:29:49.174807+00	2026-04-12 13:31:50.281976+00	\N	\N	samedi	08_09	\N	\N	t
55	vpinfdns01	vpinfdns01	sanef.groupe	4	2	\N	\N	\N	windows		vm	\N	f	f	f	f	f	tier0	production	active	\N	\N	ssh_psmp	22	cybsecope	\N	secops	a_definir	a_definir	\N	quarterly	\N	bind9 httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Khalid MOUTAOUAKIL	khalid.moutaouakil@mpcz.fr	Khalid MOUTAOUAKIL	khalid.moutaouakil@mpcz.fr	\N	\N	\N	0	\N	\N		\N	2026-04-11 11:29:49.174807+00	2026-04-12 13:31:50.281976+00	\N	\N	dimanche	07_08	\N	\N	t
56	vpinflog01	vpinflog01	sanef.groupe	4	2	\N	\N	\N	windows		vm	\N	f	f	f	f	f	tier1	production	active	\N	\N	ssh_key	22	root	\N	secops	a_definir	a_definir	\N	monthly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Youssef BENALI	youssef.benali@mpcz.fr	Youssef BENALI	youssef.benali@mpcz.fr	\N	\N	\N	0	\N	\N		\N	2026-04-11 11:29:49.174807+00	2026-04-12 13:31:50.281976+00	\N	\N	samedi	09_10	\N	\N	t
57	vpinfold01	vpinfold01	sanef.groupe	4	2	\N	\N	\N	windows		vm	\N	f	f	f	f	f	tier3	production	active	\N	\N	ssh_key	22	root	\N	secops	a_definir	a_definir	\N	on-demand	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Khalid MOUTAOUAKIL	khalid.moutaouakil@mpcz.fr	Khalid MOUTAOUAKIL	khalid.moutaouakil@mpcz.fr	\N	\N	\N	0	\N	\N		\N	2026-04-11 11:29:49.174807+00	2026-04-12 13:31:50.281976+00	\N	\N	indifferent	indifferent	\N	\N	t
46	viflxanpr01	viflxanpr01	sanef.inte-adds	8	2	\N	\N	\N	windows		vm	\N	f	f	f	f	f	tier3	production	active	\N	\N	ssh_user	22	root	\N	ipop	a_definir	a_definir	\N	on-demand	\N	podman*, runc*	\N	t	t	\N	\N	Ahmed TAZI	ahmed.tazi@mpcz.fr	Omar CHRAIBI	omar.chraibi@mpcz.fr	\N	\N	\N	0	\N			\N	2026-04-11 11:29:49.153786+00	2026-04-12 13:30:23.515458+00	\N	\N	indifferent	indifferent	\N	\N	t
49	vpflxanpr01	vpflxanpr01	sanef.groupe	10	2	\N	\N	\N	windows		vm	\N	f	f	f	f	f	tier1	production	active	\N	\N	ssh_psmp	22	cybsecope	\N	secops	a_definir	a_definir	\N	monthly	\N	podman*, runc*	\N	t	t	\N	\N	Ahmed TAZI	ahmed.tazi@mpcz.fr	Omar CHRAIBI	omar.chraibi@mpcz.fr	\N	\N	\N	0	\N	\N		\N	2026-04-11 11:29:49.174807+00	2026-04-12 13:30:23.515458+00	\N	\N	samedi	10_11	\N	\N	t
50	vpflxcls01	vpflxcls01	sanef.groupe	10	2	\N	\N	\N	windows		vm	\N	f	f	f	f	f	tier1	production	active	\N	\N	ssh_key	22	root	\N	secops	a_definir	a_definir	\N	monthly	\N	podman*, runc*	\N	t	t	\N	\N	Ahmed TAZI	ahmed.tazi@mpcz.fr	Omar CHRAIBI	omar.chraibi@mpcz.fr	\N	\N	\N	0	\N	\N		\N	2026-04-11 11:29:49.174807+00	2026-04-12 13:30:23.515458+00	\N	\N	samedi	11_12	\N	\N	t
48	vpbietl01	vpbietl01	sanef.groupe	9	2	\N	\N	\N	windows		vm	\N	f	f	f	f	f	tier2	production	active	\N	\N	ssh_user	22	root	\N	secops	a_definir	a_definir	\N	monthly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Rachid BENJELLOUN	rachid.benjelloun@mpcz.fr	Laila SENHAJI	laila.senhaji@mpcz.fr	\N	\N	\N	0	\N	\N		\N	2026-04-11 11:29:49.156022+00	2026-04-12 13:30:55.816131+00	\N	\N	mercredi	14_15	\N	\N	t
58	vpinfprx01	vpinfprx01	sanef.groupe	4	2	\N	\N	\N	windows		vm	\N	f	f	f	f	f	tier0	production	active	\N	\N	ssh_psmp	22	cybsecope	\N	secops	a_definir	a_definir	\N	monthly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Khalid MOUTAOUAKIL	khalid.moutaouakil@mpcz.fr	Khalid MOUTAOUAKIL	khalid.moutaouakil@mpcz.fr	\N	\N	\N	0	\N	\N		\N	2026-04-11 11:29:49.174807+00	2026-04-12 13:31:50.281976+00	\N	\N	dimanche	07_08	\N	\N	t
61	vppeasig01	vppeasig01	sanef.groupe	11	2	\N	\N	\N	windows		vm	\N	f	f	f	f	f	tier1	production	active	\N	\N	ssh_key	22	root	\N	secops	a_definir	a_definir	\N	monthly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Mehdi ALAOUI	mehdi.alaoui@mpcz.fr	Omar CHRAIBI	omar.chraibi@mpcz.fr	\N	\N	\N	0	\N	\N		\N	2026-04-11 11:29:49.190294+00	2026-04-12 13:32:15.091365+00	\N	\N	dimanche	09_10	\N	\N	t
62	vppeatlc01	vppeatlc01	sanef.groupe	11	2	\N	\N	\N	windows		vm	\N	f	f	f	f	f	tier0	production	active	\N	\N	ssh_psmp	22	cybsecope	\N	secops	a_definir	a_definir	\N	monthly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Mehdi ALAOUI	mehdi.alaoui@mpcz.fr	Omar CHRAIBI	omar.chraibi@mpcz.fr	\N	\N	\N	0	\N	\N		\N	2026-04-11 11:29:49.190294+00	2026-04-12 13:32:15.091365+00	\N	\N	dimanche	07_08	\N	\N	t
59	vpinfvpn01	vpinfvpn01	sanef.groupe	4	1	\N	\N	\N	windows		vm	\N	f	f	f	f	f	tier0	production	active	\N	\N	ssh_psmp	22	cybsecope	\N	secops	a_definir	a_definir	\N	quarterly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Sara KABBAJ	sara.kabbaj@mpcz.fr	Khalid MOUTAOUAKIL	khalid.moutaouakil@mpcz.fr	\N	\N	\N	0	\N	\N		\N	2026-04-11 11:29:49.174807+00	2026-04-12 13:31:50.281976+00	\N	\N	dimanche	08_09	\N	\N	t
63	vrgesrh01	vrgesrh01	sanef-rec.fr	12	2	\N	\N	\N	windows		vm	\N	f	f	f	f	f	tier3	production	active	\N	\N	rdp_psm	22	cybsecope	\N	secops	a_definir	a_definir	\N	quarterly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Youssef BENALI	youssef.benali@mpcz.fr	Fatima EL HASSAN	fatima.elhassan@mpcz.fr	\N	\N	\N	0	\N	\N		\N	2026-04-11 11:29:49.205099+00	2026-04-12 13:31:18.465084+00	\N	\N	indifferent	indifferent	\N	\N	t
60	vpinfwaf01	vpinfwaf01	sanef.groupe	4	1	\N	\N	\N	windows		vm	\N	f	f	f	f	f	tier0	production	active	\N	\N	ssh_psmp	22	cybsecope	\N	secops	a_definir	a_definir	\N	monthly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Sara KABBAJ	sara.kabbaj@mpcz.fr	Khalid MOUTAOUAKIL	khalid.moutaouakil@mpcz.fr	\N	\N	\N	0	\N	\N		\N	2026-04-11 11:29:49.174807+00	2026-04-12 13:31:50.281976+00	\N	\N	dimanche	07_08	\N	\N	t
45	vdinflab01	vdinflab01	workgroupe	7	2	\N	\N	\N	windows		vm	\N	f	f	f	f	f	tier3	production	active	\N	\N	ssh_key	22	root	\N	secops	a_definir	a_definir	\N	on-demand	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Youssef BENALI	youssef.benali@mpcz.fr	Youssef BENALI	youssef.benali@mpcz.fr	\N	\N	\N	0	\N	\N		\N	2026-04-11 11:29:49.150818+00	2026-04-12 13:31:50.281976+00	\N	\N	indifferent	indifferent	\N	\N	t
31	haproxy1	haproxy1	mpcz.fr	4	1	\N	76	\N	linux	Debian 12 (Bookworm)	vm	\N	f	f	f	f	f	tier0	production	active	\N	\N	ssh_key	22	root	\N	secops	a_definir	a_definir	\N	monthly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Khalid MOUTAOUAKIL	khalid.moutaouakil@mpcz.fr	Khalid MOUTAOUAKIL	khalid.moutaouakil@mpcz.fr	\N	\N	\N	0	\N	\N	HAProxy node 1 actif VIP .120	\N	2026-04-11 01:13:19.464777+00	2026-04-12 13:43:40.856606+00	\N	\N	dimanche	07_08	Gestion Locative	\N	t
37	mre	mre	mpcz.fr	3	2	\N	76	\N	linux	Debian 13 (Trixie)	vm	\N	f	f	f	f	f	tier1	production	active	\N	\N	ssh_key	22	root	\N	secops	a_definir	a_definir	\N	monthly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Rachid BENJELLOUN	rachid.benjelloun@mpcz.fr	Fatima EL HASSAN	fatima.elhassan@mpcz.fr	\N	\N	\N	0	\N	\N	MicroRealEstate Docker MongoDB	\N	2026-04-11 01:13:19.464777+00	2026-04-12 13:43:40.856606+00	\N	\N	mercredi	10_11	Gestion Locative	\N	t
41	osticket	osticket	mpcz.fr	3	2	\N	157	\N	linux	Debian 12 (Bookworm)	vm	\N	f	f	f	f	f	tier2	production	active	\N	\N	ssh_key	22	root	\N	secops	a_definir	a_definir	\N	monthly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Ahmed TAZI	ahmed.tazi@mpcz.fr	Nadia FASSI	nadia.fassi@mpcz.fr	\N	\N	\N	0	\N	\N	osTicket v1.18.1 helpdesk	\N	2026-04-11 01:13:19.464777+00	2026-04-12 13:43:40.856606+00	\N	\N	samedi	09_10	Support Utilisateurs	\N	t
38	splunk	splunk	mpcz.fr	4	2	\N	139	\N	linux	Debian 12 (Bookworm)	vm	\N	f	f	f	f	f	tier1	production	active	\N	\N	ssh_key	22	root	\N	secops	a_definir	a_definir	\N	monthly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Youssef BENALI	youssef.benali@mpcz.fr	Youssef BENALI	youssef.benali@mpcz.fr	\N	\N	\N	0	\N	\N	Splunk 9.4.1 Enterprise SIEM	\N	2026-04-11 01:13:19.464777+00	2026-04-12 13:43:40.856606+00	\N	\N	samedi	08_09	Securite et SIEM	\N	t
39	squid	squid	mpcz.fr	4	1	\N	122	\N	linux	Debian 12 (Bookworm)	vm	\N	f	f	f	f	f	tier0	production	active	\N	\N	ssh_key	22	root	\N	secops	a_definir	a_definir	\N	monthly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Khalid MOUTAOUAKIL	khalid.moutaouakil@mpcz.fr	Khalid MOUTAOUAKIL	khalid.moutaouakil@mpcz.fr	\N	\N	\N	0	\N	\N	Proxy Squid 3128 SquidGuard Nginx WPAD	\N	2026-04-11 01:13:19.464777+00	2026-04-12 13:43:40.856606+00	\N	\N	dimanche	07_08	Proxy et Acces Web	\N	t
40	step-ca	step-ca	mpcz.fr	4	2	\N	139	\N	linux	Debian 12 (Bookworm)	vm	\N	f	f	f	f	f	tier0	production	active	\N	\N	ssh_key	22	root	\N	secops	a_definir	a_definir	\N	quarterly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Sara KABBAJ	sara.kabbaj@mpcz.fr	Youssef BENALI	youssef.benali@mpcz.fr	\N	\N	\N	0	\N	\N	Smallstep CA PKI interne	\N	2026-04-11 01:13:19.464777+00	2026-04-12 13:43:40.856606+00	\N	\N	dimanche	07_08	Securite et SIEM	\N	t
29	freepbx	freepbx	mpcz.fr	4	2	\N	162	\N	linux	Debian 12 (Bookworm)	vm	\N	f	f	f	f	f	tier1	production	active	\N	\N	ssh_key	22	root	\N	secops	a_definir	a_definir	\N	quarterly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Mehdi ALAOUI	mehdi.alaoui@mpcz.fr	Sara KABBAJ	sara.kabbaj@mpcz.fr	\N	\N	\N	0	\N	\N	FreePBX 17 Asterisk 22 trunk SIP OVH	\N	2026-04-11 01:13:19.464777+00	2026-04-13 08:31:48.761464+00	\N	\N	dimanche	08_09	Telephonie IP	\N	t
30	gitea	gitea	mpcz.fr	5	2	\N	29	\N	linux	Debian 12 (Bookworm)	vm	\N	f	f	f	f	f	tier2	production	active	\N	\N	ssh_key	22	root	\N	secops	a_definir	a_definir	\N	quarterly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Sara KABBAJ	sara.kabbaj@mpcz.fr	Nadia FASSI	nadia.fassi@mpcz.fr	\N	442520259	\N	0	\N	\N	Gitea v1.22.6 depot Git	\N	2026-04-11 01:13:19.464777+00	2026-04-12 16:20:46.728478+00	\N	\N	samedi	09_10	Documentation et Wiki	\N	t
44	vrdemabst1	vrdemabst1	sanef-rec.fr	5	2	\N	116	\N	linux	CentOS Stream 9	vm	\N	f	f	f	f	f	tier3	production	active	\N	\N	rdp_user	22	root	\N	secops	a_definir	a_definir	\N	on-demand	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Youssef BENALI	youssef.benali@mpcz.fr	Youssef BENALI	youssef.benali@mpcz.fr	\N	\N	\N	0	\N	\N	VM CentOS Stream 9 - demo patching - VirtualBox	\N	2026-04-11 01:13:19.464777+00	2026-04-12 13:43:40.856606+00	\N	\N	indifferent	indifferent	Patching et Conformite	\N	t
24	wiki	wiki	mpcz.fr	4	2	\N	29	\N	linux	Debian 12 (Bookworm)	vm	\N	f	f	f	f	f	tier2	production	active	\N	\N	ssh_key	22	root	\N	secops	a_definir	a_definir	\N	quarterly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Sara KABBAJ	sara.kabbaj@mpcz.fr	Nadia FASSI	nadia.fassi@mpcz.fr	\N	\N	\N	0	\N	\N	DokuWiki documentation infra	\N	2026-04-11 01:05:56.780491+00	2026-04-12 13:43:40.856606+00	\N	\N	samedi	10_11	Documentation et Wiki	\N	t
35	zabbix	zabbix	mpcz.fr	4	2	\N	154	\N	linux	Debian 12 (Bookworm)	vm	\N	f	f	f	f	f	tier1	production	active	\N	\N	ssh_key	22	root	\N	secops	a_definir	a_definir	\N	monthly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Rachid BENJELLOUN	rachid.benjelloun@mpcz.fr	Laila SENHAJI	laila.senhaji@mpcz.fr	\N	\N	\N	0	\N	\N	Zabbix v7.0 supervision	\N	2026-04-11 01:13:19.464777+00	2026-04-12 13:43:40.856606+00	\N	\N	samedi	08_09	Supervision et Monitoring	\N	t
25	nas	NAS	\N	9	\N	\N	88	\N	windows		physical	\N	f	f	f	f	f	tier0	production	active	\N		ssh_key	22	root	\N	secops	a_definir	a_definir	\N	monthly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Khalid MOUTAOUAKIL	\N	\N	\N	\N	\N	\N	0	\N	\N	Serveur NAS SMB - Sauvegardes Windows	\N	2026-04-11 01:05:56.780491+00	2026-04-12 13:43:40.856606+00	\N	\N	indifferent	indifferent	Infra Core	\N	t
27	pve01	pve01.mpcz.fr	\N	9	\N	\N	88	\N	linux	Debian 12 (Bookworm)	physical	\N	f	f	f	f	f	tier0	production	active	\N		ssh_key	22	root	\N	secops	a_definir	a_definir	\N	monthly	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Khalid MOUTAOUAKIL	\N	\N	\N	\N	442520686	\N	0	\N	\N	Proxmox VE - Hyperviseur principal	\N	2026-04-11 01:05:56.780491+00	2026-04-12 13:43:40.856606+00	\N	\N	indifferent	indifferent	Infra Core	\N	t
43	vpdemabst2	vpdemabst2	sanef-rec.fr	4	2	\N	116	\N	linux	CentOS Stream 9	vm	\N	f	f	f	f	f	tier3	production	active	\N	\N	rdp_user	22	root	\N	secops	a_definir	a_definir	\N	on-demand	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Youssef BENALI	youssef.benali@mpcz.fr	Youssef BENALI	youssef.benali@mpcz.fr	\N	\N	\N	0	\N	\N	VM CentOS Stream 9 - demo patching - VirtualBox	\N	2026-04-11 01:13:19.464777+00	2026-04-12 16:01:39.800001+00	\N	\N	indifferent	indifferent	Patching et Conformite	\N	t
42	vpdemabst1	vpdemabst1	sanef-rec.fr	4	2	\N	116	\N	linux	CentOS Stream 9	vm	\N	f	f	f	f	f	tier3	production	active	\N	\N	rdp_user	22	root	\N	secops	a_definir	a_definir	\N	on-demand	\N	httpd* mod_ssl* nginx* haproxy* keepalived* postgres* postgresql* mariadb* mysql* oracle* mongodb* percona* pgpool* pgbouncer* pgbadger* psycopg2* barman* redis* memcached* etcd* tomcat* wildfly* java* php* nodejs* docker* podman* buildah* conmon* containers-common*   crun* runc* skopeo* elasticsearch* opensearch* kibana* filebeat* metricbeat* splunk* centreon* nexus* pmm* confluent* kafka* asterisk* freeradius* openldap* gitlab* qwserver* nfs-utils* ansible* certbot* python-certbot* tina* node_exporter* nextcloud*	\N	t	t	\N	\N	Youssef BENALI	youssef.benali@mpcz.fr	Youssef BENALI	youssef.benali@mpcz.fr	\N	\N	\N	0	\N	\N	VM CentOS Stream 9 - demo patching - VirtualBox	\N	2026-04-11 01:13:19.464777+00	2026-04-12 16:01:55.274167+00	\N	\N	indifferent	indifferent	Patching et Conformite	\N	t
\.


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

COPY public.settings (key, value, description, updated_at, updated_by) FROM stdin;
satellite_endpoint	vpdsiasat2.sanef.groupe	Red Hat Satellite	2026-04-03 11:53:45.544427+00	\N
qualys_api_url	https://qualysapi.qualys.eu	Qualys VMDR	2026-04-03 11:53:45.544427+00	\N
psmp_host	psmp.sanef.fr	CyberArk PSMP	2026-04-03 11:53:45.544427+00	\N
psm_host	psm.sanef.fr	CyberArk PSM	2026-04-03 11:53:45.544427+00	\N
pvwa_url	https://pvwa.sanef.fr	CyberArk PVWA API	2026-04-03 11:53:45.544427+00	\N
proxy_url	http://proxy.sanef.fr:8080	Proxy SANEF	2026-04-03 11:53:45.544427+00	\N
itop_url		iTop CMDB API (pour sync future)	2026-04-03 11:53:45.544427+00	\N
teams_sharepoint_base		Chemin SharePoint notifications	2026-04-03 11:53:45.544427+00	\N
snapshot_prefix	SLPM	Préfixe snapshots	2026-04-03 11:53:45.544427+00	\N
default_ssh_timeout	20	Timeout SSH secondes	2026-04-03 11:53:45.544427+00	\N
default_patch_timeout	180	Timeout yum secondes	2026-04-03 11:53:45.544427+00	\N
disk_min_root_mb	1200	Espace min / en Mo	2026-04-03 11:53:45.544427+00	\N
disk_min_log_mb	500	Espace min /var/log en Mo	2026-04-03 11:53:45.544427+00	\N
last_sync_to	{"date": "2026-04-12 10:16:35", "stats": {"ref_created": 0, "servers_updated": 38, "servers_created": 0}}	\N	2026-04-11 11:30:57.177714+00	\N
last_sync_from	{"date": "2026-04-12 11:25:53", "stats": {"contacts": 0, "environments": 0, "domains": 0, "zones": 0, "servers_created": 0, "servers_updated": 41, "ips": 18}}	\N	2026-04-11 11:29:49.323953+00	\N
\.


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

COPY public.tier_policies (id, tier, max_parallel, approval_level, maintenance_window, pre_notification_hours, snapshot_mandatory, post_check_level, notes) FROM stdin;
1	tier0	1	dsi	weekend	48	t	full	DC, PKI, CyberArk — validation DSI obligatoire
2	tier1	2	secops	night	24	t	standard	Satellite, DNS, monitoring — coordination requise
3	tier2	5	operator	night	0	t	basic	Applicatif métier standard
4	tier3	10	operator	anytime	0	t	ping_only	Recette, dev, test
\.


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

COPY public.user_permissions (id, user_id, module, level) FROM stdin;
48	1	servers	admin
49	1	campaigns	admin
50	1	qualys	admin
51	1	audit	admin
52	1	settings	admin
53	1	users	admin
54	1	planning	admin
55	1	specifics	admin
\.


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

COPY public.users (id, username, display_name, email, password_hash, role, auth_type, is_active, last_login, created_at, updated_at, itop_person_id, last_itop_sync, force_password_change) FROM stdin;
1	admin	Administrateur	\N	$2b$12$bpuZVtcAgEAcSrmomA55c.jU1cpnhuwx1nax/nX1a54B8EC8kWaV2	admin	local	t	\N	2026-04-03 13:07:54.894541+00	2026-04-10 21:14:54.410384+00	\N	\N	f
12	omar	Omar CHRAIBI	omar.chraibi@mpcz.fr	$2b$12$mHh6KT3l/4NbDSk2FMOHLuIPwf/9RgAfX3gIf5nVIg675sL4oB6WG	coordinator	local	f	\N	2026-04-11 02:03:05.802106+00	2026-04-12 11:30:18.300193+00	\N	\N	f
13	rachid	Rachid BENJELLOUN	rachid.benjelloun@mpcz.fr	$2b$12$mHh6KT3l/4NbDSk2FMOHLuIPwf/9RgAfX3gIf5nVIg675sL4oB6WG	coordinator	local	f	\N	2026-04-11 02:03:05.803498+00	2026-04-12 11:30:18.300193+00	\N	\N	f
14	sara	Sara KABBAJ	sara.kabbaj@mpcz.fr	$2b$12$mHh6KT3l/4NbDSk2FMOHLuIPwf/9RgAfX3gIf5nVIg675sL4oB6WG	coordinator	local	f	\N	2026-04-11 02:03:05.803731+00	2026-04-12 11:30:18.300193+00	\N	\N	f
15	youssef	Youssef BENALI	youssef.benali@mpcz.fr	$2b$12$mHh6KT3l/4NbDSk2FMOHLuIPwf/9RgAfX3gIf5nVIg675sL4oB6WG	coordinator	local	f	\N	2026-04-11 02:03:05.803946+00	2026-04-12 11:30:18.300193+00	\N	\N	f
17	fatima	Fatima EL HASSAN	fatima.elhassan@mpcz.fr	$2b$12$mHh6KT3l/4NbDSk2FMOHLuIPwf/9RgAfX3gIf5nVIg675sL4oB6WG	operator	local	f	\N	2026-04-11 02:03:05.804341+00	2026-04-12 11:30:18.300193+00	\N	\N	f
3	khalid	Khalid MOUTAOUAKIL	khalid.moutaouakil@mpcz.fr	$2b$12$168eXnJNvZaxEI8z1eN9gubOkcEsvKAfCpvyaZp5Efj4ipTuVCQF2	operator	local	f	\N	2026-04-03 21:42:58.848053+00	2026-04-12 11:30:18.300193+00	\N	\N	f
19	laila	Laila SENHAJI	laila.senhaji@mpcz.fr	$2b$12$mHh6KT3l/4NbDSk2FMOHLuIPwf/9RgAfX3gIf5nVIg675sL4oB6WG	operator	local	f	\N	2026-04-11 02:03:05.805494+00	2026-04-12 11:30:18.300193+00	\N	\N	f
20	mehdi	Mehdi ALAOUI	mehdi.alaoui@mpcz.fr	$2b$12$mHh6KT3l/4NbDSk2FMOHLuIPwf/9RgAfX3gIf5nVIg675sL4oB6WG	operator	local	f	\N	2026-04-11 02:03:05.805711+00	2026-04-12 11:30:18.300193+00	\N	\N	f
21	nadia	Nadia FASSI	nadia.fassi@mpcz.fr	$2b$12$mHh6KT3l/4NbDSk2FMOHLuIPwf/9RgAfX3gIf5nVIg675sL4oB6WG	operator	local	f	\N	2026-04-11 02:03:05.805942+00	2026-04-12 11:30:18.300193+00	\N	\N	f
16	ahmed	Ahmed TAZI	ahmed.tazi@mpcz.fr	$2b$12$MAbwQAHEI3MAkMaYAZ0gHu9pjJ6jSbee/6E6y7S3ESzcx.bUxf7Zy	viewer	local	t	\N	2026-04-11 02:03:05.804147+00	2026-04-12 12:06:33.276587+00	\N	\N	f
\.


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

COPY public.vcenters (id, name, endpoint, datacenter, is_active, created_at, description, responsable) FROM stdin;
\.


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

COPY public.zones (id, name, description, is_dmz, created_at) FROM stdin;
1	DMZ	\N	t	2026-04-11 01:05:56.75142+00
2	LAN	\N	f	2026-04-11 01:05:56.752798+00
3	EMV	emv	f	2026-04-11 01:55:39.501908+00
4	zonetets		f	2026-04-11 11:44:13.125696+00
\.


--
-- Name: allowed_networks_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Name: app_map_id_seq; Type: SEQUENCE SET; Schema: public; Owner: patchcenter
--

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


--
-- Name: applications_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.applications_id_seq', 175, true);


--
-- Name: audit_log_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.audit_log_id_seq', 68, true);


--
-- Name: campaign_accord_details_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Name: campaign_accords_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Name: campaign_operator_limits_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Name: campaigns_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Name: cluster_members_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Name: clusters_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Name: contact_scopes_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.contact_scopes_id_seq', 2, true);


--
-- Name: contacts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.contacts_id_seq', 22, true);


--
-- Name: default_assignments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Name: domain_environments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.domain_environments_id_seq', 13, true);


--
-- Name: domain_ltd_list_id_seq; Type: SEQUENCE SET; Schema: public; Owner: patchcenter
--

SELECT pg_catalog.setval('public.domain_ltd_list_id_seq', 10, true);


--
-- Name: domain_responsables_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Name: domains_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.domains_id_seq', 7, true);


--
-- Name: environments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.environments_id_seq', 9, true);


--
-- Name: eol_references_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Name: import_history_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Name: network_flow_map_id_seq; Type: SEQUENCE SET; Schema: public; Owner: patchcenter
--

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


--
-- Name: patch_history_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Name: patch_planning_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.patch_planning_id_seq', 11, true);


--
-- Name: patch_sessions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Name: patch_validation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: patchcenter
--

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


--
-- Name: qualys_asset_tags_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.qualys_asset_tags_id_seq', 97, true);


--
-- Name: qualys_assets_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.qualys_assets_id_seq', 43, true);


--
-- Name: qualys_tags_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.qualys_tags_id_seq', 109, true);


--
-- Name: quickwin_entries_id_seq; Type: SEQUENCE SET; Schema: public; Owner: patchcenter
--

SELECT pg_catalog.setval('public.quickwin_entries_id_seq', 38, true);


--
-- Name: quickwin_logs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: patchcenter
--

SELECT pg_catalog.setval('public.quickwin_logs_id_seq', 5, true);


--
-- Name: quickwin_runs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: patchcenter
--

SELECT pg_catalog.setval('public.quickwin_runs_id_seq', 2, true);


--
-- Name: quickwin_server_config_id_seq; Type: SEQUENCE SET; Schema: public; Owner: patchcenter
--

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


--
-- Name: server_audit_full_id_seq; Type: SEQUENCE SET; Schema: public; Owner: patchcenter
--

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


--
-- Name: server_audit_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.server_audit_id_seq', 41, true);


--
-- Name: server_correspondance_id_seq; Type: SEQUENCE SET; Schema: public; Owner: patchcenter
--

SELECT pg_catalog.setval('public.server_correspondance_id_seq', 2, true);


--
-- Name: server_ips_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.server_ips_id_seq', 48, true);


--
-- Name: server_pairs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Name: server_specifics_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.server_specifics_id_seq', 1, true);


--
-- Name: servers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.servers_id_seq', 64, true);


--
-- Name: tier_policies_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.tier_policies_id_seq', 4, true);


--
-- Name: user_permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.user_permissions_id_seq', 124, true);


--
-- Name: users_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.users_id_seq', 21, true);


--
-- Name: vcenters_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Name: zones_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.zones_id_seq', 4, true);


--
-- Name: allowed_networks allowed_networks_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.allowed_networks
    ADD CONSTRAINT allowed_networks_pkey PRIMARY KEY (id);


--
-- Name: app_map app_map_pkey; Type: CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.app_map
    ADD CONSTRAINT app_map_pkey PRIMARY KEY (id);


--
-- Name: app_secrets app_secrets_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.app_secrets
    ADD CONSTRAINT app_secrets_pkey PRIMARY KEY (key);


--
-- Name: applications applications_itop_id_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.applications
    ADD CONSTRAINT applications_itop_id_uniq UNIQUE (itop_id);


--
-- Name: applications applications_nom_court_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.applications
    ADD CONSTRAINT applications_nom_court_key UNIQUE (nom_court);


--
-- Name: applications applications_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.applications
    ADD CONSTRAINT applications_pkey PRIMARY KEY (id);


--
-- Name: audit_log audit_log_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.audit_log
    ADD CONSTRAINT audit_log_pkey PRIMARY KEY (id);


--
-- Name: campaign_accord_details campaign_accord_details_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.campaign_accord_details
    ADD CONSTRAINT campaign_accord_details_pkey PRIMARY KEY (id);


--
-- Name: campaign_accords campaign_accords_campaign_id_contact_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.campaign_accords
    ADD CONSTRAINT campaign_accords_campaign_id_contact_id_key UNIQUE (campaign_id, contact_id);


--
-- Name: campaign_accords campaign_accords_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.campaign_accords
    ADD CONSTRAINT campaign_accords_pkey PRIMARY KEY (id);


--
-- Name: campaign_operator_limits campaign_operator_limits_campaign_id_user_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.campaign_operator_limits
    ADD CONSTRAINT campaign_operator_limits_campaign_id_user_id_key UNIQUE (campaign_id, user_id);


--
-- Name: campaign_operator_limits campaign_operator_limits_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.campaign_operator_limits
    ADD CONSTRAINT campaign_operator_limits_pkey PRIMARY KEY (id);


--
-- Name: campaigns campaigns_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.campaigns
    ADD CONSTRAINT campaigns_pkey PRIMARY KEY (id);


--
-- Name: campaigns campaigns_week_code_year_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.campaigns
    ADD CONSTRAINT campaigns_week_code_year_key UNIQUE (week_code, year);


--
-- Name: cluster_members cluster_members_cluster_id_patch_order_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cluster_members
    ADD CONSTRAINT cluster_members_cluster_id_patch_order_key UNIQUE (cluster_id, patch_order);


--
-- Name: cluster_members cluster_members_cluster_id_server_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cluster_members
    ADD CONSTRAINT cluster_members_cluster_id_server_id_key UNIQUE (cluster_id, server_id);


--
-- Name: cluster_members cluster_members_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cluster_members
    ADD CONSTRAINT cluster_members_pkey PRIMARY KEY (id);


--
-- Name: clusters clusters_name_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clusters
    ADD CONSTRAINT clusters_name_key UNIQUE (name);


--
-- Name: clusters clusters_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.clusters
    ADD CONSTRAINT clusters_pkey PRIMARY KEY (id);


--
-- Name: contact_scopes contact_scopes_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contact_scopes
    ADD CONSTRAINT contact_scopes_pkey PRIMARY KEY (id);


--
-- Name: contact_scopes contact_scopes_unique; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contact_scopes
    ADD CONSTRAINT contact_scopes_unique UNIQUE (contact_id, scope_type, scope_value, env_scope);


--
-- Name: contacts contacts_email_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contacts
    ADD CONSTRAINT contacts_email_key UNIQUE (email);


--
-- Name: contacts contacts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contacts
    ADD CONSTRAINT contacts_pkey PRIMARY KEY (id);


--
-- Name: contacts contacts_portal_token_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contacts
    ADD CONSTRAINT contacts_portal_token_key UNIQUE (portal_token);


--
-- Name: default_assignments default_assignments_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.default_assignments
    ADD CONSTRAINT default_assignments_pkey PRIMARY KEY (id);


--
-- Name: default_assignments default_assignments_rule_type_rule_value_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.default_assignments
    ADD CONSTRAINT default_assignments_rule_type_rule_value_key UNIQUE (rule_type, rule_value);


--
-- Name: domain_environments domain_environments_domain_id_environment_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.domain_environments
    ADD CONSTRAINT domain_environments_domain_id_environment_id_key UNIQUE (domain_id, environment_id);


--
-- Name: domain_environments domain_environments_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.domain_environments
    ADD CONSTRAINT domain_environments_pkey PRIMARY KEY (id);


--
-- Name: domain_ltd_list domain_ltd_list_name_key; Type: CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.domain_ltd_list
    ADD CONSTRAINT domain_ltd_list_name_key UNIQUE (name);


--
-- Name: domain_ltd_list domain_ltd_list_pkey; Type: CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.domain_ltd_list
    ADD CONSTRAINT domain_ltd_list_pkey PRIMARY KEY (id);


--
-- Name: domain_responsables domain_responsables_domain_id_nom_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.domain_responsables
    ADD CONSTRAINT domain_responsables_domain_id_nom_key UNIQUE (domain_id, nom);


--
-- Name: domain_responsables domain_responsables_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.domain_responsables
    ADD CONSTRAINT domain_responsables_pkey PRIMARY KEY (id);


--
-- Name: domains domains_code_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.domains
    ADD CONSTRAINT domains_code_key UNIQUE (code);


--
-- Name: domains domains_name_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.domains
    ADD CONSTRAINT domains_name_key UNIQUE (name);


--
-- Name: domains domains_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

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


--
-- Name: environments environments_code_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.environments
    ADD CONSTRAINT environments_code_key UNIQUE (code);


--
-- Name: environments environments_name_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.environments
    ADD CONSTRAINT environments_name_key UNIQUE (name);


--
-- Name: environments environments_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.environments
    ADD CONSTRAINT environments_pkey PRIMARY KEY (id);


--
-- Name: eol_references eol_references_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.eol_references
    ADD CONSTRAINT eol_references_pkey PRIMARY KEY (id);


--
-- Name: import_history import_history_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.import_history
    ADD CONSTRAINT import_history_pkey PRIMARY KEY (id);


--
-- Name: network_flow_map network_flow_map_pkey; Type: CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.network_flow_map
    ADD CONSTRAINT network_flow_map_pkey PRIMARY KEY (id);


--
-- Name: patch_history patch_history_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.patch_history
    ADD CONSTRAINT patch_history_pkey PRIMARY KEY (id);


--
-- Name: patch_planning patch_planning_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.patch_planning
    ADD CONSTRAINT patch_planning_pkey PRIMARY KEY (id);


--
-- Name: patch_sessions patch_sessions_campaign_id_server_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.patch_sessions
    ADD CONSTRAINT patch_sessions_campaign_id_server_id_key UNIQUE (campaign_id, server_id);


--
-- Name: patch_sessions patch_sessions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.patch_sessions
    ADD CONSTRAINT patch_sessions_pkey PRIMARY KEY (id);


--
-- Name: patch_validation patch_validation_pkey; Type: CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.patch_validation
    ADD CONSTRAINT patch_validation_pkey PRIMARY KEY (id);


--
-- Name: qualys_asset_tags qualys_asset_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.qualys_asset_tags
    ADD CONSTRAINT qualys_asset_tags_pkey PRIMARY KEY (id);


--
-- Name: qualys_asset_tags qualys_asset_tags_qualys_asset_id_qualys_tag_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.qualys_asset_tags
    ADD CONSTRAINT qualys_asset_tags_qualys_asset_id_qualys_tag_id_key UNIQUE (qualys_asset_id, qualys_tag_id);


--
-- Name: qualys_assets qualys_assets_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.qualys_assets
    ADD CONSTRAINT qualys_assets_pkey PRIMARY KEY (id);


--
-- Name: qualys_assets qualys_assets_qualys_asset_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.qualys_assets
    ADD CONSTRAINT qualys_assets_qualys_asset_id_key UNIQUE (qualys_asset_id);


--
-- Name: qualys_tags qualys_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.qualys_tags
    ADD CONSTRAINT qualys_tags_pkey PRIMARY KEY (id);


--
-- Name: qualys_tags qualys_tags_qualys_tag_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.qualys_tags
    ADD CONSTRAINT qualys_tags_qualys_tag_id_key UNIQUE (qualys_tag_id);


--
-- Name: quickwin_entries quickwin_entries_pkey; Type: CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.quickwin_entries
    ADD CONSTRAINT quickwin_entries_pkey PRIMARY KEY (id);


--
-- Name: quickwin_logs quickwin_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.quickwin_logs
    ADD CONSTRAINT quickwin_logs_pkey PRIMARY KEY (id);


--
-- Name: quickwin_runs quickwin_runs_pkey; Type: CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.quickwin_runs
    ADD CONSTRAINT quickwin_runs_pkey PRIMARY KEY (id);


--
-- Name: quickwin_server_config quickwin_server_config_pkey; Type: CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.quickwin_server_config
    ADD CONSTRAINT quickwin_server_config_pkey PRIMARY KEY (id);


--
-- Name: quickwin_server_config quickwin_server_config_server_id_key; Type: CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.quickwin_server_config
    ADD CONSTRAINT quickwin_server_config_server_id_key UNIQUE (server_id);


--
-- Name: server_audit_full server_audit_full_pkey; Type: CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.server_audit_full
    ADD CONSTRAINT server_audit_full_pkey PRIMARY KEY (id);


--
-- Name: server_audit server_audit_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.server_audit
    ADD CONSTRAINT server_audit_pkey PRIMARY KEY (id);


--
-- Name: server_audit server_audit_server_id_audit_date_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.server_audit
    ADD CONSTRAINT server_audit_server_id_audit_date_key UNIQUE (server_id, audit_date);


--
-- Name: server_correspondance server_correspondance_pkey; Type: CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.server_correspondance
    ADD CONSTRAINT server_correspondance_pkey PRIMARY KEY (id);


--
-- Name: server_correspondance server_correspondance_uniq; Type: CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.server_correspondance
    ADD CONSTRAINT server_correspondance_uniq UNIQUE (prod_server_id, nonprod_server_id);


--
-- Name: server_ips server_ips_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.server_ips
    ADD CONSTRAINT server_ips_pkey PRIMARY KEY (id);


--
-- Name: server_ips server_ips_server_id_ip_address_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.server_ips
    ADD CONSTRAINT server_ips_server_id_ip_address_key UNIQUE (server_id, ip_address);


--
-- Name: server_pairs server_pairs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.server_pairs
    ADD CONSTRAINT server_pairs_pkey PRIMARY KEY (id);


--
-- Name: server_pairs server_pairs_prod_server_id_hprod_server_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.server_pairs
    ADD CONSTRAINT server_pairs_prod_server_id_hprod_server_id_key UNIQUE (prod_server_id, hprod_server_id);


--
-- Name: server_specifics server_specifics_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.server_specifics
    ADD CONSTRAINT server_specifics_pkey PRIMARY KEY (id);


--
-- Name: server_specifics server_specifics_server_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.server_specifics
    ADD CONSTRAINT server_specifics_server_id_key UNIQUE (server_id);


--
-- Name: servers servers_hostname_env_unique; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.servers
    ADD CONSTRAINT servers_hostname_env_unique UNIQUE (hostname, domain_env_id);


--
-- Name: servers servers_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.servers
    ADD CONSTRAINT servers_pkey PRIMARY KEY (id);


--
-- Name: settings settings_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.settings
    ADD CONSTRAINT settings_pkey PRIMARY KEY (key);


--
-- Name: tier_policies tier_policies_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tier_policies
    ADD CONSTRAINT tier_policies_pkey PRIMARY KEY (id);


--
-- Name: tier_policies tier_policies_tier_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.tier_policies
    ADD CONSTRAINT tier_policies_tier_key UNIQUE (tier);


--
-- Name: user_permissions user_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.user_permissions
    ADD CONSTRAINT user_permissions_pkey PRIMARY KEY (id);


--
-- Name: user_permissions user_permissions_user_id_module_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.user_permissions
    ADD CONSTRAINT user_permissions_user_id_module_key UNIQUE (user_id, module);


--
-- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.users
    ADD CONSTRAINT users_pkey PRIMARY KEY (id);


--
-- Name: users users_username_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.users
    ADD CONSTRAINT users_username_key UNIQUE (username);


--
-- Name: vcenters vcenters_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.vcenters
    ADD CONSTRAINT vcenters_pkey PRIMARY KEY (id);


--
-- Name: zones zones_name_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.zones
    ADD CONSTRAINT zones_name_key UNIQUE (name);


--
-- Name: zones zones_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.zones
    ADD CONSTRAINT zones_pkey PRIMARY KEY (id);


--
-- Name: idx_accord_campaign; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_accord_campaign ON public.campaign_accords USING btree (campaign_id);


--
-- Name: idx_accord_contact; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_accord_contact ON public.campaign_accords USING btree (contact_id);


--
-- Name: idx_app_map_name; Type: INDEX; Schema: public; Owner: patchcenter
--

CREATE UNIQUE INDEX idx_app_map_name ON public.app_map USING btree (app_name);


--
-- Name: idx_app_nom; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_app_nom ON public.applications USING btree (nom_court);


--
-- Name: idx_audit_action; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_audit_action ON public.audit_log USING btree (action);


--
-- Name: idx_audit_date; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_audit_date ON public.server_audit USING btree (audit_date DESC);


--
-- Name: idx_audit_details; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_audit_details ON public.audit_log USING gin (details);


--
-- Name: idx_audit_entity; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_audit_entity ON public.audit_log USING btree (entity_type, entity_id);


--
-- Name: idx_audit_server; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_audit_server ON public.server_audit USING btree (server_id);


--
-- Name: idx_audit_status; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_audit_status ON public.server_audit USING btree (status);


--
-- Name: idx_audit_ts; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_audit_ts ON public.audit_log USING btree ("timestamp" DESC);


--
-- Name: idx_audit_user; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_audit_user ON public.audit_log USING btree (user_id);


--
-- Name: idx_campaign_status; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_campaign_status ON public.campaigns USING btree (status);


--
-- Name: idx_campaign_week; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_campaign_week ON public.campaigns USING btree (week_code, year);


--
-- Name: idx_clm_cluster; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_clm_cluster ON public.cluster_members USING btree (cluster_id);


--
-- Name: idx_clm_server; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_clm_server ON public.cluster_members USING btree (server_id);


--
-- Name: idx_contacts_email; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_contacts_email ON public.contacts USING btree (email);


--
-- Name: idx_contacts_token; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_contacts_token ON public.contacts USING btree (portal_token);


--
-- Name: idx_corr_nonprod; Type: INDEX; Schema: public; Owner: patchcenter
--

CREATE INDEX idx_corr_nonprod ON public.server_correspondance USING btree (nonprod_server_id);


--
-- Name: idx_corr_prod; Type: INDEX; Schema: public; Owner: patchcenter
--

CREATE INDEX idx_corr_prod ON public.server_correspondance USING btree (prod_server_id);


--
-- Name: idx_cscope_contact; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_cscope_contact ON public.contact_scopes USING btree (contact_id);


--
-- Name: idx_cscope_type; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_cscope_type ON public.contact_scopes USING btree (scope_type, scope_value);


--
-- Name: idx_da_user; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_da_user ON public.default_assignments USING btree (user_id);


--
-- Name: idx_domain_resp_domain; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_domain_resp_domain ON public.domain_responsables USING btree (domain_id);


--
-- Name: idx_domenv_domain; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_domenv_domain ON public.domain_environments USING btree (domain_id);


--
-- Name: idx_domenv_env; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_domenv_env ON public.domain_environments USING btree (environment_id);


--
-- Name: idx_nfm_audit; Type: INDEX; Schema: public; Owner: patchcenter
--

CREATE INDEX idx_nfm_audit ON public.network_flow_map USING btree (audit_id);


--
-- Name: idx_nfm_dest; Type: INDEX; Schema: public; Owner: patchcenter
--

CREATE INDEX idx_nfm_dest ON public.network_flow_map USING btree (dest_hostname);


--
-- Name: idx_nfm_source; Type: INDEX; Schema: public; Owner: patchcenter
--

CREATE INDEX idx_nfm_source ON public.network_flow_map USING btree (source_hostname);


--
-- Name: idx_ph_campaign; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_ph_campaign ON public.patch_history USING btree (campaign_id);


--
-- Name: idx_ph_date; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_ph_date ON public.patch_history USING btree (date_patch DESC);


--
-- Name: idx_ph_server; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_ph_server ON public.patch_history USING btree (server_id);


--
-- Name: idx_pp_year_week; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_pp_year_week ON public.patch_planning USING btree (year, week_number);


--
-- Name: idx_ps_campaign; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_ps_campaign ON public.patch_sessions USING btree (campaign_id);


--
-- Name: idx_ps_date_prevue; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_ps_date_prevue ON public.patch_sessions USING btree (date_prevue);


--
-- Name: idx_ps_date_realise; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_ps_date_realise ON public.patch_sessions USING btree (date_realise);


--
-- Name: idx_ps_intervenant; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_ps_intervenant ON public.patch_sessions USING btree (intervenant_id);


--
-- Name: idx_ps_server; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_ps_server ON public.patch_sessions USING btree (server_id);


--
-- Name: idx_ps_status; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_ps_status ON public.patch_sessions USING btree (status);


--
-- Name: idx_pv_campaign; Type: INDEX; Schema: public; Owner: patchcenter
--

CREATE INDEX idx_pv_campaign ON public.patch_validation USING btree (campaign_id, campaign_type);


--
-- Name: idx_pv_patch_date; Type: INDEX; Schema: public; Owner: patchcenter
--

CREATE INDEX idx_pv_patch_date ON public.patch_validation USING btree (patch_date DESC);


--
-- Name: idx_pv_server; Type: INDEX; Schema: public; Owner: patchcenter
--

CREATE INDEX idx_pv_server ON public.patch_validation USING btree (server_id);


--
-- Name: idx_pv_status; Type: INDEX; Schema: public; Owner: patchcenter
--

CREATE INDEX idx_pv_status ON public.patch_validation USING btree (status);


--
-- Name: idx_qasset_hostname; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_qasset_hostname ON public.qualys_assets USING btree (hostname);


--
-- Name: idx_qasset_qualys_id; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_qasset_qualys_id ON public.qualys_assets USING btree (qualys_asset_id);


--
-- Name: idx_qasset_server; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_qasset_server ON public.qualys_assets USING btree (server_id);


--
-- Name: idx_qat_asset; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_qat_asset ON public.qualys_asset_tags USING btree (qualys_asset_id);


--
-- Name: idx_qat_tag; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_qat_tag ON public.qualys_asset_tags USING btree (qualys_tag_id);


--
-- Name: idx_qe_prod_pair; Type: INDEX; Schema: public; Owner: patchcenter
--

CREATE INDEX idx_qe_prod_pair ON public.quickwin_entries USING btree (prod_pair_entry_id) WHERE (prod_pair_entry_id IS NOT NULL);


--
-- Name: idx_qtag_name; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_qtag_name ON public.qualys_tags USING btree (name);


--
-- Name: idx_qtag_qualys_id; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_qtag_qualys_id ON public.qualys_tags USING btree (qualys_tag_id);


--
-- Name: idx_qw_logs_level; Type: INDEX; Schema: public; Owner: patchcenter
--

CREATE INDEX idx_qw_logs_level ON public.quickwin_logs USING btree (run_id, level);


--
-- Name: idx_qw_logs_run; Type: INDEX; Schema: public; Owner: patchcenter
--

CREATE INDEX idx_qw_logs_run ON public.quickwin_logs USING btree (run_id, created_at DESC);


--
-- Name: idx_qwe_branch; Type: INDEX; Schema: public; Owner: patchcenter
--

CREATE INDEX idx_qwe_branch ON public.quickwin_entries USING btree (branch);


--
-- Name: idx_qwe_run; Type: INDEX; Schema: public; Owner: patchcenter
--

CREATE INDEX idx_qwe_run ON public.quickwin_entries USING btree (run_id);


--
-- Name: idx_qwe_server; Type: INDEX; Schema: public; Owner: patchcenter
--

CREATE INDEX idx_qwe_server ON public.quickwin_entries USING btree (server_id);


--
-- Name: idx_qwsc_server; Type: INDEX; Schema: public; Owner: patchcenter
--

CREATE INDEX idx_qwsc_server ON public.quickwin_server_config USING btree (server_id);


--
-- Name: idx_saf_date; Type: INDEX; Schema: public; Owner: patchcenter
--

CREATE INDEX idx_saf_date ON public.server_audit_full USING btree (audit_date DESC);


--
-- Name: idx_saf_hostname; Type: INDEX; Schema: public; Owner: patchcenter
--

CREATE INDEX idx_saf_hostname ON public.server_audit_full USING btree (hostname);


--
-- Name: idx_saf_server_id; Type: INDEX; Schema: public; Owner: patchcenter
--

CREATE INDEX idx_saf_server_id ON public.server_audit_full USING btree (server_id);


--
-- Name: idx_sp_hprod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_sp_hprod ON public.server_pairs USING btree (hprod_server_id);


--
-- Name: idx_sp_prod; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_sp_prod ON public.server_pairs USING btree (prod_server_id);


--
-- Name: idx_srv_app; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_srv_app ON public.servers USING btree (application_id);


--
-- Name: idx_srv_cluster; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_srv_cluster ON public.servers USING btree (cluster_id);


--
-- Name: idx_srv_domenv; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_srv_domenv ON public.servers USING btree (domain_env_id);


--
-- Name: idx_srv_etat; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_srv_etat ON public.servers USING btree (etat);


--
-- Name: idx_srv_hostname; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_srv_hostname ON public.servers USING gin (hostname public.gin_trgm_ops);


--
-- Name: idx_srv_intervenant; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_srv_intervenant ON public.servers USING btree (default_intervenant_id);


--
-- Name: idx_srv_licence; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_srv_licence ON public.servers USING btree (licence_support);


--
-- Name: idx_srv_machine; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_srv_machine ON public.servers USING btree (machine_type);


--
-- Name: idx_srv_os; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_srv_os ON public.servers USING btree (os_family);


--
-- Name: idx_srv_patch_owner; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_srv_patch_owner ON public.servers USING btree (patch_os_owner);


--
-- Name: idx_srv_qualys; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_srv_qualys ON public.servers USING btree (qualys_asset_id) WHERE (qualys_asset_id IS NOT NULL);


--
-- Name: idx_srv_tier; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_srv_tier ON public.servers USING btree (tier);


--
-- Name: idx_srv_zone; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_srv_zone ON public.servers USING btree (zone_id);


--
-- Name: idx_srvip_ip; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_srvip_ip ON public.server_ips USING gist (ip_address inet_ops);


--
-- Name: idx_srvip_server; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_srvip_server ON public.server_ips USING btree (server_id);


--
-- Name: idx_sspec_server; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_sspec_server ON public.server_specifics USING btree (server_id);


--
-- Name: idx_userperm_user; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_userperm_user ON public.user_permissions USING btree (user_id);


--
-- Name: idx_users_role; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_users_role ON public.users USING btree (role);


--
-- Name: idx_users_username; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX idx_users_username ON public.users USING btree (username);


--
-- Name: users_email_unique_active; Type: INDEX; Schema: public; Owner: postgres
--

CREATE UNIQUE INDEX users_email_unique_active ON public.users USING btree (lower((email)::text)) WHERE ((email IS NOT NULL) AND ((email)::text <> ''::text));


--
-- Name: applications trg_applications_ts; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER trg_applications_ts BEFORE UPDATE ON public.applications FOR EACH ROW EXECUTE FUNCTION public.update_timestamp();


--
-- Name: campaigns trg_campaigns_ts; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER trg_campaigns_ts BEFORE UPDATE ON public.campaigns FOR EACH ROW EXECUTE FUNCTION public.update_timestamp();


--
-- Name: domains trg_domains_ts; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER trg_domains_ts BEFORE UPDATE ON public.domains FOR EACH ROW EXECUTE FUNCTION public.update_timestamp();


--
-- Name: patch_sessions trg_patch_sessions_ts; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER trg_patch_sessions_ts BEFORE UPDATE ON public.patch_sessions FOR EACH ROW EXECUTE FUNCTION public.update_timestamp();


--
-- Name: servers trg_servers_ts; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER trg_servers_ts BEFORE UPDATE ON public.servers FOR EACH ROW EXECUTE FUNCTION public.update_timestamp();


--
-- Name: servers trg_srv_domenv_count; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER trg_srv_domenv_count AFTER INSERT OR DELETE OR UPDATE OF domain_env_id ON public.servers FOR EACH ROW EXECUTE FUNCTION public.update_domenv_count();


--
-- Name: server_specifics trg_sspec_ts; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER trg_sspec_ts BEFORE UPDATE ON public.server_specifics FOR EACH ROW EXECUTE FUNCTION public.update_timestamp();


--
-- Name: users trg_users_ts; Type: TRIGGER; Schema: public; Owner: postgres
--

CREATE TRIGGER trg_users_ts BEFORE UPDATE ON public.users FOR EACH ROW EXECUTE FUNCTION public.update_timestamp();


--
-- Name: audit_log audit_log_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.audit_log
    ADD CONSTRAINT audit_log_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);


--
-- Name: campaign_accord_details campaign_accord_details_accord_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.campaign_accord_details
    ADD CONSTRAINT campaign_accord_details_accord_id_fkey FOREIGN KEY (accord_id) REFERENCES public.campaign_accords(id) ON DELETE CASCADE;


--
-- Name: campaign_accord_details campaign_accord_details_session_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.campaign_accord_details
    ADD CONSTRAINT campaign_accord_details_session_id_fkey FOREIGN KEY (session_id) REFERENCES public.patch_sessions(id);


--
-- Name: campaign_accords campaign_accords_campaign_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.campaign_accords
    ADD CONSTRAINT campaign_accords_campaign_id_fkey FOREIGN KEY (campaign_id) REFERENCES public.campaigns(id) ON DELETE CASCADE;


--
-- Name: campaign_accords campaign_accords_contact_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.campaign_accords
    ADD CONSTRAINT campaign_accords_contact_id_fkey FOREIGN KEY (contact_id) REFERENCES public.contacts(id);


--
-- Name: campaign_operator_limits campaign_operator_limits_campaign_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.campaign_operator_limits
    ADD CONSTRAINT campaign_operator_limits_campaign_id_fkey FOREIGN KEY (campaign_id) REFERENCES public.campaigns(id) ON DELETE CASCADE;


--
-- Name: campaign_operator_limits campaign_operator_limits_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.campaign_operator_limits
    ADD CONSTRAINT campaign_operator_limits_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);


--
-- Name: campaigns campaigns_created_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.campaigns
    ADD CONSTRAINT campaigns_created_by_fkey FOREIGN KEY (created_by) REFERENCES public.users(id);


--
-- Name: cluster_members cluster_members_cluster_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cluster_members
    ADD CONSTRAINT cluster_members_cluster_id_fkey FOREIGN KEY (cluster_id) REFERENCES public.clusters(id) ON DELETE CASCADE;


--
-- Name: cluster_members cluster_members_server_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.cluster_members
    ADD CONSTRAINT cluster_members_server_id_fkey FOREIGN KEY (server_id) REFERENCES public.servers(id) ON DELETE CASCADE;


--
-- Name: contact_scopes contact_scopes_contact_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.contact_scopes
    ADD CONSTRAINT contact_scopes_contact_id_fkey FOREIGN KEY (contact_id) REFERENCES public.contacts(id) ON DELETE CASCADE;


--
-- Name: default_assignments default_assignments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.default_assignments
    ADD CONSTRAINT default_assignments_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);


--
-- Name: domain_environments domain_environments_domain_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.domain_environments
    ADD CONSTRAINT domain_environments_domain_id_fkey FOREIGN KEY (domain_id) REFERENCES public.domains(id) ON DELETE CASCADE;


--
-- Name: domain_environments domain_environments_environment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.domain_environments
    ADD CONSTRAINT domain_environments_environment_id_fkey FOREIGN KEY (environment_id) REFERENCES public.environments(id) ON DELETE CASCADE;


--
-- Name: domain_responsables domain_responsables_domain_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.domain_responsables
    ADD CONSTRAINT domain_responsables_domain_id_fkey FOREIGN KEY (domain_id) REFERENCES public.domains(id) ON DELETE CASCADE;


--
-- Name: import_history import_history_imported_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.import_history
    ADD CONSTRAINT import_history_imported_by_fkey FOREIGN KEY (imported_by) REFERENCES public.users(id);


--
-- Name: network_flow_map network_flow_map_audit_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.network_flow_map
    ADD CONSTRAINT network_flow_map_audit_id_fkey FOREIGN KEY (audit_id) REFERENCES public.server_audit_full(id) ON DELETE CASCADE;


--
-- Name: patch_history patch_history_campaign_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.patch_history
    ADD CONSTRAINT patch_history_campaign_id_fkey FOREIGN KEY (campaign_id) REFERENCES public.campaigns(id);


--
-- Name: patch_history patch_history_intervenant_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.patch_history
    ADD CONSTRAINT patch_history_intervenant_id_fkey FOREIGN KEY (intervenant_id) REFERENCES public.users(id);


--
-- Name: patch_history patch_history_server_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.patch_history
    ADD CONSTRAINT patch_history_server_id_fkey FOREIGN KEY (server_id) REFERENCES public.servers(id);


--
-- Name: patch_planning patch_planning_domain_code_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.patch_planning
    ADD CONSTRAINT patch_planning_domain_code_fkey FOREIGN KEY (domain_code) REFERENCES public.domains(code);


--
-- Name: patch_sessions patch_sessions_campaign_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.patch_sessions
    ADD CONSTRAINT patch_sessions_campaign_id_fkey FOREIGN KEY (campaign_id) REFERENCES public.campaigns(id) ON DELETE CASCADE;


--
-- Name: patch_sessions patch_sessions_intervenant_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.patch_sessions
    ADD CONSTRAINT patch_sessions_intervenant_id_fkey FOREIGN KEY (intervenant_id) REFERENCES public.users(id);


--
-- Name: patch_sessions patch_sessions_server_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.patch_sessions
    ADD CONSTRAINT patch_sessions_server_id_fkey FOREIGN KEY (server_id) REFERENCES public.servers(id);


--
-- Name: patch_validation patch_validation_marked_by_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.patch_validation
    ADD CONSTRAINT patch_validation_marked_by_user_id_fkey FOREIGN KEY (marked_by_user_id) REFERENCES public.users(id);


--
-- Name: patch_validation patch_validation_server_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.patch_validation
    ADD CONSTRAINT patch_validation_server_id_fkey FOREIGN KEY (server_id) REFERENCES public.servers(id) ON DELETE CASCADE;


--
-- Name: patch_validation patch_validation_validated_by_contact_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.patch_validation
    ADD CONSTRAINT patch_validation_validated_by_contact_id_fkey FOREIGN KEY (validated_by_contact_id) REFERENCES public.contacts(id);


--
-- Name: qualys_assets qualys_assets_server_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.qualys_assets
    ADD CONSTRAINT qualys_assets_server_id_fkey FOREIGN KEY (server_id) REFERENCES public.servers(id);


--
-- Name: quickwin_entries quickwin_entries_prod_pair_entry_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.quickwin_entries
    ADD CONSTRAINT quickwin_entries_prod_pair_entry_id_fkey FOREIGN KEY (prod_pair_entry_id) REFERENCES public.quickwin_entries(id) ON DELETE SET NULL;


--
-- Name: quickwin_entries quickwin_entries_run_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.quickwin_entries
    ADD CONSTRAINT quickwin_entries_run_id_fkey FOREIGN KEY (run_id) REFERENCES public.quickwin_runs(id) ON DELETE CASCADE;


--
-- Name: quickwin_entries quickwin_entries_server_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.quickwin_entries
    ADD CONSTRAINT quickwin_entries_server_id_fkey FOREIGN KEY (server_id) REFERENCES public.servers(id);


--
-- Name: quickwin_logs quickwin_logs_entry_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.quickwin_logs
    ADD CONSTRAINT quickwin_logs_entry_id_fkey FOREIGN KEY (entry_id) REFERENCES public.quickwin_entries(id) ON DELETE SET NULL;


--
-- Name: quickwin_logs quickwin_logs_run_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.quickwin_logs
    ADD CONSTRAINT quickwin_logs_run_id_fkey FOREIGN KEY (run_id) REFERENCES public.quickwin_runs(id) ON DELETE CASCADE;


--
-- Name: quickwin_runs quickwin_runs_created_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.quickwin_runs
    ADD CONSTRAINT quickwin_runs_created_by_fkey FOREIGN KEY (created_by) REFERENCES public.users(id);


--
-- Name: quickwin_server_config quickwin_server_config_server_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.quickwin_server_config
    ADD CONSTRAINT quickwin_server_config_server_id_fkey FOREIGN KEY (server_id) REFERENCES public.servers(id) ON DELETE CASCADE;


--
-- Name: server_audit_full server_audit_full_server_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.server_audit_full
    ADD CONSTRAINT server_audit_full_server_id_fkey FOREIGN KEY (server_id) REFERENCES public.servers(id);


--
-- Name: server_audit server_audit_server_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.server_audit
    ADD CONSTRAINT server_audit_server_id_fkey FOREIGN KEY (server_id) REFERENCES public.servers(id) ON DELETE CASCADE;


--
-- Name: server_correspondance server_correspondance_created_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.server_correspondance
    ADD CONSTRAINT server_correspondance_created_by_fkey FOREIGN KEY (created_by) REFERENCES public.users(id);


--
-- Name: server_correspondance server_correspondance_nonprod_server_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.server_correspondance
    ADD CONSTRAINT server_correspondance_nonprod_server_id_fkey FOREIGN KEY (nonprod_server_id) REFERENCES public.servers(id) ON DELETE CASCADE;


--
-- Name: server_correspondance server_correspondance_prod_server_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: patchcenter
--

ALTER TABLE ONLY public.server_correspondance
    ADD CONSTRAINT server_correspondance_prod_server_id_fkey FOREIGN KEY (prod_server_id) REFERENCES public.servers(id) ON DELETE CASCADE;


--
-- Name: server_ips server_ips_server_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.server_ips
    ADD CONSTRAINT server_ips_server_id_fkey FOREIGN KEY (server_id) REFERENCES public.servers(id) ON DELETE CASCADE;


--
-- Name: server_pairs server_pairs_hprod_server_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.server_pairs
    ADD CONSTRAINT server_pairs_hprod_server_id_fkey FOREIGN KEY (hprod_server_id) REFERENCES public.servers(id) ON DELETE CASCADE;


--
-- Name: server_pairs server_pairs_prod_server_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.server_pairs
    ADD CONSTRAINT server_pairs_prod_server_id_fkey FOREIGN KEY (prod_server_id) REFERENCES public.servers(id) ON DELETE CASCADE;


--
-- Name: server_specifics server_specifics_dependency_server_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.server_specifics
    ADD CONSTRAINT server_specifics_dependency_server_id_fkey FOREIGN KEY (dependency_server_id) REFERENCES public.servers(id);


--
-- Name: server_specifics server_specifics_server_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.server_specifics
    ADD CONSTRAINT server_specifics_server_id_fkey FOREIGN KEY (server_id) REFERENCES public.servers(id) ON DELETE CASCADE;


--
-- Name: servers servers_application_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.servers
    ADD CONSTRAINT servers_application_id_fkey FOREIGN KEY (application_id) REFERENCES public.applications(id);


--
-- Name: servers servers_cluster_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.servers
    ADD CONSTRAINT servers_cluster_id_fkey FOREIGN KEY (cluster_id) REFERENCES public.clusters(id);


--
-- Name: servers servers_created_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.servers
    ADD CONSTRAINT servers_created_by_fkey FOREIGN KEY (created_by) REFERENCES public.users(id);


--
-- Name: servers servers_default_intervenant_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.servers
    ADD CONSTRAINT servers_default_intervenant_id_fkey FOREIGN KEY (default_intervenant_id) REFERENCES public.users(id);


--
-- Name: servers servers_domain_env_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.servers
    ADD CONSTRAINT servers_domain_env_id_fkey FOREIGN KEY (domain_env_id) REFERENCES public.domain_environments(id);


--
-- Name: servers servers_vcenter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.servers
    ADD CONSTRAINT servers_vcenter_id_fkey FOREIGN KEY (vcenter_id) REFERENCES public.vcenters(id);


--
-- Name: servers servers_zone_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.servers
    ADD CONSTRAINT servers_zone_id_fkey FOREIGN KEY (zone_id) REFERENCES public.zones(id);


--
-- Name: settings settings_updated_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.settings
    ADD CONSTRAINT settings_updated_by_fkey FOREIGN KEY (updated_by) REFERENCES public.users(id);


--
-- Name: user_permissions user_permissions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.user_permissions
    ADD CONSTRAINT user_permissions_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE;


--
-- Name: SCHEMA public; Type: ACL; Schema: -; Owner: pg_database_owner
--

GRANT USAGE ON SCHEMA public TO patchcenter;
GRANT USAGE ON SCHEMA public TO patchcenter_readonly;


--
-- Name: TABLE allowed_networks; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.allowed_networks TO patchcenter;
GRANT SELECT ON TABLE public.allowed_networks TO patchcenter_readonly;


--
-- Name: SEQUENCE allowed_networks_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE public.allowed_networks_id_seq TO patchcenter;


--
-- Name: TABLE app_map; Type: ACL; Schema: public; Owner: patchcenter
--

GRANT SELECT ON TABLE public.app_map TO patchcenter_readonly;


--
-- Name: TABLE app_secrets; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.app_secrets TO patchcenter;
GRANT SELECT ON TABLE public.app_secrets TO patchcenter_readonly;


--
-- Name: TABLE applications; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.applications TO patchcenter;
GRANT SELECT ON TABLE public.applications TO patchcenter_readonly;


--
-- Name: SEQUENCE applications_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON SEQUENCE public.applications_id_seq TO patchcenter;


--
-- Name: TABLE audit_log; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.audit_log TO patchcenter;
GRANT SELECT ON TABLE public.audit_log TO patchcenter_readonly;


--
-- Name: SEQUENCE audit_log_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON SEQUENCE public.audit_log_id_seq TO patchcenter;


--
-- Name: TABLE campaign_accord_details; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.campaign_accord_details TO patchcenter;
GRANT SELECT ON TABLE public.campaign_accord_details TO patchcenter_readonly;


--
-- Name: SEQUENCE campaign_accord_details_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE public.campaign_accord_details_id_seq TO patchcenter;


--
-- Name: TABLE campaign_accords; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.campaign_accords TO patchcenter;
GRANT SELECT ON TABLE public.campaign_accords TO patchcenter_readonly;


--
-- Name: SEQUENCE campaign_accords_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE public.campaign_accords_id_seq TO patchcenter;


--
-- Name: TABLE campaign_operator_limits; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.campaign_operator_limits TO patchcenter;
GRANT SELECT ON TABLE public.campaign_operator_limits TO patchcenter_readonly;


--
-- Name: SEQUENCE campaign_operator_limits_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE public.campaign_operator_limits_id_seq TO patchcenter;


--
-- Name: TABLE campaigns; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.campaigns TO patchcenter;
GRANT SELECT ON TABLE public.campaigns TO patchcenter_readonly;


--
-- Name: SEQUENCE campaigns_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON SEQUENCE public.campaigns_id_seq TO patchcenter;


--
-- Name: TABLE cluster_members; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.cluster_members TO patchcenter;
GRANT SELECT ON TABLE public.cluster_members TO patchcenter_readonly;


--
-- Name: SEQUENCE cluster_members_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON SEQUENCE public.cluster_members_id_seq TO patchcenter;


--
-- Name: TABLE clusters; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.clusters TO patchcenter;
GRANT SELECT ON TABLE public.clusters TO patchcenter_readonly;


--
-- Name: SEQUENCE clusters_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON SEQUENCE public.clusters_id_seq TO patchcenter;


--
-- Name: TABLE contact_scopes; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.contact_scopes TO patchcenter;
GRANT SELECT ON TABLE public.contact_scopes TO patchcenter_readonly;


--
-- Name: SEQUENCE contact_scopes_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE public.contact_scopes_id_seq TO patchcenter;


--
-- Name: TABLE contacts; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.contacts TO patchcenter;
GRANT SELECT ON TABLE public.contacts TO patchcenter_readonly;


--
-- Name: SEQUENCE contacts_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE public.contacts_id_seq TO patchcenter;


--
-- Name: TABLE default_assignments; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.default_assignments TO patchcenter;
GRANT SELECT ON TABLE public.default_assignments TO patchcenter_readonly;


--
-- Name: SEQUENCE default_assignments_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE public.default_assignments_id_seq TO patchcenter;


--
-- Name: TABLE domain_environments; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.domain_environments TO patchcenter;
GRANT SELECT ON TABLE public.domain_environments TO patchcenter_readonly;


--
-- Name: SEQUENCE domain_environments_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON SEQUENCE public.domain_environments_id_seq TO patchcenter;


--
-- Name: TABLE domain_responsables; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.domain_responsables TO patchcenter;
GRANT SELECT ON TABLE public.domain_responsables TO patchcenter_readonly;


--
-- Name: SEQUENCE domain_responsables_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON SEQUENCE public.domain_responsables_id_seq TO patchcenter;


--
-- Name: TABLE domains; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.domains TO patchcenter;
GRANT SELECT ON TABLE public.domains TO patchcenter_readonly;


--
-- Name: SEQUENCE domains_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON SEQUENCE public.domains_id_seq TO patchcenter;


--
-- Name: TABLE environments; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.environments TO patchcenter;
GRANT SELECT ON TABLE public.environments TO patchcenter_readonly;


--
-- Name: SEQUENCE environments_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON SEQUENCE public.environments_id_seq TO patchcenter;


--
-- Name: TABLE eol_references; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.eol_references TO patchcenter;
GRANT SELECT ON TABLE public.eol_references TO patchcenter_readonly;


--
-- Name: SEQUENCE eol_references_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON SEQUENCE public.eol_references_id_seq TO patchcenter;


--
-- Name: TABLE import_history; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.import_history TO patchcenter;
GRANT SELECT ON TABLE public.import_history TO patchcenter_readonly;


--
-- Name: SEQUENCE import_history_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON SEQUENCE public.import_history_id_seq TO patchcenter;


--
-- Name: TABLE network_flow_map; Type: ACL; Schema: public; Owner: patchcenter
--

GRANT SELECT ON TABLE public.network_flow_map TO patchcenter_readonly;


--
-- Name: TABLE patch_history; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.patch_history TO patchcenter;
GRANT SELECT ON TABLE public.patch_history TO patchcenter_readonly;


--
-- Name: SEQUENCE patch_history_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON SEQUENCE public.patch_history_id_seq TO patchcenter;


--
-- Name: TABLE patch_planning; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.patch_planning TO patchcenter;
GRANT SELECT ON TABLE public.patch_planning TO patchcenter_readonly;


--
-- Name: SEQUENCE patch_planning_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE public.patch_planning_id_seq TO patchcenter;


--
-- Name: TABLE patch_sessions; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.patch_sessions TO patchcenter;
GRANT SELECT ON TABLE public.patch_sessions TO patchcenter_readonly;


--
-- Name: SEQUENCE patch_sessions_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON SEQUENCE public.patch_sessions_id_seq TO patchcenter;


--
-- Name: TABLE patch_validation; Type: ACL; Schema: public; Owner: patchcenter
--

GRANT SELECT ON TABLE public.patch_validation TO patchcenter_readonly;


--
-- Name: TABLE qualys_asset_tags; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.qualys_asset_tags TO patchcenter;
GRANT SELECT ON TABLE public.qualys_asset_tags TO patchcenter_readonly;


--
-- Name: SEQUENCE qualys_asset_tags_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON SEQUENCE public.qualys_asset_tags_id_seq TO patchcenter;


--
-- Name: TABLE qualys_assets; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.qualys_assets TO patchcenter;
GRANT SELECT ON TABLE public.qualys_assets TO patchcenter_readonly;


--
-- Name: SEQUENCE qualys_assets_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON SEQUENCE public.qualys_assets_id_seq TO patchcenter;


--
-- Name: TABLE qualys_tags; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.qualys_tags TO patchcenter;
GRANT SELECT ON TABLE public.qualys_tags TO patchcenter_readonly;


--
-- Name: SEQUENCE qualys_tags_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON SEQUENCE public.qualys_tags_id_seq TO patchcenter;


--
-- Name: TABLE server_audit; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.server_audit TO patchcenter;
GRANT SELECT ON TABLE public.server_audit TO patchcenter_readonly;


--
-- Name: TABLE server_audit_full; Type: ACL; Schema: public; Owner: patchcenter
--

GRANT SELECT ON TABLE public.server_audit_full TO patchcenter_readonly;


--
-- Name: SEQUENCE server_audit_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE public.server_audit_id_seq TO patchcenter;


--
-- Name: TABLE server_correspondance; Type: ACL; Schema: public; Owner: patchcenter
--

GRANT SELECT ON TABLE public.server_correspondance TO patchcenter_readonly;


--
-- Name: TABLE server_ips; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.server_ips TO patchcenter;
GRANT SELECT ON TABLE public.server_ips TO patchcenter_readonly;


--
-- Name: SEQUENCE server_ips_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON SEQUENCE public.server_ips_id_seq TO patchcenter;


--
-- Name: TABLE server_pairs; Type: ACL; Schema: public; Owner: postgres
--

GRANT SELECT ON TABLE public.server_pairs TO patchcenter_readonly;
GRANT ALL ON TABLE public.server_pairs TO patchcenter;


--
-- Name: SEQUENCE server_pairs_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE public.server_pairs_id_seq TO patchcenter;


--
-- Name: TABLE server_specifics; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.server_specifics TO patchcenter;
GRANT SELECT ON TABLE public.server_specifics TO patchcenter_readonly;


--
-- Name: SEQUENCE server_specifics_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE public.server_specifics_id_seq TO patchcenter;


--
-- Name: TABLE servers; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.servers TO patchcenter;
GRANT SELECT ON TABLE public.servers TO patchcenter_readonly;


--
-- Name: SEQUENCE servers_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON SEQUENCE public.servers_id_seq TO patchcenter;


--
-- Name: TABLE settings; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.settings TO patchcenter;
GRANT SELECT ON TABLE public.settings TO patchcenter_readonly;


--
-- Name: TABLE tier_policies; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.tier_policies TO patchcenter;
GRANT SELECT ON TABLE public.tier_policies TO patchcenter_readonly;


--
-- Name: SEQUENCE tier_policies_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON SEQUENCE public.tier_policies_id_seq TO patchcenter;


--
-- Name: TABLE user_permissions; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.user_permissions TO patchcenter;
GRANT SELECT ON TABLE public.user_permissions TO patchcenter_readonly;


--
-- Name: SEQUENCE user_permissions_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT SELECT,USAGE ON SEQUENCE public.user_permissions_id_seq TO patchcenter;


--
-- Name: TABLE users; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.users TO patchcenter;
GRANT SELECT ON TABLE public.users TO patchcenter_readonly;


--
-- Name: SEQUENCE users_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON SEQUENCE public.users_id_seq TO patchcenter;


--
-- Name: TABLE v_campaign_dashboard; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.v_campaign_dashboard TO patchcenter;
GRANT SELECT ON TABLE public.v_campaign_dashboard TO patchcenter_readonly;


--
-- Name: TABLE v_conformity_todo; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.v_conformity_todo TO patchcenter;
GRANT SELECT ON TABLE public.v_conformity_todo TO patchcenter_readonly;


--
-- Name: TABLE zones; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.zones TO patchcenter;
GRANT SELECT ON TABLE public.zones TO patchcenter_readonly;


--
-- Name: TABLE v_servers; Type: ACL; Schema: public; Owner: postgres
--

GRANT SELECT ON TABLE public.v_servers TO patchcenter;
GRANT SELECT ON TABLE public.v_servers TO patchcenter_readonly;


--
-- Name: TABLE v_patchable; Type: ACL; Schema: public; Owner: postgres
--

GRANT SELECT ON TABLE public.v_patchable TO patchcenter;
GRANT SELECT ON TABLE public.v_patchable TO patchcenter_readonly;


--
-- Name: TABLE vcenters; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON TABLE public.vcenters TO patchcenter;
GRANT SELECT ON TABLE public.vcenters TO patchcenter_readonly;


--
-- Name: SEQUENCE vcenters_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON SEQUENCE public.vcenters_id_seq TO patchcenter;


--
-- Name: SEQUENCE zones_id_seq; Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON SEQUENCE public.zones_id_seq TO patchcenter;


--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: public; Owner: postgres
--

ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA public GRANT SELECT ON TABLES  TO patchcenter_readonly;


--
-- PostgreSQL database dump complete
--

\unrestrict 0krocfDPMaK1sBrD2ONCgYnidCCNdmHii0jrac0hs8qrScdjpJ5auPue4pIbYyg

