-- MySQL dump 10.13  Distrib 8.0.33, for Win64 (x86_64)
--
-- Host: 127.0.0.1    Database: emedsol_test
-- ------------------------------------------------------
-- Server version	8.0.35

/*!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 utf8mb4 */;
/*!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 `note_category`
--

DROP TABLE IF EXISTS `note_category`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `note_category` (
  `note_category_id` int NOT NULL AUTO_INCREMENT,
  `parent_note_category_id` int DEFAULT NULL,
  `note_category_name` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`note_category_id`),
  KEY `note_category_parent_note_category_id_foreign` (`parent_note_category_id`),
  CONSTRAINT `note_category_parent_note_category_id_foreign` FOREIGN KEY (`parent_note_category_id`) REFERENCES `note_category` (`note_category_id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `note_category`
--

/*!40000 ALTER TABLE `note_category` DISABLE KEYS */;
SET FOREIGN_KEY_CHECKS=0;
INSERT INTO `note_category` VALUES (1,7,'Protocole d\'imagerie','2024-04-19 12:48:32','2024-04-19 16:40:03',NULL),(2,9,'Document','2024-04-19 12:48:32','2024-04-19 16:40:03',NULL),(3,9,'Assurances','2024-04-19 12:48:33','2024-04-19 16:40:03',NULL),(4,6,'Prescription externe','2024-04-19 12:48:33','2024-04-19 16:40:03',NULL),(5,2,'Certificat de naissance','2024-04-19 12:48:33',NULL,NULL),(6,NULL,'Note','2024-04-19 16:17:39',NULL,NULL),(7,NULL,'Laboratoire','2024-04-19 16:17:39',NULL,NULL),(8,NULL,'Imagerie','2024-04-19 16:17:39',NULL,NULL),(9,NULL,'Autre','2024-04-19 16:17:39',NULL,NULL),(10,6,'Requête médicale','2024-04-19 16:17:39',NULL,NULL),(11,9,'Admin action','2024-04-19 16:17:39',NULL,NULL),(12,6,'Hypo. de diag. en note','2024-04-19 16:33:59','2024-04-19 16:40:03',NULL),(13,6,'Diag. conf. en note','2024-04-19 16:33:59','2024-04-19 16:40:03',NULL);
SET FOREIGN_KEY_CHECKS=1;
/*!40000 ALTER TABLE `note_category` ENABLE KEYS */;
/*!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 2024-07-23  9:13:10
