-- MySQL dump 10.13  Distrib 8.0.41, for Win64 (x86_64)
--
-- Host: 127.0.0.1    Database: db_access_02709
-- ------------------------------------------------------
-- Server version	8.0.40

/*!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 */;
/*!50503 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 `traitment`
--

DROP TABLE IF EXISTS `traitment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `traitment` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `fk_demande` bigint unsigned NOT NULL,
  `statut` enum('PENDING','REJECTED','ALLOWED','EXPIRED') NOT NULL DEFAULT 'PENDING',
  `date_debut` date DEFAULT NULL,
  `heure_debut` time DEFAULT NULL,
  `date_fin` date DEFAULT NULL,
  `heure_fin` time DEFAULT NULL,
  `date_traitment` date DEFAULT NULL,
  `link` varchar(255) DEFAULT NULL,
  `user_crea` varchar(255) NOT NULL,
  `date_crea` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `user_mod` varchar(255) DEFAULT NULL,
  `date_mod` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `traitment_fk_demande_unique` (`fk_demande`),
  CONSTRAINT `traitment_fk_demande_foreign` FOREIGN KEY (`fk_demande`) REFERENCES `demandes` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `traitment`
--

LOCK TABLES `traitment` WRITE;
/*!40000 ALTER TABLE `traitment` DISABLE KEYS */;
INSERT INTO `traitment` VALUES (1,3,'ALLOWED','2025-05-15','04:35:00','2025-05-20','01:35:00','2025-05-06',NULL,'admin','2025-05-05 21:41:55','admin','2025-05-06 20:21:51'),(30,4,'PENDING','2025-01-01','00:00:00','2025-01-01','00:00:00',NULL,NULL,'admin','2025-05-06 21:14:34',NULL,NULL),(32,5,'PENDING','2025-01-01','00:00:00','2025-01-01','00:00:00',NULL,NULL,'admin','2025-05-06 21:16:17',NULL,NULL),(34,1,'PENDING','2025-05-15','04:35:00','2025-05-20','01:35:00',NULL,NULL,'admin','2025-05-06 21:42:10',NULL,NULL);
/*!40000 ALTER TABLE `traitment` 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-05-06 22:45:26
