-- MySQL dump 10.13  Distrib 8.0.38, for Win64 (x86_64)
--
-- Host: 192.168.45.185    Database: db_iemr
-- ------------------------------------------------------
-- Server version	8.0.45-0ubuntu0.22.04.1

/*!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 `form_master`
--

DROP TABLE IF EXISTS `form_master`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `form_master` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `form_id` varchar(100) NOT NULL,
  `form_name` varchar(255) NOT NULL,
  `module_id` bigint DEFAULT NULL,
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `version` int DEFAULT '1',
  PRIMARY KEY (`id`),
  UNIQUE KEY `form_id` (`form_id`),
  KEY `fk_module` (`module_id`),
  CONSTRAINT `fk_module` FOREIGN KEY (`module_id`) REFERENCES `form_module` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `form_master`
--

LOCK TABLES `form_master` WRITE;
/*!40000 ALTER TABLE `form_master` DISABLE KEYS */;
INSERT INTO `form_master` VALUES (1,'hbnc_form_001','HBNC Visit Form',1,'2025-07-09 09:49:57',31),(2,'hbyc_form_001','HBYC Visit Form',3,'2025-07-10 13:05:50',23),(4,'sam_visit_001','SAM Visit Form',3,'2025-10-13 06:38:40',13),(6,'ors_distribution_form','ORS Distribution Form',1,'2025-10-14 11:29:51',2),(7,'ors_form_001','ORS Distribution Form',1,'2025-10-14 11:31:47',2),(9,'ifa_001','Mobilize and Report IFA Supplementation ',5,'2025-10-23 06:45:37',1),(10,'ifa_form_001','Mobilize and Report IFA Supplementation ',5,'2025-10-23 06:53:30',5),(13,'eye_checkup_form_001','Eye Screening Form',6,'2025-10-28 09:30:46',8),(14,'ifa_distribution_form','IFA Distribution Form',6,'2025-11-03 11:51:59',7),(15,'mda_distribution_form','MDA Distribution Form',7,'2025-11-05 07:41:45',1),(16,'mosquito_net_distribution_form','Mosquito Net Distribution Form',9,'2025-11-07 14:12:32',3),(18,'anc_form_001','ANC',10,'2025-10-23 06:45:37',2),(19,'CDTF_001','Chronic Disease Visit & Follow-up Form',11,'2025-12-30 07:19:20',1),(20,'pulse_polio_campaign_form','Pulse Polio Campaign Form',12,'2026-01-13 17:02:22',3),(21,'ors_campaign_form','Monthly Campaign Form',13,'2026-01-13 17:07:18',4),(22,'LF_MDA_CAMPAIGN','Lymphatic Filariasis (LF) Mass Drug Administration Campaign',9,'2026-01-14 15:37:43',1);
/*!40000 ALTER TABLE `form_master` 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 2026-05-18 12:28:09
