-- MySQL dump 10.16  Distrib 10.1.48-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: localhost    Database: SPYquartup1
-- ------------------------------------------------------
-- Server version	10.1.48-MariaDB-0+deb9u2

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `quemcale`
--

DROP TABLE IF EXISTS `quemcale`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `quemcale` (
  `id_quemcale` int(11) NOT NULL DEFAULT '0' COMMENT 'Nº calendario',
  `nombre` text NOT NULL COMMENT 'Nombre',
  `sw_comunidad` tinyint(4) NOT NULL DEFAULT '9' COMMENT 'Comunidad',
  `sw_fiesta_0` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Lunes',
  `sw_fiesta_1` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Martes',
  `sw_fiesta_2` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Miércoles',
  `sw_fiesta_3` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Jueves',
  `sw_fiesta_4` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Viernes',
  `sw_fiesta_5` tinyint(4) NOT NULL DEFAULT '9' COMMENT 'Sábado',
  `sw_fiesta_6` tinyint(4) NOT NULL DEFAULT '9' COMMENT 'Domingo',
  `id_tenant` smallint(6) NOT NULL DEFAULT '1' COMMENT 'Nº empresa',
  `horas_0` decimal(4,2) NOT NULL DEFAULT '8.00' COMMENT 'Horas Lunes',
  `horad_01` time NOT NULL DEFAULT '00:00:00' COMMENT 'Lunes de (1)',
  `horad_02` time NOT NULL DEFAULT '00:00:00' COMMENT 'Lunes de (2)',
  `horad_03` time NOT NULL DEFAULT '00:00:00' COMMENT 'Lunes de (3)',
  `horad_04` time NOT NULL DEFAULT '00:00:00' COMMENT 'Lunes de (4)',
  `horah_01` time NOT NULL DEFAULT '00:00:00' COMMENT 'Lunes a (1)',
  `horah_02` time NOT NULL DEFAULT '00:00:00' COMMENT 'Lunes a (2)',
  `horah_03` time NOT NULL DEFAULT '00:00:00' COMMENT 'Lunes a (3)',
  `horah_04` time NOT NULL DEFAULT '00:00:00' COMMENT 'Lunes a (4)',
  `horas_1` decimal(4,2) NOT NULL DEFAULT '8.00' COMMENT 'Horas Martes',
  `horad_11` time NOT NULL DEFAULT '00:00:00' COMMENT 'Martes de (1)',
  `horad_12` time NOT NULL DEFAULT '00:00:00' COMMENT 'Martes de (2)',
  `horad_13` time NOT NULL DEFAULT '00:00:00' COMMENT 'Martes de (3)',
  `horad_14` time NOT NULL DEFAULT '00:00:00' COMMENT 'Martes de (4)',
  `horah_11` time NOT NULL DEFAULT '00:00:00' COMMENT 'Martes a (1)',
  `horah_12` time NOT NULL DEFAULT '00:00:00' COMMENT 'Martes a (2)',
  `horah_13` time NOT NULL DEFAULT '00:00:00' COMMENT 'Martes a (3)',
  `horah_14` time NOT NULL DEFAULT '00:00:00' COMMENT 'Martes a (4)',
  `horas_2` decimal(4,2) NOT NULL DEFAULT '8.00' COMMENT 'Horas Miércoles',
  `horad_21` time NOT NULL DEFAULT '00:00:00' COMMENT 'Miércoles de (1)',
  `horad_22` time NOT NULL DEFAULT '00:00:00' COMMENT 'Miércoles de (2)',
  `horad_23` time NOT NULL DEFAULT '00:00:00' COMMENT 'Miércoles de (3)',
  `horad_24` time NOT NULL DEFAULT '00:00:00' COMMENT 'Miércoles de (4)',
  `horah_21` time NOT NULL DEFAULT '00:00:00' COMMENT 'Miércoles a (1)',
  `horah_22` time NOT NULL DEFAULT '00:00:00' COMMENT 'Miércoles a (2)',
  `horah_23` time NOT NULL DEFAULT '00:00:00' COMMENT 'Miércoles a (3)',
  `horah_24` time NOT NULL DEFAULT '00:00:00' COMMENT 'Miércoles a (4)',
  `horas_3` decimal(4,2) NOT NULL DEFAULT '8.00' COMMENT 'Horas Jueves',
  `horad_31` time NOT NULL DEFAULT '00:00:00' COMMENT 'Jueves de (1)',
  `horad_32` time NOT NULL DEFAULT '00:00:00' COMMENT 'Jueves de (2)',
  `horad_33` time NOT NULL DEFAULT '00:00:00' COMMENT 'Jueves de (3)',
  `horad_34` time NOT NULL DEFAULT '00:00:00' COMMENT 'Jueves de (4)',
  `horah_31` time NOT NULL DEFAULT '00:00:00' COMMENT 'Jueves a (1)',
  `horah_32` time NOT NULL DEFAULT '00:00:00' COMMENT 'Jueves a (2)',
  `horah_33` time NOT NULL DEFAULT '00:00:00' COMMENT 'Jueves a (3)',
  `horah_34` time NOT NULL DEFAULT '00:00:00' COMMENT 'Jueves a (4)',
  `horas_4` decimal(4,2) NOT NULL DEFAULT '8.00' COMMENT 'Horas Viernes',
  `horad_41` time NOT NULL DEFAULT '00:00:00' COMMENT 'Viernes de (1)',
  `horad_42` time NOT NULL DEFAULT '00:00:00' COMMENT 'Viernes de (2)',
  `horad_43` time NOT NULL DEFAULT '00:00:00' COMMENT 'Viernes de (3)',
  `horad_44` time NOT NULL DEFAULT '00:00:00' COMMENT 'Viernes de (4)',
  `horah_41` time NOT NULL DEFAULT '00:00:00' COMMENT 'Viernes a (1)',
  `horah_42` time NOT NULL DEFAULT '00:00:00' COMMENT 'Viernes a (2)',
  `horah_43` time NOT NULL DEFAULT '00:00:00' COMMENT 'Viernes a (3)',
  `horah_44` time NOT NULL DEFAULT '00:00:00' COMMENT 'Viernes a (4)',
  `horas_5` decimal(4,2) NOT NULL DEFAULT '0.00' COMMENT 'Horas Sábado',
  `horad_51` time NOT NULL DEFAULT '00:00:00' COMMENT 'Sábado de (1)',
  `horad_52` time NOT NULL DEFAULT '00:00:00' COMMENT 'Sábado de (2)',
  `horad_53` time NOT NULL DEFAULT '00:00:00' COMMENT 'Sábado de (3)',
  `horad_54` time NOT NULL DEFAULT '00:00:00' COMMENT 'Sábado de (4)',
  `horah_51` time NOT NULL DEFAULT '00:00:00' COMMENT 'Sábado a (1)',
  `horah_52` time NOT NULL DEFAULT '00:00:00' COMMENT 'Sábado a (2)',
  `horah_53` time NOT NULL DEFAULT '00:00:00' COMMENT 'Sábado a (3)',
  `horah_54` time NOT NULL DEFAULT '00:00:00' COMMENT 'Sábado a (4)',
  `horas_6` decimal(4,2) NOT NULL DEFAULT '0.00' COMMENT 'Horas Domingo',
  `horad_61` time NOT NULL DEFAULT '00:00:00' COMMENT 'Domingo de (1)',
  `horad_62` time NOT NULL DEFAULT '00:00:00' COMMENT 'Domingo de (2)',
  `horad_63` time NOT NULL DEFAULT '00:00:00' COMMENT 'Domingo de (3)',
  `horad_64` time NOT NULL DEFAULT '00:00:00' COMMENT 'Domingo de (4)',
  `horah_61` time NOT NULL DEFAULT '00:00:00' COMMENT 'Domingo a (1)',
  `horah_62` time NOT NULL DEFAULT '00:00:00' COMMENT 'Domingo a (2)',
  `horah_63` time NOT NULL DEFAULT '00:00:00' COMMENT 'Domingo a (3)',
  `horah_64` time NOT NULL DEFAULT '00:00:00' COMMENT 'Domingo a (4)',
  `sw_horas_extra_1` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Horas extras (1)',
  `sw_horas_extra_2` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Horas extras (2)',
  `sw_horas_extra_3` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Horas extras (3)',
  `sw_horas_extra_4` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Horas extras (4)',
  `id_quemcaletip` int(11) NOT NULL DEFAULT '1' COMMENT 'Nº tipo calendario',
  UNIQUE KEY `key0` (`id_tenant`,`id_quemcale`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `quemcale`
--
-- WHERE:  id_tenant='1'

LOCK TABLES `quemcale` WRITE;
/*!40000 ALTER TABLE `quemcale` DISABLE KEYS */;
/*!40000 ALTER TABLE `quemcale` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2025-10-30  8:41:58
