/*
Navicat MySQL Data Transfer
Source Server         : local
Source Server Type    : MySQL
Source Server Version : 50172
Source Host           : localhost:3306
Source Schema         : liciagbar
Target Server Type    : MySQL
Target Server Version : 50172
File Encoding         : 65001
Date: 05/05/2022 13:41:26
*/

SET NAMES utf8mb4;

SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for config_fecha_importaciones
-- ----------------------------
DROP TABLE IF EXISTS `config_fecha_importaciones`;

CREATE TABLE `config_fecha_importaciones` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `fecha` datetime NULL DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 81 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Fixed;

-- ----------------------------
-- Records of config_fecha_importaciones
-- ----------------------------
INSERT INTO
    `config_fecha_importaciones`
VALUES (1, '2022-02-25 10:03:56');

INSERT INTO
    `config_fecha_importaciones`
VALUES (2, '2022-02-25 12:26:09');

INSERT INTO
    `config_fecha_importaciones`
VALUES (3, '2022-02-25 12:28:44');

INSERT INTO
    `config_fecha_importaciones`
VALUES (4, '2022-02-25 12:53:39');

INSERT INTO
    `config_fecha_importaciones`
VALUES (5, '2022-02-25 13:23:47');

INSERT INTO
    `config_fecha_importaciones`
VALUES (6, '2022-02-25 14:34:14');

INSERT INTO
    `config_fecha_importaciones`
VALUES (7, '2022-02-25 14:37:28');

INSERT INTO
    `config_fecha_importaciones`
VALUES (8, '2022-02-25 14:43:17');

INSERT INTO
    `config_fecha_importaciones`
VALUES (9, '2022-02-28 08:12:40');

INSERT INTO
    `config_fecha_importaciones`
VALUES (10, '2022-02-28 08:42:06');

INSERT INTO
    `config_fecha_importaciones`
VALUES (11, '2022-02-28 11:57:55');

INSERT INTO
    `config_fecha_importaciones`
VALUES (12, '2022-02-28 11:58:49');

INSERT INTO
    `config_fecha_importaciones`
VALUES (13, '2022-02-28 12:23:38');

INSERT INTO
    `config_fecha_importaciones`
VALUES (14, '2022-03-01 11:34:22');

INSERT INTO
    `config_fecha_importaciones`
VALUES (15, '2022-03-01 12:20:44');

INSERT INTO
    `config_fecha_importaciones`
VALUES (16, '2022-03-01 12:21:04');

INSERT INTO
    `config_fecha_importaciones`
VALUES (17, '2022-03-01 12:21:47');

INSERT INTO
    `config_fecha_importaciones`
VALUES (18, '2022-03-01 12:23:23');

INSERT INTO
    `config_fecha_importaciones`
VALUES (19, '2022-03-01 12:23:51');

INSERT INTO
    `config_fecha_importaciones`
VALUES (20, '2022-03-01 12:24:05');

INSERT INTO
    `config_fecha_importaciones`
VALUES (21, '2022-03-01 12:24:22');

INSERT INTO
    `config_fecha_importaciones`
VALUES (22, '2022-03-01 12:24:55');

INSERT INTO
    `config_fecha_importaciones`
VALUES (23, '2022-03-01 12:25:09');

INSERT INTO
    `config_fecha_importaciones`
VALUES (24, '2022-03-01 13:52:42');

INSERT INTO
    `config_fecha_importaciones`
VALUES (25, '2022-03-01 13:54:05');

INSERT INTO
    `config_fecha_importaciones`
VALUES (26, '2022-03-02 08:29:40');

INSERT INTO
    `config_fecha_importaciones`
VALUES (27, '2022-03-02 09:00:02');

INSERT INTO
    `config_fecha_importaciones`
VALUES (28, '2022-03-02 09:02:09');

INSERT INTO
    `config_fecha_importaciones`
VALUES (29, '2022-03-02 09:06:12');

INSERT INTO
    `config_fecha_importaciones`
VALUES (30, '2022-03-02 09:07:17');

INSERT INTO
    `config_fecha_importaciones`
VALUES (31, '2022-03-03 08:55:47');

INSERT INTO
    `config_fecha_importaciones`
VALUES (32, '2022-03-08 11:28:11');

INSERT INTO
    `config_fecha_importaciones`
VALUES (33, '2022-03-08 12:07:20');

INSERT INTO
    `config_fecha_importaciones`
VALUES (34, '2022-03-08 12:09:18');

INSERT INTO
    `config_fecha_importaciones`
VALUES (35, '2022-03-08 12:11:11');

INSERT INTO
    `config_fecha_importaciones`
VALUES (36, '2022-03-08 12:56:34');

INSERT INTO
    `config_fecha_importaciones`
VALUES (37, '2022-03-08 13:09:53');

INSERT INTO
    `config_fecha_importaciones`
VALUES (38, '2022-03-08 13:16:15');

INSERT INTO
    `config_fecha_importaciones`
VALUES (39, '2022-03-08 13:19:43');

INSERT INTO
    `config_fecha_importaciones`
VALUES (40, '2022-03-08 13:55:41');

INSERT INTO
    `config_fecha_importaciones`
VALUES (41, '2022-03-08 13:57:26');

INSERT INTO
    `config_fecha_importaciones`
VALUES (42, '2022-03-08 14:05:57');

INSERT INTO
    `config_fecha_importaciones`
VALUES (43, '2022-03-08 14:07:06');

INSERT INTO
    `config_fecha_importaciones`
VALUES (44, '2022-03-08 14:10:04');

INSERT INTO
    `config_fecha_importaciones`
VALUES (45, '2022-03-08 14:11:48');

INSERT INTO
    `config_fecha_importaciones`
VALUES (46, '2022-03-08 14:56:07');

INSERT INTO
    `config_fecha_importaciones`
VALUES (47, '2022-03-08 14:56:55');

INSERT INTO
    `config_fecha_importaciones`
VALUES (48, '2022-03-08 14:57:38');

INSERT INTO
    `config_fecha_importaciones`
VALUES (49, '2022-03-08 14:58:54');

INSERT INTO
    `config_fecha_importaciones`
VALUES (50, '2022-03-08 15:00:28');

INSERT INTO
    `config_fecha_importaciones`
VALUES (51, '2022-03-08 15:43:55');

INSERT INTO
    `config_fecha_importaciones`
VALUES (52, '2022-03-08 15:54:12');

INSERT INTO
    `config_fecha_importaciones`
VALUES (53, '2022-03-08 16:07:34');

INSERT INTO
    `config_fecha_importaciones`
VALUES (54, '2022-03-08 16:16:14');

INSERT INTO
    `config_fecha_importaciones`
VALUES (55, '2022-03-08 16:27:38');

INSERT INTO
    `config_fecha_importaciones`
VALUES (56, '2022-03-09 09:14:44');

INSERT INTO
    `config_fecha_importaciones`
VALUES (57, '2022-03-09 09:15:44');

INSERT INTO
    `config_fecha_importaciones`
VALUES (58, '2022-03-09 09:16:16');

INSERT INTO
    `config_fecha_importaciones`
VALUES (59, '2022-03-09 09:17:28');

INSERT INTO
    `config_fecha_importaciones`
VALUES (60, '2022-03-09 10:26:02');

INSERT INTO
    `config_fecha_importaciones`
VALUES (61, '2022-03-09 17:16:50');

INSERT INTO
    `config_fecha_importaciones`
VALUES (62, '2022-03-09 17:19:50');

INSERT INTO
    `config_fecha_importaciones`
VALUES (63, '2022-03-09 17:20:35');

INSERT INTO
    `config_fecha_importaciones`
VALUES (64, '2022-03-09 17:21:24');

INSERT INTO
    `config_fecha_importaciones`
VALUES (65, '2022-03-09 17:23:11');

INSERT INTO
    `config_fecha_importaciones`
VALUES (66, '2022-03-09 17:26:47');

INSERT INTO
    `config_fecha_importaciones`
VALUES (67, '2022-03-09 17:27:55');

INSERT INTO
    `config_fecha_importaciones`
VALUES (68, '2022-03-09 17:31:17');

INSERT INTO
    `config_fecha_importaciones`
VALUES (69, '2022-03-09 17:33:22');

INSERT INTO
    `config_fecha_importaciones`
VALUES (70, '2022-03-09 17:34:07');

INSERT INTO
    `config_fecha_importaciones`
VALUES (71, '2022-03-09 17:56:57');

INSERT INTO
    `config_fecha_importaciones`
VALUES (72, '2022-03-09 17:58:34');

INSERT INTO
    `config_fecha_importaciones`
VALUES (73, '2022-03-09 18:00:19');

INSERT INTO
    `config_fecha_importaciones`
VALUES (74, '2022-03-09 18:02:55');

INSERT INTO
    `config_fecha_importaciones`
VALUES (75, '2022-03-09 18:03:24');

INSERT INTO
    `config_fecha_importaciones`
VALUES (76, '2022-03-09 18:04:46');

INSERT INTO
    `config_fecha_importaciones`
VALUES (77, '2022-03-09 18:06:29');

INSERT INTO
    `config_fecha_importaciones`
VALUES (78, '2022-03-09 18:15:44');

INSERT INTO
    `config_fecha_importaciones`
VALUES (79, '2022-03-10 08:30:22');

INSERT INTO
    `config_fecha_importaciones`
VALUES (80, '2022-03-11 09:48:15');

-- ----------------------------
-- Table structure for config_nivel_additional_docs
-- ----------------------------
DROP TABLE IF EXISTS `config_nivel_additional_docs`;

CREATE TABLE `config_nivel_additional_docs` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `posicion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `descripcion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `campo_bbdd` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `mapa_bruto` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 7 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of config_nivel_additional_docs
-- ----------------------------
INSERT INTO
    `config_nivel_additional_docs`
VALUES (
        1,
        '',
        'id_ajena_licitacion',
        'id_ajena_licitacion',
        ''
    );

INSERT INTO
    `config_nivel_additional_docs`
VALUES (
        2,
        '',
        'id_compuesta',
        'id_compuesta',
        ''
    );

INSERT INTO
    `config_nivel_additional_docs`
VALUES (
        3,
        '',
        'attachment',
        'attachment',
        ''
    );

INSERT INTO
    `config_nivel_additional_docs`
VALUES (4, '', 'idDoc', 'idDoc', '');

INSERT INTO
    `config_nivel_additional_docs`
VALUES (
        5,
        '',
        'documentHash',
        'documentHash',
        ''
    );

INSERT INTO
    `config_nivel_additional_docs`
VALUES (
        6,
        '',
        'fecha_creacion_log',
        'fecha_creacion_log',
        ''
    );

-- ----------------------------
-- Table structure for config_nivel_contract_folder
-- ----------------------------
DROP TABLE IF EXISTS `config_nivel_contract_folder`;

CREATE TABLE `config_nivel_contract_folder` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `posicion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `padre` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `descripcion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `mapa_bruto` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `campo_bbdd` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 15 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of config_nivel_contract_folder
-- ----------------------------
INSERT INTO
    `config_nivel_contract_folder`
VALUES (
        1,
        '01',
        '01',
        'ContractFolderID',
        'bruto_contract_folder',
        'contractFolderID'
    );

INSERT INTO
    `config_nivel_contract_folder`
VALUES (
        2,
        '02',
        '01',
        'ContractFolderStatusCode',
        'bruto_contract_folder',
        'ContractFolderStatusCode'
    );

INSERT INTO
    `config_nivel_contract_folder`
VALUES (
        14,
        '',
        '',
        'fecha_creacion_log',
        '',
        'fecha_creacion_log'
    );

-- ----------------------------
-- Table structure for config_nivel_entry
-- ----------------------------
DROP TABLE IF EXISTS `config_nivel_entry`;

CREATE TABLE `config_nivel_entry` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `posicion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `descripcion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `campo_bbdd` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `mapa_bruto` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 8 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of config_nivel_entry
-- ----------------------------
INSERT INTO
    `config_nivel_entry`
VALUES (
        1,
        '01',
        'id',
        'id_licitacion',
        'bruto_datos_iniciales'
    );

INSERT INTO
    `config_nivel_entry`
VALUES (
        2,
        '01',
        'summary',
        'summary',
        'bruto_datos_iniciales'
    );

INSERT INTO
    `config_nivel_entry`
VALUES (
        3,
        '01',
        'updated',
        'updated',
        'bruto_datos_iniciales'
    );

INSERT INTO
    `config_nivel_entry`
VALUES (
        4,
        '01',
        'title',
        'title',
        'bruto_datos_iniciales'
    );

INSERT INTO
    `config_nivel_entry`
VALUES (
        6,
        '01',
        'link',
        'link_uri',
        'bruto_datos_iniciales'
    );

INSERT INTO
    `config_nivel_entry`
VALUES (
        7,
        '',
        'fecha_creacion_log',
        'fecha_creacion_log',
        ''
    );

-- ----------------------------
-- Table structure for config_nivel_general_docs
-- ----------------------------
DROP TABLE IF EXISTS `config_nivel_general_docs`;

CREATE TABLE `config_nivel_general_docs` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `posicion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `descripcion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `campo_bbdd` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `mapa_bruto` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 7 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of config_nivel_general_docs
-- ----------------------------
INSERT INTO
    `config_nivel_general_docs`
VALUES (
        1,
        '',
        'id_ajena_licitacion',
        'id_ajena_licitacion',
        ''
    );

INSERT INTO
    `config_nivel_general_docs`
VALUES (
        2,
        '',
        'id_compuesta',
        'id_compuesta',
        ''
    );

INSERT INTO
    `config_nivel_general_docs`
VALUES (
        3,
        '',
        'attachment',
        'attachment',
        ''
    );

INSERT INTO
    `config_nivel_general_docs`
VALUES (4, '', 'idDoc', 'idDoc', '');

INSERT INTO
    `config_nivel_general_docs`
VALUES (
        5,
        '',
        'fileName',
        'fileName',
        ''
    );

INSERT INTO
    `config_nivel_general_docs`
VALUES (
        6,
        '',
        'fecha_creacion_log',
        'fecha_creacion_log',
        ''
    );

-- ----------------------------
-- Table structure for config_nivel_legal_docs
-- ----------------------------
DROP TABLE IF EXISTS `config_nivel_legal_docs`;

CREATE TABLE `config_nivel_legal_docs` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `posicion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `descripcion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `campo_bbdd` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `mapa_bruto` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 7 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of config_nivel_legal_docs
-- ----------------------------
INSERT INTO
    `config_nivel_legal_docs`
VALUES (
        1,
        '',
        'id_ajena_licitacion',
        'id_ajena_licitacion',
        ''
    );

INSERT INTO
    `config_nivel_legal_docs`
VALUES (
        2,
        '',
        'id_compuesta',
        'id_compuesta',
        ''
    );

INSERT INTO
    `config_nivel_legal_docs`
VALUES (
        3,
        '',
        'attachment',
        'attachment',
        ''
    );

INSERT INTO
    `config_nivel_legal_docs`
VALUES (4, '', 'idDoc', 'idDoc', '');

INSERT INTO
    `config_nivel_legal_docs`
VALUES (
        5,
        '',
        'documentHash',
        'documentHash',
        ''
    );

INSERT INTO
    `config_nivel_legal_docs`
VALUES (
        6,
        '',
        'fecha_creacion_log',
        'fecha_creacion_log',
        ''
    );

-- ----------------------------
-- Table structure for config_nivel_located_contracting_party
-- ----------------------------
DROP TABLE IF EXISTS `config_nivel_located_contracting_party`;

CREATE TABLE `config_nivel_located_contracting_party` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `posicion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `padre` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `descripcion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `mapa_bruto` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `campo_bbdd` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 18 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of config_nivel_located_contracting_party
-- ----------------------------
INSERT INTO
    `config_nivel_located_contracting_party`
VALUES (
        1,
        '01',
        '01',
        'ContractingPartyTypeCode',
        'bruto_located_contracting_party',
        'contractingPartyTypeCode'
    );

INSERT INTO
    `config_nivel_located_contracting_party`
VALUES (
        2,
        '02',
        '01',
        'BuyerProfileURIID',
        'bruto_located_contracting_party',
        'buyerProfileURIID'
    );

INSERT INTO
    `config_nivel_located_contracting_party`
VALUES (
        14,
        '',
        '',
        'contractingPartyTypeCode',
        'bruto_located_contracting_party',
        'contractingPartyTypeCode'
    );

INSERT INTO
    `config_nivel_located_contracting_party`
VALUES (
        15,
        '',
        '',
        'id_ajena_licitacion',
        'bruto_located_contracting_party',
        'id_ajena_licitacion'
    );

INSERT INTO
    `config_nivel_located_contracting_party`
VALUES (
        16,
        '',
        '',
        'id_compuesta',
        'bruto_located_contracting_party',
        'id_compuesta'
    );

INSERT INTO
    `config_nivel_located_contracting_party`
VALUES (
        17,
        '',
        '',
        'fecha_creacion_log',
        '',
        'fecha_creacion_log'
    );

-- ----------------------------
-- Table structure for config_nivel_located_contracting_party_activity
-- ----------------------------
DROP TABLE IF EXISTS `config_nivel_located_contracting_party_activity`;

CREATE TABLE `config_nivel_located_contracting_party_activity` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `posicion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `padre` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `descripcion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `mapa_bruto` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `campo_bbdd` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 22 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of config_nivel_located_contracting_party_activity
-- ----------------------------
INSERT INTO
    `config_nivel_located_contracting_party_activity`
VALUES (
        17,
        '',
        '',
        'id_ajena_licitacion',
        'mapa_nivel_located_contracting_party_activity',
        'id_ajena_licitacion'
    );

INSERT INTO
    `config_nivel_located_contracting_party_activity`
VALUES (
        18,
        '',
        '',
        'id_compuesta',
        'mapa_nivel_located_contracting_party_activity',
        'id_compuesta'
    );

INSERT INTO
    `config_nivel_located_contracting_party_activity`
VALUES (
        19,
        '',
        '',
        'activityCode',
        'mapa_nivel_located_contracting_party_activity',
        'activityCode'
    );

INSERT INTO
    `config_nivel_located_contracting_party_activity`
VALUES (
        20,
        '',
        '',
        'activityCodeUri',
        'mapa_nivel_located_contracting_party_activity',
        'activityCodeUri'
    );

INSERT INTO
    `config_nivel_located_contracting_party_activity`
VALUES (
        21,
        '',
        '',
        'fecha_creacion_log',
        '',
        'fecha_creacion_log'
    );

-- ----------------------------
-- Table structure for config_nivel_party
-- ----------------------------
DROP TABLE IF EXISTS `config_nivel_party`;

CREATE TABLE `config_nivel_party` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `posicion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `descripcion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `campo_bbdd` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `mapa_bruto` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 18 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of config_nivel_party
-- ----------------------------
INSERT INTO
    `config_nivel_party`
VALUES (
        7,
        '',
        'id_ajena_licitacion',
        'id_ajena_licitacion',
        'bruto_party'
    );

INSERT INTO
    `config_nivel_party`
VALUES (
        8,
        '',
        'id_compuesta',
        'id_compuesta',
        'bruto_party'
    );

INSERT INTO
    `config_nivel_party`
VALUES (
        9,
        '',
        'websiteURI',
        'websiteURI',
        'bruto_party'
    );

INSERT INTO
    `config_nivel_party`
VALUES (
        10,
        '',
        'partyName',
        'partyName',
        'bruto_party'
    );

INSERT INTO
    `config_nivel_party`
VALUES (
        11,
        '',
        'city',
        'city',
        'bruto_party'
    );

INSERT INTO
    `config_nivel_party`
VALUES (
        12,
        '',
        'codpostal',
        'codpostal',
        'bruto_party'
    );

INSERT INTO
    `config_nivel_party`
VALUES (
        13,
        '',
        'direccion',
        'direccion',
        'bruto_party'
    );

INSERT INTO
    `config_nivel_party`
VALUES (
        14,
        '',
        'country',
        'country',
        'bruto_party'
    );

INSERT INTO
    `config_nivel_party`
VALUES (
        15,
        '',
        'contact_name',
        'contact_name',
        'bruto_party'
    );

INSERT INTO
    `config_nivel_party`
VALUES (
        16,
        '',
        'contact_email',
        'contact_email',
        'bruto_party'
    );

INSERT INTO
    `config_nivel_party`
VALUES (
        17,
        '',
        'fecha_creacion_log',
        'fecha_creacion_log',
        ''
    );

-- ----------------------------
-- Table structure for config_nivel_party_identification
-- ----------------------------
DROP TABLE IF EXISTS `config_nivel_party_identification`;

CREATE TABLE `config_nivel_party_identification` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `posicion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `descripcion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `campo_bbdd` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `mapa_bruto` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 10 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of config_nivel_party_identification
-- ----------------------------
INSERT INTO
    `config_nivel_party_identification`
VALUES (
        7,
        '',
        'ID',
        'idPartyIdent',
        'bruto_party_party_idenfitication'
    );

INSERT INTO
    `config_nivel_party_identification`
VALUES (
        8,
        '',
        'id_ajena_licitacion',
        'id_ajena_licitacion',
        'bruto_party_party_idenfitication'
    );

INSERT INTO
    `config_nivel_party_identification`
VALUES (
        9,
        '',
        'fecha_creacion_log',
        'fecha_creacion_log',
        ''
    );

-- ----------------------------
-- Table structure for config_nivel_procurement_project
-- ----------------------------
DROP TABLE IF EXISTS `config_nivel_procurement_project`;

CREATE TABLE `config_nivel_procurement_project` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `posicion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `padre` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `descripcion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `mapa_bruto` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `campo_bbdd` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 33 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of config_nivel_procurement_project
-- ----------------------------
INSERT INTO
    `config_nivel_procurement_project`
VALUES (
        1,
        '',
        '',
        'Name',
        'bruto_procurement_project',
        'name'
    );

INSERT INTO
    `config_nivel_procurement_project`
VALUES (
        2,
        '',
        '',
        'TypeCode',
        'bruto_procurement_project',
        'typeCode'
    );

INSERT INTO
    `config_nivel_procurement_project`
VALUES (
        14,
        '',
        '',
        'SubTypeCode',
        'bruto_procurement_project',
        'subTypeCode'
    );

INSERT INTO
    `config_nivel_procurement_project`
VALUES (
        15,
        '',
        '',
        'EstimatedOverallContractAmount',
        'bruto_procurement_project',
        'estimatedOverallContractAmount'
    );

INSERT INTO
    `config_nivel_procurement_project`
VALUES (
        16,
        '',
        '',
        'TotalAmount',
        'bruto_procurement_project',
        'totalAmount'
    );

INSERT INTO
    `config_nivel_procurement_project`
VALUES (
        17,
        '',
        '',
        'TaxExclusiveAmount',
        'bruto_procurement_project',
        'taxExclusiveAmount'
    );

INSERT INTO
    `config_nivel_procurement_project`
VALUES (
        18,
        '',
        '',
        'id_ajena_licitacion',
        'bruto_procurement_project',
        'id_ajena_licitacion'
    );

INSERT INTO
    `config_nivel_procurement_project`
VALUES (
        19,
        '',
        '',
        'countrySubentity',
        'bruto_procurement_project',
        'countrySubentity'
    );

INSERT INTO
    `config_nivel_procurement_project`
VALUES (
        20,
        '',
        '',
        'countrySubentityCode',
        'bruto_procurement_project',
        'countrySubentityCode'
    );

INSERT INTO
    `config_nivel_procurement_project`
VALUES (
        21,
        '',
        '',
        'countrySubentityCodeAttr',
        'bruto_procurement_project',
        'countrySubentityCodeAttr'
    );

INSERT INTO
    `config_nivel_procurement_project`
VALUES (
        22,
        '',
        '',
        'cityName',
        'bruto_procurement_project',
        'cityName'
    );

INSERT INTO
    `config_nivel_procurement_project`
VALUES (
        23,
        '',
        '',
        'IdentificationCode',
        'bruto_procurement_project',
        'IdentificationCode'
    );

INSERT INTO
    `config_nivel_procurement_project`
VALUES (
        24,
        '',
        '',
        'countryName',
        'bruto_procurement_project',
        'countryName'
    );

INSERT INTO
    `config_nivel_procurement_project`
VALUES (
        25,
        '',
        '',
        'durationMesure',
        'bruto_procurement_project',
        'durationMesure'
    );

INSERT INTO
    `config_nivel_procurement_project`
VALUES (
        26,
        '',
        '',
        'duracion_inicio',
        'bruto_procurement_project',
        'duracion_inicio'
    );

INSERT INTO
    `config_nivel_procurement_project`
VALUES (
        27,
        '',
        '',
        'duracion_fin',
        'bruto_procurement_project',
        'duracion_fin'
    );

INSERT INTO
    `config_nivel_procurement_project`
VALUES (
        28,
        '',
        '',
        'medida',
        'bruto_procurement_project',
        'medida'
    );

INSERT INTO
    `config_nivel_procurement_project`
VALUES (
        29,
        '',
        '',
        'contractExtension',
        'bruto_procurement_project',
        'contractExtension'
    );

INSERT INTO
    `config_nivel_procurement_project`
VALUES (
        30,
        '',
        '',
        'id_compuesta',
        'bruto_procurement_project',
        'id_compuesta'
    );

INSERT INTO
    `config_nivel_procurement_project`
VALUES (
        32,
        '',
        '',
        'fecha_creacion_log',
        '',
        'fecha_creacion_log'
    );

-- ----------------------------
-- Table structure for config_nivel_procurement_project_lot
-- ----------------------------
DROP TABLE IF EXISTS `config_nivel_procurement_project_lot`;

CREATE TABLE `config_nivel_procurement_project_lot` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `posicion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `padre` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `descripcion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `mapa_bruto` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `campo_bbdd` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 43 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of config_nivel_procurement_project_lot
-- ----------------------------
INSERT INTO
    `config_nivel_procurement_project_lot`
VALUES (
        31,
        '',
        '',
        'id_ajena_licitacion',
        'maestro_procurement_project_itemclass',
        'id_ajena_licitacion'
    );

INSERT INTO
    `config_nivel_procurement_project_lot`
VALUES (
        32,
        '',
        '',
        'id_compuesta',
        'maestro_procurement_project_itemclass',
        'id_compuesta'
    );

INSERT INTO
    `config_nivel_procurement_project_lot`
VALUES (
        33,
        '',
        '',
        'idProcurementLot',
        'maestro_procurement_project_itemclass',
        'idProcurementLot'
    );

INSERT INTO
    `config_nivel_procurement_project_lot`
VALUES (
        34,
        '',
        '',
        'name',
        'maestro_procurement_project_itemclass',
        'name'
    );

INSERT INTO
    `config_nivel_procurement_project_lot`
VALUES (
        36,
        '',
        '',
        'totalAmount',
        '',
        'totalAmount'
    );

INSERT INTO
    `config_nivel_procurement_project_lot`
VALUES (
        37,
        '',
        '',
        'taxExclusiveAmount',
        '',
        'taxExclusiveAmount'
    );

INSERT INTO
    `config_nivel_procurement_project_lot`
VALUES (
        38,
        '',
        '',
        'countrySubentity',
        '',
        'countrySubentity'
    );

INSERT INTO
    `config_nivel_procurement_project_lot`
VALUES (
        39,
        '',
        '',
        'countrySubentityCode',
        '',
        'countrySubentityCode'
    );

INSERT INTO
    `config_nivel_procurement_project_lot`
VALUES (
        40,
        '',
        '',
        'identificationCode',
        '',
        'identificationCode'
    );

INSERT INTO
    `config_nivel_procurement_project_lot`
VALUES (
        41,
        '',
        '',
        'nameLocation',
        '',
        'nameLocation'
    );

INSERT INTO
    `config_nivel_procurement_project_lot`
VALUES (
        42,
        '',
        '',
        'fecha_creacion_log',
        '',
        'fecha_creacion_log'
    );

-- ----------------------------
-- Table structure for config_nivel_technical_docs
-- ----------------------------
DROP TABLE IF EXISTS `config_nivel_technical_docs`;

CREATE TABLE `config_nivel_technical_docs` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `posicion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `descripcion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `campo_bbdd` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `mapa_bruto` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 7 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of config_nivel_technical_docs
-- ----------------------------
INSERT INTO
    `config_nivel_technical_docs`
VALUES (
        1,
        '',
        'id_ajena_licitacion',
        'id_ajena_licitacion',
        ''
    );

INSERT INTO
    `config_nivel_technical_docs`
VALUES (
        2,
        '',
        'id_compuesta',
        'id_compuesta',
        ''
    );

INSERT INTO
    `config_nivel_technical_docs`
VALUES (
        3,
        '',
        'attachment',
        'attachment',
        ''
    );

INSERT INTO
    `config_nivel_technical_docs`
VALUES (4, '', 'idDoc', 'idDoc', '');

INSERT INTO
    `config_nivel_technical_docs`
VALUES (
        5,
        '',
        'documentHash',
        'documentHash',
        ''
    );

INSERT INTO
    `config_nivel_technical_docs`
VALUES (
        6,
        '',
        'fecha_creacion_log',
        'fecha_creacion_log',
        ''
    );

-- ----------------------------
-- Table structure for config_nivel_tender_result
-- ----------------------------
DROP TABLE IF EXISTS `config_nivel_tender_result`;

CREATE TABLE `config_nivel_tender_result` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `posicion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `descripcion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `campo_bbdd` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `mapa_bruto` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 36 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of config_nivel_tender_result
-- ----------------------------
INSERT INTO
    `config_nivel_tender_result`
VALUES (
        17,
        '',
        'id_ajena_licitacion',
        'id_ajena_licitacion',
        ''
    );

INSERT INTO
    `config_nivel_tender_result`
VALUES (
        18,
        '',
        'id_compuesta',
        'id_compuesta',
        ''
    );

INSERT INTO
    `config_nivel_tender_result`
VALUES (
        19,
        '',
        'resultCode',
        'resultCode',
        ''
    );

INSERT INTO
    `config_nivel_tender_result`
VALUES (
        20,
        '',
        'description',
        'description',
        ''
    );

INSERT INTO
    `config_nivel_tender_result`
VALUES (
        21,
        '',
        'awardDate',
        'awardDate',
        ''
    );

INSERT INTO
    `config_nivel_tender_result`
VALUES (
        22,
        '',
        'receivedTenderQuantity',
        'receivedTenderQuantity',
        ''
    );

INSERT INTO
    `config_nivel_tender_result`
VALUES (
        23,
        '',
        'lowerTenderAmount',
        'lowerTenderAmount',
        ''
    );

INSERT INTO
    `config_nivel_tender_result`
VALUES (
        24,
        '',
        'higherTenderAmount',
        'higherTenderAmount',
        ''
    );

INSERT INTO
    `config_nivel_tender_result`
VALUES (
        25,
        '',
        'startDate',
        'startDate',
        ''
    );

INSERT INTO
    `config_nivel_tender_result`
VALUES (
        26,
        '',
        'smeawardedIndicator',
        'smeawardedIndicator',
        ''
    );

INSERT INTO
    `config_nivel_tender_result`
VALUES (
        27,
        '',
        'contract_id',
        'contract_id',
        ''
    );

INSERT INTO
    `config_nivel_tender_result`
VALUES (
        28,
        '',
        'contract_issueDate',
        'contract_issueDate',
        ''
    );

INSERT INTO
    `config_nivel_tender_result`
VALUES (
        29,
        '',
        'partyIdentification',
        'partyIdentification',
        ''
    );

INSERT INTO
    `config_nivel_tender_result`
VALUES (
        30,
        '',
        'partyName',
        'partyName',
        ''
    );

INSERT INTO
    `config_nivel_tender_result`
VALUES (
        31,
        '',
        'procurementProjectLotID',
        'procurementProjectLotID',
        ''
    );

INSERT INTO
    `config_nivel_tender_result`
VALUES (
        32,
        '',
        'TaxExclusiveAmount',
        'TaxExclusiveAmount',
        ''
    );

INSERT INTO
    `config_nivel_tender_result`
VALUES (
        33,
        '',
        'PayableAmount',
        'PayableAmount',
        ''
    );

INSERT INTO
    `config_nivel_tender_result`
VALUES (
        34,
        '',
        'fecha_creacion_log',
        'fecha_creacion_log',
        ''
    );

INSERT INTO
    `config_nivel_tender_result`
VALUES (
        35,
        '',
        'AbnormallyLowTendersIndicator',
        'abnormallyLowTendersIndicator',
        ''
    );

-- ----------------------------
-- Table structure for config_nivel_tendering_process
-- ----------------------------
DROP TABLE IF EXISTS `config_nivel_tendering_process`;

CREATE TABLE `config_nivel_tendering_process` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `posicion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `descripcion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `campo_bbdd` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `mapa_bruto` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 39 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of config_nivel_tendering_process
-- ----------------------------
INSERT INTO
    `config_nivel_tendering_process`
VALUES (
        17,
        '',
        'id_ajena_licitacion',
        'id_ajena_licitacion',
        ''
    );

INSERT INTO
    `config_nivel_tendering_process`
VALUES (
        18,
        '',
        'id_compuesta',
        'id_compuesta',
        ''
    );

INSERT INTO
    `config_nivel_tendering_process`
VALUES (
        19,
        '',
        'procedureCode',
        'procedureCode',
        ''
    );

INSERT INTO
    `config_nivel_tendering_process`
VALUES (
        20,
        '',
        'procedureCode_attr',
        'procedureCode_attr',
        ''
    );

INSERT INTO
    `config_nivel_tendering_process`
VALUES (
        21,
        '',
        'urgencyCode',
        'urgencyCode',
        ''
    );

INSERT INTO
    `config_nivel_tendering_process`
VALUES (
        22,
        '',
        'urgencyCode_attr',
        'urgencyCode_attr',
        ''
    );

INSERT INTO
    `config_nivel_tendering_process`
VALUES (
        23,
        '',
        'contractingSystemCode',
        'contractingSystemCode',
        ''
    );

INSERT INTO
    `config_nivel_tendering_process`
VALUES (
        24,
        '',
        'contractingSystemCode_attr',
        'contractingSystemCode_attr',
        ''
    );

INSERT INTO
    `config_nivel_tendering_process`
VALUES (
        25,
        '',
        'partPresentationCode',
        'partPresentationCode',
        ''
    );

INSERT INTO
    `config_nivel_tendering_process`
VALUES (
        26,
        '',
        'partPresentationCode_attr',
        'partPresentationCode_attr',
        ''
    );

INSERT INTO
    `config_nivel_tendering_process`
VALUES (
        27,
        '',
        'submissionMethodCode',
        'submissionMethodCode',
        ''
    );

INSERT INTO
    `config_nivel_tendering_process`
VALUES (
        28,
        '',
        'submissionMethodCode_attr',
        'submissionMethodCode_attr',
        ''
    );

INSERT INTO
    `config_nivel_tendering_process`
VALUES (
        29,
        '',
        'maximumLotPresentationQuantity',
        'maximumLotPresentationQuantity',
        ''
    );

INSERT INTO
    `config_nivel_tendering_process`
VALUES (
        30,
        '',
        'maximumTendererAwardedLotsQuantity',
        'maximumTendererAwardedLotsQuantity',
        ''
    );

INSERT INTO
    `config_nivel_tendering_process`
VALUES (
        31,
        '',
        'lotsCombinationContractingAuthorityRights',
        'lotsCombinationContractingAuthorityRights',
        ''
    );

INSERT INTO
    `config_nivel_tendering_process`
VALUES (
        32,
        '',
        'deadLineEndDate',
        'deadLineEndDate',
        ''
    );

INSERT INTO
    `config_nivel_tendering_process`
VALUES (
        33,
        '',
        'deadLineEndTime',
        'deadLineEndTime',
        ''
    );

INSERT INTO
    `config_nivel_tendering_process`
VALUES (
        34,
        '',
        'deadLineDescription',
        'deadLineDescription',
        ''
    );

INSERT INTO
    `config_nivel_tendering_process`
VALUES (
        35,
        '',
        'auctionTerms',
        'auctionTerms',
        ''
    );

INSERT INTO
    `config_nivel_tendering_process`
VALUES (
        36,
        '',
        'documentAvailablePeriod_EndDate',
        'documentAvailablePeriod_EndDate',
        ''
    );

INSERT INTO
    `config_nivel_tendering_process`
VALUES (
        37,
        '',
        'documentAvailablePeriod_EndTime',
        'documentAvailablePeriod_EndTime',
        ''
    );

INSERT INTO
    `config_nivel_tendering_process`
VALUES (
        38,
        '',
        'fecha_creacion_log',
        'fecha_creacion_log',
        ''
    );

-- ----------------------------
-- Table structure for config_nivel_tendering_terms
-- ----------------------------
DROP TABLE IF EXISTS `config_nivel_tendering_terms`;

CREATE TABLE `config_nivel_tendering_terms` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `posicion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `descripcion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `campo_bbdd` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `mapa_bruto` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 31 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of config_nivel_tendering_terms
-- ----------------------------
INSERT INTO
    `config_nivel_tendering_terms`
VALUES (
        17,
        '',
        'id_ajena_licitacion',
        'id_ajena_licitacion',
        ''
    );

INSERT INTO
    `config_nivel_tendering_terms`
VALUES (
        18,
        '',
        'requiredCurriculaIndicator',
        'requiredCurriculaIndicator',
        ''
    );

INSERT INTO
    `config_nivel_tendering_terms`
VALUES (
        19,
        '',
        'variantConstraintIndicator',
        'variantConstraintIndicator',
        ''
    );

INSERT INTO
    `config_nivel_tendering_terms`
VALUES (
        20,
        '',
        'fundingProgramCode',
        'fundingProgramCode',
        ''
    );

INSERT INTO
    `config_nivel_tendering_terms`
VALUES (
        21,
        '',
        'guaranteeTypeCode',
        'guaranteeTypeCode',
        ''
    );

INSERT INTO
    `config_nivel_tendering_terms`
VALUES (
        22,
        '',
        'guaranteeTypeCode_attr',
        'guaranteeTypeCode_attr',
        ''
    );

INSERT INTO
    `config_nivel_tendering_terms`
VALUES (
        23,
        '',
        'requiredFinancialGuarantee_Amount',
        'requiredFinancialGuarantee_Amount',
        ''
    );

INSERT INTO
    `config_nivel_tendering_terms`
VALUES (
        24,
        '',
        'procurementLegislationDocumentReference',
        'procurementLegislationDocumentReference',
        ''
    );

INSERT INTO
    `config_nivel_tendering_terms`
VALUES (
        25,
        '',
        'language',
        'language',
        ''
    );

INSERT INTO
    `config_nivel_tendering_terms`
VALUES (
        26,
        '',
        'allowedSubcontractTerms',
        'allowedSubcontractTerms',
        ''
    );

INSERT INTO
    `config_nivel_tendering_terms`
VALUES (
        27,
        '',
        'description',
        'description',
        ''
    );

INSERT INTO
    `config_nivel_tendering_terms`
VALUES (
        28,
        '',
        'personalSituation',
        'personalSituation',
        ''
    );

INSERT INTO
    `config_nivel_tendering_terms`
VALUES (
        29,
        '',
        'id_compuesta',
        'id_compuesta',
        ''
    );

INSERT INTO
    `config_nivel_tendering_terms`
VALUES (
        30,
        '',
        'fecha_creacion_log',
        'fecha_creacion_log',
        ''
    );

-- ----------------------------
-- Table structure for config_nivel_valid_notice_info
-- ----------------------------
DROP TABLE IF EXISTS `config_nivel_valid_notice_info`;

CREATE TABLE `config_nivel_valid_notice_info` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `posicion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `descripcion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `campo_bbdd` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `mapa_bruto` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 35 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of config_nivel_valid_notice_info
-- ----------------------------
INSERT INTO
    `config_nivel_valid_notice_info`
VALUES (
        31,
        '',
        'noticeTypeCode',
        'noticeTypeCode',
        ''
    );

INSERT INTO
    `config_nivel_valid_notice_info`
VALUES (
        32,
        '',
        'id_ajena_licitacion',
        'id_ajena_licitacion',
        ''
    );

INSERT INTO
    `config_nivel_valid_notice_info`
VALUES (
        33,
        '',
        'id_compuesta',
        'id_compuesta',
        ''
    );

INSERT INTO
    `config_nivel_valid_notice_info`
VALUES (
        34,
        '',
        'publicationMediaName',
        'publicationMediaName',
        ''
    );

-- ----------------------------
-- Table structure for config_parametros_cron
-- ----------------------------
DROP TABLE IF EXISTS `config_parametros_cron`;

CREATE TABLE `config_parametros_cron` (
    `id` int(11) NOT NULL,
    `cron_ejecucion` int(11) NOT NULL,
    `fecha_ejecucion` datetime NOT NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of config_parametros_cron
-- ----------------------------
INSERT INTO
    `config_parametros_cron`
VALUES (0, 0, '2022-03-11 09:56:48');

-- ----------------------------
-- Table structure for config_tablas_parser
-- ----------------------------
DROP TABLE IF EXISTS `config_tablas_parser`;

CREATE TABLE `config_tablas_parser` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `tabla_sucia` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `tabla_maestra` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
    `orden` int(11) NOT NULL,
    `key_recursividad` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
    `tabla_mapeo` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 25 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of config_tablas_parser
-- ----------------------------
INSERT INTO
    `config_tablas_parser`
VALUES (
        1,
        'in_datos_iniciales',
        'global_datos_iniciales_licitacion',
        1,
        'licitacion',
        'config_nivel_entry'
    );

INSERT INTO
    `config_tablas_parser`
VALUES (
        2,
        'in_contract_folder',
        'global_contract_folder',
        2,
        'ContractFolderStatus',
        'config_nivel_contract_folder'
    );

INSERT INTO
    `config_tablas_parser`
VALUES (
        3,
        'in_tendering_process',
        'global_tendering_process',
        3,
        'TenderingProcess',
        'config_nivel_tendering_process'
    );

INSERT INTO
    `config_tablas_parser`
VALUES (
        4,
        'in_procurement_project',
        'global_procurement_project',
        4,
        'ProcurementProject',
        'config_nivel_procurement_project'
    );

INSERT INTO
    `config_tablas_parser`
VALUES (
        5,
        'in_procurement_project_itemClass',
        'global_procurement_project_itemClass',
        5,
        'ProcurementProjectLot',
        'config_nivel_procurement_project_lot'
    );

INSERT INTO
    `config_tablas_parser`
VALUES (
        6,
        'in_procurement_project_lot',
        'global_procurement_project_lot',
        6,
        NULL,
        NULL
    );

INSERT INTO
    `config_tablas_parser`
VALUES (
        7,
        'in_procurement_project_lot_item',
        'global_procurement_project_lot_item',
        7,
        NULL,
        NULL
    );

INSERT INTO
    `config_tablas_parser`
VALUES (
        8,
        'in_tendering_terms',
        'global_tendering_terms',
        8,
        'TenderingTerms',
        'config_nivel_tendering_terms'
    );

INSERT INTO
    `config_tablas_parser`
VALUES (
        9,
        'in_tendering_terms_awarding_terms',
        'global_tendering_terms_awarding_terms',
        9,
        '',
        NULL
    );

INSERT INTO
    `config_tablas_parser`
VALUES (
        10,
        'in_tendering_terms_qualification_request',
        'global_tendering_terms_qualification_request',
        10,
        NULL,
        NULL
    );

INSERT INTO
    `config_tablas_parser`
VALUES (
        11,
        'in_tendering_terms_financial_evaluation',
        'global_tendering_terms_financial_evaluation',
        11,
        NULL,
        NULL
    );

INSERT INTO
    `config_tablas_parser`
VALUES (
        12,
        'in_tendering_terms_specific_terms',
        'global_tendering_terms_specific_terms',
        12,
        NULL,
        NULL
    );

INSERT INTO
    `config_tablas_parser`
VALUES (
        13,
        'in_located_contracting_party',
        'global_located_contracting_party',
        13,
        'LocatedContractingParty',
        'config_nivel_located_contracting_party'
    );

INSERT INTO
    `config_tablas_parser`
VALUES (
        14,
        'in_located_contracting_party_activity',
        'global_located_contracting_party_activity',
        14,
        NULL,
        NULL
    );

INSERT INTO
    `config_tablas_parser`
VALUES (
        15,
        'in_party',
        'global_party',
        15,
        'Party',
        'config_nivel_party'
    );

INSERT INTO
    `config_tablas_parser`
VALUES (
        16,
        'in_party_party_idenfitication',
        'global_party_party_idenfitication',
        16,
        'PartyIdentification',
        'config_nivel_party_identification'
    );

INSERT INTO
    `config_tablas_parser`
VALUES (
        17,
        'in_valid_notice_info',
        'global_valid_notice_info',
        17,
        'ValidNoticeInfo',
        'config_nivel_valid_notice_info'
    );

INSERT INTO
    `config_tablas_parser`
VALUES (
        18,
        'in_valid_notice_info_documento',
        'global_valid_notice_info_documento',
        18,
        NULL,
        NULL
    );

INSERT INTO
    `config_tablas_parser`
VALUES (
        19,
        'in_valid_notice_info_fecha',
        'global_valid_notice_info_fecha',
        19,
        NULL,
        NULL
    );

INSERT INTO
    `config_tablas_parser`
VALUES (
        20,
        'in_tender_result',
        'global_tender_result',
        20,
        'TenderResult',
        'config_nivel_tender_result'
    );

INSERT INTO
    `config_tablas_parser`
VALUES (
        21,
        'in_legal_documents',
        'global_legal_documents',
        25,
        'LegalDocumentReference',
        'config_nivel_legal_docs'
    );

INSERT INTO
    `config_tablas_parser`
VALUES (
        22,
        'in_technical_documents',
        'global_technical_documents',
        22,
        'TechnicalDocumentReference',
        'config_nivel_technical_docs'
    );

INSERT INTO
    `config_tablas_parser`
VALUES (
        23,
        'in_general_documents',
        'global_general_documents',
        23,
        'GeneralDocument',
        'config_nivel_general_docs'
    );

INSERT INTO
    `config_tablas_parser`
VALUES (
        24,
        'in_additional_documents',
        'global_additional_documents',
        24,
        'AdditionalDocumentReference',
        'config_nivel_additional_docs'
    );

-- ----------------------------
-- Table structure for config_tipo_licitacion_tablas
-- ----------------------------
DROP TABLE IF EXISTS `config_tipo_licitacion_tablas`;

CREATE TABLE `config_tipo_licitacion_tablas` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `prefijos_tablas` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
    `url_descarga` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
    `descripcion_prefijos` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
    `activo` int(1) NULL DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of config_tipo_licitacion_tablas
-- ----------------------------
INSERT INTO
    `config_tipo_licitacion_tablas`
VALUES (
        1,
        'PER_PCSP_EX',
        'https://contrataciondelsectorpublico.gob.es/sindicacion/sindicacion_643/licitacionesPerfilesContratanteCompleto3',
        'Licitaciones publicadas en los perfiles del contratante ubicados en la Plataforma de Contratación del Sector Público, excluyendo los contratos menores',
        1
    );

INSERT INTO
    `config_tipo_licitacion_tablas`
VALUES (
        2,
        'AGREGA_EX',
        'https://contrataciondelsectorpublico.gob.es/sindicacion/sindicacion_1044/PlataformasAgregadasSinMenores',
        'Contiene la información relativa a las licitaciones publicadas mediante mecanismos de agregación por entidades del Sector Público que no tienen su perfil del contratante dado de alta en la Plataforma de Contratación del Sector Público. Las entidades que p',
        0
    );

INSERT INTO
    `config_tipo_licitacion_tablas`
VALUES (
        3,
        'MENORES',
        'http://contrataciondelsectorpublico.gob.es/sindicacion/sindicacion_1143/contratosMenoresPerfilesContratantes',
        'Contiene la información relativa a los contratos menores publicados por los órganos de contratación que tienen su perfil de contratante en la Plataforma de Contratación del Sector Público. Diariamente se publican las actualizaciones producidas durante el ',
        0
    );

SET FOREIGN_KEY_CHECKS = 1;

-- liciagbar.codice_codigo_tipo_garantia definition
CREATE TABLE `codice_codigo_tipo_garantia` (
    `code` varchar(255) NOT NULL,
    `name` varchar(255) NOT NULL,
    `nombre` varchar(255) NOT NULL,
    PRIMARY KEY (`code`) USING BTREE,
    KEY `normal` (`code`) USING BTREE
) ENGINE = MyISAM DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.codice_contract_status definition

CREATE TABLE `codice_contract_status` (
    `code` varchar(255) NOT NULL,
    `descripcion` varchar(255) NOT NULL,
    PRIMARY KEY (`code`) USING BTREE,
    KEY `normal` (`code`) USING BTREE
) ENGINE = MyISAM DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.codice_located_contracting_party definition

CREATE TABLE `codice_located_contracting_party` (
    `code` varchar(255) NOT NULL,
    `name` varchar(255) NOT NULL,
    `nombre` varchar(255) NOT NULL,
    PRIMARY KEY (`code`) USING BTREE,
    KEY `normal` (`code`) USING BTREE
) ENGINE = MyISAM DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.codice_located_contracting_party_activity definition

CREATE TABLE `codice_located_contracting_party_activity` (
    `code` int(11) NOT NULL,
    `name` varchar(255) NOT NULL,
    `nombre` varchar(255) NOT NULL,
    PRIMARY KEY (`code`) USING BTREE,
    KEY `normal` (`code`) USING BTREE
) ENGINE = MyISAM DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.codice_tender_process definition

CREATE TABLE `codice_tender_process` (
    `code` int(11) NOT NULL,
    `name` varchar(255) NOT NULL,
    `nombre` varchar(255) NOT NULL,
    KEY `dfsg` (`code`) USING BTREE
) ENGINE = MyISAM DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.codice_tender_process_contracting_code definition

CREATE TABLE `codice_tender_process_contracting_code` (
    `code` int(11) NOT NULL,
    `name` varchar(255) NOT NULL,
    `nombre` varchar(255) NOT NULL,
    PRIMARY KEY (`code`) USING BTREE,
    KEY `normal` (`code`) USING BTREE
) ENGINE = MyISAM DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.codice_tender_process_submission definition

CREATE TABLE `codice_tender_process_submission` (
    `code` int(11) NOT NULL,
    `name` varchar(255) NOT NULL,
    `nombre` varchar(255) NOT NULL,
    PRIMARY KEY (`code`) USING BTREE,
    KEY `normal` (`code`) USING BTREE
) ENGINE = MyISAM DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.codice_tender_process_urgency_code definition

CREATE TABLE `codice_tender_process_urgency_code` (
    `code` int(11) NOT NULL,
    `name` varchar(255) NOT NULL,
    `nombre` varchar(255) NOT NULL,
    PRIMARY KEY (`code`) USING BTREE,
    KEY `normal` (`code`) USING BTREE
) ENGINE = MyISAM DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.codice_tender_result definition

CREATE TABLE `codice_tender_result` (
    `code` varchar(255) NOT NULL,
    `name` varchar(255) NOT NULL,
    `nombre` varchar(255) NOT NULL,
    PRIMARY KEY (`code`) USING BTREE,
    KEY `normal` (`code`) USING BTREE
) ENGINE = MyISAM DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.codice_tendering_terms_financial definition

CREATE TABLE `codice_tendering_terms_financial` (
    `code` varchar(255) NOT NULL,
    `name` varchar(255) NOT NULL,
    `nombre` varchar(255) NOT NULL,
    PRIMARY KEY (`code`) USING BTREE,
    KEY `normal` (`code`) USING BTREE
) ENGINE = MyISAM DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.codice_tendering_terms_qualification_request definition

CREATE TABLE `codice_tendering_terms_qualification_request` (
    `code` varchar(255) NOT NULL,
    `name` varchar(255) NOT NULL,
    `nombre` varchar(255) NOT NULL,
    PRIMARY KEY (`code`) USING BTREE,
    KEY `normal` (`code`) USING BTREE
) ENGINE = MyISAM DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.codice_tendering_terms_specific_terms definition

CREATE TABLE `codice_tendering_terms_specific_terms` (
    `code` varchar(255) NOT NULL,
    `name` varchar(255) NOT NULL,
    `nombre` varchar(255) NOT NULL,
    KEY `normal` (`code`) USING BTREE
) ENGINE = MyISAM DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.codice_tipo_contrato definition

CREATE TABLE `codice_tipo_contrato` (
    `code` varchar(255) NOT NULL,
    `descripcion` varchar(255) NOT NULL,
    PRIMARY KEY (`code`) USING BTREE
) ENGINE = MyISAM DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.codice_valid_notice_info definition

CREATE TABLE `codice_valid_notice_info` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `code` varchar(255) NOT NULL,
    `name` varchar(255) NOT NULL,
    `nombre` varchar(255) NOT NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 19 DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_datos_iniciales_licitacion definition

CREATE TABLE `global_datos_iniciales_licitacion` (
    `id_licitacion` varchar(255) NOT NULL,
    `url_id_licitacion` varchar(255) NOT NULL,
    `link_uri` varchar(255) NOT NULL,
    `summary` varchar(255) NOT NULL,
    `title` varchar(255) NOT NULL,
    `updated` datetime NOT NULL,
    `tipo_perfil_licitacion` int(11) NOT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_importacion` int(11) DEFAULT NULL,
    `estadoLicitacion` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id_licitacion`) USING BTREE,
    UNIQUE KEY `id_licitacion` (`id_licitacion`) USING BTREE,
    KEY `id_importacion` (`id_importacion`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_tablas_relacionadas definition

CREATE TABLE `global_tablas_relacionadas` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `tabla_codice` varchar(255) NOT NULL,
    `tabla_relacionada` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.in_additional_documents definition

CREATE TABLE `in_additional_documents` (
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) NOT NULL,
    `attachment` varchar(255) NOT NULL,
    `idDoc` varchar(255) NOT NULL,
    `documentHash` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    PRIMARY KEY (`id_compuesta`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.in_contract_folder definition

CREATE TABLE `in_contract_folder` (
    `ContractFolderID` varchar(255) DEFAULT NULL,
    `ContractFolderStatusCode` varchar(255) DEFAULT NULL,
    `ContractFolderStatusCodeAttr` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) NOT NULL,
    PRIMARY KEY (`id_compuesta`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.in_datos_iniciales definition

CREATE TABLE `in_datos_iniciales` (
    `id_licitacion` int(11) NOT NULL,
    `url_id_licitacion` varchar(255) NOT NULL,
    `link_uri` varchar(255) NOT NULL,
    `summary` text NOT NULL,
    `title` text NOT NULL,
    `updated` datetime NOT NULL,
    `tipo_perfil_licitacion` int(11) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_importacion` int(11) DEFAULT NULL,
    `estadoLicitacion` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id_licitacion`) USING BTREE,
    KEY `id_licitacion` (`id_licitacion`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.in_general_documents definition

CREATE TABLE `in_general_documents` (
    `attachment` varchar(255) NOT NULL,
    `idDoc` varchar(255) NOT NULL,
    `fileName` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) NOT NULL,
    PRIMARY KEY (`id_compuesta`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.in_legal_documents definition

CREATE TABLE `in_legal_documents` (
    `attachment` varchar(255) NOT NULL,
    `idDoc` varchar(255) NOT NULL,
    `documentHash` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) NOT NULL,
    PRIMARY KEY (`id_compuesta`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.in_located_contracting_party definition

CREATE TABLE `in_located_contracting_party` (
    `contractingPartyTypeCode` varchar(255) DEFAULT NULL,
    `contractingPartyTypeCodeUri` varchar(255) DEFAULT NULL,
    `buyerProfileURIID` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) NOT NULL,
    PRIMARY KEY (`id_compuesta`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.in_located_contracting_party_activity definition

CREATE TABLE `in_located_contracting_party_activity` (
    `activityCode` varchar(255) DEFAULT NULL,
    `activityCodeUri` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) NOT NULL,
    `id_compuesta_padre` varchar(255) NOT NULL,
    PRIMARY KEY (`id_compuesta`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.in_party definition

CREATE TABLE `in_party` (
    `websiteURI` varchar(255) DEFAULT NULL,
    `partyName` varchar(255) DEFAULT NULL,
    `city` varchar(255) DEFAULT NULL,
    `codpostal` varchar(255) DEFAULT NULL,
    `direccion` varchar(255) DEFAULT NULL,
    `country` varchar(255) DEFAULT NULL,
    `contact_name` varchar(255) DEFAULT NULL,
    `contact_email` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) NOT NULL,
    PRIMARY KEY (`id_compuesta`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.in_party_party_idenfitication definition

CREATE TABLE `in_party_party_idenfitication` (
    `idPartyIdent` varchar(255) DEFAULT NULL,
    `attr` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) NOT NULL,
    `id_compuesta_padre` varchar(255) NOT NULL,
    PRIMARY KEY (`id_compuesta`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.in_procurement_project definition

CREATE TABLE `in_procurement_project` (
    `estimatedOverallContractAmount` decimal(14, 2) DEFAULT NULL,
    `totalAmount` decimal(14, 2) DEFAULT NULL,
    `taxExclusiveAmount` decimal(14, 2) DEFAULT NULL,
    `countrySubentity` varchar(255) DEFAULT NULL,
    `countrySubentityCode` varchar(255) DEFAULT NULL,
    `countrySubentityCodeAttr` varchar(255) DEFAULT NULL,
    `cityName` varchar(255) DEFAULT NULL,
    `IdentificationCode` varchar(255) DEFAULT NULL,
    `countryName` varchar(255) DEFAULT NULL,
    `durationMesure` varchar(255) DEFAULT NULL,
    `duracion_inicio` varchar(255) DEFAULT NULL,
    `duracion_fin` varchar(255) DEFAULT NULL,
    `medida` varchar(255) DEFAULT NULL,
    `contractExtension` varchar(255) DEFAULT NULL,
    `name` varchar(255) DEFAULT NULL,
    `typeCode` varchar(255) DEFAULT NULL,
    `subTypeCode` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) NOT NULL,
    PRIMARY KEY (`id_compuesta`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.in_procurement_project_itemclass definition

CREATE TABLE `in_procurement_project_itemClass` (
    `itemClassification_value` varchar(255) DEFAULT NULL,
    `itemClassification_attr` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) NOT NULL,
    `id_compuesta_padre` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id_compuesta`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.in_procurement_project_lot definition

CREATE TABLE `in_procurement_project_lot` (
    `idProcurementLot` int(11) NOT NULL,
    `name` varchar(255) NOT NULL,
    `totalAmount` decimal(14, 2) NOT NULL,
    `taxExclusiveAmount` decimal(14, 2) NOT NULL,
    `countrySubentity` varchar(255) DEFAULT NULL,
    `countrySubentityCode` varchar(255) DEFAULT NULL,
    `identificationCode` varchar(255) DEFAULT NULL,
    `nameLocation` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) NOT NULL,
    PRIMARY KEY (`id_compuesta`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.in_procurement_project_lot_item definition

CREATE TABLE `in_procurement_project_lot_item` (
    `idItem` varchar(255) NOT NULL,
    `id_attr` varchar(255) NOT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) NOT NULL,
    `id_compuesta_padre` varchar(255) NOT NULL,
    PRIMARY KEY (`id_compuesta`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.in_technical_documents definition

CREATE TABLE `in_technical_documents` (
    `attachment` varchar(255) NOT NULL,
    `idDoc` varchar(255) NOT NULL,
    `documentHash` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) NOT NULL,
    PRIMARY KEY (`id_compuesta`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.in_tender_result definition

CREATE TABLE `in_tender_result` (
    `resultCode` varchar(255) DEFAULT NULL,
    `description` varchar(255) DEFAULT NULL,
    `awardDate` datetime DEFAULT NULL,
    `receivedTenderQuantity` varchar(255) DEFAULT NULL,
    `lowerTenderAmount` varchar(255) DEFAULT NULL,
    `higherTenderAmount` varchar(255) DEFAULT NULL,
    `startDate` datetime DEFAULT NULL,
    `smeawardedIndicator` varchar(255) DEFAULT NULL,
    `contract_id` varchar(255) DEFAULT NULL,
    `contract_issueDate` date DEFAULT NULL,
    `partyIdentification` varchar(255) DEFAULT NULL,
    `partyName` varchar(255) DEFAULT NULL,
    `procurementProjectLotID` varchar(255) DEFAULT NULL,
    `TaxExclusiveAmount` varchar(255) DEFAULT NULL,
    `PayableAmount` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) NOT NULL,
    `abnormallyLowTendersIndicator` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id_compuesta`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.in_tendering_process definition

CREATE TABLE `in_tendering_process` (
    `procedureCode` int(11) NOT NULL,
    `procedureCode_attr` varchar(255) DEFAULT NULL,
    `urgencyCode` int(11) DEFAULT NULL,
    `urgencyCode_attr` varchar(255) DEFAULT NULL,
    `contractingSystemCode` int(11) DEFAULT NULL,
    `contractingSystemCode_attr` varchar(255) DEFAULT NULL,
    `partPresentationCode` int(11) DEFAULT NULL,
    `partPresentationCode_attr` varchar(255) DEFAULT NULL,
    `submissionMethodCode` int(11) DEFAULT NULL,
    `submissionMethodCode_attr` varchar(255) DEFAULT NULL,
    `maximumLotPresentationQuantity` int(11) DEFAULT NULL,
    `maximumTendererAwardedLotsQuantity` int(11) DEFAULT NULL,
    `lotsCombinationContractingAuthorityRights` text DEFAULT NULL,
    `deadLineEndDate` date DEFAULT NULL,
    `deadLineEndTime` varchar(255) DEFAULT NULL,
    `deadLineDescription` text DEFAULT NULL,
    `auctionTerms` text DEFAULT NULL,
    `documentAvailablePeriod_EndDate` date DEFAULT NULL,
    `documentAvailablePeriod_EndTime` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) NOT NULL,
    PRIMARY KEY (`id_compuesta`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.in_tendering_terms definition

CREATE TABLE `in_tendering_terms` (
    `requiredCurriculaIndicator` varchar(255) DEFAULT NULL,
    `variantConstraintIndicator` varchar(255) DEFAULT NULL,
    `fundingProgramCode` varchar(255) DEFAULT NULL,
    `guaranteeTypeCode` varchar(255) DEFAULT NULL,
    `guaranteeTypeCode_attr` varchar(255) DEFAULT NULL,
    `requiredFinancialGuarantee_Amount` int(11) DEFAULT NULL,
    `procurementLegislationDocumentReference` varchar(255) DEFAULT NULL,
    `language` varchar(255) DEFAULT NULL,
    `allowedSubcontractTerms` varchar(255) DEFAULT NULL,
    `description` varchar(255) DEFAULT NULL,
    `personalSituation` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) NOT NULL,
    PRIMARY KEY (`id_compuesta`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.in_tendering_terms_awarding_terms definition

CREATE TABLE `in_tendering_terms_awarding_terms` (
    `evaluationCriteriaTypeCode` varchar(255) DEFAULT NULL,
    `description` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) NOT NULL,
    `id_compuesta_padre` varchar(255) NOT NULL,
    PRIMARY KEY (`id_compuesta`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.in_tendering_terms_financial_evaluation definition

CREATE TABLE `in_tendering_terms_financial_evaluation` (
    `evaluationCriteriaTypeCode` varchar(255) DEFAULT NULL,
    `evaluationCriteriaTypeCode_attr` varchar(255) DEFAULT NULL,
    `description` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) NOT NULL,
    `id_compuesta_padre` varchar(255) NOT NULL,
    PRIMARY KEY (`id_compuesta`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.in_tendering_terms_qualification_request definition

CREATE TABLE `in_tendering_terms_qualification_request` (
    `evaluationCriteriaTypeCode` varchar(255) DEFAULT NULL,
    `evaluationCriteriaTypeCode_attr` varchar(255) DEFAULT NULL,
    `description` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) NOT NULL,
    `id_compuesta_padre` varchar(255) NOT NULL,
    PRIMARY KEY (`id_compuesta`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.in_tendering_terms_specific_terms definition

CREATE TABLE `in_tendering_terms_specific_terms` (
    `evaluationCriteriaTypeCode` varchar(255) DEFAULT NULL,
    `evaluationCriteriaTypeCode_attr` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) NOT NULL,
    `id_compuesta_padre` varchar(255) NOT NULL,
    PRIMARY KEY (`id_compuesta`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.in_valid_notice_info definition

CREATE TABLE `in_valid_notice_info` (
    `noticeTypeCode` varchar(255) DEFAULT NULL,
    `publicationMediaName` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) NOT NULL,
    PRIMARY KEY (`id_compuesta`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.in_valid_notice_info_documento definition

CREATE TABLE `in_valid_notice_info_documento` (
    `documento` varchar(255) DEFAULT NULL,
    `filename` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) NOT NULL,
    `id_compuesta_padre` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id_compuesta`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.in_valid_notice_info_fecha definition

CREATE TABLE `in_valid_notice_info_fecha` (
    `fechas` date DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) NOT NULL,
    `id_compuesta_padre` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id_compuesta`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.vista_datos_licitacion definition

CREATE TABLE `vista_datos_licitacion` (
    `id` int(11) NOT NULL,
    `id_licitacion` varchar(255) NOT NULL,
    `itemClassification_attr` text DEFAULT NULL,
    `link_uri` varchar(255) DEFAULT NULL,
    `updated` datetime DEFAULT NULL,
    `contractFolderID` varchar(255) DEFAULT NULL,
    `contractFolderStatusCode` varchar(255) DEFAULT NULL,
    `buyerProfileURIID` varchar(255) DEFAULT NULL,
    `contractingPartyTypeCode` varchar(255) DEFAULT NULL,
    `partyName` varchar(255) DEFAULT NULL,
    `codpostal` varchar(255) DEFAULT NULL,
    `websiteURI` varchar(255) DEFAULT NULL,
    `city` varchar(255) DEFAULT NULL,
    `direccion` varchar(255) DEFAULT NULL,
    `contact_name` varchar(255) DEFAULT NULL,
    `contact_email` varchar(255) DEFAULT NULL,
    `partyItem` varchar(255) DEFAULT NULL,
    `tipoIdParty` varchar(255) DEFAULT NULL,
    `nameProject` varchar(255) DEFAULT NULL,
    `estimatedOverallContractAmount` varchar(255) DEFAULT NULL,
    `taxExclusiveAmount` varchar(255) DEFAULT NULL,
    `totalAmount` varchar(255) DEFAULT NULL,
    `countrySubentityCode` varchar(255) DEFAULT NULL,
    `countrySubentity` varchar(255) DEFAULT NULL,
    `durationMesure` varchar(255) DEFAULT NULL,
    `medida` varchar(255) DEFAULT NULL,
    `duracion_inicio` varchar(255) DEFAULT NULL,
    `duracion_fin` varchar(255) DEFAULT NULL,
    `contractExtension` varchar(255) DEFAULT NULL,
    `procurementLegislationDocumentReference` varchar(255) DEFAULT NULL,
    `allowedSubcontractTerms` varchar(255) DEFAULT NULL,
    `contrato_status` varchar(255) DEFAULT NULL,
    `tipo_administracion` varchar(255) DEFAULT NULL,
    `tipo_contrato` varchar(255) DEFAULT NULL,
    `tipoTender` varchar(255) DEFAULT NULL,
    `contrato_sistema` varchar(255) DEFAULT NULL,
    `submision` varchar(255) DEFAULT NULL,
    `urgency` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `estadoLicitacion` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_additional_documents definition

CREATE TABLE `global_additional_documents` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) DEFAULT NULL,
    `attachment` varchar(255) DEFAULT NULL COMMENT ' Enlaces para documentos adicionales (admite más de uno)',
    `idDoc` varchar(255) DEFAULT NULL,
    `documentHash` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE KEY `unicaadicional` (`id_compuesta`) USING BTREE,
    KEY `id_licitacion` (`id_ajena_licitacion`) USING BTREE,
    CONSTRAINT `id_ajena` FOREIGN KEY (`id_ajena_licitacion`) REFERENCES `global_datos_iniciales_licitacion` (`id_licitacion`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 2200973 DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_contract_folder definition

CREATE TABLE `global_contract_folder` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) DEFAULT NULL,
    `contractFolderID` varchar(255) DEFAULT NULL COMMENT 'Número de expediente.',
    `contractFolderStatusCode` varchar(255) DEFAULT NULL COMMENT 'Estado de la licitación\r',
    `ContractFolderStatusCodeAttr` varchar(255) DEFAULT NULL COMMENT 'Estado de la licitación\r URL relacionadas',
    `fecha_creacion_log` datetime DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE KEY `id_compuesta_contrato` (`id_compuesta`) USING BTREE,
    KEY `id_ajena_licitacion` (`id_ajena_licitacion`) USING BTREE,
    CONSTRAINT `id_ajena_` FOREIGN KEY (`id_ajena_licitacion`) REFERENCES `global_datos_iniciales_licitacion` (`id_licitacion`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 1622149 DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_general_documents definition

CREATE TABLE `global_general_documents` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) DEFAULT NULL,
    `attachment` varchar(255) DEFAULT NULL,
    `idDoc` varchar(255) DEFAULT NULL,
    `fileName` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE KEY `documentosunico` (`id_compuesta`) USING BTREE,
    KEY `idajena` (`id_ajena_licitacion`) USING BTREE,
    CONSTRAINT `id_ajena_licitacion` FOREIGN KEY (`id_ajena_licitacion`) REFERENCES `global_datos_iniciales_licitacion` (`id_licitacion`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 6293539 DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_legal_documents definition

CREATE TABLE `global_legal_documents` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) DEFAULT NULL,
    `attachment` varchar(255) DEFAULT NULL COMMENT 'Pliego de cláusulas administrativas',
    `idDoc` varchar(255) DEFAULT NULL,
    `documentHash` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE KEY `unicaadicional` (`id_compuesta`) USING BTREE,
    KEY `id_ajena` (`id_ajena_licitacion`) USING BTREE,
    CONSTRAINT `id` FOREIGN KEY (`id_ajena_licitacion`) REFERENCES `global_datos_iniciales_licitacion` (`id_licitacion`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 1359969 DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_located_contracting_party definition

CREATE TABLE `global_located_contracting_party` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) DEFAULT NULL,
    `contractingPartyTypeCode` varchar(255) DEFAULT NULL,
    `contractingPartyTypeCodeUri` varchar(255) DEFAULT NULL,
    `buyerProfileURIID` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE KEY `unicaadicional` (`id_compuesta`) USING BTREE,
    KEY `id_ajena_licitacion` (`id_ajena_licitacion`) USING BTREE,
    CONSTRAINT `id_` FOREIGN KEY (`id_ajena_licitacion`) REFERENCES `global_datos_iniciales_licitacion` (`id_licitacion`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 1622049 DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_located_contracting_party_activity definition

CREATE TABLE `global_located_contracting_party_activity` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) DEFAULT NULL,
    `activityCode` varchar(255) DEFAULT NULL,
    `activityCodeUri` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_compuesta_padre` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE KEY `unicaadicional` (`id_compuesta`) USING BTREE,
    KEY `idajena` (`id_ajena_licitacion`) USING BTREE,
    CONSTRAINT `idajena` FOREIGN KEY (`id_ajena_licitacion`) REFERENCES `global_datos_iniciales_licitacion` (`id_licitacion`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 1143788 DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_party definition

CREATE TABLE `global_party` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) DEFAULT NULL,
    `websiteURI` varchar(255) DEFAULT NULL COMMENT 'Órgano de Contratación. Web contratante',
    `partyName` varchar(255) DEFAULT NULL COMMENT 'Órgano de Contratación.\r Nombre contratación',
    `city` varchar(255) DEFAULT NULL COMMENT 'Órgano de Contratación. Ciudad',
    `codpostal` varchar(255) DEFAULT NULL COMMENT 'Órgano de Contratación. Codigo Postal',
    `direccion` varchar(255) DEFAULT NULL COMMENT 'Órgano de Contratación. Direccion',
    `country` varchar(255) DEFAULT NULL COMMENT 'Órgano de Contratación. Pais',
    `contact_name` varchar(255) DEFAULT NULL COMMENT 'Órgano de Contratación.  Nombre Contacto',
    `contact_email` varchar(255) DEFAULT NULL COMMENT 'Órgano de Contratación. Email Contacto',
    `fecha_creacion_log` datetime DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE KEY `unicaadicional` (`id_compuesta`) USING BTREE,
    KEY `id_ajena_lici` (`id_ajena_licitacion`) USING BTREE,
    CONSTRAINT `id_ajena_lici` FOREIGN KEY (`id_ajena_licitacion`) REFERENCES `global_datos_iniciales_licitacion` (`id_licitacion`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 1622049 DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_party_party_idenfitication definition

CREATE TABLE `global_party_party_idenfitication` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) DEFAULT NULL,
    `idPartyIdent` varchar(255) DEFAULT NULL,
    `attr` varchar(255) DEFAULT NULL COMMENT 'Órgano de Contratación – ubicación orgánica...\r\n\r\nEstructura orgánica a la que se adscribe el órgano de contratación dentro de una jerarquía. Se indicará mediante una de\r\nlas siguientes dos formas:\r\n1. Mediante el código DIR3, en caso de que exista\r\n2. En',
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_compuesta_padre` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE KEY `unicaadicional` (`id_compuesta`) USING BTREE,
    KEY `id_ajena_licitacion_party_activity` (`id_ajena_licitacion`) USING BTREE,
    CONSTRAINT `id_ajena_licitacion_party_activity` FOREIGN KEY (`id_ajena_licitacion`) REFERENCES `global_datos_iniciales_licitacion` (`id_licitacion`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 3310215 DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_procurement_project definition

CREATE TABLE `global_procurement_project` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) DEFAULT NULL,
    `estimatedOverallContractAmount` decimal(14, 2) DEFAULT NULL COMMENT 'Valor estimado e importe de licitación. Valor estimado del contrato',
    `totalAmount` decimal(14, 2) DEFAULT NULL COMMENT 'Prespuesto base de licitación con impuestos',
    `taxExclusiveAmount` decimal(14, 2) DEFAULT NULL COMMENT 'Presupuesto base de licitación sin impuestos. Precio máximo (con y sin impuestos) que se podrá pagar al contratista como\r\ncontrapartida por el cumplimiento del contrato. Valor monetario estimado de todo el contrato calculado según el art. 9 de la Directiv',
    `countrySubentity` varchar(255) DEFAULT NULL COMMENT 'Lugar de Ejecución (Código NUTS/País)',
    `countrySubentityCode` varchar(255) DEFAULT NULL COMMENT 'Lugar de Ejecución (Código NUTS/País)',
    `countrySubentityCodeAttr` varchar(255) DEFAULT NULL COMMENT 'Lugar de Ejecución (Código NUTS/País)',
    `cityName` varchar(255) DEFAULT NULL COMMENT 'Lugar de Ejecución (Código NUTS/País)',
    `IdentificationCode` varchar(255) DEFAULT NULL COMMENT 'Lugar de Ejecución (Código NUTS/País)',
    `countryName` varchar(255) DEFAULT NULL COMMENT 'Lugar de Ejecución (Código NUTS/País)',
    `durationMesure` int(11) DEFAULT NULL COMMENT 'Duración del contrato. Numerico entero con la duracion',
    `duracion_inicio` date DEFAULT NULL COMMENT 'Duración del contrato. Fecha Inicio',
    `duracion_fin` date DEFAULT NULL COMMENT 'Duración del contrato. Fecha Fin',
    `medida` varchar(255) DEFAULT NULL,
    `contractExtension` varchar(255) DEFAULT NULL COMMENT 'OptionsDescription...\r\n\r\nOpciones y prórrogas de un contrato. Se puede indicar:\r\n Opciones. Descripción textual de las opciones que se deben ejercer a la adjudicación del contrato.\r\n Prórrogas. Descripción del período de validez en el que el órgano de c',
    `name` varchar(255) DEFAULT NULL COMMENT 'Objeto del Contrato\r.Descripción resumida de los trabajos o suministros en los que consiste el contrato.\r',
    `typeCode` int(11) NOT NULL COMMENT 'Tipo de Contrato.\r\n\r\nTipología de los contratos delimitada por la legislación, en concreto por la Ley 9/2017.\r\n- Obras.\r\n-Servicios.\r\n-Suministros.\r\n-Concesión de obras públicas.\r\n-Concesión de obras\r\n-Gestión de servicios públicos.\r\n-Concesión de servici',
    `subTypeCode` int(11) DEFAULT NULL COMMENT 'Subtipo de contrato. Código para indicar un subtipo de contrato. Conseguir URI para datos relacionados',
    `fecha_creacion_log` datetime DEFAULT NULL,
    PRIMARY KEY (`id`, `typeCode`) USING BTREE,
    UNIQUE KEY `unicaadicional` (`id_compuesta`) USING BTREE,
    KEY `id_ajena_proc_project` (`id_ajena_licitacion`) USING BTREE,
    CONSTRAINT `id_ajena_proc_project` FOREIGN KEY (`id_ajena_licitacion`) REFERENCES `global_datos_iniciales_licitacion` (`id_licitacion`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 1622049 DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_procurement_project_itemclass definition

CREATE TABLE `global_procurement_project_itemclass` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) DEFAULT NULL,
    `itemClassification_value` varchar(255) DEFAULT NULL COMMENT 'Código CPV (Common Procurement Vocabulary)\r',
    `itemClassification_attr` varchar(255) DEFAULT NULL COMMENT 'Código CPV (Common Procurement Vocabulary)\r URI con los datos relacionados id=string',
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_compuesta_padre` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE KEY `unicaadicional` (`id_compuesta`) USING BTREE,
    KEY `id_ajena_proj_itemclass` (`id_ajena_licitacion`) USING BTREE,
    KEY `idx3` (`itemClassification_value`) USING BTREE,
    CONSTRAINT `id_ajena_proj_itemclass` FOREIGN KEY (`id_ajena_licitacion`) REFERENCES `global_datos_iniciales_licitacion` (`id_licitacion`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 2511053 DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_procurement_project_lot definition

CREATE TABLE `global_procurement_project_lot` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) DEFAULT NULL,
    `idProcurementLot` int(11) NOT NULL COMMENT 'Número de lote',
    `name` varchar(255) NOT NULL COMMENT 'Objeto del lote. Descripción resumida de los trabajos o suministros en los que consiste el lote.',
    `totalAmount` decimal(14, 2) NOT NULL COMMENT 'Importe sin impuestos',
    `taxExclusiveAmount` decimal(14, 2) NOT NULL COMMENT 'Importe con impuestos',
    `countrySubentity` varchar(255) DEFAULT NULL,
    `countrySubentityCode` varchar(255) DEFAULT NULL,
    `identificationCode` varchar(255) DEFAULT NULL,
    `nameLocation` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE KEY `unicaadicional` (`id_compuesta`) USING BTREE,
    KEY `id_ajena_project_kit` (`id_ajena_licitacion`) USING BTREE,
    CONSTRAINT `id_ajena_project_kit` FOREIGN KEY (`id_ajena_licitacion`) REFERENCES `global_datos_iniciales_licitacion` (`id_licitacion`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 910091 DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_procurement_project_lot_item definition

CREATE TABLE `global_procurement_project_lot_item` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) DEFAULT NULL,
    `idItem` varchar(255) NOT NULL COMMENT 'Código CPV (Common Procurement Vocabulary)',
    `id_attr` varchar(255) NOT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_compuesta_padre` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE KEY `unicaadicional` (`id_compuesta`) USING BTREE,
    KEY `id_ajena_project_lot_item` (`id_ajena_licitacion`) USING BTREE,
    CONSTRAINT `id_ajena_project_lot_item` FOREIGN KEY (`id_ajena_licitacion`) REFERENCES `global_datos_iniciales_licitacion` (`id_licitacion`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 1474167 DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_technical_documents definition

CREATE TABLE `global_technical_documents` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) DEFAULT NULL,
    `attachment` varchar(255) DEFAULT NULL COMMENT 'Pliego de prescripciones técnicas',
    `idDoc` varchar(255) DEFAULT NULL,
    `documentHash` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE KEY `unicaadicional` (`id_compuesta`) USING BTREE,
    KEY `id_ajena_tech_Doc` (`id_ajena_licitacion`) USING BTREE,
    CONSTRAINT `id_ajena_tech_Doc` FOREIGN KEY (`id_ajena_licitacion`) REFERENCES `global_datos_iniciales_licitacion` (`id_licitacion`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 1348817 DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_tender_result definition

CREATE TABLE `global_tender_result` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) DEFAULT NULL,
    `resultCode` varchar(255) DEFAULT NULL,
    `description` varchar(255) DEFAULT NULL,
    `awardDate` datetime DEFAULT NULL,
    `receivedTenderQuantity` varchar(255) DEFAULT NULL,
    `lowerTenderAmount` varchar(255) DEFAULT NULL,
    `higherTenderAmount` varchar(255) DEFAULT NULL,
    `startDate` datetime DEFAULT NULL,
    `smeawardedIndicator` varchar(255) DEFAULT NULL,
    `contract_id` varchar(255) DEFAULT NULL,
    `contract_issueDate` date DEFAULT NULL,
    `partyIdentification` varchar(255) DEFAULT NULL,
    `partyName` varchar(255) DEFAULT NULL,
    `procurementProjectLotID` varchar(255) DEFAULT NULL,
    `TaxExclusiveAmount` varchar(255) DEFAULT NULL,
    `PayableAmount` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `abnormallyLowTendersIndicator` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE KEY `unicaadicional` (`id_compuesta`) USING BTREE,
    KEY `id_ajena_tender_result` (`id_ajena_licitacion`) USING BTREE,
    CONSTRAINT `id_ajena_tender_result` FOREIGN KEY (`id_ajena_licitacion`) REFERENCES `global_datos_iniciales_licitacion` (`id_licitacion`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 2153243 DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_tendering_process definition

CREATE TABLE `global_tendering_process` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) DEFAULT NULL,
    `procedureCode` int(11) NOT NULL COMMENT 'Procedimiento utilizado para su celebración\r',
    `procedureCode_attr` varchar(255) DEFAULT NULL COMMENT 'URI para relacionar estos datos:\r\n\r\nProcedimiento por el que se realiza la adjudicación de los contratos.\r\n- Abierto.\r\n- Restringido.\r\n- Negociado con publicidad.\r\n- Negociado sin publicidad.\r\n- Diálogo competitivo.\r\n- Normas internas.\r\n- Derivado de acue',
    `urgencyCode` int(11) DEFAULT NULL COMMENT 'Tipo de tramitación',
    `urgencyCode_attr` varchar(255) DEFAULT NULL COMMENT 'Tipo de tramitación URI tablas relacionadas',
    `contractingSystemCode` int(11) DEFAULT NULL COMMENT 'Sistema de contratación para para su celebración',
    `contractingSystemCode_attr` varchar(255) DEFAULT NULL COMMENT 'Sistema de contratación para para su celebración URI',
    `partPresentationCode` int(11) DEFAULT NULL,
    `partPresentationCode_attr` varchar(255) DEFAULT NULL,
    `submissionMethodCode` int(11) DEFAULT NULL COMMENT 'Presentación de la oferta para para su celebración',
    `submissionMethodCode_attr` varchar(255) DEFAULT NULL COMMENT 'Presentación de la oferta para para su celebración URI tabla relacionadas',
    `maximumLotPresentationQuantity` int(11) DEFAULT NULL,
    `maximumTendererAwardedLotsQuantity` int(11) DEFAULT NULL,
    `lotsCombinationContractingAuthorityRights` text DEFAULT NULL,
    `deadLineEndDate` date DEFAULT NULL COMMENT 'Fecha límite para la presentación de ofertas. Fecha Final',
    `deadLineEndTime` varchar(255) DEFAULT NULL COMMENT 'Fecha límite para la presentación de ofertas. Tiempo Final',
    `deadLineDescription` text DEFAULT NULL COMMENT 'Fecha límite para la presentación de ofertas. Descripcion',
    `auctionTerms` text DEFAULT NULL,
    `documentAvailablePeriod_EndDate` date DEFAULT NULL COMMENT 'Plazo de pliegos. Fecha Inicio',
    `documentAvailablePeriod_EndTime` varchar(255) DEFAULT NULL COMMENT 'Plazo de pliegos. Fecha Fin',
    `fecha_creacion_log` datetime DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE,
    KEY `id_ajena_tender_process` (`id_ajena_licitacion`) USING BTREE,
    KEY `ixd_procedure` (`procedureCode`) USING BTREE,
    KEY `idx_2` (`contractingSystemCode`) USING BTREE,
    KEY `idx3` (`urgencyCode`) USING BTREE,
    KEY `idx` (`submissionMethodCode`) USING BTREE,
    CONSTRAINT `id_ajena_tender_process` FOREIGN KEY (`id_ajena_licitacion`) REFERENCES `global_datos_iniciales_licitacion` (`id_licitacion`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 1622049 DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_tendering_terms definition

CREATE TABLE `global_tendering_terms` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) DEFAULT NULL,
    `requiredCurriculaIndicator` varchar(255) DEFAULT NULL,
    `variantConstraintIndicator` varchar(255) DEFAULT NULL,
    `fundingProgramCode` varchar(255) DEFAULT NULL,
    `guaranteeTypeCode` varchar(255) DEFAULT NULL,
    `guaranteeTypeCode_attr` varchar(255) DEFAULT NULL,
    `requiredFinancialGuarantee_Amount` int(11) DEFAULT NULL,
    `procurementLegislationDocumentReference` varchar(255) DEFAULT NULL,
    `language` varchar(255) DEFAULT NULL,
    `allowedSubcontractTerms` varchar(255) DEFAULT NULL,
    `description` varchar(255) DEFAULT NULL,
    `personalSituation` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE KEY `unicaadicional` (`id_compuesta`) USING BTREE,
    KEY `id_ajena_tender_terms` (`id_ajena_licitacion`) USING BTREE,
    CONSTRAINT `id_ajena_tender_terms` FOREIGN KEY (`id_ajena_licitacion`) REFERENCES `global_datos_iniciales_licitacion` (`id_licitacion`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 1613697 DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_tendering_terms_awarding_terms definition

CREATE TABLE `global_tendering_terms_awarding_terms` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) DEFAULT NULL,
    `evaluationCriteriaTypeCode` varchar(255) DEFAULT NULL,
    `description` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_compuesta_padre` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE KEY `unicaadicional` (`id_compuesta`) USING BTREE,
    KEY `id_ajena_award_1` (`id_ajena_licitacion`) USING BTREE,
    CONSTRAINT `id_ajena_award_1` FOREIGN KEY (`id_ajena_licitacion`) REFERENCES `global_datos_iniciales_licitacion` (`id_licitacion`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 3527377 DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_tendering_terms_financial_evaluation definition

CREATE TABLE `global_tendering_terms_financial_evaluation` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) DEFAULT NULL,
    `evaluationCriteriaTypeCode` varchar(255) DEFAULT NULL,
    `evaluationCriteriaTypeCode_attr` varchar(255) DEFAULT NULL,
    `description` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_compuesta_padre` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE KEY `unicaadicional` (`id_compuesta`) USING BTREE,
    KEY `id_ajena_tech_eva` (`id_ajena_licitacion`) USING BTREE,
    CONSTRAINT `id_ajena_tech_eva` FOREIGN KEY (`id_ajena_licitacion`) REFERENCES `global_datos_iniciales_licitacion` (`id_licitacion`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 1795041 DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_tendering_terms_qualification_request definition

CREATE TABLE `global_tendering_terms_qualification_request` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) DEFAULT NULL,
    `evaluationCriteriaTypeCode` varchar(255) DEFAULT NULL,
    `evaluationCriteriaTypeCode_attr` varchar(255) DEFAULT NULL,
    `description` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_compuesta_padre` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE KEY `unicaadicional` (`id_compuesta`) USING BTREE,
    KEY `id_ajena_qualification` (`id_ajena_licitacion`) USING BTREE,
    CONSTRAINT `id_ajena_qualification` FOREIGN KEY (`id_ajena_licitacion`) REFERENCES `global_datos_iniciales_licitacion` (`id_licitacion`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 119492 DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_tendering_terms_specific_terms definition

CREATE TABLE `global_tendering_terms_specific_terms` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) DEFAULT NULL,
    `evaluationCriteriaTypeCode` varchar(255) DEFAULT NULL,
    `evaluationCriteriaTypeCode_attr` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    `id_compuesta_padre` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE KEY `unicaadicional` (`id_compuesta`) USING BTREE,
    KEY `id_ajena_specific` (`id_ajena_licitacion`) USING BTREE,
    CONSTRAINT `id_ajena_specific` FOREIGN KEY (`id_ajena_licitacion`) REFERENCES `global_datos_iniciales_licitacion` (`id_licitacion`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 3414375 DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_valid_notice_info definition

CREATE TABLE `global_valid_notice_info` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) DEFAULT NULL,
    `noticeTypeCode` varchar(255) DEFAULT NULL,
    `publicationMediaName` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE KEY `unicaadicional` (`id_compuesta`) USING BTREE,
    KEY `id_ajena_valid_notice` (`id_ajena_licitacion`) USING BTREE,
    CONSTRAINT `id_ajena_valid_notice` FOREIGN KEY (`id_ajena_licitacion`) REFERENCES `global_datos_iniciales_licitacion` (`id_licitacion`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 2013133 DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_valid_notice_info_documento definition

CREATE TABLE `global_valid_notice_info_documento` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) DEFAULT NULL,
    `id_compuesta_padre` varchar(255) DEFAULT NULL,
    `documento` varchar(255) DEFAULT NULL,
    `filename` varchar(255) DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE KEY `unicaadicional` (`id_compuesta`) USING BTREE,
    KEY `id_ajena_valid_notice_fechas` (`id_ajena_licitacion`) USING BTREE,
    CONSTRAINT `id_ajena_valid_notice_fechas` FOREIGN KEY (`id_ajena_licitacion`) REFERENCES `global_datos_iniciales_licitacion` (`id_licitacion`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 379400 DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.global_valid_notice_info_fecha definition

CREATE TABLE `global_valid_notice_info_fecha` (
    `id_ajena_licitacion` varchar(255) NOT NULL,
    `id_compuesta` varchar(255) DEFAULT NULL,
    `id_compuesta_padre` varchar(255) DEFAULT NULL,
    `fechas` date DEFAULT NULL,
    `fecha_creacion_log` datetime DEFAULT NULL,
    UNIQUE KEY `unicaadicional` (`id_compuesta`) USING BTREE,
    KEY `id_ajena_valid_notice_docs` (`id_ajena_licitacion`) USING BTREE,
    CONSTRAINT `id_ajena_valid_notice_docs` FOREIGN KEY (`id_ajena_licitacion`) REFERENCES `global_datos_iniciales_licitacion` (`id_licitacion`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_swedish_ci;

-- liciagbar.config_datos_emails definition

CREATE TABLE `config_datos_emails` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `userSMTP` varchar(100) DEFAULT NULL,
    `passSMTP` varchar(100) DEFAULT NULL,
    `emailToSend` varchar(100) DEFAULT NULL,
    `hostname` varchar(100) DEFAULT NULL,
    `port` varchar(100) DEFAULT NULL,
    PRIMARY KEY (`id`)
) ENGINE = InnoDB DEFAULT CHARSET = latin1;

SET GLOBAL max_allowed_packet = 256000000;