PGDMP     #                    ~            siser_mantenimiento    14.11    14.11 @    ;           0    0    ENCODING    ENCODING        SET client_encoding = 'UTF8';
                      false            <           0    0 
   STDSTRINGS 
   STDSTRINGS     (   SET standard_conforming_strings = 'on';
                      false            =           0    0 
   SEARCHPATH 
   SEARCHPATH     8   SELECT pg_catalog.set_config('search_path', '', false);
                      false            >           1262    266446    siser_mantenimiento    DATABASE     s   CREATE DATABASE siser_mantenimiento WITH TEMPLATE = template0 ENCODING = 'UTF8' LOCALE = 'Spanish_Venezuela.1252';
 #   DROP DATABASE siser_mantenimiento;
                postgres    false                        1259    266471    asignaciones    TABLE     ]  CREATE TABLE public.asignaciones (
    id bigint NOT NULL,
    solicitud_id bigint NOT NULL,
    analista_id bigint NOT NULL,
    departamento_destino_id bigint,
    fecha_estimada date,
    observaciones text,
    activa boolean DEFAULT true NOT NULL,
    created_at timestamp(0) without time zone,
    updated_at timestamp(0) without time zone
);
     DROP TABLE public.asignaciones;
       public         heap    postgres    false                        1259    266470    asignaciones_id_seq    SEQUENCE     |   CREATE SEQUENCE public.asignaciones_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;
 *   DROP SEQUENCE public.asignaciones_id_seq;
       public          postgres    false    214            ?           0    0    asignaciones_id_seq    SEQUENCE OWNED BY     K   ALTER SEQUENCE public.asignaciones_id_seq OWNED BY public.asignaciones.id;
          public          postgres    false    213                        1259    266526 
   audit_logs    TABLE       CREATE TABLE public.audit_logs (
    id bigint NOT NULL,
    user_id bigint,
    accion character varying(255) NOT NULL,
    entidad_tipo character varying(255),
    entidad_id bigint,
    datos_anteriores json,
    datos_nuevos json,
    ip_address character varying(45),
    user_agent character varying(500),
    created_at timestamp(0) without time zone,
    updated_at timestamp(0) without time zone
);
    DROP TABLE public.audit_logs;
       public         heap    postgres    false                        1259    266525    audit_logs_id_seq    SEQUENCE     z   CREATE SEQUENCE public.audit_logs_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;
 (   DROP SEQUENCE public.audit_logs_id_seq;
       public          postgres    false    220            @           0    0    audit_logs_id_seq    SEQUENCE OWNED BY     G   ALTER SEQUENCE public.audit_logs_id_seq OWNED BY public.audit_logs.id;
          public          postgres    false    219                        1259    266510    ejecucion_recursos    TABLE       CREATE TABLE public.ejecucion_recursos (
    id bigint NOT NULL,
    ejecucion_id bigint NOT NULL,
    tipo_recurso character varying(255) NOT NULL,
    codigo character varying(255),
    descripcion character varying(255) NOT NULL,
    cantidad numeric(10,2) NOT NULL,
    unidad character varying(255),
    created_at timestamp(0) without time zone,
    updated_at timestamp(0) without time zone
);
 &   DROP TABLE public.ejecucion_recursos;
       public         heap    postgres    false                        1259    266509    ejecucion_recursos_id_seq    SEQUENCE        CREATE SEQUENCE public.ejecucion_recursos_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;
 0   DROP SEQUENCE public.ejecucion_recursos_id_seq;
       public          postgres    false    218            A           0    0    ejecucion_recursos_id_seq    SEQUENCE OWNED BY     W   ALTER SEQUENCE public.ejecucion_recursos_id_seq OWNED BY public.ejecucion_recursos.id;
          public          postgres    false    217                        1259    266488    ejecuciones    TABLE     @  CREATE TABLE public.ejecuciones (
    id bigint NOT NULL,
    solicitud_id bigint NOT NULL,
    analista_id bigint NOT NULL,
    solucion text,
    observaciones text,
    fecha_fin date,
    fecha_entrega date,
    hora_entrega_hh smallint DEFAULT '0'::smallint NOT NULL,
    hora_entrega_mm smallint DEFAULT '0'::smallint NOT NULL,
    tiempo_horas smallint DEFAULT '0'::smallint NOT NULL,
    tiempo_minutos smallint DEFAULT '0'::smallint NOT NULL,
    tipo_ejecucion character varying(255),
    tipo_categoria character varying(255),
    numero_odt character varying(255),
    diagnostico_falla text,
    fecha_inicio_odt date,
    hora_inicio_odt time(0) without time zone,
    created_at timestamp(0) without time zone,
    updated_at timestamp(0) without time zone,
    tiempo_dias smallint DEFAULT '0'::smallint NOT NULL
);
    DROP TABLE public.ejecuciones;
       public         heap    postgres    false                        1259    266487    ejecuciones_id_seq    SEQUENCE     {   CREATE SEQUENCE public.ejecuciones_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;
 )   DROP SEQUENCE public.ejecuciones_id_seq;
       public          postgres    false    216            B           0    0    ejecuciones_id_seq    SEQUENCE OWNED BY     I   ALTER SEQUENCE public.ejecuciones_id_seq OWNED BY public.ejecuciones.id;
          public          postgres    false    215                        1259    266448 
   migrations    TABLE        CREATE TABLE public.migrations (
    id integer NOT NULL,
    migration character varying(255) NOT NULL,
    batch integer NOT NULL
);
    DROP TABLE public.migrations;
       public         heap    postgres    false                        1259    266447    migrations_id_seq    SEQUENCE        CREATE SEQUENCE public.migrations_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;
 (   DROP SEQUENCE public.migrations_id_seq;
       public          postgres    false    210            C           0    0    migrations_id_seq    SEQUENCE OWNED BY     G   ALTER SEQUENCE public.migrations_id_seq OWNED BY public.migrations.id;
          public          postgres    false    209                        1259    266455    solicitudes    TABLE       CREATE TABLE public.solicitudes (
    id bigint NOT NULL,
    numero character varying(255) NOT NULL,
    usuario_id bigint NOT NULL,
    departamento_id bigint NOT NULL,
    area_trabajo_id bigint,
    descripcion text NOT NULL,
    servicio_solicitado text,
    motivo_requerimiento text,
    observaciones text,
    estado character varying(255) DEFAULT 'I'::character varying NOT NULL,
    archivo_adjunto character varying(255),
    calificacion integer,
    tipo_mantenimiento character varying(255),
    equipo character varying(255),
    serial character varying(255),
    placa character varying(255),
    condicion_equipo character varying(255),
    genera_odt boolean,
    descripcion_falla text,
    deleted_at timestamp(0) without time zone,
    created_at timestamp(0) without time zone,
    updated_at timestamp(0) without time zone,
    tipo_falla json,
    numero_activo character varying(255),
    hora_reporte time(0) without time zone
);
    DROP TABLE public.solicitudes;
       public         heap    postgres    false                        1259    266454    solicitudes_id_seq    SEQUENCE     {   CREATE SEQUENCE public.solicitudes_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;
 )   DROP SEQUENCE public.solicitudes_id_seq;
       public          postgres    false    212            D           0    0    solicitudes_id_seq    SEQUENCE OWNED BY     I   ALTER SEQUENCE public.solicitudes_id_seq OWNED BY public.solicitudes.id;
          public          postgres    false    211            x           2604    266474    asignaciones id    DEFAULT     r   ALTER TABLE ONLY public.asignaciones ALTER COLUMN id SET DEFAULT nextval('public.asignaciones_id_seq'::regclass);
 >   ALTER TABLE public.asignaciones ALTER COLUMN id DROP DEFAULT;
       public          postgres    false    214    213    214                       2604    266529    audit_logs id    DEFAULT     n   ALTER TABLE ONLY public.audit_logs ALTER COLUMN id SET DEFAULT nextval('public.audit_logs_id_seq'::regclass);
 <   ALTER TABLE public.audit_logs ALTER COLUMN id DROP DEFAULT;
       public          postgres    false    219    220    220                       2604    266513    ejecucion_recursos id    DEFAULT     ~   ALTER TABLE ONLY public.ejecucion_recursos ALTER COLUMN id SET DEFAULT nextval('public.ejecucion_recursos_id_seq'::regclass);
 D   ALTER TABLE public.ejecucion_recursos ALTER COLUMN id DROP DEFAULT;
       public          postgres    false    217    218    218            z           2604    266491    ejecuciones id    DEFAULT     p   ALTER TABLE ONLY public.ejecuciones ALTER COLUMN id SET DEFAULT nextval('public.ejecuciones_id_seq'::regclass);
 =   ALTER TABLE public.ejecuciones ALTER COLUMN id DROP DEFAULT;
       public          postgres    false    216    215    216            u           2604    266451    migrations id    DEFAULT     n   ALTER TABLE ONLY public.migrations ALTER COLUMN id SET DEFAULT nextval('public.migrations_id_seq'::regclass);
 <   ALTER TABLE public.migrations ALTER COLUMN id DROP DEFAULT;
       public          postgres    false    210    209    210            v           2604    266458    solicitudes id    DEFAULT     p   ALTER TABLE ONLY public.solicitudes ALTER COLUMN id SET DEFAULT nextval('public.solicitudes_id_seq'::regclass);
 =   ALTER TABLE public.solicitudes ALTER COLUMN id DROP DEFAULT;
       public          postgres    false    212    211    212            2          0    266471    asignaciones 
   TABLE DATA              COPY public.asignaciones (id, solicitud_id, analista_id, departamento_destino_id, fecha_estimada, observaciones, activa, created_at, updated_at) FROM stdin;
    public          postgres    false    214   T       8          0    266526 
   audit_logs 
   TABLE DATA              COPY public.audit_logs (id, user_id, accion, entidad_tipo, entidad_id, datos_anteriores, datos_nuevos, ip_address, user_agent, created_at, updated_at) FROM stdin;
    public          postgres    false    220   U       6          0    266510    ejecucion_recursos 
   TABLE DATA              COPY public.ejecucion_recursos (id, ejecucion_id, tipo_recurso, codigo, descripcion, cantidad, unidad, created_at, updated_at) FROM stdin;
    public          postgres    false    218   :\       4          0    266488    ejecuciones 
   TABLE DATA           >  COPY public.ejecuciones (id, solicitud_id, analista_id, solucion, observaciones, fecha_fin, fecha_entrega, hora_entrega_hh, hora_entrega_mm, tiempo_horas, tiempo_minutos, tipo_ejecucion, tipo_categoria, numero_odt, diagnostico_falla, fecha_inicio_odt, hora_inicio_odt, created_at, updated_at, tiempo_dias) FROM stdin;
    public          postgres    false    216   W\       .          0    266448 
   migrations 
   TABLE DATA           :   COPY public.migrations (id, migration, batch) FROM stdin;
    public          postgres    false    210   &]       0          0    266455    solicitudes 
   TABLE DATA           v  COPY public.solicitudes (id, numero, usuario_id, departamento_id, area_trabajo_id, descripcion, servicio_solicitado, motivo_requerimiento, observaciones, estado, archivo_adjunto, calificacion, tipo_mantenimiento, equipo, serial, placa, condicion_equipo, genera_odt, descripcion_falla, deleted_at, created_at, updated_at, tipo_falla, numero_activo, hora_reporte) FROM stdin;
    public          postgres    false    212   ]       E           0    0    asignaciones_id_seq    SEQUENCE SET     A   SELECT pg_catalog.setval('public.asignaciones_id_seq', 5, true);
          public          postgres    false    213            F           0    0    audit_logs_id_seq    SEQUENCE SET     @   SELECT pg_catalog.setval('public.audit_logs_id_seq', 39, true);
          public          postgres    false    219            G           0    0    ejecucion_recursos_id_seq    SEQUENCE SET     H   SELECT pg_catalog.setval('public.ejecucion_recursos_id_seq', 1, false);
          public          postgres    false    217            H           0    0    ejecuciones_id_seq    SEQUENCE SET     @   SELECT pg_catalog.setval('public.ejecuciones_id_seq', 2, true);
          public          postgres    false    215            I           0    0    migrations_id_seq    SEQUENCE SET     ?   SELECT pg_catalog.setval('public.migrations_id_seq', 8, true);
          public          postgres    false    209            J           0    0    solicitudes_id_seq    SEQUENCE SET     @   SELECT pg_catalog.setval('public.solicitudes_id_seq', 6, true);
          public          postgres    false    211                       2606    266479    asignaciones asignaciones_pkey 
   CONSTRAINT     \   ALTER TABLE ONLY public.asignaciones
    ADD CONSTRAINT asignaciones_pkey PRIMARY KEY (id);
 H   ALTER TABLE ONLY public.asignaciones DROP CONSTRAINT asignaciones_pkey;
       public            postgres    false    214                       2606    266533    audit_logs audit_logs_pkey 
   CONSTRAINT     X   ALTER TABLE ONLY public.audit_logs
    ADD CONSTRAINT audit_logs_pkey PRIMARY KEY (id);
 D   ALTER TABLE ONLY public.audit_logs DROP CONSTRAINT audit_logs_pkey;
       public            postgres    false    220                       2606    266517 *   ejecucion_recursos ejecucion_recursos_pkey 
   CONSTRAINT     h   ALTER TABLE ONLY public.ejecucion_recursos
    ADD CONSTRAINT ejecucion_recursos_pkey PRIMARY KEY (id);
 T   ALTER TABLE ONLY public.ejecucion_recursos DROP CONSTRAINT ejecucion_recursos_pkey;
       public            postgres    false    218                       2606    266508 )   ejecuciones ejecuciones_numero_odt_unique 
   CONSTRAINT     j   ALTER TABLE ONLY public.ejecuciones
    ADD CONSTRAINT ejecuciones_numero_odt_unique UNIQUE (numero_odt);
 S   ALTER TABLE ONLY public.ejecuciones DROP CONSTRAINT ejecuciones_numero_odt_unique;
       public            postgres    false    216                       2606    266499    ejecuciones ejecuciones_pkey 
   CONSTRAINT     Z   ALTER TABLE ONLY public.ejecuciones
    ADD CONSTRAINT ejecuciones_pkey PRIMARY KEY (id);
 F   ALTER TABLE ONLY public.ejecuciones DROP CONSTRAINT ejecuciones_pkey;
       public            postgres    false    216                       2606    266453    migrations migrations_pkey 
   CONSTRAINT     X   ALTER TABLE ONLY public.migrations
    ADD CONSTRAINT migrations_pkey PRIMARY KEY (id);
 D   ALTER TABLE ONLY public.migrations DROP CONSTRAINT migrations_pkey;
       public            postgres    false    210                       2606    266469 %   solicitudes solicitudes_numero_unique 
   CONSTRAINT     b   ALTER TABLE ONLY public.solicitudes
    ADD CONSTRAINT solicitudes_numero_unique UNIQUE (numero);
 O   ALTER TABLE ONLY public.solicitudes DROP CONSTRAINT solicitudes_numero_unique;
       public            postgres    false    212                       2606    266463    solicitudes solicitudes_pkey 
   CONSTRAINT     Z   ALTER TABLE ONLY public.solicitudes
    ADD CONSTRAINT solicitudes_pkey PRIMARY KEY (id);
 F   ALTER TABLE ONLY public.solicitudes DROP CONSTRAINT solicitudes_pkey;
       public            postgres    false    212                       1259    266485    asignaciones_analista_id_index    INDEX     ^   CREATE INDEX asignaciones_analista_id_index ON public.asignaciones USING btree (analista_id);
 2   DROP INDEX public.asignaciones_analista_id_index;
       public            postgres    false    214                       1259    266486    asignaciones_solicitud_id_index    INDEX     `   CREATE INDEX asignaciones_solicitud_id_index ON public.asignaciones USING btree (solicitud_id);
 3   DROP INDEX public.asignaciones_solicitud_id_index;
       public            postgres    false    214                       1259    266535    audit_logs_accion_index    INDEX     P   CREATE INDEX audit_logs_accion_index ON public.audit_logs USING btree (accion);
 +   DROP INDEX public.audit_logs_accion_index;
       public            postgres    false    220                       1259    266536 (   audit_logs_entidad_tipo_entidad_id_index    INDEX     s   CREATE INDEX audit_logs_entidad_tipo_entidad_id_index ON public.audit_logs USING btree (entidad_tipo, entidad_id);
 <   DROP INDEX public.audit_logs_entidad_tipo_entidad_id_index;
       public            postgres    false    220    220                       1259    266534    audit_logs_user_id_index    INDEX     R   CREATE INDEX audit_logs_user_id_index ON public.audit_logs USING btree (user_id);
 ,   DROP INDEX public.audit_logs_user_id_index;
       public            postgres    false    220                       1259    266523 %   ejecucion_recursos_ejecucion_id_index    INDEX     l   CREATE INDEX ejecucion_recursos_ejecucion_id_index ON public.ejecucion_recursos USING btree (ejecucion_id);
 9   DROP INDEX public.ejecucion_recursos_ejecucion_id_index;
       public            postgres    false    218                       1259    266524 %   ejecucion_recursos_tipo_recurso_index    INDEX     l   CREATE INDEX ejecucion_recursos_tipo_recurso_index ON public.ejecucion_recursos USING btree (tipo_recurso);
 9   DROP INDEX public.ejecucion_recursos_tipo_recurso_index;
       public            postgres    false    218                       1259    266505    ejecuciones_analista_id_index    INDEX     \   CREATE INDEX ejecuciones_analista_id_index ON public.ejecuciones USING btree (analista_id);
 1   DROP INDEX public.ejecuciones_analista_id_index;
       public            postgres    false    216                       1259    266506    ejecuciones_solicitud_id_index    INDEX     ^   CREATE INDEX ejecuciones_solicitud_id_index ON public.ejecuciones USING btree (solicitud_id);
 2   DROP INDEX public.ejecuciones_solicitud_id_index;
       public            postgres    false    216                       1259    266466 !   solicitudes_departamento_id_index    INDEX     d   CREATE INDEX solicitudes_departamento_id_index ON public.solicitudes USING btree (departamento_id);
 5   DROP INDEX public.solicitudes_departamento_id_index;
       public            postgres    false    212                       1259    266464    solicitudes_estado_index    INDEX     R   CREATE INDEX solicitudes_estado_index ON public.solicitudes USING btree (estado);
 ,   DROP INDEX public.solicitudes_estado_index;
       public            postgres    false    212                       1259    266467    solicitudes_numero_index    INDEX     R   CREATE INDEX solicitudes_numero_index ON public.solicitudes USING btree (numero);
 ,   DROP INDEX public.solicitudes_numero_index;
       public            postgres    false    212                       1259    266465    solicitudes_usuario_id_index    INDEX     Z   CREATE INDEX solicitudes_usuario_id_index ON public.solicitudes USING btree (usuario_id);
 0   DROP INDEX public.solicitudes_usuario_id_index;
       public            postgres    false    212                       2606    266480 .   asignaciones asignaciones_solicitud_id_foreign    FK CONSTRAINT        ALTER TABLE ONLY public.asignaciones
    ADD CONSTRAINT asignaciones_solicitud_id_foreign FOREIGN KEY (solicitud_id) REFERENCES public.solicitudes(id) ON DELETE CASCADE;
 X   ALTER TABLE ONLY public.asignaciones DROP CONSTRAINT asignaciones_solicitud_id_foreign;
       public          postgres    false    212    3210    214                       2606    266518 :   ejecucion_recursos ejecucion_recursos_ejecucion_id_foreign    FK CONSTRAINT        ALTER TABLE ONLY public.ejecucion_recursos
    ADD CONSTRAINT ejecucion_recursos_ejecucion_id_foreign FOREIGN KEY (ejecucion_id) REFERENCES public.ejecuciones(id) ON DELETE CASCADE;
 d   ALTER TABLE ONLY public.ejecucion_recursos DROP CONSTRAINT ejecucion_recursos_ejecucion_id_foreign;
       public          postgres    false    218    216    3220                       2606    266500 ,   ejecuciones ejecuciones_solicitud_id_foreign    FK CONSTRAINT        ALTER TABLE ONLY public.ejecuciones
    ADD CONSTRAINT ejecuciones_solicitud_id_foreign FOREIGN KEY (solicitud_id) REFERENCES public.solicitudes(id) ON DELETE CASCADE;
 V   ALTER TABLE ONLY public.ejecuciones DROP CONSTRAINT ejecuciones_solicitud_id_foreign;
       public          postgres    false    212    3210    216            2      x;
0Y:/ #:G.>o#bum>	K%y>s=yGlORPZm?Z@TVCWAWecc0)Jl58ϊrPZ=ȞM=l04%GD%g:      8     xZRH]˫83+v?HXQ"K$33ʿmD,H^,{KB[̗2ҳydl*g\e-NZQ\X6G9\f)@ǫimQuv(!J[K!(	ӿs<:t+-^lÍc^w:޽9p}V@?,]TT^o/i1>.&OoX-t9u3g܄!^90gr vS8&ZyUs2׳Ds0Z&sٜ73a]UeF4CN-v5΅EF0Ncȭܩjny!	8j1w7a1ߢ&QR69MGA]ltq;w|jm\<*ኼO~zm붙Ki`b^6TW2+B%Ez:%(-τ!ۺ"VY(.lPE-|bkk2.`-Gy!Wk!I8AxDe2N[ʩwR*9Sp{^{ѵ$8Jb«	CԾoOjGiH3Z\goڋppL;ӵLڇz{BƅLB*R_$88Ӟ%C=O2bBoj]@eƼKݱ%'Ą!\JSqC>U)JJ{_KDCa,ׇ'hbYmHM3 Ao JqtwGdlm?YfcKdbqΊLOsU?|-0@2ofABoq/.	;	N׺Asx2N+J6a5U6	C֗_`zxzAnp_ͱ+&1V_4e_p7Y+v6`9{ӣ`tnfv!kl04{TƯ!CxL =
)m0}H{2ALbjbkՆ P`0Ir)r*sׄ!fmYY;'ATIiSX7+5%Ȫ:Ny&S+fmYCm@_8:?&Q]n'hTIw*gRPobN}eiIU!7[;͖t|+b1W[[@Al!;uP6iʓ57 !浨[{ݟ93n'<M.l\]@M]}0fia[XzLO	Cb;7;wxkfpLj6[tVMYVˋpN2\-Z}.؎rx2z FDu%&A[fY#+pu= j0Gז&q |8TXUT]s3ք!6KgGpe"B9=	C樛2==m73##~H	s	ׄY!?+1      6      x        4      xu
0ϛlR#ڛYN^VH4VA@E(af:i!{s[/Grl14!f
 AmIJJfe6^Q*/$ʩАF2`!'XF!`)Ȼ\ed?1v_+nAz1JH_aόԦzuT      .      x
 0ai(U=vB_\%	|y-*!D?F%td	]m¦eb*&uWnxG}!O>nJVJn6[^*K	vp+K	yIE gԯD_M.!1ˈ{v=1ƞQV      0     xTr0}B#$77yP@IrI/ԧ~B~+$%vƆj=Pt,ǔPgLȂ5ABVXָhFmsxjk]Ͳ_Qb,RY'AX`w3&O&>!cG<lZBRkEEF ,Đ$ZA9:y%VVǥwVe"6UK<e!Jf*F(qJx+*s+iRK(\ݨTJf2VTJrUQ87(N_vL}^&0&K[̟ؾ=QH6x`t1dFoDޫzްP̔i_dz7tpKԀ潄i|((Lc {/TE_/(	gf}qh:t){ME| "&c.	5'kj\T!SQ86v3C/8ӷBY!^Kc%yF?۽{:9ejOm8p896%FU:Ų4ɯ8>*uww0&ts:>u.`aqׁ`La#XE}O`A#߳P1
)͛hqy     