'proyectos reformular.', 'fields' => array( 'id_ref' => array( 'description' => 'The id identifier to reformular.', 'type' => 'serial', 'not null' => TRUE, ), 'uid' => array( 'description' => 'uid del autor.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'nid' => array( 'description' => 'Enlace del nodo.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'estado' => array( 'description' => 'Estado de la reformulacion.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'estado_ant' => array( 'description' => 'Estado anterior de la reformulacion.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'date' => array( 'description' => 'Fecha de la reformulacion.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'variacion' => array( 'description' => 'Variacion de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'monto' => array( 'description' => 'Monto de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'unidad' => array( 'description' => 'unidad de medida.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'fecha_onapre' => array( 'description' => 'Fecha de Aprobación en Onapre.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'justificacion' => array( 'type' => 'text', 'size' => 'big', 'not null' => TRUE, 'default' => '' ), ), 'indexes' => array( 'nid' => array('nid'), 'id_ref' => array('id_ref'), 'uid' => array('uid'), 'estado' => array('estado'), ), 'primary key' => array('id_ref'), ); $schema['proyectos_reformula'] = array( 'description' => 'proyectos reformula.', 'fields' => array( 'id_ref' => array( 'description' => 'id de la reformulacion.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'nid' => array( 'description' => 'nid del nodo.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'partida' => array( 'description' => 'Partida del la reformulacion.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'field_name' => array( 'type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => '' ), 'value' => array( 'description' => 'Monto enero de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'value_1' => array( 'description' => 'Monto febrero de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'value_2' => array( 'description' => 'Monto marzo de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'value_3' => array( 'description' => 'Monto abril de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'value_4' => array( 'description' => 'Monto mayo de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'value_5' => array( 'description' => 'Monto junio de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'value_6' => array( 'description' => 'Monto julio de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'value_7' => array( 'description' => 'Monto agosto de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'value_8' => array( 'description' => 'Monto septiembre de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'value_9' => array( 'description' => 'Monto octubre de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'value_10' => array( 'description' => 'Monto noviembre de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'value_11' => array( 'description' => 'Monto diciembre de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'ae' => array( 'description' => 'Accion especifica.', 'type' => 'int', 'not null' => TRUE, 'default' => 0, ), 'unidad' => array( 'description' => 'Unidad de Medida.', 'type' => 'int', 'not null' => TRUE, 'default' => 0, ), ), 'indexes' => array( 'nid' => array('nid'), 'id_ref' => array('id_ref'), 'partida' => array('partida'), 'ae' => array('ae'), ), ); $schema['proyectos_reformular_state'] = array( 'description' => 'Estados reformulacion.', 'fields' => array( 'nid' => array( 'description' => 'nid del nodo.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'estado' => array( 'description' => 'estado.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'estado_ant' => array( 'description' => 'estado anterior.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'date' => array( 'description' => 'Fecha.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'id_ref' => array( 'description' => 'Referencia a la reformulacion.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'uid' => array( 'description' => 'Referencia al autor.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'comentario' => array( 'type' => 'text', 'size' => 'big', 'not null' => TRUE, 'default' => '' ), ), 'indexes' => array( 'nid' => array('nid'), 'id_ref' => array('id_ref'), 'uid' => array('uid'), ), ); $schema['proyectos_reformula_fuente'] = array( 'description' => 'proyectos reformula fuente.', 'fields' => array( 'nid' => array( 'description' => 'nid del nodo.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'ae' => array( 'description' => 'Accion especifica.', 'type' => 'int', 'not null' => TRUE, 'default' => 0, ), 'value' => array( 'description' => 'Monto enero de la reformulacion.', 'type' => 'numeric', 'size' => 'normal', 'not null' => TRUE, 'default' => 0, 'precision' => 32, 'scale' => 0, ), 'field_name' => array( 'type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => '' ), 'id_ref' => array( 'description' => 'Referencia a la reformulacion.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), ), 'indexes' => array( 'nid' => array('nid'), 'id_ref' => array('id_ref'), 'ae' => array('ae'), ), ); return $schema; }