{ "generated_at": "2026-04-15 09:54:12", "source": "local-current-db", "tables": { "abdm_api_logs": { "create_sql": "CREATE TABLE IF NOT EXISTS `abdm_api_logs` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `channel` varchar(50) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'bridge', `event_type` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `endpoint` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `http_method` varchar(16) COLLATE utf8mb4_general_ci DEFAULT NULL, `entity_type` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `entity_id` varchar(80) COLLATE utf8mb4_general_ci DEFAULT NULL, `request_json` longtext COLLATE utf8mb4_general_ci, `response_code` int DEFAULT NULL, `response_json` longtext COLLATE utf8mb4_general_ci, `status` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'pending', `error_message` text COLLATE utf8mb4_general_ci, `created_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `channel` (`channel`), KEY `status` (`status`), KEY `event_type` (`event_type`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "bigint unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "channel": { "Field": "channel", "Type": "varchar(50)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": "bridge", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "event_type": { "Field": "event_type", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "endpoint": { "Field": "endpoint", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "http_method": { "Field": "http_method", "Type": "varchar(16)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "entity_type": { "Field": "entity_type", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "entity_id": { "Field": "entity_id", "Type": "varchar(80)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "request_json": { "Field": "request_json", "Type": "longtext", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "response_code": { "Field": "response_code", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "response_json": { "Field": "response_json", "Type": "longtext", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status": { "Field": "status", "Type": "varchar(20)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": "pending", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "error_message": { "Field": "error_message", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "channel": { "name": "channel", "unique": false, "type": "BTREE", "columns": [ "channel" ] }, "status": { "name": "status", "unique": false, "type": "BTREE", "columns": [ "status" ] }, "event_type": { "name": "event_type", "unique": false, "type": "BTREE", "columns": [ "event_type" ] } } }, "abdm_consent_records": { "create_sql": "CREATE TABLE IF NOT EXISTS `abdm_consent_records` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `patient_id` bigint unsigned DEFAULT NULL, `abha_id` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL, `consent_handle` varchar(120) COLLATE utf8mb4_general_ci NOT NULL, `consent_status` varchar(30) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'requested', `purpose_code` varchar(60) COLLATE utf8mb4_general_ci DEFAULT NULL, `requested_at` datetime DEFAULT NULL, `granted_at` datetime DEFAULT NULL, `expires_at` datetime DEFAULT NULL, `raw_payload_json` longtext COLLATE utf8mb4_general_ci, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `patient_id` (`patient_id`), KEY `abha_id` (`abha_id`), KEY `consent_handle` (`consent_handle`), KEY `consent_status` (`consent_status`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "bigint unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "patient_id": { "Field": "patient_id", "Type": "bigint unsigned", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "abha_id": { "Field": "abha_id", "Type": "varchar(30)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "consent_handle": { "Field": "consent_handle", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "consent_status": { "Field": "consent_status", "Type": "varchar(30)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": "requested", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "purpose_code": { "Field": "purpose_code", "Type": "varchar(60)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "requested_at": { "Field": "requested_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "granted_at": { "Field": "granted_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "expires_at": { "Field": "expires_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "raw_payload_json": { "Field": "raw_payload_json", "Type": "longtext", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "patient_id": { "name": "patient_id", "unique": false, "type": "BTREE", "columns": [ "patient_id" ] }, "abha_id": { "name": "abha_id", "unique": false, "type": "BTREE", "columns": [ "abha_id" ] }, "consent_handle": { "name": "consent_handle", "unique": false, "type": "BTREE", "columns": [ "consent_handle" ] }, "consent_status": { "name": "consent_status", "unique": false, "type": "BTREE", "columns": [ "consent_status" ] } } }, "abdm_work_tasks": { "create_sql": "CREATE TABLE IF NOT EXISTS `abdm_work_tasks` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `task_code` varchar(40) COLLATE utf8mb4_general_ci NOT NULL, `task_type` varchar(60) COLLATE utf8mb4_general_ci NOT NULL, `source_module` varchar(40) COLLATE utf8mb4_general_ci DEFAULT NULL, `entity_type` varchar(40) COLLATE utf8mb4_general_ci DEFAULT NULL, `entity_id` varchar(40) COLLATE utf8mb4_general_ci DEFAULT NULL, `patient_id` bigint unsigned DEFAULT NULL, `patient_name` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `abha_id` varchar(60) COLLATE utf8mb4_general_ci DEFAULT NULL, `action_mode` varchar(40) COLLATE utf8mb4_general_ci DEFAULT NULL, `status` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'pending', `priority` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'normal', `payload_json` longtext COLLATE utf8mb4_general_ci, `last_action_result` text COLLATE utf8mb4_general_ci, `completed_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `task_code` (`task_code`), KEY `task_type` (`task_type`), KEY `status` (`status`), KEY `patient_id` (`patient_id`), KEY `entity_type_entity_id` (`entity_type`,`entity_id`) ) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "bigint unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "task_code": { "Field": "task_code", "Type": "varchar(40)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "task_type": { "Field": "task_type", "Type": "varchar(60)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "source_module": { "Field": "source_module", "Type": "varchar(40)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "entity_type": { "Field": "entity_type", "Type": "varchar(40)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "entity_id": { "Field": "entity_id", "Type": "varchar(40)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "patient_id": { "Field": "patient_id", "Type": "bigint unsigned", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "patient_name": { "Field": "patient_name", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "abha_id": { "Field": "abha_id", "Type": "varchar(60)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "action_mode": { "Field": "action_mode", "Type": "varchar(40)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status": { "Field": "status", "Type": "varchar(20)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": "pending", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "priority": { "Field": "priority", "Type": "varchar(20)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": "normal", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payload_json": { "Field": "payload_json", "Type": "longtext", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "last_action_result": { "Field": "last_action_result", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "completed_at": { "Field": "completed_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "task_code": { "name": "task_code", "unique": true, "type": "BTREE", "columns": [ "task_code" ] }, "task_type": { "name": "task_type", "unique": false, "type": "BTREE", "columns": [ "task_type" ] }, "status": { "name": "status", "unique": false, "type": "BTREE", "columns": [ "status" ] }, "patient_id": { "name": "patient_id", "unique": false, "type": "BTREE", "columns": [ "patient_id" ] }, "entity_type_entity_id": { "name": "entity_type_entity_id", "unique": false, "type": "BTREE", "columns": [ "entity_type", "entity_id" ] } } }, "ai_demo_seed_log": { "create_sql": "CREATE TABLE IF NOT EXISTS `ai_demo_seed_log` ( `id` int NOT NULL AUTO_INCREMENT, `seed_name` varchar(120) COLLATE utf32_unicode_ci NOT NULL, `table_name` varchar(120) COLLATE utf32_unicode_ci NOT NULL, `row_id` int NOT NULL, `created_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_seed_name` (`seed_name`), KEY `idx_table_row` (`table_name`,`row_id`) ) ENGINE=MyISAM AUTO_INCREMENT=337 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "seed_name": { "Field": "seed_name", "Type": "varchar(120)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "table_name": { "Field": "table_name", "Type": "varchar(120)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "row_id": { "Field": "row_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "idx_seed_name": { "name": "idx_seed_name", "unique": false, "type": "BTREE", "columns": [ "seed_name" ] }, "idx_table_row": { "name": "idx_table_row", "unique": false, "type": "BTREE", "columns": [ "table_name", "row_id" ] } } }, "auth_groups_users": { "create_sql": "CREATE TABLE IF NOT EXISTS `auth_groups_users` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `user_id` int unsigned NOT NULL, `group` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `created_at` datetime NOT NULL, PRIMARY KEY (`id`), KEY `auth_groups_users_user_id_foreign` (`user_id`), CONSTRAINT `auth_groups_users_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "user_id": { "Field": "user_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "group": { "Field": "group", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "auth_groups_users_user_id_foreign": { "name": "auth_groups_users_user_id_foreign", "unique": false, "type": "BTREE", "columns": [ "user_id" ] } } }, "auth_identities": { "create_sql": "CREATE TABLE IF NOT EXISTS `auth_identities` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `user_id` int unsigned NOT NULL, `type` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `name` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `secret` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `secret2` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `expires` datetime DEFAULT NULL, `extra` text COLLATE utf8mb4_general_ci, `force_reset` tinyint(1) NOT NULL DEFAULT '0', `last_used_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `type_secret` (`type`,`secret`), KEY `user_id` (`user_id`), CONSTRAINT `auth_identities_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "user_id": { "Field": "user_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "type": { "Field": "type", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "name": { "Field": "name", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "secret": { "Field": "secret", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "secret2": { "Field": "secret2", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "expires": { "Field": "expires", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "extra": { "Field": "extra", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "force_reset": { "Field": "force_reset", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "last_used_at": { "Field": "last_used_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "type_secret": { "name": "type_secret", "unique": true, "type": "BTREE", "columns": [ "type", "secret" ] }, "user_id": { "name": "user_id", "unique": false, "type": "BTREE", "columns": [ "user_id" ] } } }, "auth_logins": { "create_sql": "CREATE TABLE IF NOT EXISTS `auth_logins` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `ip_address` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `user_agent` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `id_type` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `identifier` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `user_id` int unsigned DEFAULT NULL, `date` datetime NOT NULL, `success` tinyint(1) NOT NULL, PRIMARY KEY (`id`), KEY `id_type_identifier` (`id_type`,`identifier`), KEY `user_id` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ip_address": { "Field": "ip_address", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "user_agent": { "Field": "user_agent", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "id_type": { "Field": "id_type", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "identifier": { "Field": "identifier", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "user_id": { "Field": "user_id", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "date": { "Field": "date", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "success": { "Field": "success", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "id_type_identifier": { "name": "id_type_identifier", "unique": false, "type": "BTREE", "columns": [ "id_type", "identifier" ] }, "user_id": { "name": "user_id", "unique": false, "type": "BTREE", "columns": [ "user_id" ] } } }, "auth_permissions_users": { "create_sql": "CREATE TABLE IF NOT EXISTS `auth_permissions_users` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `user_id` int unsigned NOT NULL, `permission` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `created_at` datetime NOT NULL, PRIMARY KEY (`id`), KEY `auth_permissions_users_user_id_foreign` (`user_id`), CONSTRAINT `auth_permissions_users_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=71 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "user_id": { "Field": "user_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "permission": { "Field": "permission", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "auth_permissions_users_user_id_foreign": { "name": "auth_permissions_users_user_id_foreign", "unique": false, "type": "BTREE", "columns": [ "user_id" ] } } }, "auth_remember_tokens": { "create_sql": "CREATE TABLE IF NOT EXISTS `auth_remember_tokens` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `selector` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `hashedValidator` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `user_id` int unsigned NOT NULL, `expires` datetime NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `selector` (`selector`), KEY `auth_remember_tokens_user_id_foreign` (`user_id`), CONSTRAINT `auth_remember_tokens_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "selector": { "Field": "selector", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "hashedValidator": { "Field": "hashedValidator", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "user_id": { "Field": "user_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "expires": { "Field": "expires", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "selector": { "name": "selector", "unique": true, "type": "BTREE", "columns": [ "selector" ] }, "auth_remember_tokens_user_id_foreign": { "name": "auth_remember_tokens_user_id_foreign", "unique": false, "type": "BTREE", "columns": [ "user_id" ] } } }, "auth_token_logins": { "create_sql": "CREATE TABLE IF NOT EXISTS `auth_token_logins` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `ip_address` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `user_agent` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `id_type` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `identifier` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `user_id` int unsigned DEFAULT NULL, `date` datetime NOT NULL, `success` tinyint(1) NOT NULL, PRIMARY KEY (`id`), KEY `id_type_identifier` (`id_type`,`identifier`), KEY `user_id` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ip_address": { "Field": "ip_address", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "user_agent": { "Field": "user_agent", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "id_type": { "Field": "id_type", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "identifier": { "Field": "identifier", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "user_id": { "Field": "user_id", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "date": { "Field": "date", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "success": { "Field": "success", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "id_type_identifier": { "name": "id_type_identifier", "unique": false, "type": "BTREE", "columns": [ "id_type", "identifier" ] }, "user_id": { "name": "user_id", "unique": false, "type": "BTREE", "columns": [ "user_id" ] } } }, "ayushman_package_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `ayushman_package_master` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `speciality_code` varchar(50) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', `speciality_name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', `procedure_code` varchar(50) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', `procedure_name` text COLLATE utf8mb4_general_ci, `package_amount` decimal(12,2) NOT NULL DEFAULT '0.00', `preauth_required` tinyint(1) NOT NULL DEFAULT '0', `procedure_type` varchar(50) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', `government_reserved` tinyint(1) NOT NULL DEFAULT '0', `pre_investigations` text COLLATE utf8mb4_general_ci, `post_investigations` text COLLATE utf8mb4_general_ci, `linked_package_id` int unsigned DEFAULT NULL, `source_file` varchar(255) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', `source_sheet` varchar(100) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'Sheet1', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `procedure_code` (`procedure_code`), KEY `speciality_code` (`speciality_code`), KEY `linked_package_id` (`linked_package_id`), KEY `preauth_required` (`preauth_required`) ) ENGINE=InnoDB AUTO_INCREMENT=1402 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "speciality_code": { "Field": "speciality_code", "Type": "varchar(50)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "speciality_name": { "Field": "speciality_name", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "procedure_code": { "Field": "procedure_code", "Type": "varchar(50)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "UNI", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "procedure_name": { "Field": "procedure_name", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "package_amount": { "Field": "package_amount", "Type": "decimal(12,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "preauth_required": { "Field": "preauth_required", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "procedure_type": { "Field": "procedure_type", "Type": "varchar(50)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "government_reserved": { "Field": "government_reserved", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pre_investigations": { "Field": "pre_investigations", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "post_investigations": { "Field": "post_investigations", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "linked_package_id": { "Field": "linked_package_id", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "source_file": { "Field": "source_file", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "source_sheet": { "Field": "source_sheet", "Type": "varchar(100)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": "Sheet1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "procedure_code": { "name": "procedure_code", "unique": true, "type": "BTREE", "columns": [ "procedure_code" ] }, "speciality_code": { "name": "speciality_code", "unique": false, "type": "BTREE", "columns": [ "speciality_code" ] }, "linked_package_id": { "name": "linked_package_id", "unique": false, "type": "BTREE", "columns": [ "linked_package_id" ] }, "preauth_required": { "name": "preauth_required", "unique": false, "type": "BTREE", "columns": [ "preauth_required" ] } } }, "bank_account_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `bank_account_master` ( `bank_id` int NOT NULL AUTO_INCREMENT, `bank_account_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `bank_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `bak_account_no` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`bank_id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "bank_id": { "Field": "bank_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "bank_account_name": { "Field": "bank_account_name", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bank_name": { "Field": "bank_name", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bak_account_no": { "Field": "bak_account_no", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "bank_id" ] } } }, "bed_assignment_history": { "create_sql": "CREATE TABLE IF NOT EXISTS `bed_assignment_history` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int DEFAULT NULL, `bed_id` int DEFAULT NULL, `assignment_type` enum('admission','transfer','discharge') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `assigned_date` datetime DEFAULT NULL, `discharged_date` datetime DEFAULT NULL, `assigned_by` int DEFAULT NULL, `transfer_reason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `transfer_from_bed_id` int DEFAULT NULL, `remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `created_at` datetime DEFAULT CURRENT_TIMESTAMP, `ward_id` int DEFAULT NULL COMMENT 'FK to ward_master', `released_date` datetime DEFAULT NULL COMMENT 'When assignment ended', `total_days` int DEFAULT '0' COMMENT 'Total days in bed', `release_reason` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Reason for release', PRIMARY KEY (`id`), KEY `idx_ipd` (`ipd_id`), KEY `idx_bed` (`bed_id`), KEY `idx_type` (`assignment_type`), KEY `idx_dates` (`assigned_date`,`discharged_date`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bed_id": { "Field": "bed_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "assignment_type": { "Field": "assignment_type", "Type": "enum('admission','transfer','discharge')", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "assigned_date": { "Field": "assigned_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discharged_date": { "Field": "discharged_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "assigned_by": { "Field": "assigned_by", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "transfer_reason": { "Field": "transfer_reason", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "transfer_from_bed_id": { "Field": "transfer_from_bed_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remarks": { "Field": "remarks", "Type": "text", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "ward_id": { "Field": "ward_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "FK to ward_master" }, "released_date": { "Field": "released_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "When assignment ended" }, "total_days": { "Field": "total_days", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "Total days in bed" }, "release_reason": { "Field": "release_reason", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "Reason for release" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "idx_ipd": { "name": "idx_ipd", "unique": false, "type": "BTREE", "columns": [ "ipd_id" ] }, "idx_bed": { "name": "idx_bed", "unique": false, "type": "BTREE", "columns": [ "bed_id" ] }, "idx_type": { "name": "idx_type", "unique": false, "type": "BTREE", "columns": [ "assignment_type" ] }, "idx_dates": { "name": "idx_dates", "unique": false, "type": "BTREE", "columns": [ "assigned_date", "discharged_date" ] } } }, "bed_category_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `bed_category_master` ( `id` int NOT NULL AUTO_INCREMENT, `category_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `category_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `category_type` enum('General','Private','Semi-Private','Deluxe','ICU','NICU','PICU','HDU','ICCU','CCU','Suite','VIP') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `base_charge_per_day` decimal(10,2) DEFAULT '0.00', `nursing_charge_per_day` decimal(10,2) DEFAULT '0.00', `amenities` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `status` enum('active','inactive') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'active', `created_at` datetime DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `category_code` (`category_code`), KEY `idx_type` (`category_type`), KEY `idx_status` (`status`) ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "category_code": { "Field": "category_code", "Type": "varchar(20)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "category_name": { "Field": "category_name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "category_type": { "Field": "category_type", "Type": "enum('General','Private','Semi-Private','Deluxe','ICU','NICU','PICU','HDU','ICCU','CCU','Suite','VIP')", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "base_charge_per_day": { "Field": "base_charge_per_day", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "nursing_charge_per_day": { "Field": "nursing_charge_per_day", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amenities": { "Field": "amenities", "Type": "text", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "description": { "Field": "description", "Type": "text", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status": { "Field": "status", "Type": "enum('active','inactive')", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "MUL", "Default": "active", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "category_code": { "name": "category_code", "unique": true, "type": "BTREE", "columns": [ "category_code" ] }, "idx_type": { "name": "idx_type", "unique": false, "type": "BTREE", "columns": [ "category_type" ] }, "idx_status": { "name": "idx_status", "unique": false, "type": "BTREE", "columns": [ "status" ] } } }, "bed_maintenance_log": { "create_sql": "CREATE TABLE IF NOT EXISTS `bed_maintenance_log` ( `id` int NOT NULL AUTO_INCREMENT, `bed_id` int NOT NULL, `maintenance_type` enum('cleaning','repair','inspection','replacement','sanitization') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `scheduled_date` date DEFAULT NULL, `completed_date` datetime DEFAULT NULL, `performed_by` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `issue_description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `action_taken` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `next_maintenance_date` date DEFAULT NULL, `cost` decimal(10,2) DEFAULT '0.00', `status` enum('pending','in_progress','completed','cancelled') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'pending', `created_by` int DEFAULT NULL, `created_at` datetime DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `idx_bed` (`bed_id`), KEY `idx_type` (`maintenance_type`), KEY `idx_status` (`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "bed_id": { "Field": "bed_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "maintenance_type": { "Field": "maintenance_type", "Type": "enum('cleaning','repair','inspection','replacement','sanitization')", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "scheduled_date": { "Field": "scheduled_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "completed_date": { "Field": "completed_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "performed_by": { "Field": "performed_by", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "issue_description": { "Field": "issue_description", "Type": "text", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "action_taken": { "Field": "action_taken", "Type": "text", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "next_maintenance_date": { "Field": "next_maintenance_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "cost": { "Field": "cost", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status": { "Field": "status", "Type": "enum('pending','in_progress','completed','cancelled')", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "MUL", "Default": "pending", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_by": { "Field": "created_by", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "idx_bed": { "name": "idx_bed", "unique": false, "type": "BTREE", "columns": [ "bed_id" ] }, "idx_type": { "name": "idx_type", "unique": false, "type": "BTREE", "columns": [ "maintenance_type" ] }, "idx_status": { "name": "idx_status", "unique": false, "type": "BTREE", "columns": [ "status" ] } } }, "bed_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `bed_master` ( `id` int NOT NULL AUTO_INCREMENT, `bed_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `bed_number` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `ward_id` int NOT NULL, `bed_category_id` int NOT NULL, `bed_status` enum('available','occupied','reserved','blocked','under_maintenance','cleaning') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'available', `bed_position` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `has_oxygen` tinyint(1) DEFAULT '0', `has_suction` tinyint(1) DEFAULT '0', `has_monitor` tinyint(1) DEFAULT '0', `has_ventilator` tinyint(1) DEFAULT '0', `is_isolation_bed` tinyint(1) DEFAULT '0', `current_ipd_id` int DEFAULT NULL, `occupied_since` datetime DEFAULT NULL, `last_cleaned_at` datetime DEFAULT NULL, `remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `base_charge_override` decimal(10,2) DEFAULT NULL COMMENT 'Override base charge per day (NULL = use category default)', `nursing_charge_override` decimal(10,2) DEFAULT NULL COMMENT 'Override nursing charge per day (NULL = use category default)', `status` enum('active','inactive') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'active', `created_at` datetime DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, `last_occupied_date` datetime DEFAULT NULL COMMENT 'Last time bed was occupied', PRIMARY KEY (`id`), UNIQUE KEY `bed_code` (`bed_code`), UNIQUE KEY `unique_ward_bed` (`ward_id`,`bed_number`), KEY `idx_ward` (`ward_id`), KEY `idx_category` (`bed_category_id`), KEY `idx_bed_status` (`bed_status`), KEY `idx_current_patient` (`current_ipd_id`) ) ENGINE=InnoDB AUTO_INCREMENT=69 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "bed_code": { "Field": "bed_code", "Type": "varchar(20)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bed_number": { "Field": "bed_number", "Type": "varchar(20)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ward_id": { "Field": "ward_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bed_category_id": { "Field": "bed_category_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bed_status": { "Field": "bed_status", "Type": "enum('available','occupied','reserved','blocked','under_maintenance','cleaning')", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "MUL", "Default": "available", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bed_position": { "Field": "bed_position", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "has_oxygen": { "Field": "has_oxygen", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "has_suction": { "Field": "has_suction", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "has_monitor": { "Field": "has_monitor", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "has_ventilator": { "Field": "has_ventilator", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_isolation_bed": { "Field": "is_isolation_bed", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "current_ipd_id": { "Field": "current_ipd_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "occupied_since": { "Field": "occupied_since", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "last_cleaned_at": { "Field": "last_cleaned_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remarks": { "Field": "remarks", "Type": "text", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "base_charge_override": { "Field": "base_charge_override", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "Override base charge per day (NULL = use category default)" }, "nursing_charge_override": { "Field": "nursing_charge_override", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "Override nursing charge per day (NULL = use category default)" }, "status": { "Field": "status", "Type": "enum('active','inactive')", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "active", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "" }, "last_occupied_date": { "Field": "last_occupied_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "Last time bed was occupied" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "bed_code": { "name": "bed_code", "unique": true, "type": "BTREE", "columns": [ "bed_code" ] }, "unique_ward_bed": { "name": "unique_ward_bed", "unique": true, "type": "BTREE", "columns": [ "ward_id", "bed_number" ] }, "idx_ward": { "name": "idx_ward", "unique": false, "type": "BTREE", "columns": [ "ward_id" ] }, "idx_category": { "name": "idx_category", "unique": false, "type": "BTREE", "columns": [ "bed_category_id" ] }, "idx_bed_status": { "name": "idx_bed_status", "unique": false, "type": "BTREE", "columns": [ "bed_status" ] }, "idx_current_patient": { "name": "idx_current_patient", "unique": false, "type": "BTREE", "columns": [ "current_ipd_id" ] } } }, "blood_group": { "create_sql": "CREATE TABLE IF NOT EXISTS `blood_group` ( `id` int NOT NULL AUTO_INCREMENT, `blood_group` varchar(50) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `blood_group` (`blood_group`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "blood_group": { "Field": "blood_group", "Type": "varchar(50)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "blood_group": { "name": "blood_group", "unique": true, "type": "BTREE", "columns": [ "blood_group" ] } } }, "bridge_sync_queue": { "create_sql": "CREATE TABLE IF NOT EXISTS `bridge_sync_queue` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `channel` varchar(50) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'bridge', `event_type` varchar(120) COLLATE utf8mb4_general_ci NOT NULL, `entity_type` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `entity_id` varchar(80) COLLATE utf8mb4_general_ci DEFAULT NULL, `payload_json` longtext COLLATE utf8mb4_general_ci NOT NULL, `payload_hash` char(64) COLLATE utf8mb4_general_ci NOT NULL, `status` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'pending', `attempts` int NOT NULL DEFAULT '0', `max_attempts` int NOT NULL DEFAULT '10', `next_attempt_at` datetime DEFAULT NULL, `last_error` text COLLATE utf8mb4_general_ci, `locked_at` datetime DEFAULT NULL, `locked_by` varchar(80) COLLATE utf8mb4_general_ci DEFAULT NULL, `sent_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `status` (`status`), KEY `next_attempt_at` (`next_attempt_at`), KEY `payload_hash` (`payload_hash`), KEY `channel_event_type` (`channel`,`event_type`) ) ENGINE=MyISAM AUTO_INCREMENT=64 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "bigint unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "channel": { "Field": "channel", "Type": "varchar(50)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": "bridge", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "event_type": { "Field": "event_type", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "entity_type": { "Field": "entity_type", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "entity_id": { "Field": "entity_id", "Type": "varchar(80)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payload_json": { "Field": "payload_json", "Type": "longtext", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payload_hash": { "Field": "payload_hash", "Type": "char(64)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status": { "Field": "status", "Type": "varchar(20)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": "pending", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "attempts": { "Field": "attempts", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "max_attempts": { "Field": "max_attempts", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "10", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "next_attempt_at": { "Field": "next_attempt_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "last_error": { "Field": "last_error", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "locked_at": { "Field": "locked_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "locked_by": { "Field": "locked_by", "Type": "varchar(80)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "sent_at": { "Field": "sent_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "status": { "name": "status", "unique": false, "type": "BTREE", "columns": [ "status" ] }, "next_attempt_at": { "name": "next_attempt_at", "unique": false, "type": "BTREE", "columns": [ "next_attempt_at" ] }, "payload_hash": { "name": "payload_hash", "unique": false, "type": "BTREE", "columns": [ "payload_hash" ] }, "channel_event_type": { "name": "channel_event_type", "unique": false, "type": "BTREE", "columns": [ "channel", "event_type" ] } } }, "clinical_audit_trail": { "create_sql": "CREATE TABLE IF NOT EXISTS `clinical_audit_trail` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `module` varchar(80) COLLATE utf8mb4_general_ci NOT NULL, `record_id` varchar(80) COLLATE utf8mb4_general_ci NOT NULL, `field_name` varchar(80) COLLATE utf8mb4_general_ci NOT NULL, `old_value` text COLLATE utf8mb4_general_ci, `new_value` text COLLATE utf8mb4_general_ci, `user_id` varchar(80) COLLATE utf8mb4_general_ci NOT NULL, `action_at` datetime NOT NULL, `hash` char(64) COLLATE utf8mb4_general_ci NOT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `hash` (`hash`), KEY `module_record_id` (`module`,`record_id`), KEY `action_at` (`action_at`) ) ENGINE=MyISAM AUTO_INCREMENT=1031 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "bigint unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "module": { "Field": "module", "Type": "varchar(80)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "record_id": { "Field": "record_id", "Type": "varchar(80)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "field_name": { "Field": "field_name", "Type": "varchar(80)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "old_value": { "Field": "old_value", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "new_value": { "Field": "new_value", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "user_id": { "Field": "user_id", "Type": "varchar(80)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "action_at": { "Field": "action_at", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "hash": { "Field": "hash", "Type": "char(64)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "hash": { "name": "hash", "unique": true, "type": "BTREE", "columns": [ "hash" ] }, "module_record_id": { "name": "module_record_id", "unique": false, "type": "BTREE", "columns": [ "module", "record_id" ] }, "action_at": { "name": "action_at", "unique": false, "type": "BTREE", "columns": [ "action_at" ] } } }, "color": { "create_sql": "CREATE TABLE IF NOT EXISTS `color` ( `id` int NOT NULL AUTO_INCREMENT, `color_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `code_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `code_code_2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `color_name` (`color_name`) ) ENGINE=InnoDB AUTO_INCREMENT=149 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "color_name": { "Field": "color_name", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "code_code": { "Field": "code_code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "code_code_2": { "Field": "code_code_2", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "color_name": { "name": "color_name", "unique": false, "type": "BTREE", "columns": [ "color_name" ] } } }, "complaints_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `complaints_master` ( `Code` int unsigned NOT NULL, `Name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `show_in_short` tinyint(1) NOT NULL DEFAULT '0', `name_hinglish` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `keywords` text COLLATE utf8mb4_general_ci, `ai_hint` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `is_active` tinyint(1) NOT NULL DEFAULT '1', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`Code`), KEY `show_in_short` (`show_in_short`), KEY `is_active` (`is_active`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "Code": { "Field": "Code", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Name": { "Field": "Name", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "show_in_short": { "Field": "show_in_short", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "name_hinglish": { "Field": "name_hinglish", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "keywords": { "Field": "keywords", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ai_hint": { "Field": "ai_hint", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_active": { "Field": "is_active", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "Code" ] }, "show_in_short": { "name": "show_in_short", "unique": false, "type": "BTREE", "columns": [ "show_in_short" ] }, "is_active": { "name": "is_active", "unique": false, "type": "BTREE", "columns": [ "is_active" ] } } }, "diagnosis_head_name": { "create_sql": "CREATE TABLE IF NOT EXISTS `diagnosis_head_name` ( `d_type` int NOT NULL, `doc_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `doc_edu` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `tech_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `print_format_head_page` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'patient_lab_report_svh', `print_page_direct` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'patient_lab_report_svh', `letter_margin_top` decimal(6,2) DEFAULT '12.00', `letter_margin_left` decimal(6,2) DEFAULT '10.00', `letter_margin_right` decimal(6,2) DEFAULT '10.00', `letter_margin_bottom` decimal(6,2) DEFAULT '12.00', `plain_header_html` longtext COLLATE utf8mb3_unicode_ci, `plain_background_image` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL, `mpdf_prefix_html` longtext COLLATE utf8mb3_unicode_ci, `mpdf_suffix_html` longtext COLLATE utf8mb3_unicode_ci, `patient_info_html` longtext COLLATE utf8mb3_unicode_ci, PRIMARY KEY (`d_type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "d_type": { "Field": "d_type", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_name": { "Field": "doc_name", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_edu": { "Field": "doc_edu", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "tech_name": { "Field": "tech_name", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "print_format_head_page": { "Field": "print_format_head_page", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "patient_lab_report_svh", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "print_page_direct": { "Field": "print_page_direct", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "patient_lab_report_svh", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "letter_margin_top": { "Field": "letter_margin_top", "Type": "decimal(6,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "12.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "letter_margin_left": { "Field": "letter_margin_left", "Type": "decimal(6,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "10.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "letter_margin_right": { "Field": "letter_margin_right", "Type": "decimal(6,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "10.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "letter_margin_bottom": { "Field": "letter_margin_bottom", "Type": "decimal(6,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "12.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "plain_header_html": { "Field": "plain_header_html", "Type": "longtext", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "plain_background_image": { "Field": "plain_background_image", "Type": "varchar(255)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "mpdf_prefix_html": { "Field": "mpdf_prefix_html", "Type": "longtext", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "mpdf_suffix_html": { "Field": "mpdf_suffix_html", "Type": "longtext", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "patient_info_html": { "Field": "patient_info_html", "Type": "longtext", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "d_type" ] } } }, "diagnosis_print_templates": { "create_sql": "CREATE TABLE IF NOT EXISTS `diagnosis_print_templates` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `modality` int NOT NULL DEFAULT '3', `template_name` varchar(120) COLLATE utf8mb4_general_ci NOT NULL, `is_default` tinyint(1) NOT NULL DEFAULT '0', `status` tinyint(1) NOT NULL DEFAULT '1', `page_size` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'A4', `page_margin_top_cm` decimal(6,2) DEFAULT '1.20', `page_margin_bottom_cm` decimal(6,2) DEFAULT '1.20', `page_margin_left_cm` decimal(6,2) DEFAULT '1.00', `page_margin_right_cm` decimal(6,2) DEFAULT '1.00', `margin_header_cm` decimal(6,2) DEFAULT '0.50', `margin_footer_cm` decimal(6,2) DEFAULT '1.50', `page_background_image` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `watermark_type` varchar(10) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'none', `watermark_text` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `watermark_image` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `signature_image` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `watermark_alpha` decimal(4,2) NOT NULL DEFAULT '0.12', `header_html` longtext COLLATE utf8mb4_general_ci, `first_page_header_html` longtext COLLATE utf8mb4_general_ci, `content_prefix_html` longtext COLLATE utf8mb4_general_ci, `content_suffix_html` longtext COLLATE utf8mb4_general_ci, `footer_html` longtext COLLATE utf8mb4_general_ci, `last_page_footer_html` longtext COLLATE utf8mb4_general_ci, `patient_info_html` longtext COLLATE utf8mb4_general_ci, `mpdf_prefix_html` longtext COLLATE utf8mb4_general_ci, `mpdf_suffix_html` longtext COLLATE utf8mb4_general_ci, `created_at` datetime DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `modality_status` (`modality`,`status`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "modality": { "Field": "modality", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "3", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "template_name": { "Field": "template_name", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_default": { "Field": "is_default", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status": { "Field": "status", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "page_size": { "Field": "page_size", "Type": "varchar(20)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": "A4", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "page_margin_top_cm": { "Field": "page_margin_top_cm", "Type": "decimal(6,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "1.20", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "page_margin_bottom_cm": { "Field": "page_margin_bottom_cm", "Type": "decimal(6,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "1.20", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "page_margin_left_cm": { "Field": "page_margin_left_cm", "Type": "decimal(6,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "1.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "page_margin_right_cm": { "Field": "page_margin_right_cm", "Type": "decimal(6,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "1.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "margin_header_cm": { "Field": "margin_header_cm", "Type": "decimal(6,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.50", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "margin_footer_cm": { "Field": "margin_footer_cm", "Type": "decimal(6,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "1.50", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "page_background_image": { "Field": "page_background_image", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "watermark_type": { "Field": "watermark_type", "Type": "varchar(10)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": "none", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "watermark_text": { "Field": "watermark_text", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "watermark_image": { "Field": "watermark_image", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "signature_image": { "Field": "signature_image", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "watermark_alpha": { "Field": "watermark_alpha", "Type": "decimal(4,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.12", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "header_html": { "Field": "header_html", "Type": "longtext", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "first_page_header_html": { "Field": "first_page_header_html", "Type": "longtext", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "content_prefix_html": { "Field": "content_prefix_html", "Type": "longtext", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "content_suffix_html": { "Field": "content_suffix_html", "Type": "longtext", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "footer_html": { "Field": "footer_html", "Type": "longtext", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "last_page_footer_html": { "Field": "last_page_footer_html", "Type": "longtext", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "patient_info_html": { "Field": "patient_info_html", "Type": "longtext", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "mpdf_prefix_html": { "Field": "mpdf_prefix_html", "Type": "longtext", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "mpdf_suffix_html": { "Field": "mpdf_suffix_html", "Type": "longtext", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "modality_status": { "name": "modality_status", "unique": false, "type": "BTREE", "columns": [ "modality", "status" ] } } }, "doc_fee_type": { "create_sql": "CREATE TABLE IF NOT EXISTS `doc_fee_type` ( `id` int NOT NULL AUTO_INCREMENT, `fee_type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "fee_type": { "Field": "fee_type", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "doc_format_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `doc_format_master` ( `df_id` int unsigned NOT NULL AUTO_INCREMENT, `doc_name` varchar(150) NOT NULL, `doc_desc` varchar(255) NOT NULL DEFAULT '', `doc_raw_format` longtext NOT NULL, `default_print_type` tinyint(1) NOT NULL DEFAULT '0', `print_top_margin` decimal(5,2) NOT NULL DEFAULT '6.10', `print_bottom_margin` decimal(5,2) NOT NULL DEFAULT '2.50', `print_left_margin` decimal(5,2) NOT NULL DEFAULT '0.70', `print_right_margin` decimal(5,2) NOT NULL DEFAULT '0.70', `print_header_margin` decimal(5,2) NOT NULL DEFAULT '0.50', `print_footer_margin` decimal(5,2) NOT NULL DEFAULT '1.50', `active` tinyint(1) NOT NULL DEFAULT '1', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`df_id`), KEY `idx_active` (`active`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "df_id": { "Field": "df_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_name": { "Field": "doc_name", "Type": "varchar(150)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_desc": { "Field": "doc_desc", "Type": "varchar(255)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_raw_format": { "Field": "doc_raw_format", "Type": "longtext", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "default_print_type": { "Field": "default_print_type", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "print_top_margin": { "Field": "print_top_margin", "Type": "decimal(5,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "6.10", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "print_bottom_margin": { "Field": "print_bottom_margin", "Type": "decimal(5,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "2.50", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "print_left_margin": { "Field": "print_left_margin", "Type": "decimal(5,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.70", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "print_right_margin": { "Field": "print_right_margin", "Type": "decimal(5,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.70", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "print_header_margin": { "Field": "print_header_margin", "Type": "decimal(5,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.50", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "print_footer_margin": { "Field": "print_footer_margin", "Type": "decimal(5,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "1.50", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "active": { "Field": "active", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "df_id" ] }, "idx_active": { "name": "idx_active", "unique": false, "type": "BTREE", "columns": [ "active" ] } } }, "doc_format_sub": { "create_sql": "CREATE TABLE IF NOT EXISTS `doc_format_sub` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `doc_format_id` int unsigned NOT NULL, `input_name` varchar(120) NOT NULL, `input_code` varchar(80) NOT NULL, `input_type` varchar(20) NOT NULL DEFAULT 'text', `input_default_value` text, `short_order` int NOT NULL DEFAULT '1', `active` tinyint(1) NOT NULL DEFAULT '1', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_doc_format_id` (`doc_format_id`), KEY `idx_doc_format_code` (`doc_format_id`,`input_code`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_format_id": { "Field": "doc_format_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "input_name": { "Field": "input_name", "Type": "varchar(120)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "input_code": { "Field": "input_code", "Type": "varchar(80)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "input_type": { "Field": "input_type", "Type": "varchar(20)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": "text", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "input_default_value": { "Field": "input_default_value", "Type": "text", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "short_order": { "Field": "short_order", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "active": { "Field": "active", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "idx_doc_format_id": { "name": "idx_doc_format_id", "unique": false, "type": "BTREE", "columns": [ "doc_format_id" ] }, "idx_doc_format_code": { "name": "idx_doc_format_code", "unique": false, "type": "BTREE", "columns": [ "doc_format_id", "input_code" ] } } }, "doc_ipd_fee": { "create_sql": "CREATE TABLE IF NOT EXISTS `doc_ipd_fee` ( `id` int NOT NULL AUTO_INCREMENT, `doc_id` int DEFAULT NULL, `doc_fee_type` int DEFAULT NULL, `doc_fee_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `amount` decimal(10,2) DEFAULT NULL, `isdelete` int DEFAULT '0', PRIMARY KEY (`id`), KEY `doc_id` (`doc_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_id": { "Field": "doc_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_fee_type": { "Field": "doc_fee_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_fee_desc": { "Field": "doc_fee_desc", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount": { "Field": "amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "isdelete": { "Field": "isdelete", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "doc_id": { "name": "doc_id", "unique": false, "type": "BTREE", "columns": [ "doc_id" ] } } }, "doc_ipd_fee_type": { "create_sql": "CREATE TABLE IF NOT EXISTS `doc_ipd_fee_type` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `fee_type` varchar(150) COLLATE utf8mb4_general_ci NOT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "fee_type": { "Field": "fee_type", "Type": "varchar(150)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "doc_opd_fee": { "create_sql": "CREATE TABLE IF NOT EXISTS `doc_opd_fee` ( `id` int NOT NULL AUTO_INCREMENT, `doc_id` int DEFAULT NULL, `doc_fee_type` int DEFAULT NULL, `doc_fee_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `amount` decimal(10,2) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `doc_id_doc_fee_type` (`doc_id`,`doc_fee_type`), KEY `doc_id` (`doc_id`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_id": { "Field": "doc_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_fee_type": { "Field": "doc_fee_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_fee_desc": { "Field": "doc_fee_desc", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount": { "Field": "amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "doc_id_doc_fee_type": { "name": "doc_id_doc_fee_type", "unique": true, "type": "BTREE", "columns": [ "doc_id", "doc_fee_type" ] }, "doc_id": { "name": "doc_id", "unique": false, "type": "BTREE", "columns": [ "doc_id" ] } } }, "doc_opd_fee_update": { "create_sql": "CREATE TABLE IF NOT EXISTS `doc_opd_fee_update` ( `del_id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL DEFAULT '0', `doc_id` int DEFAULT NULL, `doc_fee_type` int DEFAULT NULL, `doc_fee_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `amount` decimal(10,2) DEFAULT NULL, `remove_update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`del_id`), KEY `doc_id` (`doc_id`), KEY `id` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=DYNAMIC;", "columns": { "del_id": { "Field": "del_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_id": { "Field": "doc_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_fee_type": { "Field": "doc_fee_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_fee_desc": { "Field": "doc_fee_desc", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount": { "Field": "amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remove_update_by": { "Field": "remove_update_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "del_id" ] }, "doc_id": { "name": "doc_id", "unique": false, "type": "BTREE", "columns": [ "doc_id" ] }, "id": { "name": "id", "unique": false, "type": "BTREE", "columns": [ "id" ] } } }, "doc_print_templates": { "create_sql": "CREATE TABLE IF NOT EXISTS `doc_print_templates` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `template_name` varchar(150) COLLATE utf8mb4_general_ci NOT NULL, `is_default` tinyint(1) NOT NULL DEFAULT '0', `status` tinyint(1) NOT NULL DEFAULT '1', `page_size` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'A4', `print_on_type` tinyint(1) NOT NULL DEFAULT '1', `page_margin_top_cm` decimal(5,2) NOT NULL DEFAULT '6.10', `page_margin_bottom_cm` decimal(5,2) NOT NULL DEFAULT '2.50', `page_margin_left_cm` decimal(5,2) NOT NULL DEFAULT '0.70', `page_margin_right_cm` decimal(5,2) NOT NULL DEFAULT '0.70', `margin_header_cm` decimal(5,2) NOT NULL DEFAULT '0.50', `margin_footer_cm` decimal(5,2) NOT NULL DEFAULT '1.50', `header_html` longtext COLLATE utf8mb4_general_ci, `footer_html` longtext COLLATE utf8mb4_general_ci, `created_at` datetime DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `is_default_status` (`is_default`,`status`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "template_name": { "Field": "template_name", "Type": "varchar(150)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_default": { "Field": "is_default", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status": { "Field": "status", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "page_size": { "Field": "page_size", "Type": "varchar(20)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": "A4", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "print_on_type": { "Field": "print_on_type", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "page_margin_top_cm": { "Field": "page_margin_top_cm", "Type": "decimal(5,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "6.10", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "page_margin_bottom_cm": { "Field": "page_margin_bottom_cm", "Type": "decimal(5,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "2.50", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "page_margin_left_cm": { "Field": "page_margin_left_cm", "Type": "decimal(5,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.70", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "page_margin_right_cm": { "Field": "page_margin_right_cm", "Type": "decimal(5,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.70", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "margin_header_cm": { "Field": "margin_header_cm", "Type": "decimal(5,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.50", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "margin_footer_cm": { "Field": "margin_footer_cm", "Type": "decimal(5,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "1.50", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "header_html": { "Field": "header_html", "Type": "longtext", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "footer_html": { "Field": "footer_html", "Type": "longtext", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "is_default_status": { "name": "is_default_status", "unique": false, "type": "BTREE", "columns": [ "is_default", "status" ] } } }, "doc_spec": { "create_sql": "CREATE TABLE IF NOT EXISTS `doc_spec` ( `id` int NOT NULL AUTO_INCREMENT, `doc_id` int DEFAULT NULL, `med_spec_id` int DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `doc_id_med_spec_id` (`doc_id`,`med_spec_id`), KEY `doc_id_med_spec` (`doc_id`,`med_spec_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_id": { "Field": "doc_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "med_spec_id": { "Field": "med_spec_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "doc_id_med_spec_id": { "name": "doc_id_med_spec_id", "unique": true, "type": "BTREE", "columns": [ "doc_id", "med_spec_id" ] }, "doc_id_med_spec": { "name": "doc_id_med_spec", "unique": false, "type": "BTREE", "columns": [ "doc_id", "med_spec_id" ] } } }, "doctor_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `doctor_master` ( `id` int NOT NULL AUTO_INCREMENT, `p_code` int DEFAULT '0', `p_title` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'Dr.', `p_fname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `p_mname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `p_lname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `doc_sign` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `mphone1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `doctor_reg_no` varchar(80) COLLATE utf8mb3_unicode_ci DEFAULT NULL, `mphone2` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `gender` int DEFAULT '1', `dob` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `zip` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `email1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `email2` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `register_date` datetime DEFAULT NULL, `add1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `add2` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `city` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `state` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `country` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `active` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '1', `login_pin` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '1', `profile_photo` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '1', `opd_print_format` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'opd_print_parcha_svh', `opd_blank_print` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT 'opd_letter_head_print', `opd_cont_paper_print` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL, `opd_valid_no_days` int DEFAULT '5', `rx_pre_print_letter_head_format` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `rx_blank_letter_head` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `rx_plain_paper` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `hpr_id` varchar(40) COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `p_fname_123` (`p_fname`,`p_lname`,`mphone1`,`mphone2`,`email1`,`email2`) ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "p_code": { "Field": "p_code", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_title": { "Field": "p_title", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "Dr.", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_fname": { "Field": "p_fname", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_mname": { "Field": "p_mname", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_lname": { "Field": "p_lname", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_sign": { "Field": "doc_sign", "Type": "varchar(500)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "mphone1": { "Field": "mphone1", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doctor_reg_no": { "Field": "doctor_reg_no", "Type": "varchar(80)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "mphone2": { "Field": "mphone2", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "gender": { "Field": "gender", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dob": { "Field": "dob", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "zip": { "Field": "zip", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "email1": { "Field": "email1", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "email2": { "Field": "email2", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "register_date": { "Field": "register_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "add1": { "Field": "add1", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "add2": { "Field": "add2", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "city": { "Field": "city", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "state": { "Field": "state", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "country": { "Field": "country", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "active": { "Field": "active", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "login_pin": { "Field": "login_pin", "Type": "varchar(10)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "profile_photo": { "Field": "profile_photo", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_print_format": { "Field": "opd_print_format", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "opd_print_parcha_svh", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_blank_print": { "Field": "opd_blank_print", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": "opd_letter_head_print", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_cont_paper_print": { "Field": "opd_cont_paper_print", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_day_care_template": { "Field": "opd_day_care_template", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_valid_no_days": { "Field": "opd_valid_no_days", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "5", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "rx_pre_print_letter_head_format": { "Field": "rx_pre_print_letter_head_format", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "rx_blank_letter_head": { "Field": "rx_blank_letter_head", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "rx_plain_paper": { "Field": "rx_plain_paper", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "hpr_id": { "Field": "hpr_id", "Type": "varchar(40)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "p_fname_123": { "name": "p_fname_123", "unique": false, "type": "BTREE", "columns": [ "p_fname", "p_lname", "mphone1", "mphone2", "email1", "email2" ] } } }, "file_opd_rec": { "create_sql": "CREATE TABLE IF NOT EXISTS `file_opd_rec` ( `id` int NOT NULL AUTO_INCREMENT, `opd_id` int NOT NULL DEFAULT '0', `v_no` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', `file_name` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, `full_path` varchar(500) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `v_no` (`v_no`), KEY `opd_id` (`opd_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_id": { "Field": "opd_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "v_no": { "Field": "v_no", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "UNI", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "file_name": { "Field": "file_name", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "full_path": { "Field": "full_path", "Type": "varchar(500)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "v_no": { "name": "v_no", "unique": true, "type": "BTREE", "columns": [ "v_no" ] }, "opd_id": { "name": "opd_id", "unique": false, "type": "BTREE", "columns": [ "opd_id" ] } } }, "file_upload_data": { "create_sql": "CREATE TABLE IF NOT EXISTS `file_upload_data` ( `id` int NOT NULL AUTO_INCREMENT, `file_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `file_type` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `file_path` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `full_path` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `raw_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `orig_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `client_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `file_ext` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `file_size` decimal(10,4) DEFAULT NULL, `is_image` int DEFAULT NULL, `image_width` int DEFAULT NULL, `image_height` int DEFAULT NULL, `image_type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `image_size_str` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insert_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `store_file_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `file_desc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `pid` int DEFAULT '0', `doc_id` int DEFAULT '0', `doc_type` int DEFAULT '0', `ipd_id` int DEFAULT '0', `case_id` int DEFAULT '0', `repo_id` int DEFAULT '0', `repo_test_id` int DEFAULT '0', `opd_id` int DEFAULT '0', `charge_id` int DEFAULT '0', `charge_type` int DEFAULT '0', `upload_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `upload_by_id` int DEFAULT NULL, `show_type` int DEFAULT '0', `isdelete` int DEFAULT '0', `insert_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `document_type` varchar(80) COLLATE utf8mb3_unicode_ci DEFAULT NULL, `content_description` text COLLATE utf8mb3_unicode_ci, `ai_status` varchar(20) COLLATE utf8mb3_unicode_ci DEFAULT 'pending', `ai_alert_flag` tinyint(1) DEFAULT '0', `ai_alert_text` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "file_name": { "Field": "file_name", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "file_type": { "Field": "file_type", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "file_path": { "Field": "file_path", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "full_path": { "Field": "full_path", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "raw_name": { "Field": "raw_name", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "orig_name": { "Field": "orig_name", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "client_name": { "Field": "client_name", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "file_ext": { "Field": "file_ext", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "file_size": { "Field": "file_size", "Type": "decimal(10,4)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_image": { "Field": "is_image", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "image_width": { "Field": "image_width", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "image_height": { "Field": "image_height", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "image_type": { "Field": "image_type", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "image_size_str": { "Field": "image_size_str", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_date": { "Field": "insert_date", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "store_file_name": { "Field": "store_file_name", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "file_desc": { "Field": "file_desc", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pid": { "Field": "pid", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_id": { "Field": "doc_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_type": { "Field": "doc_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "case_id": { "Field": "case_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "repo_id": { "Field": "repo_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "repo_test_id": { "Field": "repo_test_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_id": { "Field": "opd_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "charge_id": { "Field": "charge_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "charge_type": { "Field": "charge_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "upload_by": { "Field": "upload_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "upload_by_id": { "Field": "upload_by_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "show_type": { "Field": "show_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "isdelete": { "Field": "isdelete", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_time": { "Field": "insert_time", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "document_type": { "Field": "document_type", "Type": "varchar(80)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "content_description": { "Field": "content_description", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ai_status": { "Field": "ai_status", "Type": "varchar(20)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "pending", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ai_alert_flag": { "Field": "ai_alert_flag", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ai_alert_text": { "Field": "ai_alert_text", "Type": "varchar(255)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "finance_bank_deposits": { "create_sql": "CREATE TABLE IF NOT EXISTS `finance_bank_deposits` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `deposit_date` date NOT NULL, `department` varchar(80) COLLATE utf8mb4_general_ci NOT NULL, `bank_name` varchar(120) COLLATE utf8mb4_general_ci NOT NULL, `slip_no` varchar(80) COLLATE utf8mb4_general_ci DEFAULT NULL, `deposited_amount` decimal(12,2) NOT NULL DEFAULT '0.00', `related_scroll_id` int unsigned DEFAULT NULL, `reconciliation_status` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'pending', `remarks` text COLLATE utf8mb4_general_ci, `created_by` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `deposit_date_department` (`deposit_date`,`department`), KEY `reconciliation_status` (`reconciliation_status`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "deposit_date": { "Field": "deposit_date", "Type": "date", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "department": { "Field": "department", "Type": "varchar(80)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bank_name": { "Field": "bank_name", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "slip_no": { "Field": "slip_no", "Type": "varchar(80)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "deposited_amount": { "Field": "deposited_amount", "Type": "decimal(12,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "related_scroll_id": { "Field": "related_scroll_id", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "reconciliation_status": { "Field": "reconciliation_status", "Type": "varchar(20)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": "pending", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remarks": { "Field": "remarks", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_by": { "Field": "created_by", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "deposit_date_department": { "name": "deposit_date_department", "unique": false, "type": "BTREE", "columns": [ "deposit_date", "department" ] }, "reconciliation_status": { "name": "reconciliation_status", "unique": false, "type": "BTREE", "columns": [ "reconciliation_status" ] } } }, "finance_cash_transactions": { "create_sql": "CREATE TABLE IF NOT EXISTS `finance_cash_transactions` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `txn_date` date NOT NULL, `txn_type` varchar(20) COLLATE utf8mb4_general_ci NOT NULL, `flow_type` varchar(20) COLLATE utf8mb4_general_ci NOT NULL, `department` varchar(80) COLLATE utf8mb4_general_ci DEFAULT NULL, `reference_no` varchar(60) COLLATE utf8mb4_general_ci DEFAULT NULL, `amount` decimal(12,2) NOT NULL DEFAULT '0.00', `mode` varchar(20) COLLATE utf8mb4_general_ci NOT NULL, `party_name` varchar(160) COLLATE utf8mb4_general_ci DEFAULT NULL, `narration` text COLLATE utf8mb4_general_ci, `flag_269st` tinyint(1) NOT NULL DEFAULT '0', `flag_40a3` tinyint(1) NOT NULL DEFAULT '0', `is_compliance_hold` tinyint(1) NOT NULL DEFAULT '0', `compliance_note` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `created_by` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `txn_date_txn_type` (`txn_date`,`txn_type`), KEY `department` (`department`), KEY `is_compliance_hold` (`is_compliance_hold`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "txn_date": { "Field": "txn_date", "Type": "date", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "txn_type": { "Field": "txn_type", "Type": "varchar(20)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "flow_type": { "Field": "flow_type", "Type": "varchar(20)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "department": { "Field": "department", "Type": "varchar(80)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "reference_no": { "Field": "reference_no", "Type": "varchar(60)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount": { "Field": "amount", "Type": "decimal(12,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "mode": { "Field": "mode", "Type": "varchar(20)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "party_name": { "Field": "party_name", "Type": "varchar(160)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "narration": { "Field": "narration", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "flag_269st": { "Field": "flag_269st", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "flag_40a3": { "Field": "flag_40a3", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_compliance_hold": { "Field": "is_compliance_hold", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "compliance_note": { "Field": "compliance_note", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_by": { "Field": "created_by", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "txn_date_txn_type": { "name": "txn_date_txn_type", "unique": false, "type": "BTREE", "columns": [ "txn_date", "txn_type" ] }, "department": { "name": "department", "unique": false, "type": "BTREE", "columns": [ "department" ] }, "is_compliance_hold": { "name": "is_compliance_hold", "unique": false, "type": "BTREE", "columns": [ "is_compliance_hold" ] } } }, "finance_doctor_agreements": { "create_sql": "CREATE TABLE IF NOT EXISTS `finance_doctor_agreements` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `doctor_code` varchar(40) COLLATE utf8mb4_general_ci NOT NULL, `doctor_name` varchar(150) COLLATE utf8mb4_general_ci NOT NULL, `specialization` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `consultation_rate` decimal(12,2) NOT NULL DEFAULT '0.00', `surgery_rate` decimal(12,2) NOT NULL DEFAULT '0.00', `agreement_start_date` date DEFAULT NULL, `agreement_end_date` date DEFAULT NULL, `status` tinyint(1) NOT NULL DEFAULT '1', `created_by` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `doctor_code` (`doctor_code`), KEY `doctor_name` (`doctor_name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "doctor_code": { "Field": "doctor_code", "Type": "varchar(40)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doctor_name": { "Field": "doctor_name", "Type": "varchar(150)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "specialization": { "Field": "specialization", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "consultation_rate": { "Field": "consultation_rate", "Type": "decimal(12,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "surgery_rate": { "Field": "surgery_rate", "Type": "decimal(12,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "agreement_start_date": { "Field": "agreement_start_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "agreement_end_date": { "Field": "agreement_end_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status": { "Field": "status", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_by": { "Field": "created_by", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "doctor_code": { "name": "doctor_code", "unique": true, "type": "BTREE", "columns": [ "doctor_code" ] }, "doctor_name": { "name": "doctor_name", "unique": false, "type": "BTREE", "columns": [ "doctor_name" ] } } }, "finance_doctor_payouts": { "create_sql": "CREATE TABLE IF NOT EXISTS `finance_doctor_payouts` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `payout_date` date NOT NULL, `doctor_id` int unsigned NOT NULL, `case_reference` varchar(80) COLLATE utf8mb4_general_ci DEFAULT NULL, `payout_type` varchar(20) COLLATE utf8mb4_general_ci NOT NULL, `units` int NOT NULL DEFAULT '1', `rate` decimal(12,2) NOT NULL DEFAULT '0.00', `calculated_amount` decimal(12,2) NOT NULL DEFAULT '0.00', `approved_amount` decimal(12,2) NOT NULL DEFAULT '0.00', `status` varchar(30) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'draft', `remarks` text COLLATE utf8mb4_general_ci, `hr_submitted_by` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `finance_approved_by` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `finance_approved_at` datetime DEFAULT NULL, `ceo_approved_by` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `ceo_approved_at` datetime DEFAULT NULL, `paid_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `doctor_id_payout_date` (`doctor_id`,`payout_date`), KEY `status` (`status`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "payout_date": { "Field": "payout_date", "Type": "date", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doctor_id": { "Field": "doctor_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "case_reference": { "Field": "case_reference", "Type": "varchar(80)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payout_type": { "Field": "payout_type", "Type": "varchar(20)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "units": { "Field": "units", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "rate": { "Field": "rate", "Type": "decimal(12,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "calculated_amount": { "Field": "calculated_amount", "Type": "decimal(12,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "approved_amount": { "Field": "approved_amount", "Type": "decimal(12,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status": { "Field": "status", "Type": "varchar(30)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": "draft", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remarks": { "Field": "remarks", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "hr_submitted_by": { "Field": "hr_submitted_by", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "finance_approved_by": { "Field": "finance_approved_by", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "finance_approved_at": { "Field": "finance_approved_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ceo_approved_by": { "Field": "ceo_approved_by", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ceo_approved_at": { "Field": "ceo_approved_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "paid_at": { "Field": "paid_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "doctor_id_payout_date": { "name": "doctor_id_payout_date", "unique": false, "type": "BTREE", "columns": [ "doctor_id", "payout_date" ] }, "status": { "name": "status", "unique": false, "type": "BTREE", "columns": [ "status" ] } } }, "finance_grns": { "create_sql": "CREATE TABLE IF NOT EXISTS `finance_grns` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `grn_no` varchar(40) COLLATE utf8mb4_general_ci NOT NULL, `grn_date` date NOT NULL, `po_id` int unsigned NOT NULL, `received_amount` decimal(12,2) NOT NULL DEFAULT '0.00', `received_by` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `remarks` text COLLATE utf8mb4_general_ci, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `grn_no` (`grn_no`), KEY `po_id` (`po_id`), KEY `grn_date` (`grn_date`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "grn_no": { "Field": "grn_no", "Type": "varchar(40)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "grn_date": { "Field": "grn_date", "Type": "date", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "po_id": { "Field": "po_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "received_amount": { "Field": "received_amount", "Type": "decimal(12,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "received_by": { "Field": "received_by", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remarks": { "Field": "remarks", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "grn_no": { "name": "grn_no", "unique": true, "type": "BTREE", "columns": [ "grn_no" ] }, "po_id": { "name": "po_id", "unique": false, "type": "BTREE", "columns": [ "po_id" ] }, "grn_date": { "name": "grn_date", "unique": false, "type": "BTREE", "columns": [ "grn_date" ] } } }, "finance_pharmacy_bills": { "create_sql": "CREATE TABLE IF NOT EXISTS `finance_pharmacy_bills` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `bill_no` varchar(80) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', `bill_date` date DEFAULT NULL, `pharmacy_name` varchar(200) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', `description` varchar(255) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', `bill_amount` decimal(12,2) NOT NULL DEFAULT '0.00', `tax_amount` decimal(12,2) NOT NULL DEFAULT '0.00', `net_amount` decimal(12,2) NOT NULL DEFAULT '0.00', `payment_status` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'pending', `paid_amount` decimal(12,2) NOT NULL DEFAULT '0.00', `payment_date` date DEFAULT NULL, `payment_mode` varchar(40) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', `payment_ref` varchar(120) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', `remarks` text COLLATE utf8mb4_general_ci, `created_by` varchar(120) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `bill_date` (`bill_date`), KEY `payment_status` (`payment_status`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "bill_no": { "Field": "bill_no", "Type": "varchar(80)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bill_date": { "Field": "bill_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pharmacy_name": { "Field": "pharmacy_name", "Type": "varchar(200)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "description": { "Field": "description", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bill_amount": { "Field": "bill_amount", "Type": "decimal(12,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "tax_amount": { "Field": "tax_amount", "Type": "decimal(12,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "net_amount": { "Field": "net_amount", "Type": "decimal(12,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_status": { "Field": "payment_status", "Type": "varchar(20)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": "pending", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "paid_amount": { "Field": "paid_amount", "Type": "decimal(12,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_date": { "Field": "payment_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_mode": { "Field": "payment_mode", "Type": "varchar(40)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_ref": { "Field": "payment_ref", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remarks": { "Field": "remarks", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_by": { "Field": "created_by", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "bill_date": { "name": "bill_date", "unique": false, "type": "BTREE", "columns": [ "bill_date" ] }, "payment_status": { "name": "payment_status", "unique": false, "type": "BTREE", "columns": [ "payment_status" ] } } }, "finance_po_documents": { "create_sql": "CREATE TABLE IF NOT EXISTS `finance_po_documents` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `po_id` int unsigned NOT NULL, `file_name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `file_path` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `uploaded_by` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `created_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `po_id` (`po_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "po_id": { "Field": "po_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "file_name": { "Field": "file_name", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "file_path": { "Field": "file_path", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "uploaded_by": { "Field": "uploaded_by", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "po_id": { "name": "po_id", "unique": false, "type": "BTREE", "columns": [ "po_id" ] } } }, "finance_policy_settings": { "create_sql": "CREATE TABLE IF NOT EXISTS `finance_policy_settings` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `setting_key` varchar(80) COLLATE utf8mb4_general_ci NOT NULL, `setting_value` varchar(120) COLLATE utf8mb4_general_ci NOT NULL, `description` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `setting_key` (`setting_key`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "setting_key": { "Field": "setting_key", "Type": "varchar(80)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "setting_value": { "Field": "setting_value", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "description": { "Field": "description", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "setting_key": { "name": "setting_key", "unique": true, "type": "BTREE", "columns": [ "setting_key" ] } } }, "finance_purchase_orders": { "create_sql": "CREATE TABLE IF NOT EXISTS `finance_purchase_orders` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `po_no` varchar(40) COLLATE utf8mb4_general_ci NOT NULL, `po_date` date NOT NULL, `vendor_id` int unsigned NOT NULL, `department` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL, `amount` decimal(12,2) NOT NULL DEFAULT '0.00', `approval_status` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'draft', `po_document_name` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `po_document_path` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `remarks` text COLLATE utf8mb4_general_ci, `created_by` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `po_no` (`po_no`), KEY `vendor_id` (`vendor_id`), KEY `po_date` (`po_date`), KEY `approval_status` (`approval_status`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "po_no": { "Field": "po_no", "Type": "varchar(40)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "po_date": { "Field": "po_date", "Type": "date", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "vendor_id": { "Field": "vendor_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "department": { "Field": "department", "Type": "varchar(100)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount": { "Field": "amount", "Type": "decimal(12,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "approval_status": { "Field": "approval_status", "Type": "varchar(20)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": "draft", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "po_document_name": { "Field": "po_document_name", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "po_document_path": { "Field": "po_document_path", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remarks": { "Field": "remarks", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_by": { "Field": "created_by", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "po_no": { "name": "po_no", "unique": true, "type": "BTREE", "columns": [ "po_no" ] }, "vendor_id": { "name": "vendor_id", "unique": false, "type": "BTREE", "columns": [ "vendor_id" ] }, "po_date": { "name": "po_date", "unique": false, "type": "BTREE", "columns": [ "po_date" ] }, "approval_status": { "name": "approval_status", "unique": false, "type": "BTREE", "columns": [ "approval_status" ] } } }, "finance_scroll_submissions": { "create_sql": "CREATE TABLE IF NOT EXISTS `finance_scroll_submissions` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `scroll_date` date NOT NULL, `department` varchar(80) COLLATE utf8mb4_general_ci NOT NULL, `total_receipts` decimal(12,2) NOT NULL DEFAULT '0.00', `submitted_amount` decimal(12,2) NOT NULL DEFAULT '0.00', `variance_amount` decimal(12,2) NOT NULL DEFAULT '0.00', `reconciliation_status` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'pending', `submitted_by` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `remarks` text COLLATE utf8mb4_general_ci, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `scroll_date_department` (`scroll_date`,`department`), KEY `reconciliation_status` (`reconciliation_status`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "scroll_date": { "Field": "scroll_date", "Type": "date", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "department": { "Field": "department", "Type": "varchar(80)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "total_receipts": { "Field": "total_receipts", "Type": "decimal(12,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "submitted_amount": { "Field": "submitted_amount", "Type": "decimal(12,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "variance_amount": { "Field": "variance_amount", "Type": "decimal(12,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "reconciliation_status": { "Field": "reconciliation_status", "Type": "varchar(20)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": "pending", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "submitted_by": { "Field": "submitted_by", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remarks": { "Field": "remarks", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "scroll_date_department": { "name": "scroll_date_department", "unique": false, "type": "BTREE", "columns": [ "scroll_date", "department" ] }, "reconciliation_status": { "name": "reconciliation_status", "unique": false, "type": "BTREE", "columns": [ "reconciliation_status" ] } } }, "finance_vendor_invoices": { "create_sql": "CREATE TABLE IF NOT EXISTS `finance_vendor_invoices` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `invoice_no` varchar(40) COLLATE utf8mb4_general_ci NOT NULL, `invoice_date` date NOT NULL, `vendor_id` int unsigned NOT NULL, `po_id` int unsigned DEFAULT NULL, `grn_id` int unsigned DEFAULT NULL, `invoice_amount` decimal(12,2) NOT NULL DEFAULT '0.00', `payment_status` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'pending', `match_status` varchar(20) COLLATE utf8mb4_general_ci DEFAULT 'not_checked', `variance_amount` decimal(12,2) DEFAULT '0.00', `match_note` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `is_compliance_hold` tinyint(1) DEFAULT '0', `match_checked_at` datetime DEFAULT NULL, `remarks` text COLLATE utf8mb4_general_ci, `created_by` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `vendor_id_invoice_date` (`vendor_id`,`invoice_date`), KEY `payment_status` (`payment_status`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "invoice_no": { "Field": "invoice_no", "Type": "varchar(40)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "invoice_date": { "Field": "invoice_date", "Type": "date", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "vendor_id": { "Field": "vendor_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "po_id": { "Field": "po_id", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "grn_id": { "Field": "grn_id", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "invoice_amount": { "Field": "invoice_amount", "Type": "decimal(12,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_status": { "Field": "payment_status", "Type": "varchar(20)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": "pending", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "match_status": { "Field": "match_status", "Type": "varchar(20)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": "not_checked", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "variance_amount": { "Field": "variance_amount", "Type": "decimal(12,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "match_note": { "Field": "match_note", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_compliance_hold": { "Field": "is_compliance_hold", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "match_checked_at": { "Field": "match_checked_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remarks": { "Field": "remarks", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_by": { "Field": "created_by", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "vendor_id_invoice_date": { "name": "vendor_id_invoice_date", "unique": false, "type": "BTREE", "columns": [ "vendor_id", "invoice_date" ] }, "payment_status": { "name": "payment_status", "unique": false, "type": "BTREE", "columns": [ "payment_status" ] } } }, "finance_vendors": { "create_sql": "CREATE TABLE IF NOT EXISTS `finance_vendors` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `vendor_code` varchar(30) COLLATE utf8mb4_general_ci NOT NULL, `vendor_name` varchar(160) COLLATE utf8mb4_general_ci NOT NULL, `contact_person` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `phone` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL, `email` varchar(150) COLLATE utf8mb4_general_ci DEFAULT NULL, `gst_no` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL, `pan_no` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL, `address` text COLLATE utf8mb4_general_ci, `status` tinyint(1) NOT NULL DEFAULT '1', `created_by` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `vendor_code` (`vendor_code`), KEY `vendor_name` (`vendor_name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "vendor_code": { "Field": "vendor_code", "Type": "varchar(30)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "vendor_name": { "Field": "vendor_name", "Type": "varchar(160)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "contact_person": { "Field": "contact_person", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "phone": { "Field": "phone", "Type": "varchar(20)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "email": { "Field": "email", "Type": "varchar(150)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "gst_no": { "Field": "gst_no", "Type": "varchar(20)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pan_no": { "Field": "pan_no", "Type": "varchar(20)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "address": { "Field": "address", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status": { "Field": "status", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_by": { "Field": "created_by", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "vendor_code": { "name": "vendor_code", "unique": true, "type": "BTREE", "columns": [ "vendor_code" ] }, "vendor_name": { "name": "vendor_name", "unique": false, "type": "BTREE", "columns": [ "vendor_name" ] } } }, "h_insurance_group": { "create_sql": "CREATE TABLE IF NOT EXISTS `h_insurance_group` ( `id` int NOT NULL AUTO_INCREMENT, `tpa_group` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, KEY `tpa_group` (`tpa_group`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "tpa_group": { "Field": "tpa_group", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "tpa_group": { "name": "tpa_group", "unique": false, "type": "BTREE", "columns": [ "tpa_group" ] } } }, "hc_department": { "create_sql": "CREATE TABLE IF NOT EXISTS `hc_department` ( `iId` int NOT NULL AUTO_INCREMENT, `vName` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `hc_type_id` int DEFAULT NULL, PRIMARY KEY (`iId`) ) ENGINE=MyISAM AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "iId": { "Field": "iId", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "vName": { "Field": "vName", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "hc_type_id": { "Field": "hc_type_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "iId" ] } } }, "hc_insurance": { "create_sql": "CREATE TABLE IF NOT EXISTS `hc_insurance` ( `id` int NOT NULL AUTO_INCREMENT, `ins_company_name` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `short_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `ins_contact_number` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `ins_contact_person_name` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `ins_email` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `opd_allowed` int DEFAULT '0', `opd_rate_direct` int DEFAULT '0' COMMENT '0 for Master, 1 Spec Rate', `opd_fee` decimal(10,2) DEFAULT '0.00', `opd_desc` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0.00', `opd_master_rate_discount` decimal(10,2) DEFAULT '0.00', `opd_credit` int DEFAULT '0', `opd_cash` int DEFAULT '0', `cash` int DEFAULT '1', `credit` int DEFAULT '1', `path_cash` int DEFAULT '1', `path_credit` int DEFAULT '1', `charge_cash` int DEFAULT '0', `charge_credit` int DEFAULT '0', `charge_rate_direct` int DEFAULT '0' COMMENT '0 for Master,1 Spec Rates', `charge_rate_dicount` decimal(10,2) DEFAULT '0.00', `med_credit` int DEFAULT '0' COMMENT '0 for No,1 Yes', `active` int DEFAULT '1', `group_ins` int DEFAULT '1', `gst_no` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL, `agreement_start_date` date DEFAULT NULL, `agreement_end_date` date DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=75 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ins_company_name": { "Field": "ins_company_name", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "short_name": { "Field": "short_name", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ins_contact_number": { "Field": "ins_contact_number", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ins_contact_person_name": { "Field": "ins_contact_person_name", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ins_email": { "Field": "ins_email", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_allowed": { "Field": "opd_allowed", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_rate_direct": { "Field": "opd_rate_direct", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 for Master, 1 Spec Rate" }, "opd_fee": { "Field": "opd_fee", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_desc": { "Field": "opd_desc", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_master_rate_discount": { "Field": "opd_master_rate_discount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_credit": { "Field": "opd_credit", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_cash": { "Field": "opd_cash", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "cash": { "Field": "cash", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "credit": { "Field": "credit", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "path_cash": { "Field": "path_cash", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "path_credit": { "Field": "path_credit", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "charge_cash": { "Field": "charge_cash", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "charge_credit": { "Field": "charge_credit", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "charge_rate_direct": { "Field": "charge_rate_direct", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 for Master,1 Spec Rates" }, "charge_rate_dicount": { "Field": "charge_rate_dicount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "med_credit": { "Field": "med_credit", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 for No,1 Yes" }, "active": { "Field": "active", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "group_ins": { "Field": "group_ins", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "gst_no": { "Field": "gst_no", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "agreement_start_date": { "Field": "agreement_start_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "agreement_end_date": { "Field": "agreement_end_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "hc_insurance_card": { "create_sql": "CREATE TABLE IF NOT EXISTS `hc_insurance_card` ( `id` int NOT NULL AUTO_INCREMENT, `insurance_id` int DEFAULT NULL, `p_id` int DEFAULT NULL, `insurance_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `card_holder_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `relation_patient_cardholder` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `issue_date` date DEFAULT NULL, `expiry_date` date DEFAULT NULL, `Verified_By` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `active` int DEFAULT '1', PRIMARY KEY (`id`), KEY `insurance_id` (`insurance_id`), KEY `expiry_date` (`expiry_date`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "insurance_id": { "Field": "insurance_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_id": { "Field": "p_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insurance_no": { "Field": "insurance_no", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "card_holder_name": { "Field": "card_holder_name", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "relation_patient_cardholder": { "Field": "relation_patient_cardholder", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "issue_date": { "Field": "issue_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "expiry_date": { "Field": "expiry_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Verified_By": { "Field": "Verified_By", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "active": { "Field": "active", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "insurance_id": { "name": "insurance_id", "unique": false, "type": "BTREE", "columns": [ "insurance_id" ] }, "expiry_date": { "name": "expiry_date", "unique": false, "type": "BTREE", "columns": [ "expiry_date" ] } } }, "hc_insurance_opd": { "create_sql": "CREATE TABLE IF NOT EXISTS `hc_insurance_opd` ( `id` int NOT NULL AUTO_INCREMENT, `insurance_id` int DEFAULT NULL, `opd_fee` decimal(10,2) DEFAULT NULL, PRIMARY KEY (`id`), KEY `FK_hc_insurance_opd_hc_insurance` (`insurance_id`), CONSTRAINT `FK_hc_insurance_opd_hc_insurance` FOREIGN KEY (`insurance_id`) REFERENCES `hc_insurancebak` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "insurance_id": { "Field": "insurance_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_fee": { "Field": "opd_fee", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "FK_hc_insurance_opd_hc_insurance": { "name": "FK_hc_insurance_opd_hc_insurance", "unique": false, "type": "BTREE", "columns": [ "insurance_id" ] } } }, "hc_item_type": { "create_sql": "CREATE TABLE IF NOT EXISTS `hc_item_type` ( `itype_id` int NOT NULL AUTO_INCREMENT, `is_ipd_opd` int NOT NULL DEFAULT '0' COMMENT '1 opd , 2 ipd , 0 Both', `desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `group_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', PRIMARY KEY (`itype_id`) ) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "itype_id": { "Field": "itype_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "is_ipd_opd": { "Field": "is_ipd_opd", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "1 opd , 2 ipd , 0 Both" }, "desc": { "Field": "desc", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "group_desc": { "Field": "group_desc", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "itype_id" ] } } }, "hc_items": { "create_sql": "CREATE TABLE IF NOT EXISTS `hc_items` ( `id` int NOT NULL AUTO_INCREMENT, `itype` int DEFAULT '0', `idesc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `idesc_detail` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `amount` decimal(10,2) DEFAULT '0.00', `amount_r` decimal(10,2) DEFAULT '0.00', `echs_sr_no` int DEFAULT '0', `update_date` datetime DEFAULT NULL, `last_update_desc` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3903 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "itype": { "Field": "itype", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "idesc": { "Field": "idesc", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "idesc_detail": { "Field": "idesc_detail", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount": { "Field": "amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount_r": { "Field": "amount_r", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "echs_sr_no": { "Field": "echs_sr_no", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_date": { "Field": "update_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "last_update_desc": { "Field": "last_update_desc", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "hc_items_insurance": { "create_sql": "CREATE TABLE IF NOT EXISTS `hc_items_insurance` ( `id` int NOT NULL AUTO_INCREMENT, `hc_items_id` int DEFAULT NULL, `hc_insurance_id` int DEFAULT NULL, `amount1` decimal(10,2) DEFAULT NULL, `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `isdelete` int DEFAULT '0', `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, PRIMARY KEY (`id`), UNIQUE KEY `hc_items_id_hc_insurance_id_isdelete` (`hc_items_id`,`hc_insurance_id`), KEY `delete` (`isdelete`) ) ENGINE=InnoDB AUTO_INCREMENT=641 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "hc_items_id": { "Field": "hc_items_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "hc_insurance_id": { "Field": "hc_insurance_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount1": { "Field": "amount1", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "code": { "Field": "code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "isdelete": { "Field": "isdelete", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_history": { "Field": "update_history", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "hc_items_id_hc_insurance_id_isdelete": { "name": "hc_items_id_hc_insurance_id_isdelete", "unique": true, "type": "BTREE", "columns": [ "hc_items_id", "hc_insurance_id" ] }, "delete": { "name": "delete", "unique": false, "type": "BTREE", "columns": [ "isdelete" ] } } }, "hc_items_insurance_update": { "create_sql": "CREATE TABLE IF NOT EXISTS `hc_items_insurance_update` ( `id_ins_update_id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL DEFAULT '0', `hc_items_id` int DEFAULT NULL, `hc_insurance_id` int DEFAULT NULL, `amount1` decimal(10,2) DEFAULT NULL, `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `isdelete` int DEFAULT '0', `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `update_datetime` datetime DEFAULT NULL, `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `action` int DEFAULT NULL, `action_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `action_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id_ins_update_id`), KEY `delete` (`isdelete`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id_ins_update_id": { "Field": "id_ins_update_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "hc_items_id": { "Field": "hc_items_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "hc_insurance_id": { "Field": "hc_insurance_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount1": { "Field": "amount1", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "code": { "Field": "code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "isdelete": { "Field": "isdelete", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_datetime": { "Field": "update_datetime", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_history": { "Field": "update_history", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "action": { "Field": "action", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "action_by": { "Field": "action_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "action_datetime": { "Field": "action_datetime", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id_ins_update_id" ] }, "delete": { "name": "delete", "unique": false, "type": "BTREE", "columns": [ "isdelete" ] } } }, "hc_items_update": { "create_sql": "CREATE TABLE IF NOT EXISTS `hc_items_update` ( `item_rate_update_id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL, `itype` int DEFAULT '0', `idesc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `idesc_detail` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `amount` decimal(10,2) DEFAULT '0.00', `amount_r` decimal(10,2) DEFAULT '0.00', `echs_sr_no` int DEFAULT '0', `update_date` datetime DEFAULT NULL, `last_update_desc` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `action` int DEFAULT '0', `action_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `action_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`item_rate_update_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "item_rate_update_id": { "Field": "item_rate_update_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "itype": { "Field": "itype", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "idesc": { "Field": "idesc", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "idesc_detail": { "Field": "idesc_detail", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount": { "Field": "amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount_r": { "Field": "amount_r", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "echs_sr_no": { "Field": "echs_sr_no", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_date": { "Field": "update_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "last_update_desc": { "Field": "last_update_desc", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "action": { "Field": "action", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "action_by": { "Field": "action_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "action_datetime": { "Field": "action_datetime", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "item_rate_update_id" ] } } }, "hospital_bank": { "create_sql": "CREATE TABLE IF NOT EXISTS `hospital_bank` ( `id` int NOT NULL AUTO_INCREMENT, `bank_name` varchar(50) NOT NULL DEFAULT '0', `bank_ac_no` varchar(50) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "bank_name": { "Field": "bank_name", "Type": "varchar(50)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bank_ac_no": { "Field": "bank_ac_no", "Type": "varchar(50)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "hospital_bank_payment_source": { "create_sql": "CREATE TABLE IF NOT EXISTS `hospital_bank_payment_source` ( `id` int NOT NULL AUTO_INCREMENT, `pay_type` varchar(50) DEFAULT NULL, `bank_id` int DEFAULT '0', PRIMARY KEY (`id`), KEY `FK_hospital_bank_payment_source_hospital_bank` (`bank_id`), CONSTRAINT `FK_hospital_bank_payment_source_hospital_bank` FOREIGN KEY (`bank_id`) REFERENCES `hospital_bank` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "pay_type": { "Field": "pay_type", "Type": "varchar(50)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bank_id": { "Field": "bank_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "FK_hospital_bank_payment_source_hospital_bank": { "name": "FK_hospital_bank_payment_source_hospital_bank", "unique": false, "type": "BTREE", "columns": [ "bank_id" ] } } }, "hospital_setting": { "create_sql": "CREATE TABLE IF NOT EXISTS `hospital_setting` ( `id` int NOT NULL AUTO_INCREMENT, `s_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `s_value` longtext CHARACTER SET utf32 COLLATE utf32_unicode_ci, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=50 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "s_name": { "Field": "s_name", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "s_value": { "Field": "s_value", "Type": "longtext", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "hsm_audit_log": { "create_sql": "CREATE TABLE IF NOT EXISTS `hsm_audit_log` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `module` varchar(60) COLLATE utf8mb4_general_ci NOT NULL, `action` varchar(60) COLLATE utf8mb4_general_ci NOT NULL, `entity_table` varchar(60) COLLATE utf8mb4_general_ci NOT NULL, `entity_id` int unsigned DEFAULT NULL, `description` text COLLATE utf8mb4_general_ci, `meta_json` longtext COLLATE utf8mb4_general_ci, `created_by` int unsigned DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `module` (`module`), KEY `entity_table` (`entity_table`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "module": { "Field": "module", "Type": "varchar(60)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "action": { "Field": "action", "Type": "varchar(60)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "entity_table": { "Field": "entity_table", "Type": "varchar(60)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "entity_id": { "Field": "entity_id", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "description": { "Field": "description", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "meta_json": { "Field": "meta_json", "Type": "longtext", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_by": { "Field": "created_by", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "module": { "name": "module", "unique": false, "type": "BTREE", "columns": [ "module" ] }, "entity_table": { "name": "entity_table", "unique": false, "type": "BTREE", "columns": [ "entity_table" ] } } }, "hsm_categories": { "create_sql": "CREATE TABLE IF NOT EXISTS `hsm_categories` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(120) COLLATE utf8mb4_general_ci NOT NULL, `description` text COLLATE utf8mb4_general_ci, `status` enum('active','inactive') COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'active', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "name": { "Field": "name", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "description": { "Field": "description", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status": { "Field": "status", "Type": "enum('active','inactive')", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": "active", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "name": { "name": "name", "unique": true, "type": "BTREE", "columns": [ "name" ] } } }, "hsm_indent_items": { "create_sql": "CREATE TABLE IF NOT EXISTS `hsm_indent_items` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `indent_id` int unsigned NOT NULL, `item_id` int unsigned NOT NULL, `requested_qty` decimal(14,2) NOT NULL DEFAULT '0.00', `approved_qty` decimal(14,2) NOT NULL DEFAULT '0.00', `issued_qty` decimal(14,2) NOT NULL DEFAULT '0.00', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `indent_id` (`indent_id`), KEY `item_id` (`item_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "indent_id": { "Field": "indent_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_id": { "Field": "item_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "requested_qty": { "Field": "requested_qty", "Type": "decimal(14,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "approved_qty": { "Field": "approved_qty", "Type": "decimal(14,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "issued_qty": { "Field": "issued_qty", "Type": "decimal(14,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "indent_id": { "name": "indent_id", "unique": false, "type": "BTREE", "columns": [ "indent_id" ] }, "item_id": { "name": "item_id", "unique": false, "type": "BTREE", "columns": [ "item_id" ] } } }, "hsm_indents": { "create_sql": "CREATE TABLE IF NOT EXISTS `hsm_indents` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `indent_code` varchar(40) COLLATE utf8mb4_general_ci NOT NULL, `department_name` varchar(120) COLLATE utf8mb4_general_ci NOT NULL, `requested_by` int unsigned DEFAULT NULL, `approved_by` int unsigned DEFAULT NULL, `approved_at` datetime DEFAULT NULL, `remarks` text COLLATE utf8mb4_general_ci, `status` enum('pending','approved','partial_issued','issued','rejected','cancelled') COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'pending', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `indent_code` (`indent_code`), KEY `status` (`status`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "indent_code": { "Field": "indent_code", "Type": "varchar(40)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "department_name": { "Field": "department_name", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "requested_by": { "Field": "requested_by", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "approved_by": { "Field": "approved_by", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "approved_at": { "Field": "approved_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remarks": { "Field": "remarks", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status": { "Field": "status", "Type": "enum('pending','approved','partial_issued','issued','rejected','cancelled')", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": "pending", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "indent_code": { "name": "indent_code", "unique": true, "type": "BTREE", "columns": [ "indent_code" ] }, "status": { "name": "status", "unique": false, "type": "BTREE", "columns": [ "status" ] } } }, "hsm_issue_items": { "create_sql": "CREATE TABLE IF NOT EXISTS `hsm_issue_items` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `issue_id` int unsigned NOT NULL, `item_id` int unsigned NOT NULL, `qty` decimal(14,2) NOT NULL DEFAULT '0.00', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `issue_id` (`issue_id`), KEY `item_id` (`item_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "issue_id": { "Field": "issue_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_id": { "Field": "item_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "qty": { "Field": "qty", "Type": "decimal(14,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "issue_id": { "name": "issue_id", "unique": false, "type": "BTREE", "columns": [ "issue_id" ] }, "item_id": { "name": "item_id", "unique": false, "type": "BTREE", "columns": [ "item_id" ] } } }, "hsm_issues": { "create_sql": "CREATE TABLE IF NOT EXISTS `hsm_issues` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `issue_code` varchar(40) COLLATE utf8mb4_general_ci NOT NULL, `indent_id` int unsigned NOT NULL, `issued_by` int unsigned DEFAULT NULL, `department_name` varchar(120) COLLATE utf8mb4_general_ci NOT NULL, `remarks` text COLLATE utf8mb4_general_ci, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `issue_code` (`issue_code`), KEY `indent_id` (`indent_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "issue_code": { "Field": "issue_code", "Type": "varchar(40)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "indent_id": { "Field": "indent_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "issued_by": { "Field": "issued_by", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "department_name": { "Field": "department_name", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remarks": { "Field": "remarks", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "issue_code": { "name": "issue_code", "unique": true, "type": "BTREE", "columns": [ "issue_code" ] }, "indent_id": { "name": "indent_id", "unique": false, "type": "BTREE", "columns": [ "indent_id" ] } } }, "hsm_items": { "create_sql": "CREATE TABLE IF NOT EXISTS `hsm_items` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `item_code` varchar(40) COLLATE utf8mb4_general_ci NOT NULL, `name` varchar(150) COLLATE utf8mb4_general_ci NOT NULL, `category_id` int unsigned NOT NULL, `item_type` varchar(60) COLLATE utf8mb4_general_ci DEFAULT NULL, `uom` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'Unit', `purchase_uom` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL, `issue_uom` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL, `issue_per_purchase` decimal(14,4) DEFAULT '1.0000', `is_daily_use` tinyint(1) DEFAULT '0', `store_location` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `barcode` varchar(80) COLLATE utf8mb4_general_ci DEFAULT NULL, `qr_code` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `current_stock` decimal(14,2) NOT NULL DEFAULT '0.00', `min_stock_level` decimal(14,2) NOT NULL DEFAULT '0.00', `reorder_level` decimal(14,2) NOT NULL DEFAULT '0.00', `unit_cost` decimal(14,2) NOT NULL DEFAULT '0.00', `expiry_date` date DEFAULT NULL, `status` enum('active','inactive') COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'active', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `item_code` (`item_code`), KEY `name` (`name`), KEY `category_id` (`category_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "item_code": { "Field": "item_code", "Type": "varchar(40)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "name": { "Field": "name", "Type": "varchar(150)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "category_id": { "Field": "category_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_type": { "Field": "item_type", "Type": "varchar(60)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "uom": { "Field": "uom", "Type": "varchar(20)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": "Unit", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "purchase_uom": { "Field": "purchase_uom", "Type": "varchar(30)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "issue_uom": { "Field": "issue_uom", "Type": "varchar(30)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "issue_per_purchase": { "Field": "issue_per_purchase", "Type": "decimal(14,4)", "Collation": null, "Null": "YES", "Key": "", "Default": "1.0000", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_daily_use": { "Field": "is_daily_use", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "store_location": { "Field": "store_location", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "barcode": { "Field": "barcode", "Type": "varchar(80)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "qr_code": { "Field": "qr_code", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "current_stock": { "Field": "current_stock", "Type": "decimal(14,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "min_stock_level": { "Field": "min_stock_level", "Type": "decimal(14,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "reorder_level": { "Field": "reorder_level", "Type": "decimal(14,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "unit_cost": { "Field": "unit_cost", "Type": "decimal(14,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "expiry_date": { "Field": "expiry_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status": { "Field": "status", "Type": "enum('active','inactive')", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": "active", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "item_code": { "name": "item_code", "unique": true, "type": "BTREE", "columns": [ "item_code" ] }, "name": { "name": "name", "unique": false, "type": "BTREE", "columns": [ "name" ] }, "category_id": { "name": "category_id", "unique": false, "type": "BTREE", "columns": [ "category_id" ] } } }, "hsm_purchase_order_items": { "create_sql": "CREATE TABLE IF NOT EXISTS `hsm_purchase_order_items` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `purchase_order_id` int unsigned NOT NULL, `item_id` int unsigned NOT NULL, `ordered_qty` decimal(14,2) NOT NULL DEFAULT '0.00', `received_qty` decimal(14,2) NOT NULL DEFAULT '0.00', `unit_cost` decimal(14,2) NOT NULL DEFAULT '0.00', `expiry_date` date DEFAULT NULL, `batch_no` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `purchase_order_id` (`purchase_order_id`), KEY `item_id` (`item_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "purchase_order_id": { "Field": "purchase_order_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_id": { "Field": "item_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ordered_qty": { "Field": "ordered_qty", "Type": "decimal(14,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "received_qty": { "Field": "received_qty", "Type": "decimal(14,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "unit_cost": { "Field": "unit_cost", "Type": "decimal(14,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "expiry_date": { "Field": "expiry_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "batch_no": { "Field": "batch_no", "Type": "varchar(50)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "purchase_order_id": { "name": "purchase_order_id", "unique": false, "type": "BTREE", "columns": [ "purchase_order_id" ] }, "item_id": { "name": "item_id", "unique": false, "type": "BTREE", "columns": [ "item_id" ] } } }, "hsm_purchase_orders": { "create_sql": "CREATE TABLE IF NOT EXISTS `hsm_purchase_orders` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `po_code` varchar(40) COLLATE utf8mb4_general_ci NOT NULL, `supplier_id` int unsigned NOT NULL, `order_date` date DEFAULT NULL, `expected_date` date DEFAULT NULL, `ordered_by` int unsigned DEFAULT NULL, `status` enum('draft','ordered','partial_received','completed','cancelled') COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'ordered', `remarks` text COLLATE utf8mb4_general_ci, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `po_code` (`po_code`), KEY `supplier_id` (`supplier_id`), KEY `status` (`status`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "po_code": { "Field": "po_code", "Type": "varchar(40)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "supplier_id": { "Field": "supplier_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "order_date": { "Field": "order_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "expected_date": { "Field": "expected_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ordered_by": { "Field": "ordered_by", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status": { "Field": "status", "Type": "enum('draft','ordered','partial_received','completed','cancelled')", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": "ordered", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remarks": { "Field": "remarks", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "po_code": { "name": "po_code", "unique": true, "type": "BTREE", "columns": [ "po_code" ] }, "supplier_id": { "name": "supplier_id", "unique": false, "type": "BTREE", "columns": [ "supplier_id" ] }, "status": { "name": "status", "unique": false, "type": "BTREE", "columns": [ "status" ] } } }, "hsm_stock_ledger": { "create_sql": "CREATE TABLE IF NOT EXISTS `hsm_stock_ledger` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `item_id` int unsigned NOT NULL, `txn_type` enum('purchase','issue','adjustment_in','adjustment_out') COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'adjustment_in', `ref_table` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, `ref_id` int unsigned DEFAULT NULL, `qty_in` decimal(14,2) NOT NULL DEFAULT '0.00', `qty_out` decimal(14,2) NOT NULL DEFAULT '0.00', `balance_after` decimal(14,2) NOT NULL DEFAULT '0.00', `remarks` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `created_by` int unsigned DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `item_id` (`item_id`), KEY `txn_type` (`txn_type`), KEY `created_at` (`created_at`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "item_id": { "Field": "item_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "txn_type": { "Field": "txn_type", "Type": "enum('purchase','issue','adjustment_in','adjustment_out')", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": "adjustment_in", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ref_table": { "Field": "ref_table", "Type": "varchar(50)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ref_id": { "Field": "ref_id", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "qty_in": { "Field": "qty_in", "Type": "decimal(14,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "qty_out": { "Field": "qty_out", "Type": "decimal(14,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "balance_after": { "Field": "balance_after", "Type": "decimal(14,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remarks": { "Field": "remarks", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_by": { "Field": "created_by", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "item_id": { "name": "item_id", "unique": false, "type": "BTREE", "columns": [ "item_id" ] }, "txn_type": { "name": "txn_type", "unique": false, "type": "BTREE", "columns": [ "txn_type" ] }, "created_at": { "name": "created_at", "unique": false, "type": "BTREE", "columns": [ "created_at" ] } } }, "hsm_suppliers": { "create_sql": "CREATE TABLE IF NOT EXISTS `hsm_suppliers` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(150) COLLATE utf8mb4_general_ci NOT NULL, `contact_person` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `phone` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL, `email` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `address` text COLLATE utf8mb4_general_ci, `gst_no` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL, `status` enum('active','inactive') COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'active', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `name` (`name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "name": { "Field": "name", "Type": "varchar(150)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "contact_person": { "Field": "contact_person", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "phone": { "Field": "phone", "Type": "varchar(30)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "email": { "Field": "email", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "address": { "Field": "address", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "gst_no": { "Field": "gst_no", "Type": "varchar(30)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status": { "Field": "status", "Type": "enum('active','inactive')", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": "active", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "name": { "name": "name", "unique": false, "type": "BTREE", "columns": [ "name" ] } } }, "india_state": { "create_sql": "CREATE TABLE IF NOT EXISTS `india_state` ( `id` int NOT NULL, `state_name` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "state_name": { "Field": "state_name", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "inv_med_group": { "create_sql": "CREATE TABLE IF NOT EXISTS `inv_med_group` ( `med_group_id` int NOT NULL AUTO_INCREMENT, `ipd_id` int DEFAULT NULL, `med_type` int DEFAULT '1' COMMENT '1 for Cash,2 for IPD Credit,3 for IPD Package', `p_id` int DEFAULT '1', `discount_group` decimal(10,2) DEFAULT '0.00', `discount_group_2` decimal(10,2) DEFAULT '0.00', `discount_remark_group` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `discount_by_group` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `gross_amount` decimal(10,2) DEFAULT '0.00', `discount_amount` decimal(10,2) DEFAULT '0.00', `item_discount_amount` decimal(10,2) DEFAULT '0.00', `CGST_Tamount` decimal(10,2) DEFAULT '0.00', `SGST_Tamount` decimal(10,2) DEFAULT '0.00', `tax_total` decimal(10,2) DEFAULT '0.00', `net_amount` decimal(10,2) DEFAULT '0.00', `TaxableAmount` decimal(10,2) DEFAULT '0.00', `payment_received` decimal(10,2) DEFAULT '0.00', `payment_balance` decimal(10,2) DEFAULT '0.00', `bill_final` int DEFAULT '0', `bill_final_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', PRIMARY KEY (`med_group_id`), UNIQUE KEY `ipd_id_med_type` (`ipd_id`,`med_type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "med_group_id": { "Field": "med_group_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "med_type": { "Field": "med_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "1 for Cash,2 for IPD Credit,3 for IPD Package" }, "p_id": { "Field": "p_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discount_group": { "Field": "discount_group", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discount_group_2": { "Field": "discount_group_2", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discount_remark_group": { "Field": "discount_remark_group", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discount_by_group": { "Field": "discount_by_group", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "gross_amount": { "Field": "gross_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discount_amount": { "Field": "discount_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_discount_amount": { "Field": "item_discount_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "CGST_Tamount": { "Field": "CGST_Tamount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "SGST_Tamount": { "Field": "SGST_Tamount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "tax_total": { "Field": "tax_total", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "net_amount": { "Field": "net_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "TaxableAmount": { "Field": "TaxableAmount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_received": { "Field": "payment_received", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_balance": { "Field": "payment_balance", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bill_final": { "Field": "bill_final", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bill_final_by": { "Field": "bill_final_by", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "med_group_id" ] }, "ipd_id_med_type": { "name": "ipd_id_med_type", "unique": true, "type": "BTREE", "columns": [ "ipd_id", "med_type" ] } } }, "inv_med_item": { "create_sql": "CREATE TABLE IF NOT EXISTS `inv_med_item` ( `id` int NOT NULL AUTO_INCREMENT, `inv_med_id` int NOT NULL DEFAULT '0', `item_code` int DEFAULT '0' COMMENT 'master_product_id', `sale_return` int DEFAULT '0', `return_item_id` int DEFAULT '0', `store_stock_id` int DEFAULT '0' COMMENT 'store_id, old is ssno', `purchase_item_id` int DEFAULT '0', `item_Name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `formulation` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `qty` int DEFAULT '0', `batch_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `expiry` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `price` decimal(10,2) DEFAULT '0.00', `price2` decimal(10,2) DEFAULT '0.00', `cost_price` decimal(10,2) DEFAULT '0.00', `mrp` decimal(10,2) DEFAULT '0.00', `packing` decimal(10,2) DEFAULT '0.00', `disc_per` decimal(10,2) DEFAULT '0.00', `disc_amount` decimal(10,2) DEFAULT '0.00', `HSNCODE` decimal(10,0) DEFAULT '0', `CGST_per` decimal(10,2) DEFAULT '0.00', `SGST_per` decimal(10,2) DEFAULT '0.00', `IGST_per` decimal(10,2) DEFAULT '0.00', `amount` decimal(10,2) DEFAULT '0.00', `tamount` decimal(10,2) DEFAULT '0.00', `disc_whole` decimal(10,2) DEFAULT '0.00', `twdisc_amount` decimal(10,2) DEFAULT '0.00', `TaxableAmount` decimal(10,2) DEFAULT '0.00', `CGST` decimal(10,2) DEFAULT '0.00', `SGST` decimal(10,2) DEFAULT '0.00', `IGST` decimal(10,2) DEFAULT '0.00', `update_by_id` int DEFAULT NULL, `update_by_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `item_code` (`item_code`), KEY `item_Name` (`item_Name`), KEY `inv_med_id` (`inv_med_id`), KEY `store_stock_id` (`store_stock_id`), KEY `update_by_id` (`update_by_id`), KEY `purchase_item_id` (`purchase_item_id`), KEY `sale_return` (`sale_return`), KEY `idx_imi_invoice_item` (`inv_med_id`,`item_code`), KEY `idx_imi_item_code` (`item_code`), KEY `idx_imi_sale_return` (`sale_return`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "inv_med_id": { "Field": "inv_med_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_code": { "Field": "item_code", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "master_product_id" }, "sale_return": { "Field": "sale_return", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "return_item_id": { "Field": "return_item_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "store_stock_id": { "Field": "store_stock_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "store_id, old is ssno" }, "purchase_item_id": { "Field": "purchase_item_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_Name": { "Field": "item_Name", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "formulation": { "Field": "formulation", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "qty": { "Field": "qty", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "batch_no": { "Field": "batch_no", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "expiry": { "Field": "expiry", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "price": { "Field": "price", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "price2": { "Field": "price2", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "cost_price": { "Field": "cost_price", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "mrp": { "Field": "mrp", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "packing": { "Field": "packing", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "disc_per": { "Field": "disc_per", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "disc_amount": { "Field": "disc_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "HSNCODE": { "Field": "HSNCODE", "Type": "decimal(10,0)", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "CGST_per": { "Field": "CGST_per", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "SGST_per": { "Field": "SGST_per", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "IGST_per": { "Field": "IGST_per", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount": { "Field": "amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "tamount": { "Field": "tamount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "disc_whole": { "Field": "disc_whole", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "twdisc_amount": { "Field": "twdisc_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "TaxableAmount": { "Field": "TaxableAmount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "CGST": { "Field": "CGST", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "SGST": { "Field": "SGST", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "IGST": { "Field": "IGST", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by_id": { "Field": "update_by_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by_remark": { "Field": "update_by_remark", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "item_code": { "name": "item_code", "unique": false, "type": "BTREE", "columns": [ "item_code" ] }, "item_Name": { "name": "item_Name", "unique": false, "type": "BTREE", "columns": [ "item_Name" ] }, "inv_med_id": { "name": "inv_med_id", "unique": false, "type": "BTREE", "columns": [ "inv_med_id" ] }, "store_stock_id": { "name": "store_stock_id", "unique": false, "type": "BTREE", "columns": [ "store_stock_id" ] }, "update_by_id": { "name": "update_by_id", "unique": false, "type": "BTREE", "columns": [ "update_by_id" ] }, "purchase_item_id": { "name": "purchase_item_id", "unique": false, "type": "BTREE", "columns": [ "purchase_item_id" ] }, "sale_return": { "name": "sale_return", "unique": false, "type": "BTREE", "columns": [ "sale_return" ] }, "idx_imi_invoice_item": { "name": "idx_imi_invoice_item", "unique": false, "type": "BTREE", "columns": [ "inv_med_id", "item_code" ] }, "idx_imi_item_code": { "name": "idx_imi_item_code", "unique": false, "type": "BTREE", "columns": [ "item_code" ] }, "idx_imi_sale_return": { "name": "idx_imi_sale_return", "unique": false, "type": "BTREE", "columns": [ "sale_return" ] } } }, "inv_med_item_delete": { "create_sql": "CREATE TABLE IF NOT EXISTS `inv_med_item_delete` ( `r_id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL, `inv_med_id` int NOT NULL DEFAULT '0', `item_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `store_stock_id` int DEFAULT '0' COMMENT 'store_id, old is ssno', `purchase_item_id` int DEFAULT '0', `return_item_id` int DEFAULT '0', `sale_return` int DEFAULT '0' COMMENT '0 Sale , 1 Return', `item_Name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `formulation` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `qty` int DEFAULT '0', `batch_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `expiry` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `price` decimal(10,2) DEFAULT '0.00', `price2` decimal(10,2) DEFAULT '0.00', `cost_price` decimal(10,2) DEFAULT '0.00', `mrp` decimal(10,2) DEFAULT '0.00', `packing` decimal(10,2) DEFAULT '0.00', `disc_per` decimal(10,2) DEFAULT '0.00', `disc_amount` decimal(10,2) DEFAULT '0.00', `HSNCODE` decimal(10,0) DEFAULT '0', `CGST_per` decimal(10,2) DEFAULT '0.00', `SGST_per` decimal(10,2) DEFAULT '0.00', `IGST_per` decimal(10,2) DEFAULT '0.00', `amount` decimal(10,2) DEFAULT '0.00', `tamount` decimal(10,2) DEFAULT '0.00', `disc_whole` decimal(10,2) DEFAULT '0.00', `twdisc_amount` decimal(10,2) DEFAULT '0.00', `TaxableAmount` decimal(10,2) DEFAULT '0.00', `CGST` decimal(10,2) DEFAULT '0.00', `SGST` decimal(10,2) DEFAULT '0.00', `IGST` decimal(10,2) DEFAULT '0.00', `update_by_id` int DEFAULT NULL, `update_by_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `ss_no` int DEFAULT '0', `insert_datetime` date DEFAULT NULL, `delete_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `delete_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`r_id`) USING BTREE, KEY `item_code` (`item_code`) USING BTREE, KEY `item_Name` (`item_Name`) USING BTREE, KEY `inv_med_id` (`inv_med_id`) USING BTREE, KEY `ss_no` (`ss_no`) USING BTREE, KEY `id_inv_med_id_item_code_store_stock_id` (`id`,`inv_med_id`,`item_code`,`store_stock_id`) USING BTREE, KEY `store_stock_id_ss_no` (`store_stock_id`,`ss_no`) USING BTREE, KEY `item_code_sale_return_item_Name_batch_no_mrp_packing` (`item_code`,`sale_return`,`item_Name`,`batch_no`,`mrp`,`packing`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "r_id": { "Field": "r_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "inv_med_id": { "Field": "inv_med_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_code": { "Field": "item_code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "store_stock_id": { "Field": "store_stock_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "store_id, old is ssno" }, "purchase_item_id": { "Field": "purchase_item_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "return_item_id": { "Field": "return_item_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "sale_return": { "Field": "sale_return", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 Sale , 1 Return" }, "item_Name": { "Field": "item_Name", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "formulation": { "Field": "formulation", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "qty": { "Field": "qty", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "batch_no": { "Field": "batch_no", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "expiry": { "Field": "expiry", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "price": { "Field": "price", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "price2": { "Field": "price2", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "cost_price": { "Field": "cost_price", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "mrp": { "Field": "mrp", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "packing": { "Field": "packing", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "disc_per": { "Field": "disc_per", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "disc_amount": { "Field": "disc_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "HSNCODE": { "Field": "HSNCODE", "Type": "decimal(10,0)", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "CGST_per": { "Field": "CGST_per", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "SGST_per": { "Field": "SGST_per", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "IGST_per": { "Field": "IGST_per", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount": { "Field": "amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "tamount": { "Field": "tamount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "disc_whole": { "Field": "disc_whole", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "twdisc_amount": { "Field": "twdisc_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "TaxableAmount": { "Field": "TaxableAmount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "CGST": { "Field": "CGST", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "SGST": { "Field": "SGST", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "IGST": { "Field": "IGST", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by_id": { "Field": "update_by_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by_remark": { "Field": "update_by_remark", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ss_no": { "Field": "ss_no", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_datetime": { "Field": "insert_datetime", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "delete_time": { "Field": "delete_time", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "delete_by": { "Field": "delete_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "r_id" ] }, "item_code": { "name": "item_code", "unique": false, "type": "BTREE", "columns": [ "item_code" ] }, "item_Name": { "name": "item_Name", "unique": false, "type": "BTREE", "columns": [ "item_Name" ] }, "inv_med_id": { "name": "inv_med_id", "unique": false, "type": "BTREE", "columns": [ "inv_med_id" ] }, "ss_no": { "name": "ss_no", "unique": false, "type": "BTREE", "columns": [ "ss_no" ] }, "id_inv_med_id_item_code_store_stock_id": { "name": "id_inv_med_id_item_code_store_stock_id", "unique": false, "type": "BTREE", "columns": [ "id", "inv_med_id", "item_code", "store_stock_id" ] }, "store_stock_id_ss_no": { "name": "store_stock_id_ss_no", "unique": false, "type": "BTREE", "columns": [ "store_stock_id", "ss_no" ] }, "item_code_sale_return_item_Name_batch_no_mrp_packing": { "name": "item_code_sale_return_item_Name_batch_no_mrp_packing", "unique": false, "type": "BTREE", "columns": [ "item_code", "sale_return", "item_Name", "batch_no", "mrp", "packing" ] } } }, "inv_med_item_return": { "create_sql": "CREATE TABLE IF NOT EXISTS `inv_med_item_return` ( `id` int NOT NULL AUTO_INCREMENT, `inv_item_id` int NOT NULL DEFAULT '0', `packing` int NOT NULL DEFAULT '0', `inv_med_id` int NOT NULL DEFAULT '0', `purchase_item_id` int NOT NULL DEFAULT '0', `return_item_id` int NOT NULL DEFAULT '0', `sale_return` int NOT NULL DEFAULT '0', `item_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `item_Name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `formulation` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `qty` int DEFAULT '0', `r_qty` int DEFAULT '0', `batch_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `expiry` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `price` decimal(10,2) DEFAULT '0.00', `price2` decimal(10,2) DEFAULT '0.00', `cost_price` decimal(10,2) DEFAULT '0.00', `mrp` decimal(10,2) DEFAULT '0.00', `disc_per` decimal(10,2) DEFAULT '0.00', `disc_amount` decimal(10,2) DEFAULT '0.00', `HSNCODE` decimal(10,0) DEFAULT '0', `CGST_per` decimal(10,2) DEFAULT '0.00', `SGST_per` decimal(10,2) DEFAULT '0.00', `IGST_per` decimal(10,2) DEFAULT '0.00', `store_stock_id` int DEFAULT '0', `amount` decimal(10,2) DEFAULT '0.00', `tamount` decimal(10,2) DEFAULT '0.00', `disc_whole` decimal(10,2) DEFAULT '0.00', `twdisc_amount` decimal(10,2) DEFAULT '0.00', `TaxableAmount` decimal(10,2) DEFAULT '0.00', `CGST` decimal(10,2) DEFAULT '0.00', `SGST` decimal(10,2) DEFAULT '0.00', `IGST` decimal(10,2) DEFAULT '0.00', `update_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `return_status` int DEFAULT '0', `return_date_time` datetime DEFAULT CURRENT_TIMESTAMP, `update_by_id` int DEFAULT NULL, `update_by_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, PRIMARY KEY (`id`), KEY `item_code` (`item_code`), KEY `item_Name` (`item_Name`), KEY `inv_med_id` (`inv_med_id`), KEY `inv_item_id` (`inv_item_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "inv_item_id": { "Field": "inv_item_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "packing": { "Field": "packing", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "inv_med_id": { "Field": "inv_med_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "purchase_item_id": { "Field": "purchase_item_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "return_item_id": { "Field": "return_item_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "sale_return": { "Field": "sale_return", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_code": { "Field": "item_code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_Name": { "Field": "item_Name", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "formulation": { "Field": "formulation", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "qty": { "Field": "qty", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "r_qty": { "Field": "r_qty", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "batch_no": { "Field": "batch_no", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "expiry": { "Field": "expiry", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "price": { "Field": "price", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "price2": { "Field": "price2", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "cost_price": { "Field": "cost_price", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "mrp": { "Field": "mrp", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "disc_per": { "Field": "disc_per", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "disc_amount": { "Field": "disc_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "HSNCODE": { "Field": "HSNCODE", "Type": "decimal(10,0)", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "CGST_per": { "Field": "CGST_per", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "SGST_per": { "Field": "SGST_per", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "IGST_per": { "Field": "IGST_per", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "store_stock_id": { "Field": "store_stock_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount": { "Field": "amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "tamount": { "Field": "tamount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "disc_whole": { "Field": "disc_whole", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "twdisc_amount": { "Field": "twdisc_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "TaxableAmount": { "Field": "TaxableAmount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "CGST": { "Field": "CGST", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "SGST": { "Field": "SGST", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "IGST": { "Field": "IGST", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_remark": { "Field": "update_remark", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "return_status": { "Field": "return_status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "return_date_time": { "Field": "return_date_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by_id": { "Field": "update_by_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by_remark": { "Field": "update_by_remark", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "item_code": { "name": "item_code", "unique": false, "type": "BTREE", "columns": [ "item_code" ] }, "item_Name": { "name": "item_Name", "unique": false, "type": "BTREE", "columns": [ "item_Name" ] }, "inv_med_id": { "name": "inv_med_id", "unique": false, "type": "BTREE", "columns": [ "inv_med_id" ] }, "inv_item_id": { "name": "inv_item_id", "unique": false, "type": "BTREE", "columns": [ "inv_item_id" ] } } }, "investigation": { "create_sql": "CREATE TABLE IF NOT EXISTS `investigation` ( `Code` int NOT NULL AUTO_INCREMENT, `Name` varchar(100) NOT NULL, `short_name` varchar(100) NOT NULL, `sort_id` int DEFAULT '0', `Template` tinyint(1) DEFAULT NULL, `General` tinyint(1) DEFAULT NULL, `Description` longtext, `ResultType` int DEFAULT '1', `mUnit` varchar(30) DEFAULT NULL, `NormalNumFrom` double DEFAULT '0', `NormalNumTo` double DEFAULT '0', `NormalPositive` int DEFAULT '0', `NormalYes` int DEFAULT '0', `Amount` int DEFAULT '0', `Remarks` longtext, `SpecimenReq` varchar(50) DEFAULT NULL, `Container` varchar(50) DEFAULT NULL, `Qty` varchar(50) DEFAULT NULL, `CutOff` varchar(50) DEFAULT NULL, `ReportingTime` varchar(50) DEFAULT NULL, `LastUpdateOn` datetime DEFAULT NULL, `LastUpdateID` int DEFAULT '0', `is_favourite` tinyint(1) NOT NULL DEFAULT '0', `spec_ids` varchar(500) DEFAULT NULL, `category_name` varchar(100) DEFAULT NULL, PRIMARY KEY (`Code`), UNIQUE KEY `Code` (`Code`), UNIQUE KEY `Name` (`Name`), KEY `short_name` (`short_name`), KEY `sort_id` (`sort_id`) ) ENGINE=MyISAM AUTO_INCREMENT=689 DEFAULT CHARSET=utf8mb3;", "columns": { "Code": { "Field": "Code", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "Name": { "Field": "Name", "Type": "varchar(100)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "short_name": { "Field": "short_name", "Type": "varchar(100)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "sort_id": { "Field": "sort_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Template": { "Field": "Template", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "General": { "Field": "General", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Description": { "Field": "Description", "Type": "longtext", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ResultType": { "Field": "ResultType", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "mUnit": { "Field": "mUnit", "Type": "varchar(30)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "NormalNumFrom": { "Field": "NormalNumFrom", "Type": "double", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "NormalNumTo": { "Field": "NormalNumTo", "Type": "double", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "NormalPositive": { "Field": "NormalPositive", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "NormalYes": { "Field": "NormalYes", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Amount": { "Field": "Amount", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Remarks": { "Field": "Remarks", "Type": "longtext", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "SpecimenReq": { "Field": "SpecimenReq", "Type": "varchar(50)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Container": { "Field": "Container", "Type": "varchar(50)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Qty": { "Field": "Qty", "Type": "varchar(50)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "CutOff": { "Field": "CutOff", "Type": "varchar(50)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ReportingTime": { "Field": "ReportingTime", "Type": "varchar(50)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "LastUpdateOn": { "Field": "LastUpdateOn", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "LastUpdateID": { "Field": "LastUpdateID", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_favourite": { "Field": "is_favourite", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "spec_ids": { "Field": "spec_ids", "Type": "varchar(500)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "category_name": { "Field": "category_name", "Type": "varchar(100)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "Code" ] }, "Code": { "name": "Code", "unique": true, "type": "BTREE", "columns": [ "Code" ] }, "Name": { "name": "Name", "unique": true, "type": "BTREE", "columns": [ "Name" ] }, "short_name": { "name": "short_name", "unique": false, "type": "BTREE", "columns": [ "short_name" ] }, "sort_id": { "name": "sort_id", "unique": false, "type": "BTREE", "columns": [ "sort_id" ] } } }, "invoice_item": { "create_sql": "CREATE TABLE IF NOT EXISTS `invoice_item` ( `id` int NOT NULL AUTO_INCREMENT, `inv_master_id` int DEFAULT '0', `item_type` int DEFAULT '0', `item_id` int DEFAULT '0', `item_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `item_rate` decimal(10,2) DEFAULT '0.00', `ins_id` int DEFAULT '0', `org_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `item_added_date` datetime DEFAULT '0000-00-00 00:00:00', `item_qty` decimal(10,2) DEFAULT '0.00', `item_amount` decimal(10,2) DEFAULT '0.00', `item_amount1` decimal(10,2) DEFAULT '0.00', PRIMARY KEY (`id`), KEY `inv_master_id_item_type_item_id_ins_id_org_code` (`inv_master_id`,`item_type`,`item_id`,`ins_id`,`org_code`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "inv_master_id": { "Field": "inv_master_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_type": { "Field": "item_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_id": { "Field": "item_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_name": { "Field": "item_name", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_rate": { "Field": "item_rate", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ins_id": { "Field": "ins_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "org_code": { "Field": "org_code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_added_date": { "Field": "item_added_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": "0000-00-00 00:00:00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_qty": { "Field": "item_qty", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_amount": { "Field": "item_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_amount1": { "Field": "item_amount1", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "inv_master_id_item_type_item_id_ins_id_org_code": { "name": "inv_master_id_item_type_item_id_ins_id_org_code", "unique": false, "type": "BTREE", "columns": [ "inv_master_id", "item_type", "item_id", "ins_id", "org_code" ] } } }, "invoice_item_update": { "create_sql": "CREATE TABLE IF NOT EXISTS `invoice_item_update` ( `audit_id` int unsigned NOT NULL AUTO_INCREMENT, `id` int DEFAULT NULL, `inv_master_id` int DEFAULT '0', `item_type` int DEFAULT '0', `item_id` int DEFAULT '0', `item_name` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT '0', `item_rate` decimal(10,2) DEFAULT '0.00', `ins_id` int DEFAULT '0', `org_code` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `item_added_date` datetime DEFAULT NULL, `item_qty` decimal(10,2) DEFAULT '0.00', `item_amount` decimal(10,2) DEFAULT '0.00', `item_amount1` decimal(10,2) DEFAULT '0.00', `update_by_id` int DEFAULT NULL, `update_by` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `update_action` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`audit_id`), KEY `idx_invoice_item_update_item_id` (`id`), KEY `idx_invoice_item_update_inv_master_id` (`inv_master_id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;", "columns": { "audit_id": { "Field": "audit_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "inv_master_id": { "Field": "inv_master_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_type": { "Field": "item_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_id": { "Field": "item_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_name": { "Field": "item_name", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_rate": { "Field": "item_rate", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ins_id": { "Field": "ins_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "org_code": { "Field": "org_code", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_added_date": { "Field": "item_added_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_qty": { "Field": "item_qty", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_amount": { "Field": "item_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_amount1": { "Field": "item_amount1", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by_id": { "Field": "update_by_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_action": { "Field": "update_action", "Type": "varchar(20)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "audit_id" ] }, "idx_invoice_item_update_item_id": { "name": "idx_invoice_item_update_item_id", "unique": false, "type": "BTREE", "columns": [ "id" ] }, "idx_invoice_item_update_inv_master_id": { "name": "idx_invoice_item_update_inv_master_id", "unique": false, "type": "BTREE", "columns": [ "inv_master_id" ] } } }, "invoice_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `invoice_master` ( `id` int NOT NULL AUTO_INCREMENT, `invoice_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `opd_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `attach_type` int NOT NULL DEFAULT '0' COMMENT '0 for Patient,1 opd,2 for IPD,3 for Credit', `attach_id` int NOT NULL DEFAULT '0', `center_id` int NOT NULL DEFAULT '0', `ipd_id` int NOT NULL DEFAULT '0', `ipd_include` int NOT NULL DEFAULT '1', `refer_by_id` int NOT NULL DEFAULT '0', `refer_by_other` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `insurance_id` int NOT NULL DEFAULT '0', `insurance_cash` int NOT NULL DEFAULT '1', `insurance_credit` int NOT NULL DEFAULT '0', `insurance_case_id` int NOT NULL DEFAULT '0', `insurance_card_id` int NOT NULL DEFAULT '0', `inv_date` date DEFAULT NULL, `inv_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `inv_a_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `discount_amount` decimal(10,2) DEFAULT '0.00', `discount_desc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `disc_update_by` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `correction_crdr` int DEFAULT NULL, `correction_type` int DEFAULT NULL, `correction_amount` decimal(10,2) DEFAULT '0.00', `correction_remark` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `correction_user` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `correction_datetime` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `tax1_per` decimal(10,2) DEFAULT '0.00', `tax2_per` decimal(10,2) DEFAULT '0.00', `tax3_per` decimal(10,2) DEFAULT '0.00', `total_amount` decimal(10,2) DEFAULT '0.00', `net_amount` decimal(10,2) DEFAULT '0.00', `correction_net_amount` decimal(10,2) DEFAULT '0.00', `payment_mode` int DEFAULT '1', `payment_part` int DEFAULT '0', `payment_part_received` decimal(10,2) DEFAULT '0.00', `payment_part_balance` decimal(10,2) DEFAULT '0.00', `payment_mode_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '1', `payment_status` int DEFAULT '0', `payment_id` int DEFAULT '0', `card_bank` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `cust_card` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `card_remark` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `card_tran_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `prepared_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `prepared_by_id` int DEFAULT '0', `confirm_invoice` datetime DEFAULT NULL, `insert_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `invoice_status` int NOT NULL DEFAULT '0', `Remark_cancel_update` varchar(250) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `is_print_out` int NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `attach_type_attach_id` (`attach_type`,`attach_id`), KEY `invoice_status` (`invoice_status`,`attach_id`), KEY `invoice_code` (`invoice_code`), KEY `prepared_by_prepared_by_id` (`prepared_by`,`prepared_by_id`), KEY `ipd_id` (`ipd_id`), KEY `attach_id_ipd_id_insurance_id_insurance_case_id` (`attach_id`,`ipd_id`,`insurance_id`,`insurance_case_id`), KEY `insurance_case_id` (`insurance_case_id`), KEY `attach_id_payment_status_invoice_status` (`attach_id`,`payment_status`,`invoice_status`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "invoice_code": { "Field": "invoice_code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_code": { "Field": "opd_code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "attach_type": { "Field": "attach_type", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 for Patient,1 opd,2 for IPD,3 for Credit" }, "attach_id": { "Field": "attach_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "center_id": { "Field": "center_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_include": { "Field": "ipd_include", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "refer_by_id": { "Field": "refer_by_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "refer_by_other": { "Field": "refer_by_other", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insurance_id": { "Field": "insurance_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insurance_cash": { "Field": "insurance_cash", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insurance_credit": { "Field": "insurance_credit", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insurance_case_id": { "Field": "insurance_case_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insurance_card_id": { "Field": "insurance_card_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "inv_date": { "Field": "inv_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "inv_name": { "Field": "inv_name", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "inv_a_code": { "Field": "inv_a_code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discount_amount": { "Field": "discount_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discount_desc": { "Field": "discount_desc", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "disc_update_by": { "Field": "disc_update_by", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "correction_crdr": { "Field": "correction_crdr", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "correction_type": { "Field": "correction_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "correction_amount": { "Field": "correction_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "correction_remark": { "Field": "correction_remark", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "correction_user": { "Field": "correction_user", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "correction_datetime": { "Field": "correction_datetime", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "tax1_per": { "Field": "tax1_per", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "tax2_per": { "Field": "tax2_per", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "tax3_per": { "Field": "tax3_per", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "total_amount": { "Field": "total_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "net_amount": { "Field": "net_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "correction_net_amount": { "Field": "correction_net_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_mode": { "Field": "payment_mode", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_part": { "Field": "payment_part", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_part_received": { "Field": "payment_part_received", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_part_balance": { "Field": "payment_part_balance", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_mode_desc": { "Field": "payment_mode_desc", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_status": { "Field": "payment_status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_id": { "Field": "payment_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "card_bank": { "Field": "card_bank", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "cust_card": { "Field": "cust_card", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "card_remark": { "Field": "card_remark", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "card_tran_id": { "Field": "card_tran_id", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "prepared_by": { "Field": "prepared_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "prepared_by_id": { "Field": "prepared_by_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "confirm_invoice": { "Field": "confirm_invoice", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_datetime": { "Field": "insert_datetime", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "" }, "invoice_status": { "Field": "invoice_status", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Remark_cancel_update": { "Field": "Remark_cancel_update", "Type": "varchar(250)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_print_out": { "Field": "is_print_out", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "attach_type_attach_id": { "name": "attach_type_attach_id", "unique": false, "type": "BTREE", "columns": [ "attach_type", "attach_id" ] }, "invoice_status": { "name": "invoice_status", "unique": false, "type": "BTREE", "columns": [ "invoice_status", "attach_id" ] }, "invoice_code": { "name": "invoice_code", "unique": false, "type": "BTREE", "columns": [ "invoice_code" ] }, "prepared_by_prepared_by_id": { "name": "prepared_by_prepared_by_id", "unique": false, "type": "BTREE", "columns": [ "prepared_by", "prepared_by_id" ] }, "ipd_id": { "name": "ipd_id", "unique": false, "type": "BTREE", "columns": [ "ipd_id" ] }, "attach_id_ipd_id_insurance_id_insurance_case_id": { "name": "attach_id_ipd_id_insurance_id_insurance_case_id", "unique": false, "type": "BTREE", "columns": [ "attach_id", "ipd_id", "insurance_id", "insurance_case_id" ] }, "insurance_case_id": { "name": "insurance_case_id", "unique": false, "type": "BTREE", "columns": [ "insurance_case_id" ] }, "attach_id_payment_status_invoice_status": { "name": "attach_id_payment_status_invoice_status", "unique": false, "type": "BTREE", "columns": [ "attach_id", "payment_status", "invoice_status" ] } } }, "invoice_med_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `invoice_med_master` ( `id` int NOT NULL AUTO_INCREMENT, `inv_med_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `remark_ipd` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `store_id` int DEFAULT '0', `inv_date` date DEFAULT NULL, `sale_return` int DEFAULT '0', `inv_insert_datetime` timestamp NULL DEFAULT NULL, `customer_type` int DEFAULT '0' COMMENT '0 Other , 1 Register Patient', `group_invoice_id` int DEFAULT '0', `patient_id` int DEFAULT '0', `inv_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `inv_phone_number` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `ipd_id` int DEFAULT '0', `ipd_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `ipd_credit` int DEFAULT '0', `ipd_credit_type` int DEFAULT '1', `ipd_credit_type_update` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `case_id` int DEFAULT '0', `case_credit` int DEFAULT '0', `patient_code` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `doc_id` int DEFAULT '0', `doc_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `gross_amount` decimal(10,2) DEFAULT '0.00', `discount_amount` decimal(10,2) DEFAULT '0.00', `item_discount_amount` decimal(10,2) DEFAULT '0.00', `CGST_Tamount` decimal(10,2) DEFAULT '0.00', `SGST_Tamount` decimal(10,2) DEFAULT '0.00', `discount_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `discount_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `tax_total` decimal(10,2) DEFAULT NULL, `net_amount` decimal(10,2) DEFAULT NULL, `TaxableAmount` decimal(10,2) DEFAULT NULL, `payment_received` decimal(10,2) DEFAULT '0.00', `payment_balance` decimal(10,2) DEFAULT '0.00', `invoice_status` int DEFAULT '0', `payment_status` int DEFAULT '0', `payment_mode` int DEFAULT '0', `payment_id` int DEFAULT '0', `payment_mode_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `confirm_invoice` datetime DEFAULT NULL, `card_bank` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `card_remark` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `cust_card` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `card_tran_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `prepared_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `prepared_by_id` float DEFAULT NULL, `med_group_id` int DEFAULT '0', `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `rate_update` decimal(10,2) DEFAULT '0.00', `rate_update_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `bill_final` int DEFAULT '0', `bill_final_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `log` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, PRIMARY KEY (`id`), KEY `inv_med_code` (`inv_med_code`), KEY `remark_ipd` (`remark_ipd`), KEY `patient_id` (`patient_id`), KEY `inv_name` (`inv_name`), KEY `ipd_id_ipd_code_ipd_credit_case_id_case_credit_patient_code` (`ipd_id`,`ipd_code`,`ipd_credit`,`case_id`,`case_credit`,`patient_code`), KEY `store_id` (`store_id`), KEY `inv_phone_number` (`inv_phone_number`), KEY `sale_return` (`sale_return`), KEY `idx_imm_inv_date` (`inv_date`), KEY `idx_imm_sale_return_date` (`sale_return`,`inv_date`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "inv_med_code": { "Field": "inv_med_code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remark_ipd": { "Field": "remark_ipd", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "store_id": { "Field": "store_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "inv_date": { "Field": "inv_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "sale_return": { "Field": "sale_return", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "inv_insert_datetime": { "Field": "inv_insert_datetime", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "customer_type": { "Field": "customer_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 Other , 1 Register Patient" }, "group_invoice_id": { "Field": "group_invoice_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "patient_id": { "Field": "patient_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "inv_name": { "Field": "inv_name", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "inv_phone_number": { "Field": "inv_phone_number", "Type": "varchar(20)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_code": { "Field": "ipd_code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_credit": { "Field": "ipd_credit", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_credit_type": { "Field": "ipd_credit_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_credit_type_update": { "Field": "ipd_credit_type_update", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "case_id": { "Field": "case_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "case_credit": { "Field": "case_credit", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "patient_code": { "Field": "patient_code", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_id": { "Field": "doc_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_name": { "Field": "doc_name", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "gross_amount": { "Field": "gross_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discount_amount": { "Field": "discount_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_discount_amount": { "Field": "item_discount_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "CGST_Tamount": { "Field": "CGST_Tamount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "SGST_Tamount": { "Field": "SGST_Tamount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discount_remark": { "Field": "discount_remark", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discount_by": { "Field": "discount_by", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "tax_total": { "Field": "tax_total", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "net_amount": { "Field": "net_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "TaxableAmount": { "Field": "TaxableAmount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_received": { "Field": "payment_received", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_balance": { "Field": "payment_balance", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "invoice_status": { "Field": "invoice_status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_status": { "Field": "payment_status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_mode": { "Field": "payment_mode", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_id": { "Field": "payment_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_mode_desc": { "Field": "payment_mode_desc", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "confirm_invoice": { "Field": "confirm_invoice", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "card_bank": { "Field": "card_bank", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "card_remark": { "Field": "card_remark", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "cust_card": { "Field": "cust_card", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "card_tran_id": { "Field": "card_tran_id", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "prepared_by": { "Field": "prepared_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "prepared_by_id": { "Field": "prepared_by_id", "Type": "float", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "med_group_id": { "Field": "med_group_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_history": { "Field": "update_history", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "rate_update": { "Field": "rate_update", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "rate_update_by": { "Field": "rate_update_by", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bill_final": { "Field": "bill_final", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bill_final_by": { "Field": "bill_final_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "log": { "Field": "log", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "inv_med_code": { "name": "inv_med_code", "unique": false, "type": "BTREE", "columns": [ "inv_med_code" ] }, "remark_ipd": { "name": "remark_ipd", "unique": false, "type": "BTREE", "columns": [ "remark_ipd" ] }, "patient_id": { "name": "patient_id", "unique": false, "type": "BTREE", "columns": [ "patient_id" ] }, "inv_name": { "name": "inv_name", "unique": false, "type": "BTREE", "columns": [ "inv_name" ] }, "ipd_id_ipd_code_ipd_credit_case_id_case_credit_patient_code": { "name": "ipd_id_ipd_code_ipd_credit_case_id_case_credit_patient_code", "unique": false, "type": "BTREE", "columns": [ "ipd_id", "ipd_code", "ipd_credit", "case_id", "case_credit", "patient_code" ] }, "store_id": { "name": "store_id", "unique": false, "type": "BTREE", "columns": [ "store_id" ] }, "inv_phone_number": { "name": "inv_phone_number", "unique": false, "type": "BTREE", "columns": [ "inv_phone_number" ] }, "sale_return": { "name": "sale_return", "unique": false, "type": "BTREE", "columns": [ "sale_return" ] }, "idx_imm_inv_date": { "name": "idx_imm_inv_date", "unique": false, "type": "BTREE", "columns": [ "inv_date" ] }, "idx_imm_sale_return_date": { "name": "idx_imm_sale_return_date", "unique": false, "type": "BTREE", "columns": [ "sale_return", "inv_date" ] } } }, "invprofiles": { "create_sql": "CREATE TABLE IF NOT EXISTS `invprofiles` ( `Code` int NOT NULL AUTO_INCREMENT, `Name` varchar(150) COLLATE utf8mb4_general_ci NOT NULL, PRIMARY KEY (`Code`), UNIQUE KEY `Name` (`Name`) ) ENGINE=MyISAM AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "Code": { "Field": "Code", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "Name": { "Field": "Name", "Type": "varchar(150)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "Code" ] }, "Name": { "name": "Name", "unique": true, "type": "BTREE", "columns": [ "Name" ] } } }, "invtprofiles": { "create_sql": "CREATE TABLE IF NOT EXISTS `invtprofiles` ( `id` int NOT NULL AUTO_INCREMENT, `ProfileCode` int NOT NULL, `InvestigationCode` int NOT NULL, `printOrder` int NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `ProfileCode_InvestigationCode` (`ProfileCode`,`InvestigationCode`) ) ENGINE=MyISAM AUTO_INCREMENT=108 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ProfileCode": { "Field": "ProfileCode", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "InvestigationCode": { "Field": "InvestigationCode", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "printOrder": { "Field": "printOrder", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "ProfileCode_InvestigationCode": { "name": "ProfileCode_InvestigationCode", "unique": false, "type": "BTREE", "columns": [ "ProfileCode", "InvestigationCode" ] } } }, "ipd_discharg_status": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharg_status` ( `id` int NOT NULL, `status_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `status_details` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status_desc": { "Field": "status_desc", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status_details": { "Field": "status_details", "Type": "mediumtext", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "ipd_discharge": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL DEFAULT '0', `created_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `checked_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `created_datetime` datetime NOT NULL, `insert_datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `ipd_discharge_print` int NOT NULL DEFAULT '0' COMMENT '0,Pending,1 Exam Pending,2 Complete', `content` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `ipd_id` (`ipd_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "UNI", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_by": { "Field": "created_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "checked_by": { "Field": "checked_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_datetime": { "Field": "created_datetime", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_datetime": { "Field": "insert_datetime", "Type": "timestamp", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_discharge_print": { "Field": "ipd_discharge_print", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0,Pending,1 Exam Pending,2 Complete" }, "content": { "Field": "content", "Type": "longtext", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "ipd_id": { "name": "ipd_id", "unique": true, "type": "BTREE", "columns": [ "ipd_id" ] } } }, "ipd_discharge_1_a": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_1_a` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_d_id` int NOT NULL DEFAULT '0', `sort_order` int NOT NULL DEFAULT '0', `head_id` int NOT NULL DEFAULT '0', `short_head` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `rdata` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `ipd_d_id_head_id` (`ipd_d_id`,`head_id`), KEY `ipd_d_id` (`ipd_d_id`), KEY `FK_ipd_discharge_1_a_ipd_discharge_sys_exam` (`head_id`), CONSTRAINT `FK_ipd_discharge_1_a_ipd_discharge_sys_exam` FOREIGN KEY (`head_id`) REFERENCES `ipd_discharge_sys_exam` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Systemic Examination\\r\\n';", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_d_id": { "Field": "ipd_d_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "sort_order": { "Field": "sort_order", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "head_id": { "Field": "head_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "short_head": { "Field": "short_head", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "rdata": { "Field": "rdata", "Type": "mediumtext", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "ipd_d_id_head_id": { "name": "ipd_d_id_head_id", "unique": true, "type": "BTREE", "columns": [ "ipd_d_id", "head_id" ] }, "ipd_d_id": { "name": "ipd_d_id", "unique": false, "type": "BTREE", "columns": [ "ipd_d_id" ] }, "FK_ipd_discharge_1_a_ipd_discharge_sys_exam": { "name": "FK_ipd_discharge_1_a_ipd_discharge_sys_exam", "unique": false, "type": "BTREE", "columns": [ "head_id" ] } } }, "ipd_discharge_1_b": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_1_b` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_d_id` int NOT NULL DEFAULT '0', `col_id` int NOT NULL DEFAULT '0', `short_head` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `rdata` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `ipd_d_id_col_id` (`ipd_d_id`,`col_id`), KEY `ipd_d_id` (`ipd_d_id`), KEY `FK_ipd_discharge_1_b_ipd_discharge_general_exam_col` (`col_id`), CONSTRAINT `FK_ipd_discharge_1_b_ipd_discharge_general_exam_col` FOREIGN KEY (`col_id`) REFERENCES `ipd_discharge_general_exam_col` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT COMMENT='Physical Examinations';", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_d_id": { "Field": "ipd_d_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "col_id": { "Field": "col_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "short_head": { "Field": "short_head", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "rdata": { "Field": "rdata", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "ipd_d_id_col_id": { "name": "ipd_d_id_col_id", "unique": true, "type": "BTREE", "columns": [ "ipd_d_id", "col_id" ] }, "ipd_d_id": { "name": "ipd_d_id", "unique": false, "type": "BTREE", "columns": [ "ipd_d_id" ] }, "FK_ipd_discharge_1_b_ipd_discharge_general_exam_col": { "name": "FK_ipd_discharge_1_b_ipd_discharge_general_exam_col", "unique": false, "type": "BTREE", "columns": [ "col_id" ] } } }, "ipd_discharge_1_b_final": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_1_b_final` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_d_id` int NOT NULL DEFAULT '0', `col_id` int NOT NULL DEFAULT '0', `short_head` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `rdata` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `ipd_d_id_col_id` (`ipd_d_id`,`col_id`), KEY `ipd_d_id` (`ipd_d_id`), KEY `FK_ipd_discharge_1_b_ipd_discharge_general_exam_col` (`col_id`), CONSTRAINT `ipd_discharge_1_b_final_ibfk_1` FOREIGN KEY (`col_id`) REFERENCES `ipd_discharge_general_exam_col` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT COMMENT='Physical Examinations';", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_d_id": { "Field": "ipd_d_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "col_id": { "Field": "col_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "short_head": { "Field": "short_head", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "rdata": { "Field": "rdata", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "ipd_d_id_col_id": { "name": "ipd_d_id_col_id", "unique": true, "type": "BTREE", "columns": [ "ipd_d_id", "col_id" ] }, "ipd_d_id": { "name": "ipd_d_id", "unique": false, "type": "BTREE", "columns": [ "ipd_d_id" ] }, "FK_ipd_discharge_1_b_ipd_discharge_general_exam_col": { "name": "FK_ipd_discharge_1_b_ipd_discharge_general_exam_col", "unique": false, "type": "BTREE", "columns": [ "col_id" ] } } }, "ipd_discharge_1_c": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_1_c` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_d_id` int NOT NULL DEFAULT '0', `sort_order` int NOT NULL DEFAULT '0', `head_id` int NOT NULL DEFAULT '0', `short_head` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `rdata` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `ipd_d_id_head_id` (`ipd_d_id`,`head_id`), KEY `ipd_d_id` (`ipd_d_id`), KEY `FK_ipd_discharge_1_a_ipd_discharge_sys_exam` (`head_id`), CONSTRAINT `FK_ipd_discharge_1_c_ipd_discharge_special_investigation` FOREIGN KEY (`head_id`) REFERENCES `ipd_discharge_special_investigation` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT COMMENT='XRay,ECG';", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_d_id": { "Field": "ipd_d_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "sort_order": { "Field": "sort_order", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "head_id": { "Field": "head_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "short_head": { "Field": "short_head", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "rdata": { "Field": "rdata", "Type": "mediumtext", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "ipd_d_id_head_id": { "name": "ipd_d_id_head_id", "unique": true, "type": "BTREE", "columns": [ "ipd_d_id", "head_id" ] }, "ipd_d_id": { "name": "ipd_d_id", "unique": false, "type": "BTREE", "columns": [ "ipd_d_id" ] }, "FK_ipd_discharge_1_a_ipd_discharge_sys_exam": { "name": "FK_ipd_discharge_1_a_ipd_discharge_sys_exam", "unique": false, "type": "BTREE", "columns": [ "head_id" ] } } }, "ipd_discharge_1_d": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_1_d` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_d_id` int NOT NULL DEFAULT '0', `col_id` int NOT NULL DEFAULT '0', `short_head` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `rdata` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `ipd_d_id_col_id` (`ipd_d_id`,`col_id`) USING BTREE, KEY `ipd_d_id` (`ipd_d_id`) USING BTREE, KEY `FK_ipd_discharge_1_b_ipd_discharge_general_exam_col` (`col_id`) USING BTREE, CONSTRAINT `ipd_discharge_1_d_ibfk_1` FOREIGN KEY (`col_id`) REFERENCES `ipd_discharge_general_exam_col` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Physical Examinations';", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_d_id": { "Field": "ipd_d_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "col_id": { "Field": "col_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "short_head": { "Field": "short_head", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "rdata": { "Field": "rdata", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "ipd_d_id_col_id": { "name": "ipd_d_id_col_id", "unique": true, "type": "BTREE", "columns": [ "ipd_d_id", "col_id" ] }, "ipd_d_id": { "name": "ipd_d_id", "unique": false, "type": "BTREE", "columns": [ "ipd_d_id" ] }, "FK_ipd_discharge_1_b_ipd_discharge_general_exam_col": { "name": "FK_ipd_discharge_1_b_ipd_discharge_general_exam_col", "unique": false, "type": "BTREE", "columns": [ "col_id" ] } } }, "ipd_discharge_1_e": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_1_e` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_d_id` int DEFAULT '0', `col_id` int DEFAULT '0', `short_head` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `rdata` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `ipd_d_id_col_id` (`ipd_d_id`,`col_id`) USING BTREE, KEY `ipd_d_id` (`ipd_d_id`) USING BTREE, KEY `FK_ipd_discharge_1_b_ipd_discharge_general_exam_col` (`col_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Physical Examinations';", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_d_id": { "Field": "ipd_d_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "col_id": { "Field": "col_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "short_head": { "Field": "short_head", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "rdata": { "Field": "rdata", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "ipd_d_id_col_id": { "name": "ipd_d_id_col_id", "unique": true, "type": "BTREE", "columns": [ "ipd_d_id", "col_id" ] }, "ipd_d_id": { "name": "ipd_d_id", "unique": false, "type": "BTREE", "columns": [ "ipd_d_id" ] }, "FK_ipd_discharge_1_b_ipd_discharge_general_exam_col": { "name": "FK_ipd_discharge_1_b_ipd_discharge_general_exam_col", "unique": false, "type": "BTREE", "columns": [ "col_id" ] } } }, "ipd_discharge_2": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_2` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_d_id` int NOT NULL DEFAULT '0', `lab_investigation_list` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `short_head` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'Other Examination', `rdata` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `ipd_d_id` (`ipd_d_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT COMMENT='Clinical Investigation Reports\\r\\n';", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_d_id": { "Field": "ipd_d_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "lab_investigation_list": { "Field": "lab_investigation_list", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "short_head": { "Field": "short_head", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": "Other Examination", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "rdata": { "Field": "rdata", "Type": "mediumtext", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "ipd_d_id": { "name": "ipd_d_id", "unique": false, "type": "BTREE", "columns": [ "ipd_d_id" ] } } }, "ipd_discharge_banner": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_banner` ( `id` int NOT NULL AUTO_INCREMENT, `banner_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `banner_image_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "banner_name": { "Field": "banner_name", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "banner_image_name": { "Field": "banner_image_name", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "ipd_discharge_complaint": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_complaint` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL DEFAULT '0', `order_id` int NOT NULL DEFAULT '0', `comp_code` int DEFAULT '0', `comp_report` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `comp_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`ipd_id`,`order_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "order_id": { "Field": "order_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comp_code": { "Field": "comp_code", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comp_report": { "Field": "comp_report", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comp_remark": { "Field": "comp_remark", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_time": { "Field": "insert_time", "Type": "timestamp", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "opd_pre_id_order_id": { "name": "opd_pre_id_order_id", "unique": false, "type": "BTREE", "columns": [ "ipd_id", "order_id" ] } } }, "ipd_discharge_complaint_remark": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_complaint_remark` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL DEFAULT '0', `comp_report` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `comp_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`ipd_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comp_report": { "Field": "comp_report", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comp_remark": { "Field": "comp_remark", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_time": { "Field": "insert_time", "Type": "timestamp", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "opd_pre_id_order_id": { "name": "opd_pre_id_order_id", "unique": false, "type": "BTREE", "columns": [ "ipd_id" ] } } }, "ipd_discharge_course": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_course` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL DEFAULT '0', `order_id` int NOT NULL DEFAULT '0', `comp_code` int DEFAULT '0', `comp_report` varchar(500) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `comp_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`ipd_id`,`order_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "order_id": { "Field": "order_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comp_code": { "Field": "comp_code", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comp_report": { "Field": "comp_report", "Type": "varchar(500)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comp_remark": { "Field": "comp_remark", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_time": { "Field": "insert_time", "Type": "timestamp", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "opd_pre_id_order_id": { "name": "opd_pre_id_order_id", "unique": false, "type": "BTREE", "columns": [ "ipd_id", "order_id" ] } } }, "ipd_discharge_course_remark": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_course_remark` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL DEFAULT '0', `comp_report` varchar(1000) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `comp_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`ipd_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comp_report": { "Field": "comp_report", "Type": "varchar(1000)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comp_remark": { "Field": "comp_remark", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_time": { "Field": "insert_time", "Type": "timestamp", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "opd_pre_id_order_id": { "name": "opd_pre_id_order_id", "unique": false, "type": "BTREE", "columns": [ "ipd_id" ] } } }, "ipd_discharge_diagnosis": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_diagnosis` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL DEFAULT '0', `order_id` int NOT NULL DEFAULT '0', `comp_code` int DEFAULT '0', `comp_report` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `comp_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`ipd_id`,`order_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "order_id": { "Field": "order_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comp_code": { "Field": "comp_code", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comp_report": { "Field": "comp_report", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comp_remark": { "Field": "comp_remark", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_time": { "Field": "insert_time", "Type": "timestamp", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "opd_pre_id_order_id": { "name": "opd_pre_id_order_id", "unique": false, "type": "BTREE", "columns": [ "ipd_id", "order_id" ] } } }, "ipd_discharge_diagnosis_remark": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_diagnosis_remark` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL DEFAULT '0', `comp_report` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `comp_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`ipd_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comp_report": { "Field": "comp_report", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comp_remark": { "Field": "comp_remark", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_time": { "Field": "insert_time", "Type": "timestamp", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "opd_pre_id_order_id": { "name": "opd_pre_id_order_id", "unique": false, "type": "BTREE", "columns": [ "ipd_id" ] } } }, "ipd_discharge_drug": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_drug` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL DEFAULT '0', `order_id` int NOT NULL DEFAULT '0', `drug_code` int DEFAULT '0', `drug_name` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `drug_dose` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `formulation` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `drug_time` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `drug_day` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`ipd_id`,`order_id`) ) ENGINE=InnoDB AUTO_INCREMENT=343 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "order_id": { "Field": "order_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "drug_code": { "Field": "drug_code", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "drug_name": { "Field": "drug_name", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "drug_dose": { "Field": "drug_dose", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "formulation": { "Field": "formulation", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "drug_time": { "Field": "drug_time", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "drug_day": { "Field": "drug_day", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_time": { "Field": "insert_time", "Type": "timestamp", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "opd_pre_id_order_id": { "name": "opd_pre_id_order_id", "unique": false, "type": "BTREE", "columns": [ "ipd_id", "order_id" ] } } }, "ipd_discharge_drug_food_interaction": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_drug_food_interaction` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL DEFAULT '0', `food_id_list` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0', `food_text` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`ipd_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "food_id_list": { "Field": "food_id_list", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "food_text": { "Field": "food_text", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_time": { "Field": "insert_time", "Type": "timestamp", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "opd_pre_id_order_id": { "name": "opd_pre_id_order_id", "unique": false, "type": "BTREE", "columns": [ "ipd_id" ] } } }, "ipd_discharge_footer": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_footer` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int DEFAULT NULL, `text_content` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, PRIMARY KEY (`id`), UNIQUE KEY `ipd_id` (`ipd_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "text_content": { "Field": "text_content", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "ipd_id": { "name": "ipd_id", "unique": true, "type": "BTREE", "columns": [ "ipd_id" ] } } }, "ipd_discharge_general_exam_col": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_general_exam_col` ( `id` int NOT NULL AUTO_INCREMENT, `col_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `col_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `col_unit` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `col_description` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `col_type` int DEFAULT '0' COMMENT '0 for varchar,1 for Text,2 number,3 for Auto Text,4 Combobx', `col_pre_value` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `cat_group` int DEFAULT '1' COMMENT '1 for Genral Exam,2 On Examination', PRIMARY KEY (`id`), UNIQUE KEY `col_code` (`col_code`) ) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "col_code": { "Field": "col_code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "col_name": { "Field": "col_name", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "col_unit": { "Field": "col_unit", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "col_description": { "Field": "col_description", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "col_type": { "Field": "col_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 for varchar,1 for Text,2 number,3 for Auto Text,4 Combobx" }, "col_pre_value": { "Field": "col_pre_value", "Type": "longtext", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "cat_group": { "Field": "cat_group", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "1 for Genral Exam,2 On Examination" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "col_code": { "name": "col_code", "unique": true, "type": "BTREE", "columns": [ "col_code" ] } } }, "ipd_discharge_icd_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_icd_master` ( `id` int NOT NULL AUTO_INCREMENT, `icd_code` varchar(30) NOT NULL, `diagnosis_text` varchar(255) NOT NULL, `is_active` tinyint(1) NOT NULL DEFAULT '1', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uniq_icd_code_text` (`icd_code`,`diagnosis_text`), KEY `idx_icd_active_code` (`is_active`,`icd_code`), KEY `idx_icd_active_text` (`is_active`,`diagnosis_text`) ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "icd_code": { "Field": "icd_code", "Type": "varchar(30)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "diagnosis_text": { "Field": "diagnosis_text", "Type": "varchar(255)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_active": { "Field": "is_active", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "uniq_icd_code_text": { "name": "uniq_icd_code_text", "unique": true, "type": "BTREE", "columns": [ "icd_code", "diagnosis_text" ] }, "idx_icd_active_code": { "name": "idx_icd_active_code", "unique": false, "type": "BTREE", "columns": [ "is_active", "icd_code" ] }, "idx_icd_active_text": { "name": "idx_icd_active_text", "unique": false, "type": "BTREE", "columns": [ "is_active", "diagnosis_text" ] } } }, "ipd_discharge_instructions": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_instructions` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL DEFAULT '0', `comp_report` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `comp_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `review_after` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `footer_text` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `footer_banner` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0', `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`ipd_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comp_report": { "Field": "comp_report", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comp_remark": { "Field": "comp_remark", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "review_after": { "Field": "review_after", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "footer_text": { "Field": "footer_text", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "footer_banner": { "Field": "footer_banner", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_time": { "Field": "insert_time", "Type": "timestamp", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "opd_pre_id_order_id": { "name": "opd_pre_id_order_id", "unique": false, "type": "BTREE", "columns": [ "ipd_id" ] } } }, "ipd_discharge_investigation_during_admit": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_investigation_during_admit` ( `id` int NOT NULL AUTO_INCREMENT, `col_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `col_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `col_unit` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `col_description` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `col_type` int DEFAULT '0' COMMENT '0 for varchar,1 for Text,2 number,3 for Auto Text,4 Combobx', `col_pre_value` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `cat_group` int DEFAULT '1' COMMENT '1 for Genral Exam,2 On Examination', PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `col_code` (`col_code`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "col_code": { "Field": "col_code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "col_name": { "Field": "col_name", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "col_unit": { "Field": "col_unit", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "col_description": { "Field": "col_description", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "col_type": { "Field": "col_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 for varchar,1 for Text,2 number,3 for Auto Text,4 Combobx" }, "col_pre_value": { "Field": "col_pre_value", "Type": "longtext", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "cat_group": { "Field": "cat_group", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "1 for Genral Exam,2 On Examination" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "col_code": { "name": "col_code", "unique": true, "type": "BTREE", "columns": [ "col_code" ] } } }, "ipd_discharge_investigation_template": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_investigation_template` ( `id` int NOT NULL AUTO_INCREMENT, `test_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, `order_by` int DEFAULT '0', `group_test` int DEFAULT '1', PRIMARY KEY (`id`), UNIQUE KEY `test_code` (`test_code`) ) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "test_code": { "Field": "test_code", "Type": "varchar(20)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "order_by": { "Field": "order_by", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "group_test": { "Field": "group_test", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "test_code": { "name": "test_code", "unique": true, "type": "BTREE", "columns": [ "test_code" ] } } }, "ipd_discharge_investigtions_inhos": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_investigtions_inhos` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL DEFAULT '0', `comp_report` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `comp_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`ipd_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comp_report": { "Field": "comp_report", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comp_remark": { "Field": "comp_remark", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_time": { "Field": "insert_time", "Type": "timestamp", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "opd_pre_id_order_id": { "name": "opd_pre_id_order_id", "unique": false, "type": "BTREE", "columns": [ "ipd_id" ] } } }, "ipd_discharge_master_food": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_master_food` ( `id` int NOT NULL AUTO_INCREMENT, `food_short` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `food_desc` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `food_desc_lang` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "food_short": { "Field": "food_short", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "food_desc": { "Field": "food_desc", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "food_desc_lang": { "Field": "food_desc_lang", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "ipd_discharge_narrative_templates": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_narrative_templates` ( `id` int NOT NULL AUTO_INCREMENT, `doc_id` int NOT NULL DEFAULT '0', `section_key` varchar(80) NOT NULL, `template_name` varchar(120) NOT NULL, `template_text` longtext NOT NULL, `is_active` tinyint(1) NOT NULL DEFAULT '1', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uniq_doc_section_name` (`doc_id`,`section_key`,`template_name`), KEY `idx_section_doc` (`section_key`,`doc_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_id": { "Field": "doc_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "section_key": { "Field": "section_key", "Type": "varchar(80)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "template_name": { "Field": "template_name", "Type": "varchar(120)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "template_text": { "Field": "template_text", "Type": "longtext", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_active": { "Field": "is_active", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "uniq_doc_section_name": { "name": "uniq_doc_section_name", "unique": true, "type": "BTREE", "columns": [ "doc_id", "section_key", "template_name" ] }, "idx_section_doc": { "name": "idx_section_doc", "unique": false, "type": "BTREE", "columns": [ "section_key", "doc_id" ] } } }, "ipd_discharge_prescrption_prescribed": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_prescrption_prescribed` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int DEFAULT NULL, `med_id` int DEFAULT '0', `med_name` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `med_salt` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `med_type` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_when` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_freq` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_where` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `qty` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `no_of_days` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `remark` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `update_by` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `ipd_id` (`ipd_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "med_id": { "Field": "med_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "med_name": { "Field": "med_name", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "med_salt": { "Field": "med_salt", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "med_type": { "Field": "med_type", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage": { "Field": "dosage", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_when": { "Field": "dosage_when", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_freq": { "Field": "dosage_freq", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_where": { "Field": "dosage_where", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "qty": { "Field": "qty", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "no_of_days": { "Field": "no_of_days", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remark": { "Field": "remark", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "ipd_id": { "name": "ipd_id", "unique": false, "type": "BTREE", "columns": [ "ipd_id" ] } } }, "ipd_discharge_procedure": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_procedure` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL DEFAULT '0', `procedure_name` varchar(1000) NOT NULL DEFAULT '0', `procedure_id` int NOT NULL DEFAULT '0', `procedure_remark` text NOT NULL, `procedure_date` date NOT NULL, `procedure_by_doc_id` int NOT NULL DEFAULT '0', `update_by` varchar(100) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) USING BTREE, KEY `ipd_id` (`ipd_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "procedure_name": { "Field": "procedure_name", "Type": "varchar(1000)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "procedure_id": { "Field": "procedure_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "procedure_remark": { "Field": "procedure_remark", "Type": "text", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "procedure_date": { "Field": "procedure_date", "Type": "date", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "procedure_by_doc_id": { "Field": "procedure_by_doc_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(100)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "ipd_id": { "name": "ipd_id", "unique": false, "type": "BTREE", "columns": [ "ipd_id" ] } } }, "ipd_discharge_special_investigation": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_special_investigation` ( `id` int NOT NULL AUTO_INCREMENT, `col_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `col_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `col_unit` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `col_description` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `col_type` int DEFAULT '0' COMMENT '0 for varchar,1 for Text,2 number,3 for Auto Text,4 Combobx', `col_pre_value` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `cat_group` int DEFAULT '1' COMMENT '1 for Genral Exam,2 On Examination', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "col_code": { "Field": "col_code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "col_name": { "Field": "col_name", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "col_unit": { "Field": "col_unit", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "col_description": { "Field": "col_description", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "col_type": { "Field": "col_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 for varchar,1 for Text,2 number,3 for Auto Text,4 Combobx" }, "col_pre_value": { "Field": "col_pre_value", "Type": "longtext", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "cat_group": { "Field": "cat_group", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "1 for Genral Exam,2 On Examination" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "ipd_discharge_surgery": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_surgery` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int DEFAULT NULL, `surgery_name` varchar(1000) DEFAULT NULL, `surgery_id` int DEFAULT NULL, `surgery_date` date DEFAULT NULL, `surgery_remark` text, `surgery_by_doc_id` int DEFAULT NULL, `update_by` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, KEY `ipd_id` (`ipd_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "surgery_name": { "Field": "surgery_name", "Type": "varchar(1000)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "surgery_id": { "Field": "surgery_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "surgery_date": { "Field": "surgery_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "surgery_remark": { "Field": "surgery_remark", "Type": "text", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "surgery_by_doc_id": { "Field": "surgery_by_doc_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "ipd_id": { "name": "ipd_id", "unique": false, "type": "BTREE", "columns": [ "ipd_id" ] } } }, "ipd_discharge_surgery_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_surgery_master` ( `id` int NOT NULL AUTO_INCREMENT, `term_type` varchar(20) NOT NULL DEFAULT 'surgery', `term_name` varchar(255) NOT NULL, `term_code` varchar(60) DEFAULT NULL, `icd_code` varchar(60) DEFAULT NULL, `is_active` tinyint(1) NOT NULL DEFAULT '1', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uniq_term_type_name` (`term_type`,`term_name`), KEY `idx_type_active_name` (`term_type`,`is_active`,`term_name`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "term_type": { "Field": "term_type", "Type": "varchar(20)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "MUL", "Default": "surgery", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "term_name": { "Field": "term_name", "Type": "varchar(255)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "term_code": { "Field": "term_code", "Type": "varchar(60)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "icd_code": { "Field": "icd_code", "Type": "varchar(60)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_active": { "Field": "is_active", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "uniq_term_type_name": { "name": "uniq_term_type_name", "unique": true, "type": "BTREE", "columns": [ "term_type", "term_name" ] }, "idx_type_active_name": { "name": "idx_type_active_name", "unique": false, "type": "BTREE", "columns": [ "term_type", "is_active", "term_name" ] } } }, "ipd_discharge_sys_exam": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_sys_exam` ( `id` int NOT NULL AUTO_INCREMENT, `sys_exam_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `sys_format` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `sys_exam_name` (`sys_exam_name`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "sys_exam_name": { "Field": "sys_exam_name", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "sys_format": { "Field": "sys_format", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "sys_exam_name": { "name": "sys_exam_name", "unique": true, "type": "BTREE", "columns": [ "sys_exam_name" ] } } }, "ipd_discharge_templates": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_templates` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `template_name` varchar(120) COLLATE utf8mb4_general_ci NOT NULL, `template_html` longtext COLLATE utf8mb4_general_ci NOT NULL, `is_default` tinyint(1) NOT NULL DEFAULT '0', `status` tinyint(1) NOT NULL DEFAULT '1', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `is_default` (`is_default`), KEY `status` (`status`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "template_name": { "Field": "template_name", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "template_html": { "Field": "template_html", "Type": "longtext", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_default": { "Field": "is_default", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status": { "Field": "status", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "is_default": { "name": "is_default", "unique": false, "type": "BTREE", "columns": [ "is_default" ] }, "status": { "name": "status", "unique": false, "type": "BTREE", "columns": [ "status" ] } } }, "ipd_document_templates": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_document_templates` ( `id` int NOT NULL AUTO_INCREMENT, `form_no` int NOT NULL, `template_name` varchar(160) NOT NULL, `page_size` varchar(16) NOT NULL DEFAULT 'A4', `custom_width_mm` int NOT NULL DEFAULT '210', `custom_height_mm` int NOT NULL DEFAULT '297', `page_margin_top_cm` decimal(5,2) NOT NULL DEFAULT '0.80', `page_margin_bottom_cm` decimal(5,2) NOT NULL DEFAULT '0.80', `page_margin_left_cm` decimal(5,2) NOT NULL DEFAULT '0.80', `page_margin_right_cm` decimal(5,2) NOT NULL DEFAULT '0.80', `margin_header_cm` decimal(5,2) NOT NULL DEFAULT '0.50', `margin_footer_cm` decimal(5,2) NOT NULL DEFAULT '0.50', `header_html` longtext, `footer_html` longtext, `template_css` longtext, `template_html` longtext NOT NULL, `status` tinyint(1) NOT NULL DEFAULT '1', `created_at` datetime DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `idx_form_no` (`form_no`), KEY `idx_status` (`status`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "form_no": { "Field": "form_no", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "template_name": { "Field": "template_name", "Type": "varchar(160)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "page_size": { "Field": "page_size", "Type": "varchar(16)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": "A4", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "custom_width_mm": { "Field": "custom_width_mm", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "210", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "custom_height_mm": { "Field": "custom_height_mm", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "297", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "page_margin_top_cm": { "Field": "page_margin_top_cm", "Type": "decimal(5,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.80", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "page_margin_bottom_cm": { "Field": "page_margin_bottom_cm", "Type": "decimal(5,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.80", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "page_margin_left_cm": { "Field": "page_margin_left_cm", "Type": "decimal(5,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.80", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "page_margin_right_cm": { "Field": "page_margin_right_cm", "Type": "decimal(5,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.80", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "margin_header_cm": { "Field": "margin_header_cm", "Type": "decimal(5,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.50", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "margin_footer_cm": { "Field": "margin_footer_cm", "Type": "decimal(5,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.50", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "header_html": { "Field": "header_html", "Type": "longtext", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "footer_html": { "Field": "footer_html", "Type": "longtext", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "template_css": { "Field": "template_css", "Type": "longtext", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "template_html": { "Field": "template_html", "Type": "longtext", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status": { "Field": "status", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "idx_form_no": { "name": "idx_form_no", "unique": false, "type": "BTREE", "columns": [ "form_no" ] }, "idx_status": { "name": "idx_status", "unique": false, "type": "BTREE", "columns": [ "status" ] } } }, "ipd_invoice_item": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_invoice_item` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int DEFAULT '0', `item_type` int DEFAULT NULL, `item_id` int DEFAULT NULL, `item_name` varchar(200) DEFAULT NULL, `comment` varchar(200) DEFAULT NULL, `item_rate` decimal(10,2) DEFAULT NULL, `item_rate_2` decimal(10,2) DEFAULT NULL, `ins_id` int DEFAULT NULL, `org_code` varchar(50) DEFAULT NULL, `item_qty` decimal(10,2) DEFAULT NULL, `item_amount` decimal(10,2) DEFAULT NULL, `package_id` int DEFAULT '0', `doc_id` int DEFAULT '0', `doc_spec` varchar(50) DEFAULT NULL, `doc_name` varchar(100) DEFAULT NULL, `item_added_date` datetime DEFAULT NULL, `date_item` date DEFAULT NULL, `log` text, PRIMARY KEY (`id`), KEY `ipd_id` (`ipd_id`), KEY `doc_id` (`doc_id`), KEY `pakage_id` (`package_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_type": { "Field": "item_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_id": { "Field": "item_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_name": { "Field": "item_name", "Type": "varchar(200)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comment": { "Field": "comment", "Type": "varchar(200)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_rate": { "Field": "item_rate", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_rate_2": { "Field": "item_rate_2", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ins_id": { "Field": "ins_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "org_code": { "Field": "org_code", "Type": "varchar(50)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_qty": { "Field": "item_qty", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_amount": { "Field": "item_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "package_id": { "Field": "package_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_id": { "Field": "doc_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_spec": { "Field": "doc_spec", "Type": "varchar(50)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_name": { "Field": "doc_name", "Type": "varchar(100)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_added_date": { "Field": "item_added_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "date_item": { "Field": "date_item", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "log": { "Field": "log", "Type": "text", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "ipd_id": { "name": "ipd_id", "unique": false, "type": "BTREE", "columns": [ "ipd_id" ] }, "doc_id": { "name": "doc_id", "unique": false, "type": "BTREE", "columns": [ "doc_id" ] }, "pakage_id": { "name": "pakage_id", "unique": false, "type": "BTREE", "columns": [ "package_id" ] } } }, "ipd_invoice_item_update": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_invoice_item_update` ( `ipd_invoice_id` int NOT NULL AUTO_INCREMENT, `id` int DEFAULT NULL, `ipd_id` int DEFAULT '0', `item_type` int DEFAULT NULL, `item_id` int DEFAULT NULL, `item_name` varchar(200) DEFAULT NULL, `comment` varchar(200) DEFAULT NULL, `item_rate` decimal(10,2) DEFAULT NULL, `item_rate_2` decimal(10,2) DEFAULT NULL, `ins_id` int DEFAULT NULL, `org_code` varchar(50) DEFAULT NULL, `item_qty` decimal(10,2) DEFAULT NULL, `item_amount` decimal(10,2) DEFAULT NULL, `package_id` int DEFAULT '0', `doc_id` int DEFAULT '0', `doc_name` varchar(100) DEFAULT NULL, `doc_spec` varchar(100) DEFAULT NULL, `date_item` date DEFAULT NULL, `item_added_date` datetime DEFAULT NULL, `update_by_id` int DEFAULT NULL, `update_by` varchar(50) DEFAULT NULL, `update_action` int DEFAULT NULL, PRIMARY KEY (`ipd_invoice_id`), KEY `ipd_id` (`ipd_id`), KEY `doc_id` (`doc_id`), KEY `pakage_id` (`package_id`), KEY `id` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;", "columns": { "ipd_invoice_id": { "Field": "ipd_invoice_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_type": { "Field": "item_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_id": { "Field": "item_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_name": { "Field": "item_name", "Type": "varchar(200)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comment": { "Field": "comment", "Type": "varchar(200)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_rate": { "Field": "item_rate", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_rate_2": { "Field": "item_rate_2", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ins_id": { "Field": "ins_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "org_code": { "Field": "org_code", "Type": "varchar(50)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_qty": { "Field": "item_qty", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_amount": { "Field": "item_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "package_id": { "Field": "package_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_id": { "Field": "doc_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_name": { "Field": "doc_name", "Type": "varchar(100)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_spec": { "Field": "doc_spec", "Type": "varchar(100)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "date_item": { "Field": "date_item", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_added_date": { "Field": "item_added_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by_id": { "Field": "update_by_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_action": { "Field": "update_action", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "ipd_invoice_id" ] }, "ipd_id": { "name": "ipd_id", "unique": false, "type": "BTREE", "columns": [ "ipd_id" ] }, "doc_id": { "name": "doc_id", "unique": false, "type": "BTREE", "columns": [ "doc_id" ] }, "pakage_id": { "name": "pakage_id", "unique": false, "type": "BTREE", "columns": [ "package_id" ] }, "id": { "name": "id", "unique": false, "type": "BTREE", "columns": [ "id" ] } } }, "ipd_item_type": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_item_type` ( `itype_id` int NOT NULL AUTO_INCREMENT, `desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `group_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', PRIMARY KEY (`itype_id`) ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "itype_id": { "Field": "itype_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "desc": { "Field": "desc", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "group_desc": { "Field": "group_desc", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "itype_id" ] } } }, "ipd_items": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_items` ( `id` int NOT NULL AUTO_INCREMENT, `itype` int DEFAULT '0', `idesc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `idesc_detail` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `amount` decimal(10,2) DEFAULT '0.00', `is_doctor` int DEFAULT '0', `is_date` int DEFAULT '0', `is_date_range` int DEFAULT '0', `is_name_custom` int DEFAULT '0', `is_unique` int DEFAULT '0', `update_date` datetime DEFAULT NULL, `last_update_desc` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3841 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "itype": { "Field": "itype", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "idesc": { "Field": "idesc", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "idesc_detail": { "Field": "idesc_detail", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount": { "Field": "amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_doctor": { "Field": "is_doctor", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_date": { "Field": "is_date", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_date_range": { "Field": "is_date_range", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_name_custom": { "Field": "is_name_custom", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_unique": { "Field": "is_unique", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_date": { "Field": "update_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "last_update_desc": { "Field": "last_update_desc", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "ipd_items_insurance": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_items_insurance` ( `id` int NOT NULL AUTO_INCREMENT, `hc_items_id` int DEFAULT NULL, `hc_insurance_id` int DEFAULT NULL, `amount1` decimal(10,2) DEFAULT NULL, `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `isdelete` int DEFAULT '0', `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `hc_items_id_hc_insurance_id_isdelete` (`hc_items_id`,`hc_insurance_id`) USING BTREE, KEY `delete` (`isdelete`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=339 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=DYNAMIC;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "hc_items_id": { "Field": "hc_items_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "hc_insurance_id": { "Field": "hc_insurance_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount1": { "Field": "amount1", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "code": { "Field": "code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "isdelete": { "Field": "isdelete", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_history": { "Field": "update_history", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "hc_items_id_hc_insurance_id_isdelete": { "name": "hc_items_id_hc_insurance_id_isdelete", "unique": true, "type": "BTREE", "columns": [ "hc_items_id", "hc_insurance_id" ] }, "delete": { "name": "delete", "unique": false, "type": "BTREE", "columns": [ "isdelete" ] } } }, "ipd_items_insurance_update": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_items_insurance_update` ( `id_ins_update_id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL DEFAULT '0', `hc_items_id` int DEFAULT NULL, `hc_insurance_id` int DEFAULT NULL, `amount1` decimal(10,2) DEFAULT NULL, `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `isdelete` int DEFAULT '0', `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `update_datetime` datetime DEFAULT NULL, `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `action` int DEFAULT NULL, `action_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `action_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id_ins_update_id`) USING BTREE, KEY `delete` (`isdelete`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id_ins_update_id": { "Field": "id_ins_update_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "hc_items_id": { "Field": "hc_items_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "hc_insurance_id": { "Field": "hc_insurance_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount1": { "Field": "amount1", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "code": { "Field": "code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "isdelete": { "Field": "isdelete", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_datetime": { "Field": "update_datetime", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_history": { "Field": "update_history", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "action": { "Field": "action", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "action_by": { "Field": "action_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "action_datetime": { "Field": "action_datetime", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id_ins_update_id" ] }, "delete": { "name": "delete", "unique": false, "type": "BTREE", "columns": [ "isdelete" ] } } }, "ipd_items_update": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_items_update` ( `item_rate_update_id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL, `itype` int DEFAULT '0', `idesc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `idesc_detail` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `amount` decimal(10,2) DEFAULT '0.00', `is_doctor` int DEFAULT '0', `is_date` int DEFAULT '0', `is_date_range` int DEFAULT '0', `is_name_custom` int DEFAULT '0', `is_unique` int DEFAULT '0', `update_date` datetime DEFAULT NULL, `last_update_desc` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `action` int DEFAULT '0', `action_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `action_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`item_rate_update_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "item_rate_update_id": { "Field": "item_rate_update_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "itype": { "Field": "itype", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "idesc": { "Field": "idesc", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "idesc_detail": { "Field": "idesc_detail", "Type": "mediumtext", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount": { "Field": "amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_doctor": { "Field": "is_doctor", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_date": { "Field": "is_date", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_date_range": { "Field": "is_date_range", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_name_custom": { "Field": "is_name_custom", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_unique": { "Field": "is_unique", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_date": { "Field": "update_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "last_update_desc": { "Field": "last_update_desc", "Type": "mediumtext", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "action": { "Field": "action", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "action_by": { "Field": "action_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "action_datetime": { "Field": "action_datetime", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "item_rate_update_id" ] } } }, "ipd_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_master` ( `id` int NOT NULL AUTO_INCREMENT, `p_id` int DEFAULT NULL, `P_name` int DEFAULT NULL, `case_type` int DEFAULT '0' COMMENT '0 NON MLC and 1 for MLC', `P_mobile1` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `P_mobile2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `contact_person_Name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `add1` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `add2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `city` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `state` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `relation` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `problem` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `insurance_id` int DEFAULT NULL, `insurance_amount` decimal(10,2) DEFAULT NULL, `policy_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `ipd_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `dept_id` int DEFAULT NULL, `bed_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `r_doc_id` int DEFAULT NULL, `r_doc_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `register_date` date DEFAULT NULL, `reg_time` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `reg_time_bak` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `ipd_status` int DEFAULT '0', `case_id` int DEFAULT '0', `insert_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `insert_by` int DEFAULT NULL, `Discount` decimal(10,2) DEFAULT '0.00', `Discount_By` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `Discount_Remark` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `Discount2` decimal(10,2) DEFAULT '0.00', `Discount_By2` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `Discount_Remark2` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `Discount3` decimal(10,2) DEFAULT '0.00', `Discount_By3` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `Discount_Remark3` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `charge1` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `charge2` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `chargeamount1` decimal(10,2) DEFAULT '0.00', `chargeamount2` decimal(10,2) DEFAULT '0.00', `charge_by1` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `charge_by2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `discharge_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `discharge_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `discharge_date` date DEFAULT NULL, `discharge_time` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `discharge_time_ampm` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `discharge_time_bak` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `discharge_balance_remark` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `discharge_balance_user` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `charge_amount` decimal(10,2) DEFAULT '0.00', `package_charge_amount` decimal(10,2) DEFAULT '0.00', `med_amount` decimal(10,2) DEFAULT '0.00', `cash_med_amount` decimal(10,2) DEFAULT '0.00', `package_med_amount` decimal(10,2) DEFAULT '0.00', `med_paid` decimal(10,2) DEFAULT '0.00', `gross_amount` decimal(10,2) DEFAULT '0.00', `total_paid_amount` decimal(10,2) DEFAULT '0.00', `org_amount_recived` decimal(10,2) DEFAULT '0.00', `net_amount` decimal(10,2) DEFAULT '0.00', `balance_amount` decimal(10,2) DEFAULT '0.00', `lock_medical` int DEFAULT '0', `lock_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `discarge_patient_status` int DEFAULT '0' COMMENT '0 Admit,1 Improved,2 Lama,3 Referred,4 Satisfactory,5-Expired,6-Admission Cancelled', `ipd_times` int DEFAULT '1', `issurgery` int DEFAULT '0', `surgery_name` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `surgery_date` date DEFAULT NULL, `isdelivery` int DEFAULT '0', `no_baby` int DEFAULT '0', `delivery_date` date DEFAULT NULL, `delivery_time` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `delivery_sex_of_baby` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `delivery_sex_of_baby2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `delivery_sex_of_baby3` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `correct_dis` int DEFAULT '0', `corr_dis_per` int DEFAULT '0', `give_dis_per` decimal(10,2) DEFAULT '0.00', `log` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `update_back` int DEFAULT '0', `payable_by_tpa` decimal(20,2) DEFAULT '0.00', `discount_by_hospital_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `discount_by_hospital` decimal(20,2) DEFAULT '0.00', `discount_by_hospital_2_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `discount_by_hospital_2` decimal(20,2) DEFAULT '0.00', `discount_for_tpa` decimal(20,2) DEFAULT '0.00', `balance_discount_after` decimal(20,2) DEFAULT '0.00', `refer_by` int DEFAULT NULL COMMENT 'refer_master->id', `ipd_create` int DEFAULT '0', `ipd_billed_time` datetime DEFAULT NULL, `ipd_discharge_ready_time` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `p_id` (`p_id`), KEY `Index_ipd` (`p_id`,`P_mobile1`,`P_mobile2`,`contact_person_Name`,`policy_no`,`ipd_code`,`r_doc_id`,`register_date`,`case_id`,`insert_by`), KEY `Discount3` (`Discount3`), KEY `Discount2` (`Discount2`), KEY `ipd_times` (`ipd_times`), KEY `update_back` (`update_back`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "p_id": { "Field": "p_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "P_name": { "Field": "P_name", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "case_type": { "Field": "case_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 NON MLC and 1 for MLC" }, "P_mobile1": { "Field": "P_mobile1", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "P_mobile2": { "Field": "P_mobile2", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "contact_person_Name": { "Field": "contact_person_Name", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "add1": { "Field": "add1", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "add2": { "Field": "add2", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "city": { "Field": "city", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "state": { "Field": "state", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "relation": { "Field": "relation", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "problem": { "Field": "problem", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remark": { "Field": "remark", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insurance_id": { "Field": "insurance_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insurance_amount": { "Field": "insurance_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "policy_no": { "Field": "policy_no", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_code": { "Field": "ipd_code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dept_id": { "Field": "dept_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bed_no": { "Field": "bed_no", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "r_doc_id": { "Field": "r_doc_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "r_doc_name": { "Field": "r_doc_name", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "register_date": { "Field": "register_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "reg_time": { "Field": "reg_time", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "reg_time_bak": { "Field": "reg_time_bak", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_status": { "Field": "ipd_status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "case_id": { "Field": "case_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_date": { "Field": "insert_date", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_by": { "Field": "insert_by", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Discount": { "Field": "Discount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Discount_By": { "Field": "Discount_By", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Discount_Remark": { "Field": "Discount_Remark", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Discount2": { "Field": "Discount2", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Discount_By2": { "Field": "Discount_By2", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Discount_Remark2": { "Field": "Discount_Remark2", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Discount3": { "Field": "Discount3", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Discount_By3": { "Field": "Discount_By3", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Discount_Remark3": { "Field": "Discount_Remark3", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "charge1": { "Field": "charge1", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "charge2": { "Field": "charge2", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "chargeamount1": { "Field": "chargeamount1", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "chargeamount2": { "Field": "chargeamount2", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "charge_by1": { "Field": "charge_by1", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "charge_by2": { "Field": "charge_by2", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discharge_by": { "Field": "discharge_by", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discharge_remark": { "Field": "discharge_remark", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discharge_date": { "Field": "discharge_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discharge_time": { "Field": "discharge_time", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discharge_time_ampm": { "Field": "discharge_time_ampm", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discharge_time_bak": { "Field": "discharge_time_bak", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discharge_balance_remark": { "Field": "discharge_balance_remark", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discharge_balance_user": { "Field": "discharge_balance_user", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "charge_amount": { "Field": "charge_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "package_charge_amount": { "Field": "package_charge_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "med_amount": { "Field": "med_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "cash_med_amount": { "Field": "cash_med_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "package_med_amount": { "Field": "package_med_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "med_paid": { "Field": "med_paid", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "gross_amount": { "Field": "gross_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "total_paid_amount": { "Field": "total_paid_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "org_amount_recived": { "Field": "org_amount_recived", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "net_amount": { "Field": "net_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "balance_amount": { "Field": "balance_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "lock_medical": { "Field": "lock_medical", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "lock_remark": { "Field": "lock_remark", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discarge_patient_status": { "Field": "discarge_patient_status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 Admit,1 Improved,2 Lama,3 Referred,4 Satisfactory,5-Expired,6-Admission Cancelled" }, "ipd_times": { "Field": "ipd_times", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "issurgery": { "Field": "issurgery", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "surgery_name": { "Field": "surgery_name", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "surgery_date": { "Field": "surgery_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "isdelivery": { "Field": "isdelivery", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "no_baby": { "Field": "no_baby", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "delivery_date": { "Field": "delivery_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "delivery_time": { "Field": "delivery_time", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "delivery_sex_of_baby": { "Field": "delivery_sex_of_baby", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "delivery_sex_of_baby2": { "Field": "delivery_sex_of_baby2", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "delivery_sex_of_baby3": { "Field": "delivery_sex_of_baby3", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "correct_dis": { "Field": "correct_dis", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "corr_dis_per": { "Field": "corr_dis_per", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "give_dis_per": { "Field": "give_dis_per", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "log": { "Field": "log", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_back": { "Field": "update_back", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payable_by_tpa": { "Field": "payable_by_tpa", "Type": "decimal(20,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discount_by_hospital_remark": { "Field": "discount_by_hospital_remark", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discount_by_hospital": { "Field": "discount_by_hospital", "Type": "decimal(20,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discount_by_hospital_2_remark": { "Field": "discount_by_hospital_2_remark", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discount_by_hospital_2": { "Field": "discount_by_hospital_2", "Type": "decimal(20,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discount_for_tpa": { "Field": "discount_for_tpa", "Type": "decimal(20,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "balance_discount_after": { "Field": "balance_discount_after", "Type": "decimal(20,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "refer_by": { "Field": "refer_by", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "refer_master->id" }, "ipd_create": { "Field": "ipd_create", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_billed_time": { "Field": "ipd_billed_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_discharge_ready_time": { "Field": "ipd_discharge_ready_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "p_id": { "name": "p_id", "unique": false, "type": "BTREE", "columns": [ "p_id" ] }, "Index_ipd": { "name": "Index_ipd", "unique": false, "type": "BTREE", "columns": [ "p_id", "P_mobile1", "P_mobile2", "contact_person_Name", "policy_no", "ipd_code", "r_doc_id", "register_date", "case_id", "insert_by" ] }, "Discount3": { "name": "Discount3", "unique": false, "type": "BTREE", "columns": [ "Discount3" ] }, "Discount2": { "name": "Discount2", "unique": false, "type": "BTREE", "columns": [ "Discount2" ] }, "ipd_times": { "name": "ipd_times", "unique": false, "type": "BTREE", "columns": [ "ipd_times" ] }, "update_back": { "name": "update_back", "unique": false, "type": "BTREE", "columns": [ "update_back" ] } } }, "ipd_master_doc_list": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_master_doc_list` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int DEFAULT '0', `doc_id` int DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_id": { "Field": "doc_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "ipd_nursing_entries": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_nursing_entries` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `ipd_id` int unsigned NOT NULL, `entry_type` varchar(20) COLLATE utf8mb4_general_ci NOT NULL, `recorded_at` datetime NOT NULL, `shift_name` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL, `temperature_c` decimal(5,2) DEFAULT NULL, `pulse_rate` smallint DEFAULT NULL, `resp_rate` smallint DEFAULT NULL, `bp_systolic` smallint DEFAULT NULL, `bp_diastolic` smallint DEFAULT NULL, `spo2` smallint DEFAULT NULL, `weight_kg` decimal(6,2) DEFAULT NULL, `fluid_direction` varchar(10) COLLATE utf8mb4_general_ci DEFAULT NULL, `fluid_route` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL, `fluid_amount_ml` int DEFAULT NULL, `treatment_text` text COLLATE utf8mb4_general_ci, `general_note` text COLLATE utf8mb4_general_ci, `recorded_by` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL, `recorded_by_id` int DEFAULT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, PRIMARY KEY (`id`), KEY `ipd_id` (`ipd_id`), KEY `entry_type` (`entry_type`), KEY `recorded_at` (`recorded_at`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "entry_type": { "Field": "entry_type", "Type": "varchar(20)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "recorded_at": { "Field": "recorded_at", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "shift_name": { "Field": "shift_name", "Type": "varchar(20)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "temperature_c": { "Field": "temperature_c", "Type": "decimal(5,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pulse_rate": { "Field": "pulse_rate", "Type": "smallint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "resp_rate": { "Field": "resp_rate", "Type": "smallint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bp_systolic": { "Field": "bp_systolic", "Type": "smallint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bp_diastolic": { "Field": "bp_diastolic", "Type": "smallint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "spo2": { "Field": "spo2", "Type": "smallint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "weight_kg": { "Field": "weight_kg", "Type": "decimal(6,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "fluid_direction": { "Field": "fluid_direction", "Type": "varchar(10)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "fluid_route": { "Field": "fluid_route", "Type": "varchar(30)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "fluid_amount_ml": { "Field": "fluid_amount_ml", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "treatment_text": { "Field": "treatment_text", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "general_note": { "Field": "general_note", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "recorded_by": { "Field": "recorded_by", "Type": "varchar(100)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "recorded_by_id": { "Field": "recorded_by_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "ipd_id": { "name": "ipd_id", "unique": false, "type": "BTREE", "columns": [ "ipd_id" ] }, "entry_type": { "name": "entry_type", "unique": false, "type": "BTREE", "columns": [ "entry_type" ] }, "recorded_at": { "name": "recorded_at", "unique": false, "type": "BTREE", "columns": [ "recorded_at" ] } } }, "ipd_package": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_package` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int DEFAULT NULL, `package_id` int DEFAULT NULL, `package_name` varchar(100) DEFAULT NULL, `package_desc` varchar(250) DEFAULT NULL, `comment` varchar(250) DEFAULT NULL, `ins_id` int DEFAULT '0', `org_code` varchar(100) DEFAULT NULL, `package_Amount` decimal(10,2) DEFAULT NULL, `insert_by` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(200) DEFAULT NULL, PRIMARY KEY (`id`), KEY `ipd_id` (`ipd_id`), KEY `package_id` (`package_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "package_id": { "Field": "package_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "package_name": { "Field": "package_name", "Type": "varchar(100)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "package_desc": { "Field": "package_desc", "Type": "varchar(250)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comment": { "Field": "comment", "Type": "varchar(250)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ins_id": { "Field": "ins_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "org_code": { "Field": "org_code", "Type": "varchar(100)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "package_Amount": { "Field": "package_Amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_by": { "Field": "insert_by", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(200)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "ipd_id": { "name": "ipd_id", "unique": false, "type": "BTREE", "columns": [ "ipd_id" ] }, "package_id": { "name": "package_id", "unique": false, "type": "BTREE", "columns": [ "package_id" ] } } }, "ipd_package_item_list": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_package_item_list` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_package_id` int NOT NULL DEFAULT '0', `is_ipd_opd` int NOT NULL DEFAULT '0' COMMENT '0 OPD,1 IPD', `item_type` int NOT NULL DEFAULT '0', `item_id` int NOT NULL DEFAULT '0', `amount` decimal(10,2) NOT NULL DEFAULT '0.00', PRIMARY KEY (`id`), KEY `ipd_package_id` (`ipd_package_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_package_id": { "Field": "ipd_package_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_ipd_opd": { "Field": "is_ipd_opd", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 OPD,1 IPD" }, "item_type": { "Field": "item_type", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_id": { "Field": "item_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount": { "Field": "amount", "Type": "decimal(10,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "ipd_package_id": { "name": "ipd_package_id", "unique": false, "type": "BTREE", "columns": [ "ipd_package_id" ] } } }, "ipd_package_update": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_package_update` ( `ipd_package_id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL, `ipd_id` int DEFAULT NULL, `package_id` int DEFAULT NULL, `package_name` varchar(100) DEFAULT NULL, `package_desc` varchar(250) DEFAULT NULL, `comment` varchar(250) DEFAULT NULL, `ins_id` int DEFAULT '0', `org_code` varchar(100) DEFAULT NULL, `package_Amount` decimal(10,2) DEFAULT NULL, `insert_by` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(200) DEFAULT NULL, `update_by_id` int DEFAULT NULL, `update_action` varchar(50) DEFAULT NULL, `update_by_action` varchar(50) DEFAULT NULL, PRIMARY KEY (`ipd_package_id`), KEY `ipd_id` (`ipd_id`), KEY `package_id` (`package_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;", "columns": { "ipd_package_id": { "Field": "ipd_package_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "package_id": { "Field": "package_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "package_name": { "Field": "package_name", "Type": "varchar(100)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "package_desc": { "Field": "package_desc", "Type": "varchar(250)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comment": { "Field": "comment", "Type": "varchar(250)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ins_id": { "Field": "ins_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "org_code": { "Field": "org_code", "Type": "varchar(100)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "package_Amount": { "Field": "package_Amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_by": { "Field": "insert_by", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(200)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by_id": { "Field": "update_by_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_action": { "Field": "update_action", "Type": "varchar(50)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by_action": { "Field": "update_by_action", "Type": "varchar(50)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "ipd_package_id" ] }, "ipd_id": { "name": "ipd_id", "unique": false, "type": "BTREE", "columns": [ "ipd_id" ] }, "package_id": { "name": "package_id", "unique": false, "type": "BTREE", "columns": [ "package_id" ] } } }, "lab_ai_extraction_batches": { "create_sql": "CREATE TABLE IF NOT EXISTS `lab_ai_extraction_batches` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `invoice_id` int unsigned NOT NULL, `lab_type` int unsigned NOT NULL, `file_upload_id` int unsigned DEFAULT NULL, `panel_name` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `ai_provider` varchar(50) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'azure-openai', `model_name` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `ocr_text` longtext COLLATE utf8mb4_general_ci, `raw_response_json` longtext COLLATE utf8mb4_general_ci, `status` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'completed', `doctor_verified` tinyint(1) NOT NULL DEFAULT '0', `verified_by` varchar(80) COLLATE utf8mb4_general_ci DEFAULT NULL, `verified_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `invoice_id_lab_type` (`invoice_id`,`lab_type`), KEY `file_upload_id` (`file_upload_id`), KEY `doctor_verified` (`doctor_verified`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "bigint unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "invoice_id": { "Field": "invoice_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "lab_type": { "Field": "lab_type", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "file_upload_id": { "Field": "file_upload_id", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "panel_name": { "Field": "panel_name", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ai_provider": { "Field": "ai_provider", "Type": "varchar(50)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": "azure-openai", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "model_name": { "Field": "model_name", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ocr_text": { "Field": "ocr_text", "Type": "longtext", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "raw_response_json": { "Field": "raw_response_json", "Type": "longtext", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status": { "Field": "status", "Type": "varchar(20)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": "completed", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doctor_verified": { "Field": "doctor_verified", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "verified_by": { "Field": "verified_by", "Type": "varchar(80)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "verified_at": { "Field": "verified_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "invoice_id_lab_type": { "name": "invoice_id_lab_type", "unique": false, "type": "BTREE", "columns": [ "invoice_id", "lab_type" ] }, "file_upload_id": { "name": "file_upload_id", "unique": false, "type": "BTREE", "columns": [ "file_upload_id" ] }, "doctor_verified": { "name": "doctor_verified", "unique": false, "type": "BTREE", "columns": [ "doctor_verified" ] } } }, "lab_ai_extraction_values": { "create_sql": "CREATE TABLE IF NOT EXISTS `lab_ai_extraction_values` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `batch_id` bigint unsigned NOT NULL, `test_name` varchar(180) COLLATE utf8mb4_general_ci NOT NULL, `test_value` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `unit` varchar(80) COLLATE utf8mb4_general_ci DEFAULT NULL, `reference_range` varchar(180) COLLATE utf8mb4_general_ci DEFAULT NULL, `abnormal_flag` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL, `raw_line` text COLLATE utf8mb4_general_ci, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `batch_id` (`batch_id`), KEY `test_name` (`test_name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "bigint unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "batch_id": { "Field": "batch_id", "Type": "bigint unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "test_name": { "Field": "test_name", "Type": "varchar(180)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "test_value": { "Field": "test_value", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "unit": { "Field": "unit", "Type": "varchar(80)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "reference_range": { "Field": "reference_range", "Type": "varchar(180)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "abnormal_flag": { "Field": "abnormal_flag", "Type": "varchar(20)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "raw_line": { "Field": "raw_line", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "batch_id": { "name": "batch_id", "unique": false, "type": "BTREE", "columns": [ "batch_id" ] }, "test_name": { "name": "test_name", "unique": false, "type": "BTREE", "columns": [ "test_name" ] } } }, "lab_invoice_request": { "create_sql": "CREATE TABLE IF NOT EXISTS `lab_invoice_request` ( `id` int NOT NULL AUTO_INCREMENT, `invoice_id` int NOT NULL DEFAULT '0', `invoice_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `lab_type` int NOT NULL DEFAULT '0', `daily_sr_no` int NOT NULL DEFAULT '0', `lab_test_no` int NOT NULL DEFAULT '0', `doc_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `print_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `print_allowed` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `remove_show_list` int NOT NULL DEFAULT '0', `remove_update_by` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `report_header` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `report_data` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `report_compile` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `report_insert` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `report_update` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `report_print_status` int NOT NULL, `report_print_time` datetime NOT NULL, `collected_time` datetime DEFAULT NULL, `reported_time` datetime DEFAULT NULL, `report_reopen_status` int NOT NULL DEFAULT '0' COMMENT '0 For 1 Times, more the 0 Modify', `report_reopen_status_log` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `report_status` int NOT NULL DEFAULT '0' COMMENT '0 Pending, 1 Final', `file_id` int NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `invoice_id_lab_type` (`invoice_id`,`lab_type`), UNIQUE KEY `invoice_code_lab_type` (`invoice_code`,`lab_type`), KEY `file_id` (`file_id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "invoice_id": { "Field": "invoice_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "invoice_code": { "Field": "invoice_code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "lab_type": { "Field": "lab_type", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "daily_sr_no": { "Field": "daily_sr_no", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "lab_test_no": { "Field": "lab_test_no", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_name": { "Field": "doc_name", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "print_by": { "Field": "print_by", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "print_allowed": { "Field": "print_allowed", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remove_show_list": { "Field": "remove_show_list", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remove_update_by": { "Field": "remove_update_by", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "report_header": { "Field": "report_header", "Type": "longtext", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "report_data": { "Field": "report_data", "Type": "longtext", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "report_compile": { "Field": "report_compile", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "report_insert": { "Field": "report_insert", "Type": "timestamp", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "" }, "report_update": { "Field": "report_update", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "report_print_status": { "Field": "report_print_status", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "report_print_time": { "Field": "report_print_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "collected_time": { "Field": "collected_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "reported_time": { "Field": "reported_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "report_reopen_status": { "Field": "report_reopen_status", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 For 1 Times, more the 0 Modify" }, "report_reopen_status_log": { "Field": "report_reopen_status_log", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "report_status": { "Field": "report_status", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 Pending, 1 Final" }, "file_id": { "Field": "file_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "invoice_id_lab_type": { "name": "invoice_id_lab_type", "unique": true, "type": "BTREE", "columns": [ "invoice_id", "lab_type" ] }, "invoice_code_lab_type": { "name": "invoice_code_lab_type", "unique": true, "type": "BTREE", "columns": [ "invoice_code", "lab_type" ] }, "file_id": { "name": "file_id", "unique": false, "type": "BTREE", "columns": [ "file_id" ] } } }, "lab_litems": { "create_sql": "CREATE TABLE IF NOT EXISTS `lab_litems` ( `mstItemKey` int NOT NULL AUTO_INCREMENT, `mstPLKey` int NOT NULL, `Item` varchar(40) NOT NULL, `ShortName` varchar(10) DEFAULT '0', `Rate` int NOT NULL DEFAULT '0', `CatKey` int NOT NULL DEFAULT '0', PRIMARY KEY (`mstItemKey`), UNIQUE KEY `mstPLKey` (`mstPLKey`,`Item`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;", "columns": { "mstItemKey": { "Field": "mstItemKey", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "mstPLKey": { "Field": "mstPLKey", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Item": { "Field": "Item", "Type": "varchar(40)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ShortName": { "Field": "ShortName", "Type": "varchar(10)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Rate": { "Field": "Rate", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "CatKey": { "Field": "CatKey", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "mstItemKey" ] }, "mstPLKey": { "name": "mstPLKey", "unique": true, "type": "BTREE", "columns": [ "mstPLKey", "Item" ] } } }, "lab_log": { "create_sql": "CREATE TABLE IF NOT EXISTS `lab_log` ( `id` int NOT NULL AUTO_INCREMENT, `lab_repo_id` int DEFAULT '0', `log_insert_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `log_by_id` int DEFAULT NULL, `log_by` varchar(100) DEFAULT NULL, `log_type_id` int DEFAULT NULL, `log_type` varchar(50) DEFAULT NULL, `log_Faults_id` int DEFAULT NULL, `log_Faults` varchar(100) DEFAULT NULL, `comments` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, KEY `log_by_id_log_type_id_log_Faults_id` (`log_by_id`,`log_type_id`,`log_Faults_id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "lab_repo_id": { "Field": "lab_repo_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "log_insert_time": { "Field": "log_insert_time", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "" }, "log_by_id": { "Field": "log_by_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "log_by": { "Field": "log_by", "Type": "varchar(100)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "log_type_id": { "Field": "log_type_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "log_type": { "Field": "log_type", "Type": "varchar(50)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "log_Faults_id": { "Field": "log_Faults_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "log_Faults": { "Field": "log_Faults", "Type": "varchar(100)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comments": { "Field": "comments", "Type": "varchar(100)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "log_by_id_log_type_id_log_Faults_id": { "name": "log_by_id_log_type_id_log_Faults_id", "unique": false, "type": "BTREE", "columns": [ "log_by_id", "log_type_id", "log_Faults_id" ] } } }, "lab_log_analytical_type": { "create_sql": "CREATE TABLE IF NOT EXISTS `lab_log_analytical_type` ( `analytical_id` int NOT NULL, `analytical_name` varchar(50) NOT NULL DEFAULT '', PRIMARY KEY (`analytical_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "analytical_id": { "Field": "analytical_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "analytical_name": { "Field": "analytical_name", "Type": "varchar(50)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "analytical_id" ] } } }, "lab_log_type_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `lab_log_type_master` ( `id` int NOT NULL AUTO_INCREMENT, `analytical_faults_type` int DEFAULT NULL COMMENT '1 Pre Analytical Faults , 2 Analytical Faults, 3 Post Analytical Faults', `analytical_faults` varchar(100) DEFAULT NULL, `option_desc` tinytext, PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "analytical_faults_type": { "Field": "analytical_faults_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "1 Pre Analytical Faults , 2 Analytical Faults, 3 Post Analytical Faults" }, "analytical_faults": { "Field": "analytical_faults", "Type": "varchar(100)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "option_desc": { "Field": "option_desc", "Type": "tinytext", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "lab_plrepo": { "create_sql": "CREATE TABLE IF NOT EXISTS `lab_plrepo` ( `mstItemKey` int NOT NULL, `mstRepoKey` int NOT NULL, PRIMARY KEY (`mstItemKey`,`mstRepoKey`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;", "columns": { "mstItemKey": { "Field": "mstItemKey", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "mstRepoKey": { "Field": "mstRepoKey", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "mstItemKey", "mstRepoKey" ] } } }, "lab_repo": { "create_sql": "CREATE TABLE IF NOT EXISTS `lab_repo` ( `mstRepoKey` int NOT NULL AUTO_INCREMENT, `Title` varchar(100) NOT NULL, `RTFData` longtext, `HTMLData` longtext, `GrpKey` int NOT NULL, `IncludeHeader` tinyint(1) DEFAULT '1', `IncludeFooter` tinyint(1) DEFAULT '1', `charge_id` int DEFAULT '0', PRIMARY KEY (`mstRepoKey`), UNIQUE KEY `Title` (`Title`), KEY `GrpKey` (`GrpKey`), KEY `charge_id` (`charge_id`) ) ENGINE=MyISAM AUTO_INCREMENT=144 DEFAULT CHARSET=utf8mb3;", "columns": { "mstRepoKey": { "Field": "mstRepoKey", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "Title": { "Field": "Title", "Type": "varchar(100)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "RTFData": { "Field": "RTFData", "Type": "longtext", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "HTMLData": { "Field": "HTMLData", "Type": "longtext", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "GrpKey": { "Field": "GrpKey", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "IncludeHeader": { "Field": "IncludeHeader", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "IncludeFooter": { "Field": "IncludeFooter", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "charge_id": { "Field": "charge_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "mstRepoKey" ] }, "Title": { "name": "Title", "unique": true, "type": "BTREE", "columns": [ "Title" ] }, "GrpKey": { "name": "GrpKey", "unique": false, "type": "BTREE", "columns": [ "GrpKey" ] }, "charge_id": { "name": "charge_id", "unique": false, "type": "BTREE", "columns": [ "charge_id" ] } } }, "lab_repotests": { "create_sql": "CREATE TABLE IF NOT EXISTS `lab_repotests` ( `id` int NOT NULL AUTO_INCREMENT, `mstRepoKey` int NOT NULL, `mstTestKey` int NOT NULL, `EOrder` tinyint unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`mstRepoKey`,`mstTestKey`), UNIQUE KEY `id` (`id`), UNIQUE KEY `mstRepoKey_EOrder` (`mstRepoKey`,`EOrder`) ) ENGINE=MyISAM AUTO_INCREMENT=452 DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "UNI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "mstRepoKey": { "Field": "mstRepoKey", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "mstTestKey": { "Field": "mstTestKey", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "EOrder": { "Field": "EOrder", "Type": "tinyint unsigned", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "mstRepoKey", "mstTestKey" ] }, "id": { "name": "id", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "mstRepoKey_EOrder": { "name": "mstRepoKey_EOrder", "unique": true, "type": "BTREE", "columns": [ "mstRepoKey", "EOrder" ] } } }, "lab_request": { "create_sql": "CREATE TABLE IF NOT EXISTS `lab_request` ( `id` int NOT NULL AUTO_INCREMENT, `lab_repo_id` int DEFAULT NULL, `charge_id` int DEFAULT NULL, `lab_type` int DEFAULT NULL, `charge_item_id` int DEFAULT NULL, `invoice_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `patient_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `patient_id` int DEFAULT NULL, `ipd_id` int DEFAULT '0', `org_id` int DEFAULT '0', `Request_Date` datetime DEFAULT NULL, `report_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `status` int DEFAULT '0' COMMENT '0 Pending,1 Entered,2confirm,3 Print', `rep_data` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `insert_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `confirm_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `attach_report` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `print_allowed` int DEFAULT '0', `Remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `Report_Data` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `report_data_Impression` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `print_combine` int DEFAULT '1', `collected_time` datetime DEFAULT NULL, `reported_time` datetime DEFAULT NULL, `report_update` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `report_edit_req_no` int DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `charge_item_id` (`charge_item_id`), KEY `status` (`status`), KEY `combine_Id` (`lab_repo_id`,`charge_id`,`lab_type`,`charge_item_id`,`patient_id`,`ipd_id`,`org_id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "lab_repo_id": { "Field": "lab_repo_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "charge_id": { "Field": "charge_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "lab_type": { "Field": "lab_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "charge_item_id": { "Field": "charge_item_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "invoice_code": { "Field": "invoice_code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "patient_name": { "Field": "patient_name", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "patient_id": { "Field": "patient_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "org_id": { "Field": "org_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Request_Date": { "Field": "Request_Date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "report_name": { "Field": "report_name", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status": { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 Pending,1 Entered,2confirm,3 Print" }, "rep_data": { "Field": "rep_data", "Type": "longtext", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_by": { "Field": "insert_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "confirm_by": { "Field": "confirm_by", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "attach_report": { "Field": "attach_report", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "print_allowed": { "Field": "print_allowed", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Remark": { "Field": "Remark", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Report_Data": { "Field": "Report_Data", "Type": "longtext", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "report_data_Impression": { "Field": "report_data_Impression", "Type": "longtext", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "print_combine": { "Field": "print_combine", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "collected_time": { "Field": "collected_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "reported_time": { "Field": "reported_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "report_update": { "Field": "report_update", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "report_edit_req_no": { "Field": "report_edit_req_no", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "charge_item_id": { "name": "charge_item_id", "unique": true, "type": "BTREE", "columns": [ "charge_item_id" ] }, "status": { "name": "status", "unique": false, "type": "BTREE", "columns": [ "status" ] }, "combine_Id": { "name": "combine_Id", "unique": false, "type": "BTREE", "columns": [ "lab_repo_id", "charge_id", "lab_type", "charge_item_id", "patient_id", "ipd_id", "org_id" ] } } }, "lab_request_delete": { "create_sql": "CREATE TABLE IF NOT EXISTS `lab_request_delete` ( `del_id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL, `lab_repo_id` int DEFAULT NULL, `charge_id` int DEFAULT NULL, `lab_type` int DEFAULT NULL, `charge_item_id` int DEFAULT NULL, `invoice_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `patient_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `patient_id` int DEFAULT NULL, `ipd_id` int DEFAULT '0', `org_id` int DEFAULT '0', `Request_Date` datetime DEFAULT NULL, `report_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `status` int DEFAULT '0' COMMENT '0 Pending,1 Entered,2confirm,3 Print', `rep_data` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `insert_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `confirm_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `attach_report` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `print_allowed` int DEFAULT '0', `Remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `Report_Data` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `report_data_Impression` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `print_combine` int DEFAULT '1', `collected_time` datetime DEFAULT NULL, `reported_time` datetime DEFAULT NULL, `remove_update_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '1', `report_update` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `report_edit_req_no` int DEFAULT NULL, PRIMARY KEY (`del_id`), KEY `status` (`status`), KEY `combine_Id` (`lab_repo_id`,`charge_id`,`lab_type`,`charge_item_id`,`patient_id`,`ipd_id`,`org_id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "del_id": { "Field": "del_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "lab_repo_id": { "Field": "lab_repo_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "charge_id": { "Field": "charge_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "lab_type": { "Field": "lab_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "charge_item_id": { "Field": "charge_item_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "invoice_code": { "Field": "invoice_code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "patient_name": { "Field": "patient_name", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "patient_id": { "Field": "patient_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "org_id": { "Field": "org_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Request_Date": { "Field": "Request_Date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "report_name": { "Field": "report_name", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status": { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 Pending,1 Entered,2confirm,3 Print" }, "rep_data": { "Field": "rep_data", "Type": "longtext", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_by": { "Field": "insert_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "confirm_by": { "Field": "confirm_by", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "attach_report": { "Field": "attach_report", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "print_allowed": { "Field": "print_allowed", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Remark": { "Field": "Remark", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Report_Data": { "Field": "Report_Data", "Type": "longtext", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "report_data_Impression": { "Field": "report_data_Impression", "Type": "longtext", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "print_combine": { "Field": "print_combine", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "collected_time": { "Field": "collected_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "reported_time": { "Field": "reported_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remove_update_by": { "Field": "remove_update_by", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "report_update": { "Field": "report_update", "Type": "mediumtext", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "report_edit_req_no": { "Field": "report_edit_req_no", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "del_id" ] }, "status": { "name": "status", "unique": false, "type": "BTREE", "columns": [ "status" ] }, "combine_Id": { "name": "combine_Id", "unique": false, "type": "BTREE", "columns": [ "lab_repo_id", "charge_id", "lab_type", "charge_item_id", "patient_id", "ipd_id", "org_id" ] } } }, "lab_request_item": { "create_sql": "CREATE TABLE IF NOT EXISTS `lab_request_item` ( `id` int NOT NULL AUTO_INCREMENT, `lab_request_id` int NOT NULL DEFAULT '0', `lab_repo_id` int NOT NULL DEFAULT '0', `lab_test_id` int NOT NULL DEFAULT '0', `lab_test_value` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `lab_test_option_value` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `lab_test_option_text` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `lab_test_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `lab_test_update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `test_datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `lab_request_id_lab_repo_id_lab_test_id` (`lab_request_id`,`lab_repo_id`,`lab_test_id`) ) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "lab_request_id": { "Field": "lab_request_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "lab_repo_id": { "Field": "lab_repo_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "lab_test_id": { "Field": "lab_test_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "lab_test_value": { "Field": "lab_test_value", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "lab_test_option_value": { "Field": "lab_test_option_value", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "lab_test_option_text": { "Field": "lab_test_option_text", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "lab_test_remark": { "Field": "lab_test_remark", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "lab_test_update_by": { "Field": "lab_test_update_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "test_datetime": { "Field": "test_datetime", "Type": "timestamp", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "lab_request_id_lab_repo_id_lab_test_id": { "name": "lab_request_id_lab_repo_id_lab_test_id", "unique": true, "type": "BTREE", "columns": [ "lab_request_id", "lab_repo_id", "lab_test_id" ] } } }, "lab_rgroups": { "create_sql": "CREATE TABLE IF NOT EXISTS `lab_rgroups` ( `mstRGrpKey` int NOT NULL AUTO_INCREMENT, `RepoGrp` varchar(100) NOT NULL, `PreFix` varchar(3) NOT NULL DEFAULT '0', `Suffix` varchar(3) NOT NULL DEFAULT '0', `LastNo` int NOT NULL DEFAULT '0', `sort_order` int NOT NULL DEFAULT '0', `Notes` varchar(50) NOT NULL DEFAULT '0', PRIMARY KEY (`mstRGrpKey`), UNIQUE KEY `RepoGrp` (`RepoGrp`) ) ENGINE=MyISAM AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb3 ROW_FORMAT=DYNAMIC;", "columns": { "mstRGrpKey": { "Field": "mstRGrpKey", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "RepoGrp": { "Field": "RepoGrp", "Type": "varchar(100)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "PreFix": { "Field": "PreFix", "Type": "varchar(3)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Suffix": { "Field": "Suffix", "Type": "varchar(3)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "LastNo": { "Field": "LastNo", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "sort_order": { "Field": "sort_order", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Notes": { "Field": "Notes", "Type": "varchar(50)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "mstRGrpKey" ] }, "RepoGrp": { "name": "RepoGrp", "unique": true, "type": "BTREE", "columns": [ "RepoGrp" ] } } }, "lab_tests": { "create_sql": "CREATE TABLE IF NOT EXISTS `lab_tests` ( `mstTestKey` int NOT NULL AUTO_INCREMENT, `Test` varchar(80) NOT NULL DEFAULT '0', `TestID` varchar(15) NOT NULL, `Result` varchar(180) NOT NULL DEFAULT '0', `Options` text, `Formula` varchar(50) DEFAULT NULL, `VRule` varchar(50) DEFAULT NULL, `VMsg` varchar(50) DEFAULT NULL, `Unit` varchar(10) NOT NULL DEFAULT '0', `FixedNormals` varchar(30) NOT NULL DEFAULT '0', `isGenderSpecific` int NOT NULL DEFAULT '0', `FixedNormalsWomen` varchar(30) NOT NULL, PRIMARY KEY (`mstTestKey`), UNIQUE KEY `TestID` (`TestID`), KEY `Test` (`Test`) ) ENGINE=MyISAM AUTO_INCREMENT=201 DEFAULT CHARSET=utf8mb3;", "columns": { "mstTestKey": { "Field": "mstTestKey", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "Test": { "Field": "Test", "Type": "varchar(80)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "TestID": { "Field": "TestID", "Type": "varchar(15)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Result": { "Field": "Result", "Type": "varchar(180)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Options": { "Field": "Options", "Type": "text", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Formula": { "Field": "Formula", "Type": "varchar(50)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "VRule": { "Field": "VRule", "Type": "varchar(50)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "VMsg": { "Field": "VMsg", "Type": "varchar(50)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Unit": { "Field": "Unit", "Type": "varchar(10)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "FixedNormals": { "Field": "FixedNormals", "Type": "varchar(30)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "isGenderSpecific": { "Field": "isGenderSpecific", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "FixedNormalsWomen": { "Field": "FixedNormalsWomen", "Type": "varchar(30)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "mstTestKey" ] }, "TestID": { "name": "TestID", "unique": true, "type": "BTREE", "columns": [ "TestID" ] }, "Test": { "name": "Test", "unique": false, "type": "BTREE", "columns": [ "Test" ] } } }, "lab_tests_option": { "create_sql": "CREATE TABLE IF NOT EXISTS `lab_tests_option` ( `id` int NOT NULL AUTO_INCREMENT, `mstTestKey` int DEFAULT NULL, `sort_id` int DEFAULT NULL, `option_value` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `option_text` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `option_bold` int DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `mstTestKey_sort_id` (`mstTestKey`,`sort_id`), UNIQUE KEY `mstTestKey_option_value` (`mstTestKey`,`option_value`), KEY `option_value` (`option_value`) ) ENGINE=InnoDB AUTO_INCREMENT=222 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "mstTestKey": { "Field": "mstTestKey", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "sort_id": { "Field": "sort_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "option_value": { "Field": "option_value", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "option_text": { "Field": "option_text", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "option_bold": { "Field": "option_bold", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "mstTestKey_sort_id": { "name": "mstTestKey_sort_id", "unique": true, "type": "BTREE", "columns": [ "mstTestKey", "sort_id" ] }, "mstTestKey_option_value": { "name": "mstTestKey_option_value", "unique": true, "type": "BTREE", "columns": [ "mstTestKey", "option_value" ] }, "option_value": { "name": "option_value", "unique": false, "type": "BTREE", "columns": [ "option_value" ] } } }, "med_company": { "create_sql": "CREATE TABLE IF NOT EXISTS `med_company` ( `id` int NOT NULL AUTO_INCREMENT, `company_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `contact_person_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `contact_phone_no` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `company_name` (`company_name`) ) ENGINE=InnoDB AUTO_INCREMENT=880 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "company_name": { "Field": "company_name", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "contact_person_name": { "Field": "contact_person_name", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "contact_phone_no": { "Field": "contact_phone_no", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "company_name": { "name": "company_name", "unique": false, "type": "BTREE", "columns": [ "company_name" ] } } }, "med_formulation": { "create_sql": "CREATE TABLE IF NOT EXISTS `med_formulation` ( `id` int NOT NULL AUTO_INCREMENT, `formulation_length` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0', `formulation` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=177 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "formulation_length": { "Field": "formulation_length", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "formulation": { "Field": "formulation", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "med_genric_name": { "create_sql": "CREATE TABLE IF NOT EXISTS `med_genric_name` ( `id` int NOT NULL AUTO_INCREMENT, `gen_desc` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `gen_desc` (`gen_desc`) ) ENGINE=InnoDB AUTO_INCREMENT=5584 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "gen_desc": { "Field": "gen_desc", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "gen_desc": { "name": "gen_desc", "unique": false, "type": "BTREE", "columns": [ "gen_desc" ] } } }, "med_gst_per": { "create_sql": "CREATE TABLE IF NOT EXISTS `med_gst_per` ( `id` int NOT NULL AUTO_INCREMENT, `gst_per` decimal(20,2) NOT NULL DEFAULT '0.00', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "gst_per": { "Field": "gst_per", "Type": "decimal(20,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "med_product_cat_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `med_product_cat_master` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `med_cat_desc` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, PRIMARY KEY (`id`), KEY `med_cat_desc` (`med_cat_desc`) ) ENGINE=MyISAM AUTO_INCREMENT=47 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "med_cat_desc": { "Field": "med_cat_desc", "Type": "varchar(100)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "med_cat_desc": { "name": "med_cat_desc", "unique": false, "type": "BTREE", "columns": [ "med_cat_desc" ] } } }, "med_product_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `med_product_master` ( `id` int NOT NULL AUTO_INCREMENT, `item_name` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, `formulation` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0' COMMENT 'tablet,syp,inj', `formulation_id` int DEFAULT '0', `genericname` varchar(1000) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', `packing` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', `unit_1` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', `unit_2` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', `HSNCODE` varchar(20) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', `CGST_per` decimal(10,2) NOT NULL DEFAULT '0.00', `SGST_per` decimal(10,2) NOT NULL DEFAULT '0.00', `ban_flag_id` int NOT NULL DEFAULT '0', `rack_no` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', `shelf_no` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', `cold_storage` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', `re_order_qty` int NOT NULL DEFAULT '5', `alert_day_before` int NOT NULL DEFAULT '5', `related_drug_id` int NOT NULL DEFAULT '0' COMMENT 'drug_temp->item_id', `company_name` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', `company_id` int NOT NULL DEFAULT '0', `mfgname` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', `insert_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, `is_continue` int NOT NULL DEFAULT '1', `batch_applicable` int NOT NULL DEFAULT '1', `exp_date_applicable` int NOT NULL DEFAULT '1', `schedule_h` int NOT NULL DEFAULT '0', `schedule_h1` int NOT NULL DEFAULT '0', `narcotic` int NOT NULL DEFAULT '0', `schedule_x` int NOT NULL DEFAULT '0', `schedule_g` int NOT NULL DEFAULT '0', `high_risk` int NOT NULL DEFAULT '0', `dosage` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_when` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_freq` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_where` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `qty` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `no_of_days` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `remark` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `item_name` (`item_name`), KEY `company_id` (`company_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2471 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "item_name": { "Field": "item_name", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "formulation": { "Field": "formulation", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "tablet,syp,inj" }, "formulation_id": { "Field": "formulation_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "genericname": { "Field": "genericname", "Type": "varchar(1000)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "packing": { "Field": "packing", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "unit_1": { "Field": "unit_1", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "unit_2": { "Field": "unit_2", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "HSNCODE": { "Field": "HSNCODE", "Type": "varchar(20)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "CGST_per": { "Field": "CGST_per", "Type": "decimal(10,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "SGST_per": { "Field": "SGST_per", "Type": "decimal(10,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ban_flag_id": { "Field": "ban_flag_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "rack_no": { "Field": "rack_no", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "shelf_no": { "Field": "shelf_no", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "cold_storage": { "Field": "cold_storage", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "re_order_qty": { "Field": "re_order_qty", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "5", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "alert_day_before": { "Field": "alert_day_before", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "5", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "related_drug_id": { "Field": "related_drug_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "drug_temp->item_id" }, "company_name": { "Field": "company_name", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "company_id": { "Field": "company_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "mfgname": { "Field": "mfgname", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_by": { "Field": "insert_by", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_continue": { "Field": "is_continue", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "batch_applicable": { "Field": "batch_applicable", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "exp_date_applicable": { "Field": "exp_date_applicable", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "schedule_h": { "Field": "schedule_h", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "schedule_h1": { "Field": "schedule_h1", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "narcotic": { "Field": "narcotic", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "schedule_x": { "Field": "schedule_x", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "schedule_g": { "Field": "schedule_g", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "high_risk": { "Field": "high_risk", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage": { "Field": "dosage", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_when": { "Field": "dosage_when", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_freq": { "Field": "dosage_freq", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_where": { "Field": "dosage_where", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "qty": { "Field": "qty", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "no_of_days": { "Field": "no_of_days", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remark": { "Field": "remark", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "item_name": { "name": "item_name", "unique": true, "type": "BTREE", "columns": [ "item_name" ] }, "company_id": { "name": "company_id", "unique": false, "type": "BTREE", "columns": [ "company_id" ] } } }, "med_product_master_update": { "create_sql": "CREATE TABLE IF NOT EXISTS `med_product_master_update` ( `del_id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL, `item_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `formulation` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'tablet,syp,inj', `formulation_id` int DEFAULT '0', `genericname` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `packing` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `unit_2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `unit_1` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `HSNCODE` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `CGST_per` decimal(10,2) DEFAULT '0.00', `SGST_per` decimal(10,2) DEFAULT '0.00', `ban_flag_id` int DEFAULT '0', `rack_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `shelf_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `cold_storage` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `re_order_qty` int DEFAULT '5', `alert_day_before` int DEFAULT '5', `related_drug_id` int DEFAULT '0' COMMENT 'drug_temp->item_id', `company_name` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `company_id` int NOT NULL DEFAULT '0', `schedule_h` int NOT NULL DEFAULT '0', `schedule_h1` int NOT NULL DEFAULT '0', `narcotic` int NOT NULL DEFAULT '0', `mfgname` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `insert_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `is_continue` int NOT NULL DEFAULT '1', `batch_applicable` int NOT NULL DEFAULT '1', `exp_date_applicable` int NOT NULL DEFAULT '1', `update_by_id` int NOT NULL DEFAULT '1', `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `schedule_x` int NOT NULL DEFAULT '0', `schedule_g` int NOT NULL DEFAULT '0', `high_risk` int NOT NULL DEFAULT '0', `dosage` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_when` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_freq` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_where` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `qty` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `no_of_days` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `remark` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`del_id`) USING BTREE, KEY `id` (`id`) USING BTREE, KEY `item_name` (`item_name`) USING BTREE, KEY `company_name_company_id` (`company_name`,`company_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=DYNAMIC;", "columns": { "del_id": { "Field": "del_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_name": { "Field": "item_name", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "formulation": { "Field": "formulation", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "tablet,syp,inj" }, "formulation_id": { "Field": "formulation_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "genericname": { "Field": "genericname", "Type": "varchar(1000)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "packing": { "Field": "packing", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "unit_2": { "Field": "unit_2", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "unit_1": { "Field": "unit_1", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "HSNCODE": { "Field": "HSNCODE", "Type": "varchar(20)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "CGST_per": { "Field": "CGST_per", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "SGST_per": { "Field": "SGST_per", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ban_flag_id": { "Field": "ban_flag_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "rack_no": { "Field": "rack_no", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "shelf_no": { "Field": "shelf_no", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "cold_storage": { "Field": "cold_storage", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "re_order_qty": { "Field": "re_order_qty", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "5", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "alert_day_before": { "Field": "alert_day_before", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "5", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "related_drug_id": { "Field": "related_drug_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "drug_temp->item_id" }, "company_name": { "Field": "company_name", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "company_id": { "Field": "company_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "schedule_h": { "Field": "schedule_h", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "schedule_h1": { "Field": "schedule_h1", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "narcotic": { "Field": "narcotic", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "mfgname": { "Field": "mfgname", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_by": { "Field": "insert_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_continue": { "Field": "is_continue", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "batch_applicable": { "Field": "batch_applicable", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "exp_date_applicable": { "Field": "exp_date_applicable", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by_id": { "Field": "update_by_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_time": { "Field": "update_time", "Type": "timestamp", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "schedule_x": { "Field": "schedule_x", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "schedule_g": { "Field": "schedule_g", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "high_risk": { "Field": "high_risk", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage": { "Field": "dosage", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_when": { "Field": "dosage_when", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_freq": { "Field": "dosage_freq", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_where": { "Field": "dosage_where", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "qty": { "Field": "qty", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "no_of_days": { "Field": "no_of_days", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remark": { "Field": "remark", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "del_id" ] }, "id": { "name": "id", "unique": false, "type": "BTREE", "columns": [ "id" ] }, "item_name": { "name": "item_name", "unique": false, "type": "BTREE", "columns": [ "item_name" ] }, "company_name_company_id": { "name": "company_name_company_id", "unique": false, "type": "BTREE", "columns": [ "company_name", "company_id" ] } } }, "med_spec": { "create_sql": "CREATE TABLE IF NOT EXISTS `med_spec` ( `id` int NOT NULL AUTO_INCREMENT, `SpecName` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=67 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "SpecName": { "Field": "SpecName", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "med_supplier": { "create_sql": "CREATE TABLE IF NOT EXISTS `med_supplier` ( `sid` int NOT NULL AUTO_INCREMENT, `name_supplier` varchar(100) DEFAULT NULL, `short_name` varchar(50) DEFAULT NULL, `contact_no` varchar(50) DEFAULT NULL, `gst_no` varchar(50) DEFAULT NULL, `city` varchar(50) DEFAULT NULL, `state` varchar(50) DEFAULT NULL, `active` int DEFAULT '1', PRIMARY KEY (`sid`), UNIQUE KEY `gst_no` (`gst_no`) ) ENGINE=InnoDB AUTO_INCREMENT=145 DEFAULT CHARSET=latin1;", "columns": { "sid": { "Field": "sid", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "name_supplier": { "Field": "name_supplier", "Type": "varchar(100)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "short_name": { "Field": "short_name", "Type": "varchar(50)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "contact_no": { "Field": "contact_no", "Type": "varchar(50)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "gst_no": { "Field": "gst_no", "Type": "varchar(50)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "city": { "Field": "city", "Type": "varchar(50)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "state": { "Field": "state", "Type": "varchar(50)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "active": { "Field": "active", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "sid" ] }, "gst_no": { "name": "gst_no", "unique": true, "type": "BTREE", "columns": [ "gst_no" ] } } }, "med_supplier_ledger": { "create_sql": "CREATE TABLE IF NOT EXISTS `med_supplier_ledger` ( `id` int NOT NULL AUTO_INCREMENT, `supplier_id` int DEFAULT '0', `purchase_id` int DEFAULT '0', `tran_date` date DEFAULT NULL, `credit_debit` int DEFAULT '0' COMMENT '0 Cr, 1 Dr', `amount` decimal(10,2) DEFAULT NULL, `bank_id` int DEFAULT '1' COMMENT '1 cash,2 bank', `tran_desc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insert_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `insert_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insert_by_id` int DEFAULT NULL, PRIMARY KEY (`id`), KEY `insert_by_id` (`insert_by_id`), KEY `supplier_id_purchase_id_tran_date` (`supplier_id`,`purchase_id`,`tran_date`), KEY `supplier_id_tran_date_mode` (`supplier_id`,`tran_date`,`bank_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "supplier_id": { "Field": "supplier_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "purchase_id": { "Field": "purchase_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "tran_date": { "Field": "tran_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "credit_debit": { "Field": "credit_debit", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 Cr, 1 Dr" }, "amount": { "Field": "amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bank_id": { "Field": "bank_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "1 cash,2 bank" }, "tran_desc": { "Field": "tran_desc", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_datetime": { "Field": "insert_datetime", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_by": { "Field": "insert_by", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_by_id": { "Field": "insert_by_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "insert_by_id": { "name": "insert_by_id", "unique": false, "type": "BTREE", "columns": [ "insert_by_id" ] }, "supplier_id_purchase_id_tran_date": { "name": "supplier_id_purchase_id_tran_date", "unique": false, "type": "BTREE", "columns": [ "supplier_id", "purchase_id", "tran_date" ] }, "supplier_id_tran_date_mode": { "name": "supplier_id_tran_date_mode", "unique": false, "type": "BTREE", "columns": [ "supplier_id", "tran_date", "bank_id" ] } } }, "medical_admin_action_log": { "create_sql": "CREATE TABLE IF NOT EXISTS `medical_admin_action_log` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `action_type` varchar(50) NOT NULL, `action_summary` varchar(255) NOT NULL, `payload_json` text, `created_by_id` int DEFAULT NULL, `created_by_name` varchar(160) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `idx_action_type` (`action_type`), KEY `idx_created_at` (`created_at`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "action_type": { "Field": "action_type", "Type": "varchar(50)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "action_summary": { "Field": "action_summary", "Type": "varchar(255)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payload_json": { "Field": "payload_json", "Type": "text", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_by_id": { "Field": "created_by_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_by_name": { "Field": "created_by_name", "Type": "varchar(160)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "idx_action_type": { "name": "idx_action_type", "unique": false, "type": "BTREE", "columns": [ "action_type" ] }, "idx_created_at": { "name": "idx_created_at", "unique": false, "type": "BTREE", "columns": [ "created_at" ] } } }, "medical_bank": { "create_sql": "CREATE TABLE IF NOT EXISTS `medical_bank` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `bank_name` varchar(150) COLLATE utf8mb4_general_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "bank_name": { "Field": "bank_name", "Type": "varchar(150)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "medical_bank_payment_source": { "create_sql": "CREATE TABLE IF NOT EXISTS `medical_bank_payment_source` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `bank_id` int unsigned NOT NULL, `pay_type` varchar(150) COLLATE utf8mb4_general_ci NOT NULL, PRIMARY KEY (`id`), KEY `bank_id` (`bank_id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "bank_id": { "Field": "bank_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pay_type": { "Field": "pay_type", "Type": "varchar(150)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "bank_id": { "name": "bank_id", "unique": false, "type": "BTREE", "columns": [ "bank_id" ] } } }, "migrations": { "create_sql": "CREATE TABLE IF NOT EXISTS `migrations` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `version` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `class` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `group` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `namespace` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `time` int NOT NULL, `batch` int unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=54 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "bigint unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "version": { "Field": "version", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "class": { "Field": "class", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "group": { "Field": "group", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "namespace": { "Field": "namespace", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "time": { "Field": "time", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "batch": { "Field": "batch", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "name_list": { "create_sql": "CREATE TABLE IF NOT EXISTS `name_list` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) COLLATE utf8mb4_general_ci NOT NULL, PRIMARY KEY (`id`), KEY `name` (`name`) ) ENGINE=MyISAM AUTO_INCREMENT=198 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "name": { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "name": { "name": "name", "unique": false, "type": "BTREE", "columns": [ "name" ] } } }, "nhcx_claim_documents": { "create_sql": "CREATE TABLE IF NOT EXISTS `nhcx_claim_documents` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `ipd_id` bigint unsigned DEFAULT NULL, `case_id` bigint unsigned DEFAULT NULL, `patient_id` bigint unsigned DEFAULT NULL, `claim_type` varchar(60) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'institutional', `claim_json` longtext COLLATE utf8mb4_general_ci NOT NULL, `claim_status` varchar(30) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'draft', `external_ref` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `error_message` text COLLATE utf8mb4_general_ci, `pushed_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `ipd_id` (`ipd_id`), KEY `case_id` (`case_id`), KEY `patient_id` (`patient_id`), KEY `claim_status` (`claim_status`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "bigint unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "bigint unsigned", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "case_id": { "Field": "case_id", "Type": "bigint unsigned", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "patient_id": { "Field": "patient_id", "Type": "bigint unsigned", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "claim_type": { "Field": "claim_type", "Type": "varchar(60)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": "institutional", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "claim_json": { "Field": "claim_json", "Type": "longtext", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "claim_status": { "Field": "claim_status", "Type": "varchar(30)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": "draft", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "external_ref": { "Field": "external_ref", "Type": "varchar(120)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "error_message": { "Field": "error_message", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pushed_at": { "Field": "pushed_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "ipd_id": { "name": "ipd_id", "unique": false, "type": "BTREE", "columns": [ "ipd_id" ] }, "case_id": { "name": "case_id", "unique": false, "type": "BTREE", "columns": [ "case_id" ] }, "patient_id": { "name": "patient_id", "unique": false, "type": "BTREE", "columns": [ "patient_id" ] }, "claim_status": { "name": "claim_status", "unique": false, "type": "BTREE", "columns": [ "claim_status" ] } } }, "nursing_bedside_items": { "create_sql": "CREATE TABLE IF NOT EXISTS `nursing_bedside_items` ( `item_id` int NOT NULL AUTO_INCREMENT, `item_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `item_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `item_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'LAB_TEST, PROCEDURE, CONSUMABLE, SERVICE, etc.', `category` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Grouping: Vitals, Lab Tests, Procedures, etc.', `default_rate` decimal(10,2) NOT NULL DEFAULT '0.00', `unit` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'Unit' COMMENT 'Unit of measurement', `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `is_active` tinyint(1) NOT NULL DEFAULT '1', `is_billable` tinyint(1) NOT NULL DEFAULT '1', `created_by` int DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_by` int DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`item_id`), UNIQUE KEY `item_code` (`item_code`), KEY `item_type` (`item_type`), KEY `category` (`category`), KEY `is_active` (`is_active`) ) ENGINE=InnoDB AUTO_INCREMENT=55 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;", "columns": { "item_id": { "Field": "item_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "item_code": { "Field": "item_code", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_name": { "Field": "item_name", "Type": "varchar(200)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_type": { "Field": "item_type", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "LAB_TEST, PROCEDURE, CONSUMABLE, SERVICE, etc." }, "category": { "Field": "category", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "Grouping: Vitals, Lab Tests, Procedures, etc." }, "default_rate": { "Field": "default_rate", "Type": "decimal(10,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "unit": { "Field": "unit", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "Unit", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "Unit of measurement" }, "description": { "Field": "description", "Type": "text", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_active": { "Field": "is_active", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_billable": { "Field": "is_billable", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_by": { "Field": "created_by", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "timestamp", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_by": { "Field": "updated_by", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "item_id" ] }, "item_code": { "name": "item_code", "unique": true, "type": "BTREE", "columns": [ "item_code" ] }, "item_type": { "name": "item_type", "unique": false, "type": "BTREE", "columns": [ "item_type" ] }, "category": { "name": "category", "unique": false, "type": "BTREE", "columns": [ "category" ] }, "is_active": { "name": "is_active", "unique": false, "type": "BTREE", "columns": [ "is_active" ] } } }, "nursing_bedside_items_insurance": { "create_sql": "CREATE TABLE IF NOT EXISTS `nursing_bedside_items_insurance` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `bedside_item_id` int unsigned NOT NULL, `hc_insurance_id` int unsigned NOT NULL, `amount1` decimal(10,2) NOT NULL DEFAULT '0.00', `code` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL, `isdelete` tinyint(1) NOT NULL DEFAULT '0', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `bedside_item_id` (`bedside_item_id`), KEY `hc_insurance_id` (`hc_insurance_id`), KEY `bedside_item_id_hc_insurance_id` (`bedside_item_id`,`hc_insurance_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "bedside_item_id": { "Field": "bedside_item_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "hc_insurance_id": { "Field": "hc_insurance_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount1": { "Field": "amount1", "Type": "decimal(10,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "code": { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "isdelete": { "Field": "isdelete", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "bedside_item_id": { "name": "bedside_item_id", "unique": false, "type": "BTREE", "columns": [ "bedside_item_id" ] }, "hc_insurance_id": { "name": "hc_insurance_id", "unique": false, "type": "BTREE", "columns": [ "hc_insurance_id" ] }, "bedside_item_id_hc_insurance_id": { "name": "bedside_item_id_hc_insurance_id", "unique": false, "type": "BTREE", "columns": [ "bedside_item_id", "hc_insurance_id" ] } } }, "nursing_ipd_charges": { "create_sql": "CREATE TABLE IF NOT EXISTS `nursing_ipd_charges` ( `charge_id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL, `item_id` int DEFAULT NULL, `item_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `item_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `doctor_id` int DEFAULT NULL, `doctor_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `visit_date` date DEFAULT NULL, `visit_time` time DEFAULT NULL, `consultation_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `duration` int DEFAULT NULL COMMENT 'Duration in minutes', `specialization` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `hospital_clinic` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `is_outside_doctor` tinyint(1) DEFAULT '0', `rate` decimal(10,2) NOT NULL DEFAULT '0.00', `qty` int NOT NULL DEFAULT '1', `amount` decimal(10,2) NOT NULL DEFAULT '0.00', `performed_by` int DEFAULT NULL, `performed_date` date DEFAULT NULL, `performed_time` time DEFAULT NULL, `remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `include_in_bill` tinyint(1) NOT NULL DEFAULT '1', `created_at` datetime DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `updated_by` int DEFAULT NULL, PRIMARY KEY (`charge_id`), KEY `idx_ipd_id` (`ipd_id`), KEY `idx_include_in_bill` (`include_in_bill`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;", "columns": { "charge_id": { "Field": "charge_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_id": { "Field": "item_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_name": { "Field": "item_name", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_type": { "Field": "item_type", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doctor_id": { "Field": "doctor_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doctor_name": { "Field": "doctor_name", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "visit_date": { "Field": "visit_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "visit_time": { "Field": "visit_time", "Type": "time", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "consultation_type": { "Field": "consultation_type", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "duration": { "Field": "duration", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "Duration in minutes" }, "specialization": { "Field": "specialization", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "hospital_clinic": { "Field": "hospital_clinic", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_outside_doctor": { "Field": "is_outside_doctor", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "rate": { "Field": "rate", "Type": "decimal(10,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "qty": { "Field": "qty", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount": { "Field": "amount", "Type": "decimal(10,2)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "performed_by": { "Field": "performed_by", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "performed_date": { "Field": "performed_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "performed_time": { "Field": "performed_time", "Type": "time", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remarks": { "Field": "remarks", "Type": "text", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "include_in_bill": { "Field": "include_in_bill", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_by": { "Field": "updated_by", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "charge_id" ] }, "idx_ipd_id": { "name": "idx_ipd_id", "unique": false, "type": "BTREE", "columns": [ "ipd_id" ] }, "idx_include_in_bill": { "name": "idx_include_in_bill", "unique": false, "type": "BTREE", "columns": [ "include_in_bill" ] } } }, "opd_advice": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_advice` ( `id` int NOT NULL AUTO_INCREMENT, `advice` text, `advice_hindi` longtext, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "advice": { "Field": "advice", "Type": "text", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "advice_hindi": { "Field": "advice_hindi", "Type": "longtext", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "opd_advice_sub": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_advice_sub` ( `id` int NOT NULL AUTO_INCREMENT, `advice_type` int NOT NULL DEFAULT '0', `advice_id` int NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `advice_type_advice_id` (`advice_type`,`advice_id`), KEY `FK_opd_advice_sub_opd_advise` (`advice_id`), CONSTRAINT `FK_opd_advice_sub_opd_advice_type` FOREIGN KEY (`advice_type`) REFERENCES `opd_advice_type` (`id`), CONSTRAINT `FK_opd_advice_sub_opd_advise` FOREIGN KEY (`advice_id`) REFERENCES `opd_advice` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "advice_type": { "Field": "advice_type", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "advice_id": { "Field": "advice_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "advice_type_advice_id": { "name": "advice_type_advice_id", "unique": false, "type": "BTREE", "columns": [ "advice_type", "advice_id" ] }, "FK_opd_advice_sub_opd_advise": { "name": "FK_opd_advice_sub_opd_advise", "unique": false, "type": "BTREE", "columns": [ "advice_id" ] } } }, "opd_advice_type": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_advice_type` ( `id` int NOT NULL AUTO_INCREMENT, `advice_for` varchar(50) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "advice_for": { "Field": "advice_for", "Type": "varchar(50)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "opd_advise": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_advise` ( `id` int NOT NULL AUTO_INCREMENT, `advice` varchar(1000) DEFAULT NULL, `advice_hindi` varchar(1000) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "advice": { "Field": "advice", "Type": "varchar(1000)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "advice_hindi": { "Field": "advice_hindi", "Type": "varchar(1000)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "opd_appointment": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_appointment` ( `id` int NOT NULL AUTO_INCREMENT, `HCODE` int NOT NULL DEFAULT '0', `doc_id` int NOT NULL DEFAULT '0', `dept_id` int NOT NULL DEFAULT '0', `opd_date` date DEFAULT '0000-00-00', `opd_day_slot` int DEFAULT '0', `opd_no` int DEFAULT '0', `p_id` int DEFAULT '0', `last_opd_no` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0', `pname` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0', `phone_no` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0', `update_mehod` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0' COMMENT '0 for system,1 for App,2 for call,3 for SMS', `update_status` int DEFAULT '0' COMMENT '0 Pending,1 Confirm,2 Cancel', `assign_opd_id` int DEFAULT '0', PRIMARY KEY (`id`), KEY `phone_no` (`phone_no`), KEY `opd_date_opd_day_slot_opd_no_p_id` (`opd_date`,`opd_day_slot`,`opd_no`,`p_id`), KEY `assign_opd_id` (`assign_opd_id`), KEY `HCODE_doc_id` (`HCODE`,`doc_id`), KEY `HCODE_dept_id` (`HCODE`,`dept_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "HCODE": { "Field": "HCODE", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_id": { "Field": "doc_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dept_id": { "Field": "dept_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_date": { "Field": "opd_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0000-00-00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_day_slot": { "Field": "opd_day_slot", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_no": { "Field": "opd_no", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_id": { "Field": "p_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "last_opd_no": { "Field": "last_opd_no", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pname": { "Field": "pname", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "phone_no": { "Field": "phone_no", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_mehod": { "Field": "update_mehod", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 for system,1 for App,2 for call,3 for SMS" }, "update_status": { "Field": "update_status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 Pending,1 Confirm,2 Cancel" }, "assign_opd_id": { "Field": "assign_opd_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "phone_no": { "name": "phone_no", "unique": false, "type": "BTREE", "columns": [ "phone_no" ] }, "opd_date_opd_day_slot_opd_no_p_id": { "name": "opd_date_opd_day_slot_opd_no_p_id", "unique": false, "type": "BTREE", "columns": [ "opd_date", "opd_day_slot", "opd_no", "p_id" ] }, "assign_opd_id": { "name": "assign_opd_id", "unique": false, "type": "BTREE", "columns": [ "assign_opd_id" ] }, "HCODE_doc_id": { "name": "HCODE_doc_id", "unique": false, "type": "BTREE", "columns": [ "HCODE", "doc_id" ] }, "HCODE_dept_id": { "name": "HCODE_dept_id", "unique": false, "type": "BTREE", "columns": [ "HCODE", "dept_id" ] } } }, "opd_autotype_keyword_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_autotype_keyword_master` ( `id` int NOT NULL AUTO_INCREMENT, `doc_id` int NOT NULL DEFAULT '0', `section_key` varchar(80) COLLATE utf32_unicode_ci NOT NULL, `keyword` varchar(255) COLLATE utf32_unicode_ci NOT NULL, `is_active` tinyint NOT NULL DEFAULT '1', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uniq_doc_section_keyword` (`doc_id`,`section_key`,`keyword`(120)), KEY `idx_section_keyword` (`section_key`,`keyword`(120)), KEY `idx_doc_active` (`doc_id`,`is_active`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_id": { "Field": "doc_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "section_key": { "Field": "section_key", "Type": "varchar(80)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "keyword": { "Field": "keyword", "Type": "varchar(255)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_active": { "Field": "is_active", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "uniq_doc_section_keyword": { "name": "uniq_doc_section_keyword", "unique": true, "type": "BTREE", "columns": [ "doc_id", "section_key", "keyword" ] }, "idx_section_keyword": { "name": "idx_section_keyword", "unique": false, "type": "BTREE", "columns": [ "section_key", "keyword" ] }, "idx_doc_active": { "name": "idx_doc_active", "unique": false, "type": "BTREE", "columns": [ "doc_id", "is_active" ] } } }, "opd_clinical_template_usage": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_clinical_template_usage` ( `id` int NOT NULL AUTO_INCREMENT, `doc_id` int NOT NULL, `template_id` int NOT NULL, `section_key` varchar(80) COLLATE utf32_unicode_ci NOT NULL, `use_count` int NOT NULL DEFAULT '0', `last_used_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uniq_doc_template_section` (`doc_id`,`template_id`,`section_key`), KEY `idx_template` (`template_id`), KEY `idx_section_use` (`section_key`,`use_count`) ) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_id": { "Field": "doc_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "template_id": { "Field": "template_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "section_key": { "Field": "section_key", "Type": "varchar(80)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "use_count": { "Field": "use_count", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "last_used_at": { "Field": "last_used_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "uniq_doc_template_section": { "name": "uniq_doc_template_section", "unique": true, "type": "BTREE", "columns": [ "doc_id", "template_id", "section_key" ] }, "idx_template": { "name": "idx_template", "unique": false, "type": "BTREE", "columns": [ "template_id" ] }, "idx_section_use": { "name": "idx_section_use", "unique": false, "type": "BTREE", "columns": [ "section_key", "use_count" ] } } }, "opd_clinical_templates": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_clinical_templates` ( `id` int NOT NULL AUTO_INCREMENT, `doc_id` int NOT NULL DEFAULT '0', `section_key` varchar(80) COLLATE utf32_unicode_ci NOT NULL, `template_name` varchar(255) COLLATE utf32_unicode_ci NOT NULL, `template_text` text COLLATE utf32_unicode_ci NOT NULL, `is_active` tinyint NOT NULL DEFAULT '1', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_doc_section` (`doc_id`,`section_key`), KEY `idx_section_active` (`section_key`,`is_active`) ) ENGINE=MyISAM AUTO_INCREMENT=16 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_id": { "Field": "doc_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "section_key": { "Field": "section_key", "Type": "varchar(80)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "template_name": { "Field": "template_name", "Type": "varchar(255)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "template_text": { "Field": "template_text", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_active": { "Field": "is_active", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "idx_doc_section": { "name": "idx_doc_section", "unique": false, "type": "BTREE", "columns": [ "doc_id", "section_key" ] }, "idx_section_active": { "name": "idx_section_active", "unique": false, "type": "BTREE", "columns": [ "section_key", "is_active" ] } } }, "opd_dose_duration": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_dose_duration` ( `id` int NOT NULL AUTO_INCREMENT, `duration` varchar(50) NOT NULL, PRIMARY KEY (`id`), KEY `duration` (`duration`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "duration": { "Field": "duration", "Type": "varchar(50)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "duration": { "name": "duration", "unique": false, "type": "BTREE", "columns": [ "duration" ] } } }, "opd_dose_frequency": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_dose_frequency` ( `dose_freq_id` int NOT NULL AUTO_INCREMENT, `dose_sign` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dose_sign_desc` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dose_sign_hindi` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`dose_freq_id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=DYNAMIC;", "columns": { "dose_freq_id": { "Field": "dose_freq_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "dose_sign": { "Field": "dose_sign", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dose_sign_desc": { "Field": "dose_sign_desc", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dose_sign_hindi": { "Field": "dose_sign_hindi", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "dose_freq_id" ] } } }, "opd_dose_remark": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_dose_remark` ( `id` int NOT NULL AUTO_INCREMENT, `dose_remark` int DEFAULT NULL, PRIMARY KEY (`id`), KEY `dose_remark` (`dose_remark`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "dose_remark": { "Field": "dose_remark", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "dose_remark": { "name": "dose_remark", "unique": false, "type": "BTREE", "columns": [ "dose_remark" ] } } }, "opd_dose_shed": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_dose_shed` ( `dose_shed_id` int NOT NULL AUTO_INCREMENT, `dose_show_sign` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '', `dose_show_desc` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '', PRIMARY KEY (`dose_shed_id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "dose_shed_id": { "Field": "dose_shed_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "dose_show_sign": { "Field": "dose_show_sign", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dose_show_desc": { "Field": "dose_show_desc", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "dose_shed_id" ] } } }, "opd_dose_when": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_dose_when` ( `dose_when_id` int NOT NULL AUTO_INCREMENT, `dose_sign` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dose_sign_desc` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dose_sign_hindi` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`dose_when_id`) ) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "dose_when_id": { "Field": "dose_when_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "dose_sign": { "Field": "dose_sign", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dose_sign_desc": { "Field": "dose_sign_desc", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dose_sign_hindi": { "Field": "dose_sign_hindi", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "dose_when_id" ] } } }, "opd_dose_where": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_dose_where` ( `dose_where_id` int NOT NULL AUTO_INCREMENT, `dose_sign` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dose_sign_desc` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dose_sign_hindi` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`dose_where_id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=DYNAMIC;", "columns": { "dose_where_id": { "Field": "dose_where_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "dose_sign": { "Field": "dose_sign", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dose_sign_desc": { "Field": "dose_sign_desc", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dose_sign_hindi": { "Field": "dose_sign_hindi", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "dose_where_id" ] } } }, "opd_fhir_documents": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_fhir_documents` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `opd_id` int unsigned NOT NULL, `opd_session_id` int unsigned NOT NULL, `bundle_type` varchar(80) COLLATE utf8mb4_general_ci NOT NULL, `bundle_json` longtext COLLATE utf8mb4_general_ci NOT NULL, `generated_by` varchar(80) COLLATE utf8mb4_general_ci NOT NULL, `generated_at` datetime NOT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `opd_id` (`opd_id`), KEY `opd_session_id` (`opd_session_id`), KEY `bundle_type` (`bundle_type`) ) ENGINE=MyISAM AUTO_INCREMENT=101 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "bigint unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_id": { "Field": "opd_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_session_id": { "Field": "opd_session_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bundle_type": { "Field": "bundle_type", "Type": "varchar(80)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bundle_json": { "Field": "bundle_json", "Type": "longtext", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "generated_by": { "Field": "generated_by", "Type": "varchar(80)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "generated_at": { "Field": "generated_at", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "opd_id": { "name": "opd_id", "unique": false, "type": "BTREE", "columns": [ "opd_id" ] }, "opd_session_id": { "name": "opd_session_id", "unique": false, "type": "BTREE", "columns": [ "opd_session_id" ] }, "bundle_type": { "name": "bundle_type", "unique": false, "type": "BTREE", "columns": [ "bundle_type" ] } } }, "opd_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_master` ( `opd_id` int NOT NULL AUTO_INCREMENT, `opd_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `p_id` int DEFAULT NULL, `P_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `opd_book_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `apointment_date` date DEFAULT NULL, `opd_spec_id` int DEFAULT NULL, `opd_no` int DEFAULT NULL, `doc_id` int DEFAULT NULL, `doc_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `doc_spec` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insurance_id` int DEFAULT '0', `insurance_case_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `opd_fee_type` int DEFAULT '0', `opd_fee_id` int DEFAULT NULL, `opd_fee_gross_amount` decimal(10,2) DEFAULT NULL, `opd_discount` decimal(10,2) DEFAULT '0.00', `opd_disc_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `opd_disc_update_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `opd_fee_amount` decimal(10,2) DEFAULT '0.00', `opd_fee_amount_1` decimal(10,2) DEFAULT '0.00', `opd_fee_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `opd_status` int DEFAULT '1', `opd_status_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `payment_status` int DEFAULT '0' COMMENT '0 Pending,1 Confirm', `payment_id` int DEFAULT '0', `payment_mode` int DEFAULT '0' COMMENT '0 Pending,1 cash , 2 Card,3 ECHS Credit', `payment_mode_desc` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `confirm_pay_opd` datetime DEFAULT NULL, `prepared_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `prepared_by_id` int DEFAULT NULL, `running_opd` int DEFAULT '0', `running_opd_id` int DEFAULT '0', `last_opdvisit_date` date DEFAULT NULL, `no_visit` int DEFAULT '0', `online_book` int DEFAULT '0', PRIMARY KEY (`opd_id`), KEY `p_id` (`p_id`), KEY `opd_code` (`opd_code`), KEY `ech_clam_id` (`insurance_case_id`), KEY `prepared_by` (`prepared_by`), KEY `opd_status` (`opd_status`), KEY `P_name` (`P_name`), KEY `opd_apointment_date_doc` (`opd_id`,`opd_code`,`p_id`,`opd_book_date`,`apointment_date`,`doc_id`,`opd_status`,`insurance_case_id`) USING BTREE, KEY `online_book` (`online_book`), KEY `opd_id_p_id_apointment_date_insurance_id` (`opd_id`,`p_id`,`apointment_date`,`insurance_id`), KEY `idx_opd_master_date_doc_status` (`apointment_date`,`doc_id`,`opd_status`), KEY `idx_opd_master_doc_date` (`doc_id`,`apointment_date`), KEY `idx_opd_master_opd_id` (`opd_id`) ) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "opd_id": { "Field": "opd_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_code": { "Field": "opd_code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_id": { "Field": "p_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "P_name": { "Field": "P_name", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_book_date": { "Field": "opd_book_date", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "apointment_date": { "Field": "apointment_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_spec_id": { "Field": "opd_spec_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_no": { "Field": "opd_no", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_id": { "Field": "doc_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_name": { "Field": "doc_name", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_spec": { "Field": "doc_spec", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insurance_id": { "Field": "insurance_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insurance_case_id": { "Field": "insurance_case_id", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_fee_type": { "Field": "opd_fee_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_fee_id": { "Field": "opd_fee_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_fee_gross_amount": { "Field": "opd_fee_gross_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_discount": { "Field": "opd_discount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_disc_remark": { "Field": "opd_disc_remark", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_disc_update_by": { "Field": "opd_disc_update_by", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_fee_amount": { "Field": "opd_fee_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_fee_amount_1": { "Field": "opd_fee_amount_1", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_fee_desc": { "Field": "opd_fee_desc", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_status": { "Field": "opd_status", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_status_remark": { "Field": "opd_status_remark", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_status": { "Field": "payment_status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 Pending,1 Confirm" }, "payment_id": { "Field": "payment_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_mode": { "Field": "payment_mode", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 Pending,1 cash , 2 Card,3 ECHS Credit" }, "payment_mode_desc": { "Field": "payment_mode_desc", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "confirm_pay_opd": { "Field": "confirm_pay_opd", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "prepared_by": { "Field": "prepared_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "prepared_by_id": { "Field": "prepared_by_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "running_opd": { "Field": "running_opd", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "running_opd_id": { "Field": "running_opd_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "last_opdvisit_date": { "Field": "last_opdvisit_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "no_visit": { "Field": "no_visit", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "online_book": { "Field": "online_book", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "opd_id" ] }, "p_id": { "name": "p_id", "unique": false, "type": "BTREE", "columns": [ "p_id" ] }, "opd_code": { "name": "opd_code", "unique": false, "type": "BTREE", "columns": [ "opd_code" ] }, "ech_clam_id": { "name": "ech_clam_id", "unique": false, "type": "BTREE", "columns": [ "insurance_case_id" ] }, "prepared_by": { "name": "prepared_by", "unique": false, "type": "BTREE", "columns": [ "prepared_by" ] }, "opd_status": { "name": "opd_status", "unique": false, "type": "BTREE", "columns": [ "opd_status" ] }, "P_name": { "name": "P_name", "unique": false, "type": "BTREE", "columns": [ "P_name" ] }, "opd_apointment_date_doc": { "name": "opd_apointment_date_doc", "unique": false, "type": "BTREE", "columns": [ "opd_id", "opd_code", "p_id", "opd_book_date", "apointment_date", "doc_id", "opd_status", "insurance_case_id" ] }, "online_book": { "name": "online_book", "unique": false, "type": "BTREE", "columns": [ "online_book" ] }, "opd_id_p_id_apointment_date_insurance_id": { "name": "opd_id_p_id_apointment_date_insurance_id", "unique": false, "type": "BTREE", "columns": [ "opd_id", "p_id", "apointment_date", "insurance_id" ] }, "idx_opd_master_date_doc_status": { "name": "idx_opd_master_date_doc_status", "unique": false, "type": "BTREE", "columns": [ "apointment_date", "doc_id", "opd_status" ] }, "idx_opd_master_doc_date": { "name": "idx_opd_master_doc_date", "unique": false, "type": "BTREE", "columns": [ "doc_id", "apointment_date" ] }, "idx_opd_master_opd_id": { "name": "idx_opd_master_opd_id", "unique": false, "type": "BTREE", "columns": [ "opd_id" ] } } }, "opd_med_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_med_master` ( `id` int NOT NULL AUTO_INCREMENT, `item_name` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `formulation` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL COMMENT 'tablet,syp,inj', `formulation_id` int DEFAULT '0', `genericname` varchar(1000) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `company_name` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `company_id` int DEFAULT '0', `mfgname` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `insert_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `schedule_h` int DEFAULT '0', `schedule_h1` int DEFAULT '0', `narcotic` int DEFAULT '0', `schedule_x` int DEFAULT '0', `schedule_g` int DEFAULT '0', `high_risk` int DEFAULT '0', `dosage` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_when` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_freq` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_where` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `qty` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `no_of_days` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `remark` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `salt_name` varchar(255) COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_restriction` varchar(255) COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, KEY `schedule_h_schedule_h1_narcotic` (`schedule_h`,`schedule_h1`,`narcotic`) USING BTREE, KEY `company_name_company_id` (`company_name`,`company_id`) USING BTREE, KEY `item_name` (`item_name`) USING BTREE, KEY `idx_opd_med_master_item_name` (`item_name`), KEY `idx_opd_med_master_formulation` (`formulation`), KEY `idx_opd_med_master_item_form` (`item_name`,`formulation`) ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "item_name": { "Field": "item_name", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "formulation": { "Field": "formulation", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "tablet,syp,inj" }, "formulation_id": { "Field": "formulation_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "genericname": { "Field": "genericname", "Type": "varchar(1000)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "company_name": { "Field": "company_name", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "company_id": { "Field": "company_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "mfgname": { "Field": "mfgname", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_by": { "Field": "insert_by", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "schedule_h": { "Field": "schedule_h", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "schedule_h1": { "Field": "schedule_h1", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "narcotic": { "Field": "narcotic", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "schedule_x": { "Field": "schedule_x", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "schedule_g": { "Field": "schedule_g", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "high_risk": { "Field": "high_risk", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage": { "Field": "dosage", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_when": { "Field": "dosage_when", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_freq": { "Field": "dosage_freq", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_where": { "Field": "dosage_where", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "qty": { "Field": "qty", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "no_of_days": { "Field": "no_of_days", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remark": { "Field": "remark", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "salt_name": { "Field": "salt_name", "Type": "varchar(255)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_restriction": { "Field": "dosage_restriction", "Type": "varchar(255)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "schedule_h_schedule_h1_narcotic": { "name": "schedule_h_schedule_h1_narcotic", "unique": false, "type": "BTREE", "columns": [ "schedule_h", "schedule_h1", "narcotic" ] }, "company_name_company_id": { "name": "company_name_company_id", "unique": false, "type": "BTREE", "columns": [ "company_name", "company_id" ] }, "item_name": { "name": "item_name", "unique": false, "type": "BTREE", "columns": [ "item_name" ] }, "idx_opd_med_master_item_name": { "name": "idx_opd_med_master_item_name", "unique": false, "type": "BTREE", "columns": [ "item_name" ] }, "idx_opd_med_master_formulation": { "name": "idx_opd_med_master_formulation", "unique": false, "type": "BTREE", "columns": [ "formulation" ] }, "idx_opd_med_master_item_form": { "name": "idx_opd_med_master_item_form", "unique": false, "type": "BTREE", "columns": [ "item_name", "formulation" ] } } }, "opd_medicine_favorites": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_medicine_favorites` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `user_id` int unsigned NOT NULL, `med_id` int unsigned NOT NULL, `created_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uniq_user_med_fav` (`user_id`,`med_id`), KEY `idx_user_fav_created` (`user_id`,`created_at`) ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "bigint unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "user_id": { "Field": "user_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "med_id": { "Field": "med_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "uniq_user_med_fav": { "name": "uniq_user_med_fav", "unique": true, "type": "BTREE", "columns": [ "user_id", "med_id" ] }, "idx_user_fav_created": { "name": "idx_user_fav_created", "unique": false, "type": "BTREE", "columns": [ "user_id", "created_at" ] } } }, "opd_medicine_usage": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_medicine_usage` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `user_id` int unsigned NOT NULL, `med_id` int unsigned NOT NULL, `use_count` int unsigned NOT NULL DEFAULT '0', `last_used_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uniq_user_med_usage` (`user_id`,`med_id`), KEY `idx_user_last_used` (`user_id`,`last_used_at`) ) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "bigint unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "user_id": { "Field": "user_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "med_id": { "Field": "med_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "use_count": { "Field": "use_count", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "last_used_at": { "Field": "last_used_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "uniq_user_med_usage": { "name": "uniq_user_med_usage", "unique": true, "type": "BTREE", "columns": [ "user_id", "med_id" ] }, "idx_user_last_used": { "name": "idx_user_last_used", "unique": false, "type": "BTREE", "columns": [ "user_id", "last_used_at" ] } } }, "opd_nextvisit": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_nextvisit` ( `id` int NOT NULL AUTO_INCREMENT, `next_visit_desc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '', `no_of_days` int NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "next_visit_desc": { "Field": "next_visit_desc", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "no_of_days": { "Field": "no_of_days", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "opd_no_time": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_no_time` ( `id` int NOT NULL AUTO_INCREMENT, `opd_no_min` int NOT NULL DEFAULT '0', `opd_no_max` int NOT NULL DEFAULT '0', `opd_time` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_no_min": { "Field": "opd_no_min", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_no_max": { "Field": "opd_no_max", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_time": { "Field": "opd_time", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "opd_prescription": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription` ( `id` int NOT NULL AUTO_INCREMENT, `HCODE` int DEFAULT '0', `opd_id` int DEFAULT NULL, `doc_id` int DEFAULT '0', `revisit` int DEFAULT '0', `visit_status` int DEFAULT '0', `p_id` int DEFAULT '0', `session_id` int DEFAULT '0', `date_opd_visit` date DEFAULT NULL, `queue_no` int DEFAULT '0', `current_queue_no` int DEFAULT '0', `p_datetime` timestamp NULL DEFAULT NULL, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `Finding_Examinations` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `Prescriber_Remarks` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `bp` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `diastolic` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `pulse` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `height` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `weight` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `waist` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `temp` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `rr_min` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `spo2` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `glucose` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `paediatric` int DEFAULT '0', `pregnancy` int DEFAULT '0', `lactation` int DEFAULT '0', `liver_insufficiency` int DEFAULT '0', `renal_insufficiency` int DEFAULT '0', `pulmonary_insufficiency` int DEFAULT '0', `corona_suspected` int DEFAULT '0', `dengue` int DEFAULT '0', `complaints` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `diagnosis` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `Provisional_diagnosis` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `investigation` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `advice` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `next_visit` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `refer_to` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `pallor` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `Icterus` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `cyanosis` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `clubbing` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `edema` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `pain_value` int DEFAULT '-1', PRIMARY KEY (`id`), KEY `HCODE_opd_id_p_id_session_id` (`HCODE`,`opd_id`,`p_id`,`session_id`), KEY `doc_id_date_opd_visit_queue_no` (`doc_id`,`queue_no`,`opd_id`) USING BTREE, KEY `idx_opd_prescription_opd_id` (`opd_id`), KEY `idx_opd_prescription_opd_queue` (`opd_id`,`queue_no`) ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "HCODE": { "Field": "HCODE", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_id": { "Field": "opd_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_id": { "Field": "doc_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "revisit": { "Field": "revisit", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "visit_status": { "Field": "visit_status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_id": { "Field": "p_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "session_id": { "Field": "session_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "date_opd_visit": { "Field": "date_opd_visit", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "queue_no": { "Field": "queue_no", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "current_queue_no": { "Field": "current_queue_no", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_datetime": { "Field": "p_datetime", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Finding_Examinations": { "Field": "Finding_Examinations", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Prescriber_Remarks": { "Field": "Prescriber_Remarks", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bp": { "Field": "bp", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "diastolic": { "Field": "diastolic", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pulse": { "Field": "pulse", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "height": { "Field": "height", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "weight": { "Field": "weight", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "waist": { "Field": "waist", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "temp": { "Field": "temp", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "rr_min": { "Field": "rr_min", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "spo2": { "Field": "spo2", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "glucose": { "Field": "glucose", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "paediatric": { "Field": "paediatric", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pregnancy": { "Field": "pregnancy", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "lactation": { "Field": "lactation", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "liver_insufficiency": { "Field": "liver_insufficiency", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "renal_insufficiency": { "Field": "renal_insufficiency", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pulmonary_insufficiency": { "Field": "pulmonary_insufficiency", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "corona_suspected": { "Field": "corona_suspected", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dengue": { "Field": "dengue", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "complaints": { "Field": "complaints", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "diagnosis": { "Field": "diagnosis", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Provisional_diagnosis": { "Field": "Provisional_diagnosis", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "investigation": { "Field": "investigation", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "advice": { "Field": "advice", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "next_visit": { "Field": "next_visit", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "refer_to": { "Field": "refer_to", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pallor": { "Field": "pallor", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Icterus": { "Field": "Icterus", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "cyanosis": { "Field": "cyanosis", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "clubbing": { "Field": "clubbing", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "edema": { "Field": "edema", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pain_value": { "Field": "pain_value", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "-1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "HCODE_opd_id_p_id_session_id": { "name": "HCODE_opd_id_p_id_session_id", "unique": false, "type": "BTREE", "columns": [ "HCODE", "opd_id", "p_id", "session_id" ] }, "doc_id_date_opd_visit_queue_no": { "name": "doc_id_date_opd_visit_queue_no", "unique": false, "type": "BTREE", "columns": [ "doc_id", "queue_no", "opd_id" ] }, "idx_opd_prescription_opd_id": { "name": "idx_opd_prescription_opd_id", "unique": false, "type": "BTREE", "columns": [ "opd_id" ] }, "idx_opd_prescription_opd_queue": { "name": "idx_opd_prescription_opd_queue", "unique": false, "type": "BTREE", "columns": [ "opd_id", "queue_no" ] } } }, "opd_prescription_advice": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_advice` ( `id` int NOT NULL AUTO_INCREMENT, `opd_id` int DEFAULT '0', `opd_pre_id` int DEFAULT '0', `advice_id` int DEFAULT '0', `advice_txt` text, `advice_txt_hindi` text, PRIMARY KEY (`id`), KEY `opd_id_opd_pre_id_advice_id` (`opd_id`,`opd_pre_id`,`advice_id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_id": { "Field": "opd_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_pre_id": { "Field": "opd_pre_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "advice_id": { "Field": "advice_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "advice_txt": { "Field": "advice_txt", "Type": "text", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "advice_txt_hindi": { "Field": "advice_txt_hindi", "Type": "text", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "opd_id_opd_pre_id_advice_id": { "name": "opd_id_opd_pre_id_advice_id", "unique": false, "type": "BTREE", "columns": [ "opd_id", "opd_pre_id", "advice_id" ] } } }, "opd_prescription_complaint": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_complaint` ( `id` int NOT NULL AUTO_INCREMENT, `opd_pre_id` int NOT NULL DEFAULT '0', `order_id` int NOT NULL DEFAULT '0', `comp_code` int DEFAULT '0', `comp_report` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `comp_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`opd_pre_id`,`order_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_pre_id": { "Field": "opd_pre_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "order_id": { "Field": "order_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comp_code": { "Field": "comp_code", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comp_report": { "Field": "comp_report", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "comp_remark": { "Field": "comp_remark", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_time": { "Field": "insert_time", "Type": "timestamp", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "opd_pre_id_order_id": { "name": "opd_pre_id_order_id", "unique": false, "type": "BTREE", "columns": [ "opd_pre_id", "order_id" ] } } }, "opd_prescription_diagnosis": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_diagnosis` ( `id` int NOT NULL AUTO_INCREMENT, `opd_pre_id` int NOT NULL DEFAULT '0', `order_id` int NOT NULL DEFAULT '0', `diag_code` int DEFAULT '0', `diag_report` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `diag_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`opd_pre_id`,`order_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_pre_id": { "Field": "opd_pre_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "order_id": { "Field": "order_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "diag_code": { "Field": "diag_code", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "diag_report": { "Field": "diag_report", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "diag_remark": { "Field": "diag_remark", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_time": { "Field": "insert_time", "Type": "timestamp", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "opd_pre_id_order_id": { "name": "opd_pre_id_order_id", "unique": false, "type": "BTREE", "columns": [ "opd_pre_id", "order_id" ] } } }, "opd_prescription_investigation": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_investigation` ( `id` int NOT NULL AUTO_INCREMENT, `opd_pre_id` int DEFAULT '0', `order_id` int DEFAULT NULL, `investigation_code` int DEFAULT NULL, `investigation_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `insert_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=91 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_pre_id": { "Field": "opd_pre_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "order_id": { "Field": "order_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "investigation_code": { "Field": "investigation_code", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "investigation_name": { "Field": "investigation_name", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_by": { "Field": "insert_by", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "opd_prescription_layout": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_layout` ( `id` int NOT NULL AUTO_INCREMENT, `HCODE` int DEFAULT NULL, `layout_id` int DEFAULT NULL, `active` int DEFAULT '1', `layout_name` int unsigned DEFAULT NULL, `p_code_w` int unsigned DEFAULT NULL, `p_code_h` int unsigned DEFAULT NULL, `p_code_x` int unsigned DEFAULT NULL, `p_code_y` int unsigned DEFAULT NULL, `p_code_b` int unsigned DEFAULT NULL, `p_code_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `p_name_w` int unsigned DEFAULT NULL, `p_name_h` int unsigned DEFAULT NULL, `p_name_x` int unsigned DEFAULT NULL, `p_name_y` int unsigned DEFAULT NULL, `p_name_b` int unsigned DEFAULT NULL, `p_name_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `gender_w` int DEFAULT NULL, `gender_h` int DEFAULT NULL, `gender_x` int DEFAULT NULL, `gender_y` int DEFAULT NULL, `gender_b` int DEFAULT NULL, `gender_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `age_w` int DEFAULT NULL, `age_h` int DEFAULT NULL, `age_x` int DEFAULT NULL, `age_y` int DEFAULT NULL, `age_b` int DEFAULT NULL, `age_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `opdcode_w` int DEFAULT NULL, `opdcode_h` int DEFAULT NULL, `opdcode_x` int DEFAULT NULL, `opdcode_y` int DEFAULT NULL, `opdcode_b` int DEFAULT NULL, `opdcode_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `odate_w` int DEFAULT NULL, `oDate_h` int DEFAULT NULL, `oDate_x` int DEFAULT NULL, `oDate_y` int DEFAULT NULL, `oDate_b` int DEFAULT NULL, `oDate_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `doctor_name_w` int DEFAULT NULL, `doctor_name_h` int DEFAULT NULL, `doctor_name_x` int DEFAULT NULL, `doctor_name_y` int DEFAULT NULL, `doctor_name_b` int DEFAULT NULL, `doctor_name_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `complaint_w` int DEFAULT NULL, `complaint_h` int DEFAULT NULL, `complaint_x` int DEFAULT NULL, `complaint_y` int DEFAULT NULL, `complaint_b` int DEFAULT NULL, `complaint_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `diagnosis_w` int DEFAULT NULL, `diagnosis_h` int DEFAULT NULL, `diagnosis_x` int DEFAULT NULL, `diagnosis_y` int DEFAULT NULL, `diagnosis_b` int DEFAULT NULL, `diagnosis_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `investigation_w` int DEFAULT NULL, `investigation_h` int DEFAULT NULL, `investigation_x` int DEFAULT NULL, `investigation_y` int DEFAULT NULL, `investigation_b` int DEFAULT NULL, `investigation_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `pharma_w` int DEFAULT NULL, `pharma_h` int DEFAULT NULL, `pharma_x` int DEFAULT NULL, `pharma_y` int DEFAULT NULL, `pharma_b` int DEFAULT NULL, `pharma_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `barcode_w` int DEFAULT NULL, `barcode_h` int DEFAULT NULL, `barcode_x` int DEFAULT NULL, `barcode_y` int DEFAULT NULL, `barcode_b` int DEFAULT NULL, `barcode_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `HCODE_layout_id` (`HCODE`,`layout_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "HCODE": { "Field": "HCODE", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "layout_id": { "Field": "layout_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "active": { "Field": "active", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "layout_name": { "Field": "layout_name", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_code_w": { "Field": "p_code_w", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_code_h": { "Field": "p_code_h", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_code_x": { "Field": "p_code_x", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_code_y": { "Field": "p_code_y", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_code_b": { "Field": "p_code_b", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_code_head": { "Field": "p_code_head", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_name_w": { "Field": "p_name_w", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_name_h": { "Field": "p_name_h", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_name_x": { "Field": "p_name_x", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_name_y": { "Field": "p_name_y", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_name_b": { "Field": "p_name_b", "Type": "int unsigned", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_name_head": { "Field": "p_name_head", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "gender_w": { "Field": "gender_w", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "gender_h": { "Field": "gender_h", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "gender_x": { "Field": "gender_x", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "gender_y": { "Field": "gender_y", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "gender_b": { "Field": "gender_b", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "gender_head": { "Field": "gender_head", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "age_w": { "Field": "age_w", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "age_h": { "Field": "age_h", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "age_x": { "Field": "age_x", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "age_y": { "Field": "age_y", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "age_b": { "Field": "age_b", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "age_head": { "Field": "age_head", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opdcode_w": { "Field": "opdcode_w", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opdcode_h": { "Field": "opdcode_h", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opdcode_x": { "Field": "opdcode_x", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opdcode_y": { "Field": "opdcode_y", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opdcode_b": { "Field": "opdcode_b", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opdcode_head": { "Field": "opdcode_head", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "odate_w": { "Field": "odate_w", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "oDate_h": { "Field": "oDate_h", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "oDate_x": { "Field": "oDate_x", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "oDate_y": { "Field": "oDate_y", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "oDate_b": { "Field": "oDate_b", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "oDate_head": { "Field": "oDate_head", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doctor_name_w": { "Field": "doctor_name_w", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doctor_name_h": { "Field": "doctor_name_h", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doctor_name_x": { "Field": "doctor_name_x", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doctor_name_y": { "Field": "doctor_name_y", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doctor_name_b": { "Field": "doctor_name_b", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doctor_name_head": { "Field": "doctor_name_head", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "complaint_w": { "Field": "complaint_w", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "complaint_h": { "Field": "complaint_h", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "complaint_x": { "Field": "complaint_x", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "complaint_y": { "Field": "complaint_y", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "complaint_b": { "Field": "complaint_b", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "complaint_head": { "Field": "complaint_head", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "diagnosis_w": { "Field": "diagnosis_w", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "diagnosis_h": { "Field": "diagnosis_h", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "diagnosis_x": { "Field": "diagnosis_x", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "diagnosis_y": { "Field": "diagnosis_y", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "diagnosis_b": { "Field": "diagnosis_b", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "diagnosis_head": { "Field": "diagnosis_head", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "investigation_w": { "Field": "investigation_w", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "investigation_h": { "Field": "investigation_h", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "investigation_x": { "Field": "investigation_x", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "investigation_y": { "Field": "investigation_y", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "investigation_b": { "Field": "investigation_b", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "investigation_head": { "Field": "investigation_head", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pharma_w": { "Field": "pharma_w", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pharma_h": { "Field": "pharma_h", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pharma_x": { "Field": "pharma_x", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pharma_y": { "Field": "pharma_y", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pharma_b": { "Field": "pharma_b", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pharma_head": { "Field": "pharma_head", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "barcode_w": { "Field": "barcode_w", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "barcode_h": { "Field": "barcode_h", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "barcode_x": { "Field": "barcode_x", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "barcode_y": { "Field": "barcode_y", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "barcode_b": { "Field": "barcode_b", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "barcode_head": { "Field": "barcode_head", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "HCODE_layout_id": { "name": "HCODE_layout_id", "unique": true, "type": "BTREE", "columns": [ "HCODE", "layout_id" ] } } }, "opd_prescription_old": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_old` ( `id` int NOT NULL AUTO_INCREMENT, `HCODE` int DEFAULT '0', `opd_id` int DEFAULT NULL, `doc_id` int DEFAULT '0', `revisit` int DEFAULT '0', `visit_status` int DEFAULT '0', `p_id` int DEFAULT '0', `session_id` int DEFAULT '0', `date_opd_visit` date DEFAULT NULL, `queue_no` int DEFAULT '0', `p_datetime` timestamp NULL DEFAULT NULL, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `Finding_Examinations` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `Prescriber_Remarks` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `bp` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `diastolic` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `pulse` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `height` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `weight` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `waist` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `temp` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `rr_min` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `spo2` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `glucose` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `paediatric` int DEFAULT '0', `pregnancy` int DEFAULT '0', `lactation` int DEFAULT '0', `liver_insufficiency` int DEFAULT '0', `renal_insufficiency` int DEFAULT '0', `pulmonary_insufficiency` int DEFAULT '0', PRIMARY KEY (`id`), KEY `HCODE_opd_id_p_id_session_id` (`HCODE`,`opd_id`,`p_id`,`session_id`), KEY `doc_id_date_opd_visit_queue_no` (`doc_id`,`date_opd_visit`,`queue_no`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=DYNAMIC;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "HCODE": { "Field": "HCODE", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_id": { "Field": "opd_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_id": { "Field": "doc_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "revisit": { "Field": "revisit", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "visit_status": { "Field": "visit_status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_id": { "Field": "p_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "session_id": { "Field": "session_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "date_opd_visit": { "Field": "date_opd_visit", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "queue_no": { "Field": "queue_no", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_datetime": { "Field": "p_datetime", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Finding_Examinations": { "Field": "Finding_Examinations", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Prescriber_Remarks": { "Field": "Prescriber_Remarks", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bp": { "Field": "bp", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "diastolic": { "Field": "diastolic", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pulse": { "Field": "pulse", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "height": { "Field": "height", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "weight": { "Field": "weight", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "waist": { "Field": "waist", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "temp": { "Field": "temp", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "rr_min": { "Field": "rr_min", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "spo2": { "Field": "spo2", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "glucose": { "Field": "glucose", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "paediatric": { "Field": "paediatric", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pregnancy": { "Field": "pregnancy", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "lactation": { "Field": "lactation", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "liver_insufficiency": { "Field": "liver_insufficiency", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "renal_insufficiency": { "Field": "renal_insufficiency", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pulmonary_insufficiency": { "Field": "pulmonary_insufficiency", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "HCODE_opd_id_p_id_session_id": { "name": "HCODE_opd_id_p_id_session_id", "unique": false, "type": "BTREE", "columns": [ "HCODE", "opd_id", "p_id", "session_id" ] }, "doc_id_date_opd_visit_queue_no": { "name": "doc_id_date_opd_visit_queue_no", "unique": false, "type": "BTREE", "columns": [ "doc_id", "date_opd_visit", "queue_no" ] } } }, "opd_prescription_procedures": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_procedures` ( `id` int NOT NULL AUTO_INCREMENT, `opd_pre_id` int NOT NULL DEFAULT '0', `order_id` int NOT NULL DEFAULT '0', `proc_code` int DEFAULT '0', `proc_report` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `proc_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`opd_pre_id`,`order_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_pre_id": { "Field": "opd_pre_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "order_id": { "Field": "order_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "proc_code": { "Field": "proc_code", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "proc_report": { "Field": "proc_report", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "proc_remark": { "Field": "proc_remark", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_time": { "Field": "insert_time", "Type": "timestamp", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "opd_pre_id_order_id": { "name": "opd_pre_id_order_id", "unique": false, "type": "BTREE", "columns": [ "opd_pre_id", "order_id" ] } } }, "opd_prescription_template": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_template` ( `id` int NOT NULL AUTO_INCREMENT, `rx_group_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, `doc_id` int DEFAULT '0', `p_datetime` timestamp NULL DEFAULT NULL, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `Finding_Examinations` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `Prescriber_Remarks` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `complaints` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `diagnosis` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `investigation` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, PRIMARY KEY (`id`) USING BTREE, KEY `doc_id_date_opd_visit_queue_no` (`doc_id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=85 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=DYNAMIC;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "rx_group_name": { "Field": "rx_group_name", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_id": { "Field": "doc_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_datetime": { "Field": "p_datetime", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Finding_Examinations": { "Field": "Finding_Examinations", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Prescriber_Remarks": { "Field": "Prescriber_Remarks", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "complaints": { "Field": "complaints", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "diagnosis": { "Field": "diagnosis", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "investigation": { "Field": "investigation", "Type": "text", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "doc_id_date_opd_visit_queue_no": { "name": "doc_id_date_opd_visit_queue_no", "unique": false, "type": "BTREE", "columns": [ "doc_id" ] } } }, "opd_prescrption_prescribed": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescrption_prescribed` ( `id` int NOT NULL AUTO_INCREMENT, `opd_pre_id` int DEFAULT NULL, `med_id` int DEFAULT '0', `med_name` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `med_type` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_str` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_when` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_when_str` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_freq` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_freq_str` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_where` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_where_str` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `qty` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `no_of_days` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `remark` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `update_by` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `opd_session_id` (`opd_pre_id`), KEY `med_name` (`med_name`), KEY `med__id` (`med_id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=58 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_pre_id": { "Field": "opd_pre_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "med_id": { "Field": "med_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "med_name": { "Field": "med_name", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "med_type": { "Field": "med_type", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage": { "Field": "dosage", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_str": { "Field": "dosage_str", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_when": { "Field": "dosage_when", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_when_str": { "Field": "dosage_when_str", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_freq": { "Field": "dosage_freq", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_freq_str": { "Field": "dosage_freq_str", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_where": { "Field": "dosage_where", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_where_str": { "Field": "dosage_where_str", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "qty": { "Field": "qty", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "no_of_days": { "Field": "no_of_days", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remark": { "Field": "remark", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "opd_session_id": { "name": "opd_session_id", "unique": false, "type": "BTREE", "columns": [ "opd_pre_id" ] }, "med_name": { "name": "med_name", "unique": false, "type": "BTREE", "columns": [ "med_name" ] }, "med__id": { "name": "med__id", "unique": false, "type": "BTREE", "columns": [ "med_id" ] } } }, "opd_prescrption_prescribed_template": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescrption_prescribed_template` ( `id` int NOT NULL AUTO_INCREMENT, `rx_group_id` int DEFAULT NULL, `med_id` int DEFAULT '0', `med_name` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `med_type` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_when` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_freq` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_where` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `qty` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `no_of_days` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `remark` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `update_by` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_str` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_when_str` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_freq_str` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_where_str` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, KEY `med_name` (`med_name`) USING BTREE, KEY `med__id` (`med_id`) USING BTREE, KEY `opd_session_id` (`rx_group_id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=DYNAMIC;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "rx_group_id": { "Field": "rx_group_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "med_id": { "Field": "med_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "med_name": { "Field": "med_name", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "med_type": { "Field": "med_type", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage": { "Field": "dosage", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_when": { "Field": "dosage_when", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_freq": { "Field": "dosage_freq", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_where": { "Field": "dosage_where", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "qty": { "Field": "qty", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "no_of_days": { "Field": "no_of_days", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remark": { "Field": "remark", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_str": { "Field": "dosage_str", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_when_str": { "Field": "dosage_when_str", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_freq_str": { "Field": "dosage_freq_str", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dosage_where_str": { "Field": "dosage_where_str", "Type": "varchar(100)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "med_name": { "name": "med_name", "unique": false, "type": "BTREE", "columns": [ "med_name" ] }, "med__id": { "name": "med__id", "unique": false, "type": "BTREE", "columns": [ "med_id" ] }, "opd_session_id": { "name": "opd_session_id", "unique": false, "type": "BTREE", "columns": [ "rx_group_id" ] } } }, "opd_visit_list": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_visit_list` ( `id` int NOT NULL AUTO_INCREMENT, `p_id` int NOT NULL DEFAULT '0', `p_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', `opd_id` int NOT NULL DEFAULT '0', `opd_type` int NOT NULL DEFAULT '0', `running_opd` int NOT NULL DEFAULT '0', `date_opd` date NOT NULL, `opd_no` int NOT NULL DEFAULT '0' COMMENT '0 Pending', `opd_slot` int NOT NULL DEFAULT '1', `booking_no` int NOT NULL DEFAULT '0', `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, `phone_number` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, `opd_status` int NOT NULL DEFAULT '0' COMMENT '0 Booking,1 for Confirm Booking,2 OPD No assigned,3 OPD Done,4 OPD Cancel', PRIMARY KEY (`id`), KEY `p_id` (`p_id`), KEY `opd_id` (`opd_id`), KEY `opd_id_running_opd_date_opd_opd_no` (`opd_id`,`running_opd`,`date_opd`,`opd_no`), KEY `p_name` (`p_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "p_id": { "Field": "p_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_name": { "Field": "p_name", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_id": { "Field": "opd_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_type": { "Field": "opd_type", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "running_opd": { "Field": "running_opd", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "date_opd": { "Field": "date_opd", "Type": "date", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_no": { "Field": "opd_no", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 Pending" }, "opd_slot": { "Field": "opd_slot", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "booking_no": { "Field": "booking_no", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "phone_number": { "Field": "phone_number", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "opd_status": { "Field": "opd_status", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 Booking,1 for Confirm Booking,2 OPD No assigned,3 OPD Done,4 OPD Cancel" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "p_id": { "name": "p_id", "unique": false, "type": "BTREE", "columns": [ "p_id" ] }, "opd_id": { "name": "opd_id", "unique": false, "type": "BTREE", "columns": [ "opd_id" ] }, "opd_id_running_opd_date_opd_opd_no": { "name": "opd_id_running_opd_date_opd_opd_no", "unique": false, "type": "BTREE", "columns": [ "opd_id", "running_opd", "date_opd", "opd_no" ] }, "p_name": { "name": "p_name", "unique": false, "type": "BTREE", "columns": [ "p_name" ] } } }, "org_approved_status": { "create_sql": "CREATE TABLE IF NOT EXISTS `org_approved_status` ( `id` int NOT NULL AUTO_INCREMENT, `app_status` varchar(50) NOT NULL, `color` varchar(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "app_status": { "Field": "app_status", "Type": "varchar(50)", "Collation": "latin1_swedish_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "color": { "Field": "color", "Type": "varchar(50)", "Collation": "latin1_swedish_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "org_packing": { "create_sql": "CREATE TABLE IF NOT EXISTS `org_packing` ( `id` int NOT NULL AUTO_INCREMENT, `org_type` int NOT NULL DEFAULT '0' COMMENT '0 for OPd, 1 for IPD', `date_of_create` date NOT NULL, `label_no` varchar(50) NOT NULL, `files_status` int NOT NULL DEFAULT '0' COMMENT '0 Pending,1 Budle Complete, 2 Send', PRIMARY KEY (`id`), KEY `org_type` (`org_type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "org_type": { "Field": "org_type", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 for OPd, 1 for IPD" }, "date_of_create": { "Field": "date_of_create", "Type": "date", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "label_no": { "Field": "label_no", "Type": "varchar(50)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "files_status": { "Field": "files_status", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 Pending,1 Budle Complete, 2 Send" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "org_type": { "name": "org_type", "unique": false, "type": "BTREE", "columns": [ "org_type" ] } } }, "org_payment_request": { "create_sql": "CREATE TABLE IF NOT EXISTS `org_payment_request` ( `id` bigint NOT NULL AUTO_INCREMENT, `org_id` int DEFAULT '0' COMMENT 'Org Case ID', `org_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `patient_id` bigint DEFAULT NULL, `patient_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `org_date` date DEFAULT NULL, `payment_type` int DEFAULT '1' COMMENT '1 For Org.Payment', `payment_amount` decimal(10,2) DEFAULT NULL, `payment_request_datetime` datetime DEFAULT NULL, `request_by_id` int DEFAULT NULL, `request_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `remark` varchar(250) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `payment_datetime` datetime DEFAULT NULL, `payment_process` int DEFAULT '0' COMMENT '0 Pending,1 Complete', `pay_id` int DEFAULT '0', `payment_accept_by_id` int DEFAULT '0', `payment_accept_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `org_id_patient_id` (`org_id`,`patient_id`), KEY `org_code` (`org_code`), KEY `patient_name` (`patient_name`), KEY `org_code_patient_name` (`org_code`,`patient_name`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id": { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "org_id": { "Field": "org_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "Org Case ID" }, "org_code": { "Field": "org_code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "patient_id": { "Field": "patient_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "patient_name": { "Field": "patient_name", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "org_date": { "Field": "org_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_type": { "Field": "payment_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "1 For Org.Payment" }, "payment_amount": { "Field": "payment_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_request_datetime": { "Field": "payment_request_datetime", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "request_by_id": { "Field": "request_by_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "request_by": { "Field": "request_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remark": { "Field": "remark", "Type": "varchar(250)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_datetime": { "Field": "payment_datetime", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_process": { "Field": "payment_process", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 Pending,1 Complete" }, "pay_id": { "Field": "pay_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_accept_by_id": { "Field": "payment_accept_by_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_accept_by": { "Field": "payment_accept_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "org_id_patient_id": { "name": "org_id_patient_id", "unique": false, "type": "BTREE", "columns": [ "org_id", "patient_id" ] }, "org_code": { "name": "org_code", "unique": false, "type": "BTREE", "columns": [ "org_code" ] }, "patient_name": { "name": "patient_name", "unique": false, "type": "BTREE", "columns": [ "patient_name" ] }, "org_code_patient_name": { "name": "org_code_patient_name", "unique": false, "type": "BTREE", "columns": [ "org_code", "patient_name" ] } } }, "organization_case_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `organization_case_master` ( `id` int NOT NULL AUTO_INCREMENT, `p_id` int DEFAULT NULL, `case_id_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `ipd_id` int DEFAULT '0', `case_type` int DEFAULT '0' COMMENT '0 for OPD,1 IPD', `insurance_id` int DEFAULT NULL, `insurance_card_id` int DEFAULT NULL, `insurance_company_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insurance_card_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `relation_with_cardholder` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `card_remark` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insurance_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insurance_no_1` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insurance_no_2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insurance_no_3` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `date_registration` date DEFAULT NULL, `insert_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `p_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `p_gender` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `p_phone_number` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `doc_recd` int DEFAULT '0', `preauth_send` int DEFAULT '0', `org_approved_amount` decimal(10,2) DEFAULT '0.00', `org_approved_status` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'Under Process' COMMENT 'Query,Approved,Deny', `org_approved_status_id` int DEFAULT '1', `final_bill_send` int DEFAULT '0', `final_bill_amount` decimal(10,2) DEFAULT '0.00', `final_approve_amount` decimal(10,2) DEFAULT '0.00', `Org_insurance_comp` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `status` int DEFAULT '0' COMMENT '0-Pending,1-Case Close', `org_submit_date` date DEFAULT NULL, `org_status_update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `log` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `contingent_bill` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `contingent_update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `pay_date_received` date DEFAULT NULL, `amount_recived` decimal(10,2) DEFAULT NULL, `amount_deduction` decimal(10,2) DEFAULT NULL, `amount_claim` decimal(10,2) DEFAULT NULL, `amount_tds` decimal(10,2) DEFAULT NULL, `amount_direct` decimal(10,2) DEFAULT NULL, `amount_update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `amount_payment_info` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `inv_opd_amt` decimal(10,2) DEFAULT '0.00', `inv_opd_charge_amt` decimal(10,2) DEFAULT '0.00', `inv_opd_med_amt` decimal(10,2) DEFAULT '0.00', `packing_id` int DEFAULT '0', `packing_short` int DEFAULT '0', `packing_update_by` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `p_id` (`p_id`), KEY `insurance_id` (`insurance_id`), KEY `p_phone_number` (`p_phone_number`), KEY `date_registration` (`date_registration`), KEY `case_id_code` (`case_id_code`), KEY `insurance_card_name` (`insurance_card_name`), KEY `insurance_no` (`insurance_no`), KEY `insurance_no_1` (`insurance_no_1`), KEY `insurance_no_insurance_no_1` (`insurance_no`,`insurance_no_1`), KEY `case_for_ipd` (`ipd_id`), KEY `case_type` (`case_type`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "p_id": { "Field": "p_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "case_id_code": { "Field": "case_id_code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "case_type": { "Field": "case_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 for OPD,1 IPD" }, "insurance_id": { "Field": "insurance_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insurance_card_id": { "Field": "insurance_card_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insurance_company_name": { "Field": "insurance_company_name", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insurance_card_name": { "Field": "insurance_card_name", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "relation_with_cardholder": { "Field": "relation_with_cardholder", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "card_remark": { "Field": "card_remark", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insurance_no": { "Field": "insurance_no", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insurance_no_1": { "Field": "insurance_no_1", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insurance_no_2": { "Field": "insurance_no_2", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insurance_no_3": { "Field": "insurance_no_3", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "date_registration": { "Field": "date_registration", "Type": "date", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_datetime": { "Field": "insert_datetime", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "p_name": { "Field": "p_name", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_gender": { "Field": "p_gender", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_phone_number": { "Field": "p_phone_number", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_recd": { "Field": "doc_recd", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "preauth_send": { "Field": "preauth_send", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "org_approved_amount": { "Field": "org_approved_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "org_approved_status": { "Field": "org_approved_status", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "Under Process", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "Query,Approved,Deny" }, "org_approved_status_id": { "Field": "org_approved_status_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "final_bill_send": { "Field": "final_bill_send", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "final_bill_amount": { "Field": "final_bill_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "final_approve_amount": { "Field": "final_approve_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Org_insurance_comp": { "Field": "Org_insurance_comp", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status": { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0-Pending,1-Case Close" }, "org_submit_date": { "Field": "org_submit_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "org_status_update_by": { "Field": "org_status_update_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remark": { "Field": "remark", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "log": { "Field": "log", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "contingent_bill": { "Field": "contingent_bill", "Type": "longtext", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "contingent_update_by": { "Field": "contingent_update_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pay_date_received": { "Field": "pay_date_received", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount_recived": { "Field": "amount_recived", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount_deduction": { "Field": "amount_deduction", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount_claim": { "Field": "amount_claim", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount_tds": { "Field": "amount_tds", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount_direct": { "Field": "amount_direct", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount_update_by": { "Field": "amount_update_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount_payment_info": { "Field": "amount_payment_info", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "inv_opd_amt": { "Field": "inv_opd_amt", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "inv_opd_charge_amt": { "Field": "inv_opd_charge_amt", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "inv_opd_med_amt": { "Field": "inv_opd_med_amt", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "packing_id": { "Field": "packing_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "packing_short": { "Field": "packing_short", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "packing_update_by": { "Field": "packing_update_by", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "p_id": { "name": "p_id", "unique": false, "type": "BTREE", "columns": [ "p_id" ] }, "insurance_id": { "name": "insurance_id", "unique": false, "type": "BTREE", "columns": [ "insurance_id" ] }, "p_phone_number": { "name": "p_phone_number", "unique": false, "type": "BTREE", "columns": [ "p_phone_number" ] }, "date_registration": { "name": "date_registration", "unique": false, "type": "BTREE", "columns": [ "date_registration" ] }, "case_id_code": { "name": "case_id_code", "unique": false, "type": "BTREE", "columns": [ "case_id_code" ] }, "insurance_card_name": { "name": "insurance_card_name", "unique": false, "type": "BTREE", "columns": [ "insurance_card_name" ] }, "insurance_no": { "name": "insurance_no", "unique": false, "type": "BTREE", "columns": [ "insurance_no" ] }, "insurance_no_1": { "name": "insurance_no_1", "unique": false, "type": "BTREE", "columns": [ "insurance_no_1" ] }, "insurance_no_insurance_no_1": { "name": "insurance_no_insurance_no_1", "unique": false, "type": "BTREE", "columns": [ "insurance_no", "insurance_no_1" ] }, "case_for_ipd": { "name": "case_for_ipd", "unique": false, "type": "BTREE", "columns": [ "ipd_id" ] }, "case_type": { "name": "case_type", "unique": false, "type": "BTREE", "columns": [ "case_type" ] } } }, "package": { "create_sql": "CREATE TABLE IF NOT EXISTS `package` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_pakage_name` varchar(150) DEFAULT NULL, `pakage_group_id` int DEFAULT NULL, `package_name_edit` int DEFAULT '0', `Pakage_description` text, `Pakage_Min_Amount` decimal(10,2) DEFAULT '0.00', `Pakage_Cat_1_amount` decimal(10,2) DEFAULT '0.00', `Pakage_Cat_2_amount` decimal(10,2) DEFAULT '0.00', `Pakage_Cat_3_amount` decimal(10,2) DEFAULT '0.00', `Pakage_Cat_4_amount` decimal(10,2) DEFAULT '0.00', `Pakage_Term_Condition` text, `update_by` varchar(200) DEFAULT NULL, `update_date` datetime DEFAULT NULL, `active` int DEFAULT '1', PRIMARY KEY (`id`), KEY `ipd_pakage_name` (`ipd_pakage_name`), KEY `pakage_group_id` (`pakage_group_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3801 DEFAULT CHARSET=latin1;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_pakage_name": { "Field": "ipd_pakage_name", "Type": "varchar(150)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pakage_group_id": { "Field": "pakage_group_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "package_name_edit": { "Field": "package_name_edit", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Pakage_description": { "Field": "Pakage_description", "Type": "text", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Pakage_Min_Amount": { "Field": "Pakage_Min_Amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Pakage_Cat_1_amount": { "Field": "Pakage_Cat_1_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Pakage_Cat_2_amount": { "Field": "Pakage_Cat_2_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Pakage_Cat_3_amount": { "Field": "Pakage_Cat_3_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Pakage_Cat_4_amount": { "Field": "Pakage_Cat_4_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Pakage_Term_Condition": { "Field": "Pakage_Term_Condition", "Type": "text", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(200)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_date": { "Field": "update_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "active": { "Field": "active", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "ipd_pakage_name": { "name": "ipd_pakage_name", "unique": false, "type": "BTREE", "columns": [ "ipd_pakage_name" ] }, "pakage_group_id": { "name": "pakage_group_id", "unique": false, "type": "BTREE", "columns": [ "pakage_group_id" ] } } }, "package_group": { "create_sql": "CREATE TABLE IF NOT EXISTS `package_group` ( `pak_id` int NOT NULL AUTO_INCREMENT, `pakage_group_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`pak_id`) ) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "pak_id": { "Field": "pak_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "pakage_group_name": { "Field": "pakage_group_name", "Type": "varchar(50)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "pak_id" ] } } }, "package_insurance": { "create_sql": "CREATE TABLE IF NOT EXISTS `package_insurance` ( `id` int NOT NULL AUTO_INCREMENT, `hc_items_id` int DEFAULT NULL, `hc_insurance_id` int DEFAULT NULL, `i_amount` decimal(10,2) DEFAULT NULL, `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `isdelete` int DEFAULT '0', `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `hc_items_id_hc_insurance_id_isdelete` (`hc_items_id`,`hc_insurance_id`) USING BTREE, KEY `delete` (`isdelete`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=521 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=DYNAMIC;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "hc_items_id": { "Field": "hc_items_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "hc_insurance_id": { "Field": "hc_insurance_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "i_amount": { "Field": "i_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "code": { "Field": "code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "isdelete": { "Field": "isdelete", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_history": { "Field": "update_history", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "hc_items_id_hc_insurance_id_isdelete": { "name": "hc_items_id_hc_insurance_id_isdelete", "unique": true, "type": "BTREE", "columns": [ "hc_items_id", "hc_insurance_id" ] }, "delete": { "name": "delete", "unique": false, "type": "BTREE", "columns": [ "isdelete" ] } } }, "package_insurance_update": { "create_sql": "CREATE TABLE IF NOT EXISTS `package_insurance_update` ( `id_ins_update_id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL DEFAULT '0', `hc_items_id` int DEFAULT NULL, `hc_insurance_id` int DEFAULT NULL, `i_amount` decimal(10,2) DEFAULT NULL, `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `isdelete` int DEFAULT '0', `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `update_datetime` datetime DEFAULT NULL, `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `action` int DEFAULT NULL, `action_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `action_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id_ins_update_id`) USING BTREE, KEY `delete` (`isdelete`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id_ins_update_id": { "Field": "id_ins_update_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "hc_items_id": { "Field": "hc_items_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "hc_insurance_id": { "Field": "hc_insurance_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "i_amount": { "Field": "i_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "code": { "Field": "code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "isdelete": { "Field": "isdelete", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_datetime": { "Field": "update_datetime", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_history": { "Field": "update_history", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "action": { "Field": "action", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "action_by": { "Field": "action_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "action_datetime": { "Field": "action_datetime", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id_ins_update_id" ] }, "delete": { "name": "delete", "unique": false, "type": "BTREE", "columns": [ "isdelete" ] } } }, "package_items": { "create_sql": "CREATE TABLE IF NOT EXISTS `package_items` ( `id` int NOT NULL AUTO_INCREMENT, `item_cat` int NOT NULL DEFAULT '0' COMMENT '0 opd,1 for IPD', `item_type` int NOT NULL DEFAULT '0', `item_id` int NOT NULL DEFAULT '0', `item_name` varchar(50) NOT NULL, `item_amount` decimal(10,2) NOT NULL, `cat_id` decimal(10,2) NOT NULL COMMENT '0 for Comman,1 to 4 cat wise', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "item_cat": { "Field": "item_cat", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 opd,1 for IPD" }, "item_type": { "Field": "item_type", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_id": { "Field": "item_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_name": { "Field": "item_name", "Type": "varchar(50)", "Collation": "latin1_swedish_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_amount": { "Field": "item_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "cat_id": { "Field": "cat_id", "Type": "decimal(10,2)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 for Comman,1 to 4 cat wise" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "patient_doc": { "create_sql": "CREATE TABLE IF NOT EXISTS `patient_doc` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `p_id` int unsigned NOT NULL, `doc_format_id` int unsigned NOT NULL, `dr_id` int unsigned NOT NULL DEFAULT '0', `date_issue` date DEFAULT NULL, `raw_data` longtext NOT NULL, `update_pre_value` tinyint(1) NOT NULL DEFAULT '0', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_p_id` (`p_id`), KEY `idx_doc_format_id` (`doc_format_id`), KEY `idx_dr_id` (`dr_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "p_id": { "Field": "p_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "doc_format_id": { "Field": "doc_format_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dr_id": { "Field": "dr_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "date_issue": { "Field": "date_issue", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "raw_data": { "Field": "raw_data", "Type": "longtext", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_pre_value": { "Field": "update_pre_value", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "idx_p_id": { "name": "idx_p_id", "unique": false, "type": "BTREE", "columns": [ "p_id" ] }, "idx_doc_format_id": { "name": "idx_doc_format_id", "unique": false, "type": "BTREE", "columns": [ "doc_format_id" ] }, "idx_dr_id": { "name": "idx_dr_id", "unique": false, "type": "BTREE", "columns": [ "dr_id" ] } } }, "patient_doc_raw": { "create_sql": "CREATE TABLE IF NOT EXISTS `patient_doc_raw` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `p_id` int unsigned NOT NULL, `p_doc_id` int unsigned NOT NULL, `p_doc_sub_id` int unsigned NOT NULL, `p_doc_raw_value` text, `update_data` tinyint(1) NOT NULL DEFAULT '0', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_p_doc_id` (`p_doc_id`), KEY `idx_p_doc_sub_id` (`p_doc_sub_id`), KEY `idx_p_id` (`p_id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "p_id": { "Field": "p_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_doc_id": { "Field": "p_doc_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_doc_sub_id": { "Field": "p_doc_sub_id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_doc_raw_value": { "Field": "p_doc_raw_value", "Type": "text", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_data": { "Field": "update_data", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "idx_p_doc_id": { "name": "idx_p_doc_id", "unique": false, "type": "BTREE", "columns": [ "p_doc_id" ] }, "idx_p_doc_sub_id": { "name": "idx_p_doc_sub_id", "unique": false, "type": "BTREE", "columns": [ "p_doc_sub_id" ] }, "idx_p_id": { "name": "idx_p_id", "unique": false, "type": "BTREE", "columns": [ "p_id" ] } } }, "patient_duplicate_log": { "create_sql": "CREATE TABLE IF NOT EXISTS `patient_duplicate_log` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `new_uhid` int NOT NULL, `name_of_person` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `new_patient_code` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, `date_of_registration` datetime NOT NULL, `update_by` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `remark_duplicate` text COLLATE utf8mb4_general_ci, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "new_uhid": { "Field": "new_uhid", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "name_of_person": { "Field": "name_of_person", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "new_patient_code": { "Field": "new_patient_code", "Type": "varchar(50)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "date_of_registration": { "Field": "date_of_registration", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remark_duplicate": { "Field": "remark_duplicate", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "patient_investigation": { "create_sql": "CREATE TABLE IF NOT EXISTS `patient_investigation` ( `id` int NOT NULL AUTO_INCREMENT, `p_id` int DEFAULT '0', `investigation_id` int DEFAULT '0', `investigation_name` varchar(50) DEFAULT NULL, `date_investigation` date DEFAULT NULL, `result` int DEFAULT '0', `result_text` tinytext, `normal_range` varchar(50) DEFAULT '', `isbold` int DEFAULT '0', `out_range` int DEFAULT '0' COMMENT '0 for Normal , 1 For Out of Range', PRIMARY KEY (`id`), KEY `p_id` (`p_id`), KEY `investigation_id` (`investigation_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "p_id": { "Field": "p_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "investigation_id": { "Field": "investigation_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "investigation_name": { "Field": "investigation_name", "Type": "varchar(50)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "date_investigation": { "Field": "date_investigation", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "result": { "Field": "result", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "result_text": { "Field": "result_text", "Type": "tinytext", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "normal_range": { "Field": "normal_range", "Type": "varchar(50)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "isbold": { "Field": "isbold", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "out_range": { "Field": "out_range", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 for Normal , 1 For Out of Range" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "p_id": { "name": "p_id", "unique": false, "type": "BTREE", "columns": [ "p_id" ] }, "investigation_id": { "name": "investigation_id", "unique": false, "type": "BTREE", "columns": [ "investigation_id" ] } } }, "patient_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `patient_master` ( `id` int NOT NULL AUTO_INCREMENT, `p_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'Patient Code', `old_uhid` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'If Any OLD HMS Patient Code', `udai` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'Aadhar Number', `p_fname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'Patient Full Name', `p_relative` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'Patient Relative Type like Son, Husband , Father', `p_rname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'Patient Relative Name', `title` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'Mr.' COMMENT 'Title like Mr. , Dr., Master etc', `mphone1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'Patient Phone Number', `mphone2` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'Patient Another Number', `gender` int DEFAULT '1' COMMENT 'Gender', `insurance_id` int DEFAULT '0' COMMENT 'Insurance Id like Direct Patient 0 ', `insurance_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'Insurance Card No.', `card_holder_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '' COMMENT 'Name on Card', `relation_patient_cardholder` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '', `issue_date` date DEFAULT NULL, `expiry_date` date DEFAULT NULL, `insurance_card_id` int DEFAULT '0', `dob` date DEFAULT NULL, `estimate_dob` int DEFAULT '1', `age` int DEFAULT NULL, `age_in` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `age_in_month` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `zip` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `email1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `email2` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `register_date` datetime DEFAULT NULL, `add1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `add2` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `city` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `district` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `state` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `country` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `profile_file_id` int DEFAULT '0', `profile_picture_update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `referby` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insert_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `last_update` datetime DEFAULT NULL, `last_visit` datetime DEFAULT NULL, `blood_group` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `no_of_visit` int DEFAULT '0', `log` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `is_smoking` int DEFAULT '0', `is_alcohol` int DEFAULT '0', `is_drug_abuse` int DEFAULT '0', `is_tobacoo` int DEFAULT '0', `is_hypertesion` int DEFAULT '0', `is_niddm` int DEFAULT '0', `is_hbsag` int DEFAULT '0', `is_hcv` int DEFAULT '0', `is_hiv_I_II` int DEFAULT '0', `Others` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `abha_id` varchar(30) COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `p_code` (`p_code`), KEY `p_fname_123` (`p_fname`,`mphone1`,`mphone2`,`email1`,`email2`), KEY `udai` (`udai`), KEY `insert_date` (`insert_date`), KEY `old_uhid` (`old_uhid`), KEY `p_relative` (`p_relative`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "p_code": { "Field": "p_code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "UNI", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "Patient Code" }, "old_uhid": { "Field": "old_uhid", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "If Any OLD HMS Patient Code" }, "udai": { "Field": "udai", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "Aadhar Number" }, "p_fname": { "Field": "p_fname", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "Patient Full Name" }, "p_relative": { "Field": "p_relative", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "Patient Relative Type like Son, Husband , Father" }, "p_rname": { "Field": "p_rname", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "Patient Relative Name" }, "title": { "Field": "title", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "Mr.", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "Title like Mr. , Dr., Master etc" }, "mphone1": { "Field": "mphone1", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "Patient Phone Number" }, "mphone2": { "Field": "mphone2", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "Patient Another Number" }, "gender": { "Field": "gender", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "Gender" }, "insurance_id": { "Field": "insurance_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "Insurance Id like Direct Patient 0 " }, "insurance_no": { "Field": "insurance_no", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "Insurance Card No." }, "card_holder_name": { "Field": "card_holder_name", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "Name on Card" }, "relation_patient_cardholder": { "Field": "relation_patient_cardholder", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "issue_date": { "Field": "issue_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "expiry_date": { "Field": "expiry_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insurance_card_id": { "Field": "insurance_card_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "dob": { "Field": "dob", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "estimate_dob": { "Field": "estimate_dob", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "age": { "Field": "age", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "age_in": { "Field": "age_in", "Type": "varchar(10)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "age_in_month": { "Field": "age_in_month", "Type": "varchar(10)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "zip": { "Field": "zip", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "email1": { "Field": "email1", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "email2": { "Field": "email2", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "register_date": { "Field": "register_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "add1": { "Field": "add1", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "add2": { "Field": "add2", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "city": { "Field": "city", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "district": { "Field": "district", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "state": { "Field": "state", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "country": { "Field": "country", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "profile_file_id": { "Field": "profile_file_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "profile_picture_update_by": { "Field": "profile_picture_update_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "referby": { "Field": "referby", "Type": "varchar(200)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_date": { "Field": "insert_date", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "last_update": { "Field": "last_update", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "last_visit": { "Field": "last_visit", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "blood_group": { "Field": "blood_group", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "no_of_visit": { "Field": "no_of_visit", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "log": { "Field": "log", "Type": "text", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_smoking": { "Field": "is_smoking", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_alcohol": { "Field": "is_alcohol", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_drug_abuse": { "Field": "is_drug_abuse", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_tobacoo": { "Field": "is_tobacoo", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_hypertesion": { "Field": "is_hypertesion", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_niddm": { "Field": "is_niddm", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_hbsag": { "Field": "is_hbsag", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_hcv": { "Field": "is_hcv", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "is_hiv_I_II": { "Field": "is_hiv_I_II", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Others": { "Field": "Others", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "abha_id": { "Field": "abha_id", "Type": "varchar(30)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "p_code": { "name": "p_code", "unique": true, "type": "BTREE", "columns": [ "p_code" ] }, "p_fname_123": { "name": "p_fname_123", "unique": false, "type": "BTREE", "columns": [ "p_fname", "mphone1", "mphone2", "email1", "email2" ] }, "udai": { "name": "udai", "unique": false, "type": "BTREE", "columns": [ "udai" ] }, "insert_date": { "name": "insert_date", "unique": false, "type": "BTREE", "columns": [ "insert_date" ] }, "old_uhid": { "name": "old_uhid", "unique": false, "type": "BTREE", "columns": [ "old_uhid" ] }, "p_relative": { "name": "p_relative", "unique": false, "type": "BTREE", "columns": [ "p_relative" ] } } }, "patient_tag_assign": { "create_sql": "CREATE TABLE IF NOT EXISTS `patient_tag_assign` ( `id` int NOT NULL AUTO_INCREMENT, `p_id` int DEFAULT '0', `tag_id` int DEFAULT '0', `assign_by_id` int DEFAULT '0', `assign_by` varchar(100) DEFAULT NULL, `assign_datetime` timestamp NULL DEFAULT NULL, `isdelete` int DEFAULT '0' COMMENT '1 for delete', `delete_by` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, KEY `cust_id_tag_id` (`p_id`,`tag_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "p_id": { "Field": "p_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "tag_id": { "Field": "tag_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "assign_by_id": { "Field": "assign_by_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "assign_by": { "Field": "assign_by", "Type": "varchar(100)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "assign_datetime": { "Field": "assign_datetime", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "isdelete": { "Field": "isdelete", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "1 for delete" }, "delete_by": { "Field": "delete_by", "Type": "varchar(100)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "cust_id_tag_id": { "name": "cust_id_tag_id", "unique": false, "type": "BTREE", "columns": [ "p_id", "tag_id" ] } } }, "payment_history": { "create_sql": "CREATE TABLE IF NOT EXISTS `payment_history` ( `id` bigint NOT NULL AUTO_INCREMENT, `payof_type` int DEFAULT NULL COMMENT '1 for OPD,2 for Invoice,3 For IPD,4 for Org.OPD', `payof_id` int DEFAULT NULL, `payof_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `confirm_invoice` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `credit_debit` int DEFAULT '0' COMMENT '0 for Credit, 1 for Debit', `amount` decimal(10,2) DEFAULT NULL, `amount_1` decimal(10,2) DEFAULT NULL, `remark` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insert_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `payment_date` datetime DEFAULT NULL, `update_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `update_by_id` int DEFAULT NULL, `payment_mode` int DEFAULT NULL, `pay_bank_id` int DEFAULT '0', `card_bank` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `card_remark` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `cust_card` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `card_tran_id` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `bankcard_machine` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insert_code` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `update_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `payof_type_payof_id_insert_time` (`payof_type`,`payof_id`,`insert_time`), KEY `ipd_id` (`payof_type`), KEY `payof_type_payof_id` (`payof_type`,`payof_id`,`payof_code`), KEY `insert_code` (`insert_code`), KEY `payment_date` (`payment_date`) ) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "payof_type": { "Field": "payof_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "1 for OPD,2 for Invoice,3 For IPD,4 for Org.OPD" }, "payof_id": { "Field": "payof_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payof_code": { "Field": "payof_code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "confirm_invoice": { "Field": "confirm_invoice", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "credit_debit": { "Field": "credit_debit", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 for Credit, 1 for Debit" }, "amount": { "Field": "amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount_1": { "Field": "amount_1", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remark": { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_time": { "Field": "insert_time", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_date": { "Field": "payment_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by_id": { "Field": "update_by_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_mode": { "Field": "payment_mode", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pay_bank_id": { "Field": "pay_bank_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "card_bank": { "Field": "card_bank", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "card_remark": { "Field": "card_remark", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "cust_card": { "Field": "cust_card", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "card_tran_id": { "Field": "card_tran_id", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bankcard_machine": { "Field": "bankcard_machine", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_code": { "Field": "insert_code", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_remark": { "Field": "update_remark", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "payof_type_payof_id_insert_time": { "name": "payof_type_payof_id_insert_time", "unique": true, "type": "BTREE", "columns": [ "payof_type", "payof_id", "insert_time" ] }, "ipd_id": { "name": "ipd_id", "unique": false, "type": "BTREE", "columns": [ "payof_type" ] }, "payof_type_payof_id": { "name": "payof_type_payof_id", "unique": false, "type": "BTREE", "columns": [ "payof_type", "payof_id", "payof_code" ] }, "insert_code": { "name": "insert_code", "unique": false, "type": "BTREE", "columns": [ "insert_code" ] }, "payment_date": { "name": "payment_date", "unique": false, "type": "BTREE", "columns": [ "payment_date" ] } } }, "payment_history_log": { "create_sql": "CREATE TABLE IF NOT EXISTS `payment_history_log` ( `pay_log_id` int NOT NULL AUTO_INCREMENT, `pay_id` int NOT NULL DEFAULT '0', `update_by` varchar(50) NOT NULL DEFAULT '0', `insert_datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `update_type` int NOT NULL DEFAULT '0' COMMENT '1 ToCash,2 ToBank', `update_remark` varchar(200) NOT NULL, PRIMARY KEY (`pay_log_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "pay_log_id": { "Field": "pay_log_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "pay_id": { "Field": "pay_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(50)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_datetime": { "Field": "insert_datetime", "Type": "timestamp", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "" }, "update_type": { "Field": "update_type", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "1 ToCash,2 ToBank" }, "update_remark": { "Field": "update_remark", "Type": "varchar(200)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "pay_log_id" ] } } }, "payment_history_medical": { "create_sql": "CREATE TABLE IF NOT EXISTS `payment_history_medical` ( `id` bigint NOT NULL AUTO_INCREMENT, `Customerof_type` int DEFAULT NULL COMMENT '1 for Patient,2 for IPD Credit,3 for Custom', `Customerof_id` int DEFAULT NULL, `Customerof_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `Medical_invoice_id` int DEFAULT NULL, `Medical_invoice_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `group_id` int DEFAULT '0', `ipd_id` int DEFAULT '0', `med_type` int DEFAULT '0', `credit_debit` int DEFAULT '0' COMMENT '0 for Credit, 1 for Debit', `amount` decimal(10,2) DEFAULT '0.00', `amount_1` decimal(10,2) DEFAULT '0.00', `remark` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insert_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `payment_date` datetime DEFAULT NULL, `update_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `update_by_id` int DEFAULT NULL, `payment_mode` int DEFAULT NULL, `pay_bank_id` int DEFAULT '0', `card_bank` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `card_remark` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `cust_card` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `card_tran_id` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `bankcard_machine` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `ipd_id` (`Customerof_type`), KEY `update_by` (`update_by`), KEY `update_by_id` (`update_by_id`), KEY `payment_date` (`payment_date`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id": { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "Customerof_type": { "Field": "Customerof_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "1 for Patient,2 for IPD Credit,3 for Custom" }, "Customerof_id": { "Field": "Customerof_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Customerof_code": { "Field": "Customerof_code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Medical_invoice_id": { "Field": "Medical_invoice_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Medical_invoice_code": { "Field": "Medical_invoice_code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "group_id": { "Field": "group_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "med_type": { "Field": "med_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "credit_debit": { "Field": "credit_debit", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 for Credit, 1 for Debit" }, "amount": { "Field": "amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount_1": { "Field": "amount_1", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remark": { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_time": { "Field": "insert_time", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_date": { "Field": "payment_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by": { "Field": "update_by", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_by_id": { "Field": "update_by_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "payment_mode": { "Field": "payment_mode", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "pay_bank_id": { "Field": "pay_bank_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "card_bank": { "Field": "card_bank", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "card_remark": { "Field": "card_remark", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "cust_card": { "Field": "cust_card", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "card_tran_id": { "Field": "card_tran_id", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bankcard_machine": { "Field": "bankcard_machine", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "ipd_id": { "name": "ipd_id", "unique": false, "type": "BTREE", "columns": [ "Customerof_type" ] }, "update_by": { "name": "update_by", "unique": false, "type": "BTREE", "columns": [ "update_by" ] }, "update_by_id": { "name": "update_by_id", "unique": false, "type": "BTREE", "columns": [ "update_by_id" ] }, "payment_date": { "name": "payment_date", "unique": false, "type": "BTREE", "columns": [ "payment_date" ] } } }, "purchase_invoice": { "create_sql": "CREATE TABLE IF NOT EXISTS `purchase_invoice` ( `id` int NOT NULL AUTO_INCREMENT, `sid` int DEFAULT '0', `ischallan` int DEFAULT '0', `monthyear` varchar(50) DEFAULT '1920', `supp_name` varchar(50) DEFAULT '0', `date_of_invoice` date DEFAULT NULL, `Invoice_no` varchar(50) DEFAULT '0', `Taxable_Amt` decimal(10,2) DEFAULT '0.00', `CGST_Amt` decimal(10,2) DEFAULT '0.00', `SGST_Amt` decimal(10,2) DEFAULT '0.00', `T_Net_Amount` decimal(10,2) DEFAULT '0.00', `insert_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `inv_status` int DEFAULT '0' COMMENT '0 For Pending,1 For Final', `inv_status_update_by` int DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `sid_monthyear_Invoice_no` (`sid`,`monthyear`,`Invoice_no`), KEY `supplier_id` (`sid`), KEY `date_of_invoice` (`date_of_invoice`), KEY `idx_pi_date_supplier` (`date_of_invoice`,`sid`), KEY `idx_pi_supplier` (`sid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "sid": { "Field": "sid", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ischallan": { "Field": "ischallan", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "monthyear": { "Field": "monthyear", "Type": "varchar(50)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": "1920", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "supp_name": { "Field": "supp_name", "Type": "varchar(50)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "date_of_invoice": { "Field": "date_of_invoice", "Type": "date", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Invoice_no": { "Field": "Invoice_no", "Type": "varchar(50)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Taxable_Amt": { "Field": "Taxable_Amt", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "CGST_Amt": { "Field": "CGST_Amt", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "SGST_Amt": { "Field": "SGST_Amt", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "T_Net_Amount": { "Field": "T_Net_Amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_time": { "Field": "insert_time", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "inv_status": { "Field": "inv_status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 For Pending,1 For Final" }, "inv_status_update_by": { "Field": "inv_status_update_by", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "sid_monthyear_Invoice_no": { "name": "sid_monthyear_Invoice_no", "unique": true, "type": "BTREE", "columns": [ "sid", "monthyear", "Invoice_no" ] }, "supplier_id": { "name": "supplier_id", "unique": false, "type": "BTREE", "columns": [ "sid" ] }, "date_of_invoice": { "name": "date_of_invoice", "unique": false, "type": "BTREE", "columns": [ "date_of_invoice" ] }, "idx_pi_date_supplier": { "name": "idx_pi_date_supplier", "unique": false, "type": "BTREE", "columns": [ "date_of_invoice", "sid" ] }, "idx_pi_supplier": { "name": "idx_pi_supplier", "unique": false, "type": "BTREE", "columns": [ "sid" ] } } }, "purchase_invoice_item": { "create_sql": "CREATE TABLE IF NOT EXISTS `purchase_invoice_item` ( `id` int NOT NULL AUTO_INCREMENT, `purchase_id` int NOT NULL DEFAULT '0', `item_code` int DEFAULT NULL, `Item_name` varchar(50) DEFAULT NULL, `packing` int NOT NULL, `batch_no` varchar(50) DEFAULT NULL, `purchase_price` decimal(10,2) DEFAULT NULL, `expiry_date` date NOT NULL, `mrp` decimal(10,2) DEFAULT NULL, `qty` decimal(10,2) DEFAULT NULL, `qty_free` decimal(10,2) DEFAULT NULL, `tqty` decimal(10,2) DEFAULT NULL, `amount` decimal(10,2) DEFAULT NULL, `discount` decimal(10,2) DEFAULT NULL, `sch_disc_amt` decimal(10,2) DEFAULT '0.00', `sch_disc_per` decimal(10,2) DEFAULT '0.00', `taxable_amount` decimal(10,2) DEFAULT NULL, `CGST_per` decimal(10,2) DEFAULT NULL, `CGST_per_old` decimal(10,2) DEFAULT NULL, `CGST` decimal(10,2) DEFAULT NULL, `SGST_per` decimal(10,2) DEFAULT NULL, `SGST` decimal(10,2) DEFAULT NULL, `net_amount` decimal(10,2) DEFAULT NULL, `HSNCODE` varchar(50) DEFAULT NULL, `selling_price` decimal(10,2) DEFAULT NULL, `total_unit` int DEFAULT '0', `total_sale_unit` int DEFAULT '0', `total_return_unit` int DEFAULT '0', `total_lost_unit` int DEFAULT '0', `selling_unit_rate` decimal(10,2) DEFAULT '0.00', `purchase_unit_rate` decimal(10,2) DEFAULT NULL, `item_return` int DEFAULT '0', `remove_item` int DEFAULT '0', `stock_date` date DEFAULT NULL, `ss_flag_id` int DEFAULT NULL, `ban_flag_id` int DEFAULT NULL, `rack_no` varchar(50) DEFAULT NULL, `shelf_no` varchar(50) DEFAULT NULL, `cold_storage` varchar(50) DEFAULT NULL, `update_stock_qty` int DEFAULT NULL, `insert_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `insert_by` varchar(100) DEFAULT NULL, `old_purchase_id` int DEFAULT '0', PRIMARY KEY (`id`), KEY `item_code` (`item_code`), KEY `purchase_id` (`purchase_id`), KEY `item_return` (`item_return`), KEY `remove_item` (`remove_item`), KEY `batch_no` (`batch_no`), KEY `Item_name` (`Item_name`), KEY `idx_pii_item_code` (`item_code`), KEY `idx_pii_purchase_id` (`purchase_id`), KEY `idx_pii_stock_date` (`stock_date`), KEY `idx_pii_status_flags` (`remove_item`,`item_return`), KEY `idx_pii_expiry_date` (`expiry_date`), KEY `idx_pii_item_batch` (`item_code`,`batch_no`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "purchase_id": { "Field": "purchase_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_code": { "Field": "item_code", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Item_name": { "Field": "Item_name", "Type": "varchar(50)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "packing": { "Field": "packing", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "batch_no": { "Field": "batch_no", "Type": "varchar(50)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "purchase_price": { "Field": "purchase_price", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "expiry_date": { "Field": "expiry_date", "Type": "date", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "mrp": { "Field": "mrp", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "qty": { "Field": "qty", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "qty_free": { "Field": "qty_free", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "tqty": { "Field": "tqty", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "amount": { "Field": "amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "discount": { "Field": "discount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "sch_disc_amt": { "Field": "sch_disc_amt", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "sch_disc_per": { "Field": "sch_disc_per", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "taxable_amount": { "Field": "taxable_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "CGST_per": { "Field": "CGST_per", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "CGST_per_old": { "Field": "CGST_per_old", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "CGST": { "Field": "CGST", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "SGST_per": { "Field": "SGST_per", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "SGST": { "Field": "SGST", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "net_amount": { "Field": "net_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "HSNCODE": { "Field": "HSNCODE", "Type": "varchar(50)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "selling_price": { "Field": "selling_price", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "total_unit": { "Field": "total_unit", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "total_sale_unit": { "Field": "total_sale_unit", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "total_return_unit": { "Field": "total_return_unit", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "total_lost_unit": { "Field": "total_lost_unit", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "selling_unit_rate": { "Field": "selling_unit_rate", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "purchase_unit_rate": { "Field": "purchase_unit_rate", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_return": { "Field": "item_return", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remove_item": { "Field": "remove_item", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "stock_date": { "Field": "stock_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ss_flag_id": { "Field": "ss_flag_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ban_flag_id": { "Field": "ban_flag_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "rack_no": { "Field": "rack_no", "Type": "varchar(50)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "shelf_no": { "Field": "shelf_no", "Type": "varchar(50)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "cold_storage": { "Field": "cold_storage", "Type": "varchar(50)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "update_stock_qty": { "Field": "update_stock_qty", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_time": { "Field": "insert_time", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_by": { "Field": "insert_by", "Type": "varchar(100)", "Collation": "latin1_swedish_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "old_purchase_id": { "Field": "old_purchase_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "item_code": { "name": "item_code", "unique": false, "type": "BTREE", "columns": [ "item_code" ] }, "purchase_id": { "name": "purchase_id", "unique": false, "type": "BTREE", "columns": [ "purchase_id" ] }, "item_return": { "name": "item_return", "unique": false, "type": "BTREE", "columns": [ "item_return" ] }, "remove_item": { "name": "remove_item", "unique": false, "type": "BTREE", "columns": [ "remove_item" ] }, "batch_no": { "name": "batch_no", "unique": false, "type": "BTREE", "columns": [ "batch_no" ] }, "Item_name": { "name": "Item_name", "unique": false, "type": "BTREE", "columns": [ "Item_name" ] }, "idx_pii_item_code": { "name": "idx_pii_item_code", "unique": false, "type": "BTREE", "columns": [ "item_code" ] }, "idx_pii_purchase_id": { "name": "idx_pii_purchase_id", "unique": false, "type": "BTREE", "columns": [ "purchase_id" ] }, "idx_pii_stock_date": { "name": "idx_pii_stock_date", "unique": false, "type": "BTREE", "columns": [ "stock_date" ] }, "idx_pii_status_flags": { "name": "idx_pii_status_flags", "unique": false, "type": "BTREE", "columns": [ "remove_item", "item_return" ] }, "idx_pii_expiry_date": { "name": "idx_pii_expiry_date", "unique": false, "type": "BTREE", "columns": [ "expiry_date" ] }, "idx_pii_item_batch": { "name": "idx_pii_item_batch", "unique": false, "type": "BTREE", "columns": [ "item_code", "batch_no" ] } } }, "purchase_refund": { "create_sql": "CREATE TABLE IF NOT EXISTS `purchase_refund` ( `id` int NOT NULL AUTO_INCREMENT, `purchase_id` int NOT NULL, `purchase_item_id` int NOT NULL, `qty` int NOT NULL, `unit_qty` int NOT NULL, `insert_date` datetime NOT NULL, `refund_status` int NOT NULL DEFAULT '0', `reasons` int NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "purchase_id": { "Field": "purchase_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "purchase_item_id": { "Field": "purchase_item_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "qty": { "Field": "qty", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "unit_qty": { "Field": "unit_qty", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_date": { "Field": "insert_date", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "refund_status": { "Field": "refund_status", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "reasons": { "Field": "reasons", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "purchase_return_invoice": { "create_sql": "CREATE TABLE IF NOT EXISTS `purchase_return_invoice` ( `id` int NOT NULL AUTO_INCREMENT, `sid` int NOT NULL DEFAULT '0', `p_r_invoice_no` varchar(50) NOT NULL DEFAULT '0', `date_of_invoice` date NOT NULL, `insert_datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `status` int NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `p_r_invoice_no` (`p_r_invoice_no`), KEY `date_of_invoice` (`date_of_invoice`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "sid": { "Field": "sid", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "p_r_invoice_no": { "Field": "p_r_invoice_no", "Type": "varchar(50)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "date_of_invoice": { "Field": "date_of_invoice", "Type": "date", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_datetime": { "Field": "insert_datetime", "Type": "timestamp", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "" }, "status": { "Field": "status", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "p_r_invoice_no": { "name": "p_r_invoice_no", "unique": false, "type": "BTREE", "columns": [ "p_r_invoice_no" ] }, "date_of_invoice": { "name": "date_of_invoice", "unique": false, "type": "BTREE", "columns": [ "date_of_invoice" ] } } }, "purchase_return_invoice_item": { "create_sql": "CREATE TABLE IF NOT EXISTS `purchase_return_invoice_item` ( `id` int NOT NULL AUTO_INCREMENT, `purchase_inv_id` int NOT NULL DEFAULT '0', `purchase_item_id` int NOT NULL DEFAULT '0', `batch_no_r` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `expiry_date_r` date DEFAULT NULL, `item_code` int DEFAULT NULL, `Item_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `qty` int DEFAULT NULL, PRIMARY KEY (`id`), KEY `item_code` (`item_code`), KEY `Item_name` (`Item_name`), KEY `purchase_id` (`purchase_inv_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "purchase_inv_id": { "Field": "purchase_inv_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "purchase_item_id": { "Field": "purchase_item_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "batch_no_r": { "Field": "batch_no_r", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "expiry_date_r": { "Field": "expiry_date_r", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "item_code": { "Field": "item_code", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Item_name": { "Field": "Item_name", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "qty": { "Field": "qty", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "item_code": { "name": "item_code", "unique": false, "type": "BTREE", "columns": [ "item_code" ] }, "Item_name": { "name": "Item_name", "unique": false, "type": "BTREE", "columns": [ "Item_name" ] }, "purchase_id": { "name": "purchase_id", "unique": false, "type": "BTREE", "columns": [ "purchase_inv_id" ] } } }, "radiology_modality": { "create_sql": "CREATE TABLE IF NOT EXISTS `radiology_modality` ( `id` int NOT NULL AUTO_INCREMENT, `Modality` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `itype` int DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "Modality": { "Field": "Modality", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "itype": { "Field": "itype", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "radiology_ultrasound_template": { "create_sql": "CREATE TABLE IF NOT EXISTS `radiology_ultrasound_template` ( `id` int NOT NULL AUTO_INCREMENT, `template_name` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `keywords` varchar(1000) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `title` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `Modality` int DEFAULT NULL, `charge_id` int DEFAULT NULL, `Findings` longtext CHARACTER SET utf32 COLLATE utf32_unicode_ci, `Impression` longtext CHARACTER SET utf32 COLLATE utf32_unicode_ci, `impression_cat` int DEFAULT '0' COMMENT '0 Not Noteable,1 Noteable', PRIMARY KEY (`id`) USING BTREE, KEY `template_name` (`template_name`) USING BTREE, KEY `title` (`title`) USING BTREE, KEY `keywords` (`keywords`(768)) ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "template_name": { "Field": "template_name", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "keywords": { "Field": "keywords", "Type": "varchar(1000)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "title": { "Field": "title", "Type": "varchar(200)", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Modality": { "Field": "Modality", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "charge_id": { "Field": "charge_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Findings": { "Field": "Findings", "Type": "longtext", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Impression": { "Field": "Impression", "Type": "longtext", "Collation": "utf32_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "impression_cat": { "Field": "impression_cat", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 Not Noteable,1 Noteable" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "template_name": { "name": "template_name", "unique": false, "type": "BTREE", "columns": [ "template_name" ] }, "title": { "name": "title", "unique": false, "type": "BTREE", "columns": [ "title" ] }, "keywords": { "name": "keywords", "unique": false, "type": "BTREE", "columns": [ "keywords" ] } } }, "refer_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `refer_master` ( `id` int NOT NULL AUTO_INCREMENT, `title` varchar(50) NOT NULL, `f_name` varchar(50) NOT NULL, `phone_number` varchar(100) NOT NULL, `refer_type` int NOT NULL DEFAULT '0' COMMENT '0 Person,1 Doctor,2 Staff', `date_of_add` datetime NOT NULL, `insert_by` varchar(50) NOT NULL DEFAULT '', `active` int DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "title": { "Field": "title", "Type": "varchar(50)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "f_name": { "Field": "f_name", "Type": "varchar(50)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "phone_number": { "Field": "phone_number", "Type": "varchar(100)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "refer_type": { "Field": "refer_type", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 Person,1 Doctor,2 Staff" }, "date_of_add": { "Field": "date_of_add", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_by": { "Field": "insert_by", "Type": "varchar(50)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "active": { "Field": "active", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "refer_type": { "create_sql": "CREATE TABLE IF NOT EXISTS `refer_type` ( `id` int NOT NULL AUTO_INCREMENT, `type_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "type_desc": { "Field": "type_desc", "Type": "varchar(50)", "Collation": "utf8mb3_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "refund_order": { "create_sql": "CREATE TABLE IF NOT EXISTS `refund_order` ( `id` bigint NOT NULL AUTO_INCREMENT, `refund_type` int DEFAULT '1' COMMENT '1 OPD,2 Charge,3 IPD', `patient_id` bigint DEFAULT NULL, `patient_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `rec_person_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `rec_phone_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `refund_type_id` bigint DEFAULT '1', `refund_type_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `refund_type_reason` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `approved_by_id` int DEFAULT NULL, `approved_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `approved_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `refund_amount` decimal(10,2) DEFAULT NULL, `refund_date` datetime DEFAULT NULL, `refund_by_id` int DEFAULT NULL, `refund_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `refund_datetime` datetime DEFAULT NULL, `refund_process` int DEFAULT '0' COMMENT '0 Pending,1 Complete', `pay_id` int DEFAULT '0', PRIMARY KEY (`id`), KEY `refund_type_id` (`refund_type_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "refund_type": { "Field": "refund_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "1 OPD,2 Charge,3 IPD" }, "patient_id": { "Field": "patient_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "patient_name": { "Field": "patient_name", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "rec_person_name": { "Field": "rec_person_name", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "rec_phone_no": { "Field": "rec_phone_no", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "refund_type_id": { "Field": "refund_type_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "refund_type_code": { "Field": "refund_type_code", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "refund_type_reason": { "Field": "refund_type_reason", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "approved_by_id": { "Field": "approved_by_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "approved_by": { "Field": "approved_by", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "approved_datetime": { "Field": "approved_datetime", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "refund_amount": { "Field": "refund_amount", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "refund_date": { "Field": "refund_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "refund_by_id": { "Field": "refund_by_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "refund_by": { "Field": "refund_by", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "refund_datetime": { "Field": "refund_datetime", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "refund_process": { "Field": "refund_process", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 Pending,1 Complete" }, "pay_id": { "Field": "pay_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "refund_type_id": { "name": "refund_type_id", "unique": false, "type": "BTREE", "columns": [ "refund_type_id" ] } } }, "sale_purchase_stock_tran": { "create_sql": "CREATE TABLE IF NOT EXISTS `sale_purchase_stock_tran` ( `id` int NOT NULL AUTO_INCREMENT, `item_code` int NOT NULL DEFAULT '0', `batch_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `mrp` decimal(10,2) DEFAULT NULL, `packing` int DEFAULT NULL, `expiry_date` date DEFAULT NULL, `Pur_Qty` decimal(65,2) DEFAULT '0.00', `Sale_Qty` decimal(65,0) DEFAULT '0', `Cur_Qty` decimal(65,2) DEFAULT '0.00', `last_update` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) USING BTREE, KEY `item_code_batch_no_mrp_packing` (`item_code`,`batch_no`,`mrp`,`packing`), KEY `item_code_expiry_date_Cur_Qty` (`item_code`,`expiry_date`,`Cur_Qty`), KEY `item_code_Cur_Qty_last_update` (`item_code`,`Cur_Qty`,`last_update`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='VIEW';", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "item_code": { "Field": "item_code", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "batch_no": { "Field": "batch_no", "Type": "varchar(50)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "mrp": { "Field": "mrp", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "packing": { "Field": "packing", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "expiry_date": { "Field": "expiry_date", "Type": "date", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Pur_Qty": { "Field": "Pur_Qty", "Type": "decimal(65,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Sale_Qty": { "Field": "Sale_Qty", "Type": "decimal(65,0)", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "Cur_Qty": { "Field": "Cur_Qty", "Type": "decimal(65,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "last_update": { "Field": "last_update", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "item_code_batch_no_mrp_packing": { "name": "item_code_batch_no_mrp_packing", "unique": false, "type": "BTREE", "columns": [ "item_code", "batch_no", "mrp", "packing" ] }, "item_code_expiry_date_Cur_Qty": { "name": "item_code_expiry_date_Cur_Qty", "unique": false, "type": "BTREE", "columns": [ "item_code", "expiry_date", "Cur_Qty" ] }, "item_code_Cur_Qty_last_update": { "name": "item_code_Cur_Qty_last_update", "unique": false, "type": "BTREE", "columns": [ "item_code", "Cur_Qty", "last_update" ] } } }, "settings": { "create_sql": "CREATE TABLE IF NOT EXISTS `settings` ( `id` int NOT NULL AUTO_INCREMENT, `class` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `key` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `value` text COLLATE utf8mb4_general_ci, `type` varchar(31) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'string', `context` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "class": { "Field": "class", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "key": { "Field": "key", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "value": { "Field": "value", "Type": "text", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "type": { "Field": "type", "Type": "varchar(31)", "Collation": "utf8mb4_general_ci", "Null": "NO", "Key": "", "Default": "string", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "context": { "Field": "context", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] } } }, "tag_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `tag_master` ( `id` int NOT NULL AUTO_INCREMENT, `tag_name` varchar(100) DEFAULT NULL, `tag_type_id` int DEFAULT '0' COMMENT '0 Predefine, 1 Custom', `tag_desc` varchar(200) DEFAULT NULL, `insert_dateimte` timestamp NULL DEFAULT NULL, `insert_by` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, KEY `tag_name` (`tag_name`) USING BTREE, KEY `tag_type_id` (`tag_type_id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "tag_name": { "Field": "tag_name", "Type": "varchar(100)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "tag_type_id": { "Field": "tag_type_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "0 Predefine, 1 Custom" }, "tag_desc": { "Field": "tag_desc", "Type": "varchar(200)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_dateimte": { "Field": "insert_dateimte", "Type": "timestamp", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "insert_by": { "Field": "insert_by", "Type": "varchar(100)", "Collation": "utf8mb3_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "tag_name": { "name": "tag_name", "unique": false, "type": "BTREE", "columns": [ "tag_name" ] }, "tag_type_id": { "name": "tag_type_id", "unique": false, "type": "BTREE", "columns": [ "tag_type_id" ] } } }, "users": { "create_sql": "CREATE TABLE IF NOT EXISTS `users` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `username` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL, `status` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `status_message` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `active` tinyint(1) NOT NULL DEFAULT '0', `last_active` datetime DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `deleted_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `username` (`username`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", "Type": "int unsigned", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "username": { "Field": "username", "Type": "varchar(30)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status": { "Field": "status", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status_message": { "Field": "status_message", "Type": "varchar(255)", "Collation": "utf8mb4_general_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "active": { "Field": "active", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "last_active": { "Field": "last_active", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "deleted_at": { "Field": "deleted_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "username": { "name": "username", "unique": true, "type": "BTREE", "columns": [ "username" ] } } }, "ward_beds": { "create_sql": "CREATE TABLE IF NOT EXISTS `ward_beds` ( `id` int NOT NULL AUTO_INCREMENT, `ward_id` int NOT NULL, `bed_number` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `bed_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'General', `bed_status` enum('available','occupied','maintenance','reserved') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'available', `ipd_id` int DEFAULT NULL, `assigned_date` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `unique_ward_bed` (`ward_id`,`bed_number`), KEY `idx_ward_id` (`ward_id`), KEY `idx_bed_status` (`bed_status`), KEY `idx_ipd_id` (`ipd_id`), CONSTRAINT `ward_beds_ibfk_1` FOREIGN KEY (`ward_id`) REFERENCES `ward_master` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ward_id": { "Field": "ward_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bed_number": { "Field": "bed_number", "Type": "varchar(20)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bed_type": { "Field": "bed_type", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "General", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "bed_status": { "Field": "bed_status", "Type": "enum('available','occupied','maintenance','reserved')", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "MUL", "Default": "available", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ipd_id": { "Field": "ipd_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "assigned_date": { "Field": "assigned_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "unique_ward_bed": { "name": "unique_ward_bed", "unique": true, "type": "BTREE", "columns": [ "ward_id", "bed_number" ] }, "idx_ward_id": { "name": "idx_ward_id", "unique": false, "type": "BTREE", "columns": [ "ward_id" ] }, "idx_bed_status": { "name": "idx_bed_status", "unique": false, "type": "BTREE", "columns": [ "bed_status" ] }, "idx_ipd_id": { "name": "idx_ipd_id", "unique": false, "type": "BTREE", "columns": [ "ipd_id" ] } } }, "ward_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `ward_master` ( `id` int NOT NULL AUTO_INCREMENT, `ward_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `ward_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `department_id` int NOT NULL, `building_id` int DEFAULT NULL, `floor_number` int DEFAULT NULL, `ward_type` enum('General','Private','Semi-Private','Deluxe','ICU','NICU','PICU','HDU','ICCU','CCU','Emergency') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'General', `gender_type` enum('male','female','unisex') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'unisex', `ward_category` enum('adult','pediatric','maternity','isolation','surgical','medical') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'adult', `total_capacity` int NOT NULL DEFAULT '0', `nurse_station_location` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `has_oxygen` tinyint(1) DEFAULT '0', `has_suction` tinyint(1) DEFAULT '0', `has_monitor` tinyint(1) DEFAULT '0', `status` enum('active','inactive','under_maintenance') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'active', `remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `created_by` int DEFAULT NULL, `created_at` datetime DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `ward_code` (`ward_code`), KEY `idx_dept` (`department_id`), KEY `idx_building` (`building_id`), KEY `idx_ward_type` (`ward_type`), KEY `idx_gender` (`gender_type`), KEY `idx_status` (`status`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;", "columns": { "id": { "Field": "id", "Type": "int", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "" }, "ward_code": { "Field": "ward_code", "Type": "varchar(20)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ward_name": { "Field": "ward_name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "department_id": { "Field": "department_id", "Type": "int", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "building_id": { "Field": "building_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "floor_number": { "Field": "floor_number", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ward_type": { "Field": "ward_type", "Type": "enum('General','Private','Semi-Private','Deluxe','ICU','NICU','PICU','HDU','ICCU','CCU','Emergency')", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "MUL", "Default": "General", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "gender_type": { "Field": "gender_type", "Type": "enum('male','female','unisex')", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "MUL", "Default": "unisex", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "ward_category": { "Field": "ward_category", "Type": "enum('adult','pediatric','maternity','isolation','surgical','medical')", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "adult", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "total_capacity": { "Field": "total_capacity", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "nurse_station_location": { "Field": "nurse_station_location", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "has_oxygen": { "Field": "has_oxygen", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "has_suction": { "Field": "has_suction", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "has_monitor": { "Field": "has_monitor", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "status": { "Field": "status", "Type": "enum('active','inactive','under_maintenance')", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "MUL", "Default": "active", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "remarks": { "Field": "remarks", "Type": "text", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_by": { "Field": "created_by", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "created_at": { "Field": "created_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "" }, "updated_at": { "Field": "updated_at", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "id" ] }, "ward_code": { "name": "ward_code", "unique": true, "type": "BTREE", "columns": [ "ward_code" ] }, "idx_dept": { "name": "idx_dept", "unique": false, "type": "BTREE", "columns": [ "department_id" ] }, "idx_building": { "name": "idx_building", "unique": false, "type": "BTREE", "columns": [ "building_id" ] }, "idx_ward_type": { "name": "idx_ward_type", "unique": false, "type": "BTREE", "columns": [ "ward_type" ] }, "idx_gender": { "name": "idx_gender", "unique": false, "type": "BTREE", "columns": [ "gender_type" ] }, "idx_status": { "name": "idx_status", "unique": false, "type": "BTREE", "columns": [ "status" ] } } } } }