{ "generated_at": "2026-02-28 17:13:31", "source": "local-current-db", "tables": { "ai_demo_seed_log": { "create_sql": "CREATE TABLE IF NOT EXISTS `ai_demo_seed_log` (\n `id` int NOT NULL AUTO_INCREMENT,\n `seed_name` varchar(120) COLLATE utf32_unicode_ci NOT NULL,\n `table_name` varchar(120) COLLATE utf32_unicode_ci NOT NULL,\n `row_id` int NOT NULL,\n `created_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `idx_seed_name` (`seed_name`),\n KEY `idx_table_row` (`table_name`,`row_id`)\n) ENGINE=MyISAM AUTO_INCREMENT=133 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` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `user_id` int unsigned NOT NULL,\n `group` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `created_at` datetime NOT NULL,\n PRIMARY KEY (`id`),\n KEY `auth_groups_users_user_id_foreign` (`user_id`),\n CONSTRAINT `auth_groups_users_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE\n) 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` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `user_id` int unsigned NOT NULL,\n `type` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `name` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `secret` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `secret2` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `expires` datetime DEFAULT NULL,\n `extra` text COLLATE utf8mb4_general_ci,\n `force_reset` tinyint(1) NOT NULL DEFAULT '0',\n `last_used_at` datetime DEFAULT NULL,\n `created_at` datetime DEFAULT NULL,\n `updated_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `type_secret` (`type`,`secret`),\n KEY `user_id` (`user_id`),\n CONSTRAINT `auth_identities_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE\n) 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` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `ip_address` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `user_agent` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `id_type` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `identifier` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `user_id` int unsigned DEFAULT NULL,\n `date` datetime NOT NULL,\n `success` tinyint(1) NOT NULL,\n PRIMARY KEY (`id`),\n KEY `id_type_identifier` (`id_type`,`identifier`),\n KEY `user_id` (`user_id`)\n) 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": "" }, "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` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `user_id` int unsigned NOT NULL,\n `permission` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `created_at` datetime NOT NULL,\n PRIMARY KEY (`id`),\n KEY `auth_permissions_users_user_id_foreign` (`user_id`),\n CONSTRAINT `auth_permissions_users_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE\n) ENGINE=InnoDB AUTO_INCREMENT=30 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` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `selector` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `hashedValidator` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `user_id` int unsigned NOT NULL,\n `expires` datetime NOT NULL,\n `created_at` datetime NOT NULL,\n `updated_at` datetime NOT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `selector` (`selector`),\n KEY `auth_remember_tokens_user_id_foreign` (`user_id`),\n CONSTRAINT `auth_remember_tokens_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE\n) ENGINE=InnoDB AUTO_INCREMENT=9 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` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `ip_address` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `user_agent` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `id_type` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `identifier` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `user_id` int unsigned DEFAULT NULL,\n `date` datetime NOT NULL,\n `success` tinyint(1) NOT NULL,\n PRIMARY KEY (`id`),\n KEY `id_type_identifier` (`id_type`,`identifier`),\n KEY `user_id` (`user_id`)\n) 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" ] } } }, "bank_account_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `bank_account_master` (\n `bank_id` int NOT NULL AUTO_INCREMENT,\n `bank_account_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `bank_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `bak_account_no` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`bank_id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `ipd_id` int DEFAULT NULL,\n `bed_id` int DEFAULT NULL,\n `assignment_type` enum('admission','transfer','discharge') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,\n `assigned_date` datetime DEFAULT NULL,\n `discharged_date` datetime DEFAULT NULL,\n `assigned_by` int DEFAULT NULL,\n `transfer_reason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,\n `transfer_from_bed_id` int DEFAULT NULL,\n `remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,\n `created_at` datetime DEFAULT CURRENT_TIMESTAMP,\n `ward_id` int DEFAULT NULL COMMENT 'FK to ward_master',\n `released_date` datetime DEFAULT NULL COMMENT 'When assignment ended',\n `total_days` int DEFAULT '0' COMMENT 'Total days in bed',\n `release_reason` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Reason for release',\n PRIMARY KEY (`id`),\n KEY `idx_ipd` (`ipd_id`),\n KEY `idx_bed` (`bed_id`),\n KEY `idx_type` (`assignment_type`),\n KEY `idx_dates` (`assigned_date`,`discharged_date`)\n) 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": "" }, "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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `category_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,\n `category_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,\n `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,\n `base_charge_per_day` decimal(10,2) DEFAULT '0.00',\n `nursing_charge_per_day` decimal(10,2) DEFAULT '0.00',\n `amenities` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,\n `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,\n `status` enum('active','inactive') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'active',\n `created_at` datetime DEFAULT CURRENT_TIMESTAMP,\n `updated_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,\n PRIMARY KEY (`id`),\n UNIQUE KEY `category_code` (`category_code`),\n KEY `idx_type` (`category_type`),\n KEY `idx_status` (`status`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `bed_id` int NOT NULL,\n `maintenance_type` enum('cleaning','repair','inspection','replacement','sanitization') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,\n `scheduled_date` date DEFAULT NULL,\n `completed_date` datetime DEFAULT NULL,\n `performed_by` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,\n `issue_description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,\n `action_taken` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,\n `next_maintenance_date` date DEFAULT NULL,\n `cost` decimal(10,2) DEFAULT '0.00',\n `status` enum('pending','in_progress','completed','cancelled') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'pending',\n `created_by` int DEFAULT NULL,\n `created_at` datetime DEFAULT CURRENT_TIMESTAMP,\n `updated_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,\n PRIMARY KEY (`id`),\n KEY `idx_bed` (`bed_id`),\n KEY `idx_type` (`maintenance_type`),\n KEY `idx_status` (`status`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `bed_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,\n `bed_number` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,\n `ward_id` int NOT NULL,\n `bed_category_id` int NOT NULL,\n `bed_status` enum('available','occupied','reserved','blocked','under_maintenance','cleaning') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'available',\n `bed_position` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,\n `has_oxygen` tinyint(1) DEFAULT '0',\n `has_suction` tinyint(1) DEFAULT '0',\n `has_monitor` tinyint(1) DEFAULT '0',\n `has_ventilator` tinyint(1) DEFAULT '0',\n `is_isolation_bed` tinyint(1) DEFAULT '0',\n `current_ipd_id` int DEFAULT NULL,\n `occupied_since` datetime DEFAULT NULL,\n `last_cleaned_at` datetime DEFAULT NULL,\n `remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,\n `base_charge_override` decimal(10,2) DEFAULT NULL COMMENT 'Override base charge per day (NULL = use category default)',\n `nursing_charge_override` decimal(10,2) DEFAULT NULL COMMENT 'Override nursing charge per day (NULL = use category default)',\n `status` enum('active','inactive') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'active',\n `created_at` datetime DEFAULT CURRENT_TIMESTAMP,\n `updated_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,\n `last_occupied_date` datetime DEFAULT NULL COMMENT 'Last time bed was occupied',\n PRIMARY KEY (`id`),\n UNIQUE KEY `bed_code` (`bed_code`),\n UNIQUE KEY `unique_ward_bed` (`ward_id`,`bed_number`),\n KEY `idx_ward` (`ward_id`),\n KEY `idx_category` (`bed_category_id`),\n KEY `idx_bed_status` (`bed_status`),\n KEY `idx_current_patient` (`current_ipd_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=68 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `blood_group` varchar(50) NOT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `blood_group` (`blood_group`)\n) 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` (\n `id` bigint unsigned NOT NULL AUTO_INCREMENT,\n `channel` varchar(50) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'bridge',\n `event_type` varchar(120) COLLATE utf8mb4_general_ci NOT NULL,\n `entity_type` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `entity_id` varchar(80) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `payload_json` longtext COLLATE utf8mb4_general_ci NOT NULL,\n `payload_hash` char(64) COLLATE utf8mb4_general_ci NOT NULL,\n `status` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'pending',\n `attempts` int NOT NULL DEFAULT '0',\n `max_attempts` int NOT NULL DEFAULT '10',\n `next_attempt_at` datetime DEFAULT NULL,\n `last_error` text COLLATE utf8mb4_general_ci,\n `locked_at` datetime DEFAULT NULL,\n `locked_by` varchar(80) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `sent_at` datetime DEFAULT NULL,\n `created_at` datetime DEFAULT NULL,\n `updated_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `status` (`status`),\n KEY `next_attempt_at` (`next_attempt_at`),\n KEY `payload_hash` (`payload_hash`),\n KEY `channel_event_type` (`channel`,`event_type`)\n) ENGINE=MyISAM AUTO_INCREMENT=39 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` (\n `id` bigint unsigned NOT NULL AUTO_INCREMENT,\n `module` varchar(80) COLLATE utf8mb4_general_ci NOT NULL,\n `record_id` varchar(80) COLLATE utf8mb4_general_ci NOT NULL,\n `field_name` varchar(80) COLLATE utf8mb4_general_ci NOT NULL,\n `old_value` text COLLATE utf8mb4_general_ci,\n `new_value` text COLLATE utf8mb4_general_ci,\n `user_id` varchar(80) COLLATE utf8mb4_general_ci NOT NULL,\n `action_at` datetime NOT NULL,\n `hash` char(64) COLLATE utf8mb4_general_ci NOT NULL,\n `created_at` datetime DEFAULT NULL,\n `updated_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `hash` (`hash`),\n KEY `module_record_id` (`module`,`record_id`),\n KEY `action_at` (`action_at`)\n) ENGINE=MyISAM AUTO_INCREMENT=429 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `color_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `code_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `code_code_2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`),\n KEY `color_name` (`color_name`)\n) 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` (\n `Code` int unsigned NOT NULL,\n `Name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `show_in_short` tinyint(1) NOT NULL DEFAULT '0',\n `name_hinglish` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `keywords` text COLLATE utf8mb4_general_ci,\n `ai_hint` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `is_active` tinyint(1) NOT NULL DEFAULT '1',\n `created_at` datetime DEFAULT NULL,\n `updated_at` datetime DEFAULT NULL,\n PRIMARY KEY (`Code`),\n KEY `show_in_short` (`show_in_short`),\n KEY `is_active` (`is_active`)\n) 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` (\n `d_type` int NOT NULL,\n `doc_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `doc_edu` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `tech_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `print_format_head_page` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'patient_lab_report_svh',\n `print_page_direct` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'patient_lab_report_svh',\n PRIMARY KEY (`d_type`)\n) 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": "" } }, "indexes": { "PRIMARY": { "name": "PRIMARY", "unique": true, "type": "BTREE", "columns": [ "d_type" ] } } }, "doc_fee_type": { "create_sql": "CREATE TABLE IF NOT EXISTS `doc_fee_type` (\n `id` int NOT NULL AUTO_INCREMENT,\n `fee_type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`)\n) 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_ipd_fee": { "create_sql": "CREATE TABLE IF NOT EXISTS `doc_ipd_fee` (\n `id` int NOT NULL AUTO_INCREMENT,\n `doc_id` int DEFAULT NULL,\n `doc_fee_type` int DEFAULT NULL,\n `doc_fee_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `amount` decimal(10,2) DEFAULT NULL,\n `isdelete` int DEFAULT '0',\n PRIMARY KEY (`id`),\n KEY `doc_id` (`doc_id`)\n) 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` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `fee_type` varchar(150) COLLATE utf8mb4_general_ci NOT NULL,\n `created_at` datetime DEFAULT NULL,\n `updated_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `doc_id` int DEFAULT NULL,\n `doc_fee_type` int DEFAULT NULL,\n `doc_fee_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `amount` decimal(10,2) DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `doc_id_doc_fee_type` (`doc_id`,`doc_fee_type`),\n KEY `doc_id` (`doc_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=246 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` (\n `del_id` int NOT NULL AUTO_INCREMENT,\n `id` int NOT NULL DEFAULT '0',\n `doc_id` int DEFAULT NULL,\n `doc_fee_type` int DEFAULT NULL,\n `doc_fee_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `amount` decimal(10,2) DEFAULT NULL,\n `remove_update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`del_id`),\n KEY `doc_id` (`doc_id`),\n KEY `id` (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=46 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_spec": { "create_sql": "CREATE TABLE IF NOT EXISTS `doc_spec` (\n `id` int NOT NULL AUTO_INCREMENT,\n `doc_id` int DEFAULT NULL,\n `med_spec_id` int DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `doc_id_med_spec_id` (`doc_id`,`med_spec_id`),\n KEY `doc_id_med_spec` (`doc_id`,`med_spec_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=63 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `p_code` int DEFAULT '0',\n `p_title` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'Dr.',\n `p_fname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `p_mname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `p_lname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `doc_sign` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `mphone1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `doctor_reg_no` varchar(80) COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `mphone2` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `gender` int DEFAULT '1',\n `dob` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `zip` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `email1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `email2` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `register_date` datetime DEFAULT NULL,\n `add1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `add2` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `city` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `state` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `country` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `active` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '1',\n `login_pin` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '1',\n `profile_photo` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '1',\n `opd_print_format` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'opd_print_parcha_svh',\n `opd_blank_print` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT 'opd_letter_head_print',\n `opd_valid_no_days` int DEFAULT '5',\n `rx_pre_print_letter_head_format` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `rx_blank_letter_head` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `rx_plain_paper` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `p_fname_123` (`p_fname`,`p_lname`,`mphone1`,`mphone2`,`email1`,`email2`)\n) ENGINE=InnoDB AUTO_INCREMENT=15 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_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": "" } }, "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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `opd_id` int NOT NULL DEFAULT '0',\n `v_no` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n `file_name` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n `full_path` varchar(500) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `v_no` (`v_no`),\n KEY `opd_id` (`opd_id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `file_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `file_type` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `file_path` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `full_path` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `raw_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `orig_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `client_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `file_ext` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `file_size` decimal(10,4) DEFAULT NULL,\n `is_image` int DEFAULT NULL,\n `image_width` int DEFAULT NULL,\n `image_height` int DEFAULT NULL,\n `image_type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `image_size_str` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insert_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `store_file_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `file_desc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `pid` int DEFAULT '0',\n `doc_id` int DEFAULT '0',\n `doc_type` int DEFAULT '0',\n `ipd_id` int DEFAULT '0',\n `case_id` int DEFAULT '0',\n `repo_id` int DEFAULT '0',\n `repo_test_id` int DEFAULT '0',\n `opd_id` int DEFAULT '0',\n `charge_id` int DEFAULT '0',\n `charge_type` int DEFAULT '0',\n `upload_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `upload_by_id` int DEFAULT NULL,\n `show_type` int DEFAULT '0',\n `isdelete` int DEFAULT '0',\n `insert_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `document_type` varchar(80) COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `content_description` text COLLATE utf8mb3_unicode_ci,\n `ai_status` varchar(20) COLLATE utf8mb3_unicode_ci DEFAULT 'pending',\n `ai_alert_flag` tinyint(1) DEFAULT '0',\n `ai_alert_text` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=5954 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" ] } } }, "h_insurance_group": { "create_sql": "CREATE TABLE IF NOT EXISTS `h_insurance_group` (\n `id` int NOT NULL AUTO_INCREMENT,\n `tpa_group` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`) USING BTREE,\n KEY `tpa_group` (`tpa_group`) USING BTREE\n) 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_insurance": { "create_sql": "CREATE TABLE IF NOT EXISTS `hc_insurance` (\n `id` int NOT NULL AUTO_INCREMENT,\n `ins_company_name` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `short_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `ins_contact_number` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `ins_contact_person_name` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `ins_email` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `opd_allowed` int DEFAULT '0',\n `opd_rate_direct` int DEFAULT '0' COMMENT '0 for Master, 1 Spec Rate',\n `opd_fee` decimal(10,2) DEFAULT '0.00',\n `opd_desc` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0.00',\n `opd_master_rate_discount` decimal(10,2) DEFAULT '0.00',\n `opd_credit` int DEFAULT '0',\n `opd_cash` int DEFAULT '0',\n `cash` int DEFAULT '1',\n `credit` int DEFAULT '1',\n `path_cash` int DEFAULT '1',\n `path_credit` int DEFAULT '1',\n `charge_cash` int DEFAULT '0',\n `charge_credit` int DEFAULT '0',\n `charge_rate_direct` int DEFAULT '0' COMMENT '0 for Master,1 Spec Rates',\n `charge_rate_dicount` decimal(10,2) DEFAULT '0.00',\n `med_credit` int DEFAULT '0' COMMENT '0 for No,1 Yes',\n `active` int DEFAULT '1',\n `group_ins` int DEFAULT '1',\n `gst_no` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `agreement_start_date` date DEFAULT NULL,\n `agreement_end_date` date DEFAULT NULL,\n PRIMARY KEY (`id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `insurance_id` int DEFAULT NULL,\n `p_id` int DEFAULT NULL,\n `insurance_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `card_holder_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `relation_patient_cardholder` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `issue_date` date DEFAULT NULL,\n `expiry_date` date DEFAULT NULL,\n `Verified_By` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `active` int DEFAULT '1',\n PRIMARY KEY (`id`),\n KEY `insurance_id` (`insurance_id`),\n KEY `expiry_date` (`expiry_date`)\n) ENGINE=InnoDB AUTO_INCREMENT=3993 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `insurance_id` int DEFAULT NULL,\n `opd_fee` decimal(10,2) DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `FK_hc_insurance_opd_hc_insurance` (`insurance_id`),\n CONSTRAINT `FK_hc_insurance_opd_hc_insurance` FOREIGN KEY (`insurance_id`) REFERENCES `hc_insurancebak` (`id`)\n) 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` (\n `itype_id` int NOT NULL AUTO_INCREMENT,\n `is_ipd_opd` int NOT NULL DEFAULT '0' COMMENT '1 opd , 2 ipd , 0 Both',\n `desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `group_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n PRIMARY KEY (`itype_id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `itype` int DEFAULT '0',\n `idesc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `idesc_detail` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `amount` decimal(10,2) DEFAULT '0.00',\n `amount_r` decimal(10,2) DEFAULT '0.00',\n `echs_sr_no` int DEFAULT '0',\n `update_date` datetime DEFAULT NULL,\n `last_update_desc` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=3902 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `hc_items_id` int DEFAULT NULL,\n `hc_insurance_id` int DEFAULT NULL,\n `amount1` decimal(10,2) DEFAULT NULL,\n `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `isdelete` int DEFAULT '0',\n `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n PRIMARY KEY (`id`),\n UNIQUE KEY `hc_items_id_hc_insurance_id_isdelete` (`hc_items_id`,`hc_insurance_id`),\n KEY `delete` (`isdelete`)\n) 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` (\n `id_ins_update_id` int NOT NULL AUTO_INCREMENT,\n `id` int NOT NULL DEFAULT '0',\n `hc_items_id` int DEFAULT NULL,\n `hc_insurance_id` int DEFAULT NULL,\n `amount1` decimal(10,2) DEFAULT NULL,\n `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `isdelete` int DEFAULT '0',\n `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `update_datetime` datetime DEFAULT NULL,\n `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `action` int DEFAULT NULL,\n `action_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `action_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n PRIMARY KEY (`id_ins_update_id`),\n KEY `delete` (`isdelete`)\n) ENGINE=InnoDB AUTO_INCREMENT=15 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` (\n `item_rate_update_id` int NOT NULL AUTO_INCREMENT,\n `id` int NOT NULL,\n `itype` int DEFAULT '0',\n `idesc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `idesc_detail` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `amount` decimal(10,2) DEFAULT '0.00',\n `amount_r` decimal(10,2) DEFAULT '0.00',\n `echs_sr_no` int DEFAULT '0',\n `update_date` datetime DEFAULT NULL,\n `last_update_desc` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `action` int DEFAULT '0',\n `action_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `action_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n PRIMARY KEY (`item_rate_update_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=239 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `bank_name` varchar(50) NOT NULL DEFAULT '0',\n `bank_ac_no` varchar(50) NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `pay_type` varchar(50) DEFAULT NULL,\n `bank_id` int DEFAULT '0',\n PRIMARY KEY (`id`),\n KEY `FK_hospital_bank_payment_source_hospital_bank` (`bank_id`),\n CONSTRAINT `FK_hospital_bank_payment_source_hospital_bank` FOREIGN KEY (`bank_id`) REFERENCES `hospital_bank` (`id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `s_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `s_value` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=31 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": "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" ] } } }, "india_state": { "create_sql": "CREATE TABLE IF NOT EXISTS `india_state` (\n `id` int NOT NULL,\n `state_name` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`)\n) 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` (\n `med_group_id` int NOT NULL AUTO_INCREMENT,\n `ipd_id` int DEFAULT NULL,\n `med_type` int DEFAULT '1' COMMENT '1 for Cash,2 for IPD Credit,3 for IPD Package',\n `p_id` int DEFAULT '1',\n `discount_group` decimal(10,2) DEFAULT '0.00',\n `discount_group_2` decimal(10,2) DEFAULT '0.00',\n `discount_remark_group` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `discount_by_group` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `gross_amount` decimal(10,2) DEFAULT '0.00',\n `discount_amount` decimal(10,2) DEFAULT '0.00',\n `item_discount_amount` decimal(10,2) DEFAULT '0.00',\n `CGST_Tamount` decimal(10,2) DEFAULT '0.00',\n `SGST_Tamount` decimal(10,2) DEFAULT '0.00',\n `tax_total` decimal(10,2) DEFAULT '0.00',\n `net_amount` decimal(10,2) DEFAULT '0.00',\n `TaxableAmount` decimal(10,2) DEFAULT '0.00',\n `payment_received` decimal(10,2) DEFAULT '0.00',\n `payment_balance` decimal(10,2) DEFAULT '0.00',\n `bill_final` int DEFAULT '0',\n `bill_final_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n PRIMARY KEY (`med_group_id`),\n UNIQUE KEY `ipd_id_med_type` (`ipd_id`,`med_type`)\n) ENGINE=InnoDB AUTO_INCREMENT=4645 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `inv_med_id` int NOT NULL DEFAULT '0',\n `item_code` int DEFAULT '0' COMMENT 'master_product_id',\n `sale_return` int DEFAULT '0',\n `return_item_id` int DEFAULT '0',\n `store_stock_id` int DEFAULT '0' COMMENT 'store_id, old is ssno',\n `purchase_item_id` int DEFAULT '0',\n `item_Name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `formulation` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `qty` int DEFAULT '0',\n `batch_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `expiry` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `price` decimal(10,2) DEFAULT '0.00',\n `price2` decimal(10,2) DEFAULT '0.00',\n `cost_price` decimal(10,2) DEFAULT '0.00',\n `mrp` decimal(10,2) DEFAULT '0.00',\n `packing` decimal(10,2) DEFAULT '0.00',\n `disc_per` decimal(10,2) DEFAULT '0.00',\n `disc_amount` decimal(10,2) DEFAULT '0.00',\n `HSNCODE` decimal(10,0) DEFAULT '0',\n `CGST_per` decimal(10,2) DEFAULT '0.00',\n `SGST_per` decimal(10,2) DEFAULT '0.00',\n `IGST_per` decimal(10,2) DEFAULT '0.00',\n `amount` decimal(10,2) DEFAULT '0.00',\n `tamount` decimal(10,2) DEFAULT '0.00',\n `disc_whole` decimal(10,2) DEFAULT '0.00',\n `twdisc_amount` decimal(10,2) DEFAULT '0.00',\n `TaxableAmount` decimal(10,2) DEFAULT '0.00',\n `CGST` decimal(10,2) DEFAULT '0.00',\n `SGST` decimal(10,2) DEFAULT '0.00',\n `IGST` decimal(10,2) DEFAULT '0.00',\n `update_by_id` int DEFAULT NULL,\n `update_by_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `item_code` (`item_code`),\n KEY `item_Name` (`item_Name`),\n KEY `inv_med_id` (`inv_med_id`),\n KEY `store_stock_id` (`store_stock_id`),\n KEY `update_by_id` (`update_by_id`),\n KEY `purchase_item_id` (`purchase_item_id`),\n KEY `sale_return` (`sale_return`),\n KEY `idx_imi_invoice_item` (`inv_med_id`,`item_code`),\n KEY `idx_imi_item_code` (`item_code`),\n KEY `idx_imi_sale_return` (`sale_return`)\n) ENGINE=InnoDB AUTO_INCREMENT=67623 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` (\n `r_id` int NOT NULL AUTO_INCREMENT,\n `id` int NOT NULL,\n `inv_med_id` int NOT NULL DEFAULT '0',\n `item_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `store_stock_id` int DEFAULT '0' COMMENT 'store_id, old is ssno',\n `purchase_item_id` int DEFAULT '0',\n `return_item_id` int DEFAULT '0',\n `sale_return` int DEFAULT '0' COMMENT '0 Sale , 1 Return',\n `item_Name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `formulation` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `qty` int DEFAULT '0',\n `batch_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `expiry` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `price` decimal(10,2) DEFAULT '0.00',\n `price2` decimal(10,2) DEFAULT '0.00',\n `cost_price` decimal(10,2) DEFAULT '0.00',\n `mrp` decimal(10,2) DEFAULT '0.00',\n `packing` decimal(10,2) DEFAULT '0.00',\n `disc_per` decimal(10,2) DEFAULT '0.00',\n `disc_amount` decimal(10,2) DEFAULT '0.00',\n `HSNCODE` decimal(10,0) DEFAULT '0',\n `CGST_per` decimal(10,2) DEFAULT '0.00',\n `SGST_per` decimal(10,2) DEFAULT '0.00',\n `IGST_per` decimal(10,2) DEFAULT '0.00',\n `amount` decimal(10,2) DEFAULT '0.00',\n `tamount` decimal(10,2) DEFAULT '0.00',\n `disc_whole` decimal(10,2) DEFAULT '0.00',\n `twdisc_amount` decimal(10,2) DEFAULT '0.00',\n `TaxableAmount` decimal(10,2) DEFAULT '0.00',\n `CGST` decimal(10,2) DEFAULT '0.00',\n `SGST` decimal(10,2) DEFAULT '0.00',\n `IGST` decimal(10,2) DEFAULT '0.00',\n `update_by_id` int DEFAULT NULL,\n `update_by_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `ss_no` int DEFAULT '0',\n `insert_datetime` date DEFAULT NULL,\n `delete_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `delete_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`r_id`) USING BTREE,\n KEY `item_code` (`item_code`) USING BTREE,\n KEY `item_Name` (`item_Name`) USING BTREE,\n KEY `inv_med_id` (`inv_med_id`) USING BTREE,\n KEY `ss_no` (`ss_no`) USING BTREE,\n KEY `id_inv_med_id_item_code_store_stock_id` (`id`,`inv_med_id`,`item_code`,`store_stock_id`) USING BTREE,\n KEY `store_stock_id_ss_no` (`store_stock_id`,`ss_no`) USING BTREE,\n KEY `item_code_sale_return_item_Name_batch_no_mrp_packing` (`item_code`,`sale_return`,`item_Name`,`batch_no`,`mrp`,`packing`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=1996 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `inv_item_id` int NOT NULL DEFAULT '0',\n `packing` int NOT NULL DEFAULT '0',\n `inv_med_id` int NOT NULL DEFAULT '0',\n `purchase_item_id` int NOT NULL DEFAULT '0',\n `return_item_id` int NOT NULL DEFAULT '0',\n `sale_return` int NOT NULL DEFAULT '0',\n `item_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `item_Name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `formulation` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `qty` int DEFAULT '0',\n `r_qty` int DEFAULT '0',\n `batch_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `expiry` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `price` decimal(10,2) DEFAULT '0.00',\n `price2` decimal(10,2) DEFAULT '0.00',\n `cost_price` decimal(10,2) DEFAULT '0.00',\n `mrp` decimal(10,2) DEFAULT '0.00',\n `disc_per` decimal(10,2) DEFAULT '0.00',\n `disc_amount` decimal(10,2) DEFAULT '0.00',\n `HSNCODE` decimal(10,0) DEFAULT '0',\n `CGST_per` decimal(10,2) DEFAULT '0.00',\n `SGST_per` decimal(10,2) DEFAULT '0.00',\n `IGST_per` decimal(10,2) DEFAULT '0.00',\n `store_stock_id` int DEFAULT '0',\n `amount` decimal(10,2) DEFAULT '0.00',\n `tamount` decimal(10,2) DEFAULT '0.00',\n `disc_whole` decimal(10,2) DEFAULT '0.00',\n `twdisc_amount` decimal(10,2) DEFAULT '0.00',\n `TaxableAmount` decimal(10,2) DEFAULT '0.00',\n `CGST` decimal(10,2) DEFAULT '0.00',\n `SGST` decimal(10,2) DEFAULT '0.00',\n `IGST` decimal(10,2) DEFAULT '0.00',\n `update_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `return_status` int DEFAULT '0',\n `return_date_time` datetime DEFAULT CURRENT_TIMESTAMP,\n `update_by_id` int DEFAULT NULL,\n `update_by_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n PRIMARY KEY (`id`),\n KEY `item_code` (`item_code`),\n KEY `item_Name` (`item_Name`),\n KEY `inv_med_id` (`inv_med_id`),\n KEY `inv_item_id` (`inv_item_id`)\n) 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` (\n `Code` int NOT NULL AUTO_INCREMENT,\n `Name` varchar(100) NOT NULL,\n `short_name` varchar(100) NOT NULL,\n `sort_id` int DEFAULT '0',\n `Template` tinyint(1) DEFAULT NULL,\n `General` tinyint(1) DEFAULT NULL,\n `Description` longtext,\n `ResultType` int DEFAULT '1',\n `mUnit` varchar(30) DEFAULT NULL,\n `NormalNumFrom` double DEFAULT '0',\n `NormalNumTo` double DEFAULT '0',\n `NormalPositive` int DEFAULT '0',\n `NormalYes` int DEFAULT '0',\n `Amount` int DEFAULT '0',\n `Remarks` longtext,\n `SpecimenReq` varchar(50) DEFAULT NULL,\n `Container` varchar(50) DEFAULT NULL,\n `Qty` varchar(50) DEFAULT NULL,\n `CutOff` varchar(50) DEFAULT NULL,\n `ReportingTime` varchar(50) DEFAULT NULL,\n `LastUpdateOn` datetime DEFAULT NULL,\n `LastUpdateID` int DEFAULT '0',\n PRIMARY KEY (`Code`),\n UNIQUE KEY `Code` (`Code`),\n UNIQUE KEY `Name` (`Name`),\n KEY `short_name` (`short_name`),\n KEY `sort_id` (`sort_id`)\n) ENGINE=MyISAM AUTO_INCREMENT=619 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": "" } }, "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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `inv_master_id` int DEFAULT '0',\n `item_type` int DEFAULT '0',\n `item_id` int DEFAULT '0',\n `item_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `item_rate` decimal(10,2) DEFAULT '0.00',\n `ins_id` int DEFAULT '0',\n `org_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `item_added_date` datetime DEFAULT '0000-00-00 00:00:00',\n `item_qty` decimal(10,2) DEFAULT '0.00',\n `item_amount` decimal(10,2) DEFAULT '0.00',\n `item_amount1` decimal(10,2) DEFAULT '0.00',\n PRIMARY KEY (`id`),\n KEY `inv_master_id_item_type_item_id_ins_id_org_code` (`inv_master_id`,`item_type`,`item_id`,`ins_id`,`org_code`)\n) ENGINE=InnoDB AUTO_INCREMENT=83174 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_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `invoice_master` (\n `id` int NOT NULL AUTO_INCREMENT,\n `invoice_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `opd_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `attach_type` int NOT NULL DEFAULT '0' COMMENT '0 for Patient,1 opd,2 for IPD,3 for Credit',\n `attach_id` int NOT NULL DEFAULT '0',\n `center_id` int NOT NULL DEFAULT '0',\n `ipd_id` int NOT NULL DEFAULT '0',\n `ipd_include` int NOT NULL DEFAULT '1',\n `refer_by_id` int NOT NULL DEFAULT '0',\n `refer_by_other` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `insurance_id` int NOT NULL DEFAULT '0',\n `insurance_cash` int NOT NULL DEFAULT '1',\n `insurance_credit` int NOT NULL DEFAULT '0',\n `insurance_case_id` int NOT NULL DEFAULT '0',\n `insurance_card_id` int NOT NULL DEFAULT '0',\n `inv_date` date DEFAULT NULL,\n `inv_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `inv_a_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `discount_amount` decimal(10,2) DEFAULT '0.00',\n `discount_desc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `disc_update_by` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `correction_crdr` int DEFAULT NULL,\n `correction_type` int DEFAULT NULL,\n `correction_amount` decimal(10,2) DEFAULT '0.00',\n `correction_remark` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `correction_user` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `correction_datetime` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `tax1_per` decimal(10,2) DEFAULT '0.00',\n `tax2_per` decimal(10,2) DEFAULT '0.00',\n `tax3_per` decimal(10,2) DEFAULT '0.00',\n `total_amount` decimal(10,2) DEFAULT '0.00',\n `net_amount` decimal(10,2) DEFAULT '0.00',\n `correction_net_amount` decimal(10,2) DEFAULT '0.00',\n `payment_mode` int DEFAULT '1',\n `payment_part` int DEFAULT '0',\n `payment_part_received` decimal(10,2) DEFAULT '0.00',\n `payment_part_balance` decimal(10,2) DEFAULT '0.00',\n `payment_mode_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '1',\n `payment_status` int DEFAULT '0',\n `payment_id` int DEFAULT '0',\n `card_bank` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `cust_card` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `card_remark` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `card_tran_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `prepared_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `prepared_by_id` int DEFAULT '0',\n `confirm_invoice` datetime DEFAULT NULL,\n `insert_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n `invoice_status` int NOT NULL DEFAULT '0',\n `Remark_cancel_update` varchar(250) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `is_print_out` int NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`),\n KEY `attach_type_attach_id` (`attach_type`,`attach_id`),\n KEY `invoice_status` (`invoice_status`,`attach_id`),\n KEY `invoice_code` (`invoice_code`),\n KEY `prepared_by_prepared_by_id` (`prepared_by`,`prepared_by_id`),\n KEY `ipd_id` (`ipd_id`),\n KEY `attach_id_ipd_id_insurance_id_insurance_case_id` (`attach_id`,`ipd_id`,`insurance_id`,`insurance_case_id`),\n KEY `insurance_case_id` (`insurance_case_id`),\n KEY `attach_id_payment_status_invoice_status` (`attach_id`,`payment_status`,`invoice_status`)\n) ENGINE=InnoDB AUTO_INCREMENT=53188 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `inv_med_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `remark_ipd` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `store_id` int DEFAULT '0',\n `inv_date` date DEFAULT NULL,\n `sale_return` int DEFAULT '0',\n `inv_insert_datetime` timestamp NULL DEFAULT NULL,\n `customer_type` int DEFAULT '0' COMMENT '0 Other , 1 Register Patient',\n `group_invoice_id` int DEFAULT '0',\n `patient_id` int DEFAULT '0',\n `inv_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `inv_phone_number` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `ipd_id` int DEFAULT '0',\n `ipd_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `ipd_credit` int DEFAULT '0',\n `ipd_credit_type` int DEFAULT '1',\n `ipd_credit_type_update` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `case_id` int DEFAULT '0',\n `case_credit` int DEFAULT '0',\n `patient_code` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `doc_id` int DEFAULT '0',\n `doc_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `gross_amount` decimal(10,2) DEFAULT '0.00',\n `discount_amount` decimal(10,2) DEFAULT '0.00',\n `item_discount_amount` decimal(10,2) DEFAULT '0.00',\n `CGST_Tamount` decimal(10,2) DEFAULT '0.00',\n `SGST_Tamount` decimal(10,2) DEFAULT '0.00',\n `discount_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `discount_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `tax_total` decimal(10,2) DEFAULT NULL,\n `net_amount` decimal(10,2) DEFAULT NULL,\n `TaxableAmount` decimal(10,2) DEFAULT NULL,\n `payment_received` decimal(10,2) DEFAULT '0.00',\n `payment_balance` decimal(10,2) DEFAULT '0.00',\n `invoice_status` int DEFAULT '0',\n `payment_status` int DEFAULT '0',\n `payment_mode` int DEFAULT '0',\n `payment_id` int DEFAULT '0',\n `payment_mode_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `confirm_invoice` datetime DEFAULT NULL,\n `card_bank` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `card_remark` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `cust_card` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `card_tran_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `prepared_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `prepared_by_id` float DEFAULT NULL,\n `med_group_id` int DEFAULT '0',\n `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `rate_update` decimal(10,2) DEFAULT '0.00',\n `rate_update_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `bill_final` int DEFAULT '0',\n `bill_final_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `log` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n PRIMARY KEY (`id`),\n KEY `inv_med_code` (`inv_med_code`),\n KEY `remark_ipd` (`remark_ipd`),\n KEY `patient_id` (`patient_id`),\n KEY `inv_name` (`inv_name`),\n 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`),\n KEY `store_id` (`store_id`),\n KEY `inv_phone_number` (`inv_phone_number`),\n KEY `sale_return` (`sale_return`),\n KEY `idx_imm_inv_date` (`inv_date`),\n KEY `idx_imm_sale_return_date` (`sale_return`,`inv_date`)\n) ENGINE=InnoDB AUTO_INCREMENT=1002183 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" ] } } }, "ipd_discharg_status": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharg_status` (\n `id` int NOT NULL,\n `status_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `status_details` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n PRIMARY KEY (`id`)\n) 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_invoice_item": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_invoice_item` (\n `id` int NOT NULL AUTO_INCREMENT,\n `ipd_id` int DEFAULT '0',\n `item_type` int DEFAULT NULL,\n `item_id` int DEFAULT NULL,\n `item_name` varchar(200) DEFAULT NULL,\n `comment` varchar(200) DEFAULT NULL,\n `item_rate` decimal(10,2) DEFAULT NULL,\n `item_rate_2` decimal(10,2) DEFAULT NULL,\n `ins_id` int DEFAULT NULL,\n `org_code` varchar(50) DEFAULT NULL,\n `item_qty` decimal(10,2) DEFAULT NULL,\n `item_amount` decimal(10,2) DEFAULT NULL,\n `package_id` int DEFAULT '0',\n `doc_id` int DEFAULT '0',\n `doc_spec` varchar(50) DEFAULT NULL,\n `doc_name` varchar(100) DEFAULT NULL,\n `item_added_date` datetime DEFAULT NULL,\n `date_item` date DEFAULT NULL,\n `log` text,\n PRIMARY KEY (`id`),\n KEY `ipd_id` (`ipd_id`),\n KEY `doc_id` (`doc_id`),\n KEY `pakage_id` (`package_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=5717 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` (\n `ipd_invoice_id` int NOT NULL AUTO_INCREMENT,\n `id` int DEFAULT NULL,\n `ipd_id` int DEFAULT '0',\n `item_type` int DEFAULT NULL,\n `item_id` int DEFAULT NULL,\n `item_name` varchar(200) DEFAULT NULL,\n `comment` varchar(200) DEFAULT NULL,\n `item_rate` decimal(10,2) DEFAULT NULL,\n `item_rate_2` decimal(10,2) DEFAULT NULL,\n `ins_id` int DEFAULT NULL,\n `org_code` varchar(50) DEFAULT NULL,\n `item_qty` decimal(10,2) DEFAULT NULL,\n `item_amount` decimal(10,2) DEFAULT NULL,\n `package_id` int DEFAULT '0',\n `doc_id` int DEFAULT '0',\n `doc_name` varchar(100) DEFAULT NULL,\n `doc_spec` varchar(100) DEFAULT NULL,\n `date_item` date DEFAULT NULL,\n `item_added_date` datetime DEFAULT NULL,\n `update_by_id` int DEFAULT NULL,\n `update_by` varchar(50) DEFAULT NULL,\n `update_action` int DEFAULT NULL,\n PRIMARY KEY (`ipd_invoice_id`),\n KEY `ipd_id` (`ipd_id`),\n KEY `doc_id` (`doc_id`),\n KEY `pakage_id` (`package_id`),\n KEY `id` (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=539 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` (\n `itype_id` int NOT NULL AUTO_INCREMENT,\n `desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `group_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n PRIMARY KEY (`itype_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=11 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `itype` int DEFAULT '0',\n `idesc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `idesc_detail` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `amount` decimal(10,2) DEFAULT '0.00',\n `is_doctor` int DEFAULT '0',\n `is_date` int DEFAULT '0',\n `is_date_range` int DEFAULT '0',\n `is_name_custom` int DEFAULT '0',\n `is_unique` int DEFAULT '0',\n `update_date` datetime DEFAULT NULL,\n `last_update_desc` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=3836 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `hc_items_id` int DEFAULT NULL,\n `hc_insurance_id` int DEFAULT NULL,\n `amount1` decimal(10,2) DEFAULT NULL,\n `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `isdelete` int DEFAULT '0',\n `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n PRIMARY KEY (`id`) USING BTREE,\n UNIQUE KEY `hc_items_id_hc_insurance_id_isdelete` (`hc_items_id`,`hc_insurance_id`) USING BTREE,\n KEY `delete` (`isdelete`) USING BTREE\n) 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` (\n `id_ins_update_id` int NOT NULL AUTO_INCREMENT,\n `id` int NOT NULL DEFAULT '0',\n `hc_items_id` int DEFAULT NULL,\n `hc_insurance_id` int DEFAULT NULL,\n `amount1` decimal(10,2) DEFAULT NULL,\n `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `isdelete` int DEFAULT '0',\n `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `update_datetime` datetime DEFAULT NULL,\n `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `action` int DEFAULT NULL,\n `action_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `action_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n PRIMARY KEY (`id_ins_update_id`) USING BTREE,\n KEY `delete` (`isdelete`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=2 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` (\n `item_rate_update_id` int NOT NULL AUTO_INCREMENT,\n `id` int NOT NULL,\n `itype` int DEFAULT '0',\n `idesc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `idesc_detail` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `amount` decimal(10,2) DEFAULT '0.00',\n `is_doctor` int DEFAULT '0',\n `is_date` int DEFAULT '0',\n `is_date_range` int DEFAULT '0',\n `is_name_custom` int DEFAULT '0',\n `is_unique` int DEFAULT '0',\n `update_date` datetime DEFAULT NULL,\n `last_update_desc` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `action` int DEFAULT '0',\n `action_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `action_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n PRIMARY KEY (`item_rate_update_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=17 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `p_id` int DEFAULT NULL,\n `P_name` int DEFAULT NULL,\n `case_type` int DEFAULT '0' COMMENT '0 NON MLC and 1 for MLC',\n `P_mobile1` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `P_mobile2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `contact_person_Name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `add1` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `add2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `city` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `state` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `relation` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `problem` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `insurance_id` int DEFAULT NULL,\n `insurance_amount` decimal(10,2) DEFAULT NULL,\n `policy_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `ipd_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `dept_id` int DEFAULT NULL,\n `bed_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `r_doc_id` int DEFAULT NULL,\n `r_doc_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `register_date` date DEFAULT NULL,\n `reg_time` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `reg_time_bak` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `ipd_status` int DEFAULT '0',\n `case_id` int DEFAULT '0',\n `insert_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `insert_by` int DEFAULT NULL,\n `Discount` decimal(10,2) DEFAULT '0.00',\n `Discount_By` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `Discount_Remark` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `Discount2` decimal(10,2) DEFAULT '0.00',\n `Discount_By2` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `Discount_Remark2` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `Discount3` decimal(10,2) DEFAULT '0.00',\n `Discount_By3` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `Discount_Remark3` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `charge1` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `charge2` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `chargeamount1` decimal(10,2) DEFAULT '0.00',\n `chargeamount2` decimal(10,2) DEFAULT '0.00',\n `charge_by1` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `charge_by2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `discharge_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `discharge_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `discharge_date` date DEFAULT NULL,\n `discharge_time` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `discharge_time_ampm` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `discharge_time_bak` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `discharge_balance_remark` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `discharge_balance_user` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `charge_amount` decimal(10,2) DEFAULT '0.00',\n `package_charge_amount` decimal(10,2) DEFAULT '0.00',\n `med_amount` decimal(10,2) DEFAULT '0.00',\n `cash_med_amount` decimal(10,2) DEFAULT '0.00',\n `package_med_amount` decimal(10,2) DEFAULT '0.00',\n `med_paid` decimal(10,2) DEFAULT '0.00',\n `gross_amount` decimal(10,2) DEFAULT '0.00',\n `total_paid_amount` decimal(10,2) DEFAULT '0.00',\n `org_amount_recived` decimal(10,2) DEFAULT '0.00',\n `net_amount` decimal(10,2) DEFAULT '0.00',\n `balance_amount` decimal(10,2) DEFAULT '0.00',\n `lock_medical` int DEFAULT '0',\n `lock_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `discarge_patient_status` int DEFAULT '0' COMMENT '0 Admit,1 Improved,2 Lama,3 Referred,4 Satisfactory,5-Expired,6-Admission Cancelled',\n `ipd_times` int DEFAULT '1',\n `issurgery` int DEFAULT '0',\n `surgery_name` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `surgery_date` date DEFAULT NULL,\n `isdelivery` int DEFAULT '0',\n `no_baby` int DEFAULT '0',\n `delivery_date` date DEFAULT NULL,\n `delivery_time` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `delivery_sex_of_baby` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `delivery_sex_of_baby2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `delivery_sex_of_baby3` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `correct_dis` int DEFAULT '0',\n `corr_dis_per` int DEFAULT '0',\n `give_dis_per` decimal(10,2) DEFAULT '0.00',\n `log` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `update_back` int DEFAULT '0',\n `payable_by_tpa` decimal(20,2) DEFAULT '0.00',\n `discount_by_hospital_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `discount_by_hospital` decimal(20,2) DEFAULT '0.00',\n `discount_by_hospital_2_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `discount_by_hospital_2` decimal(20,2) DEFAULT '0.00',\n `discount_for_tpa` decimal(20,2) DEFAULT '0.00',\n `balance_discount_after` decimal(20,2) DEFAULT '0.00',\n `refer_by` int DEFAULT NULL COMMENT 'refer_master->id',\n `ipd_create` int DEFAULT '0',\n `ipd_billed_time` datetime DEFAULT NULL,\n `ipd_discharge_ready_time` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `p_id` (`p_id`),\n 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`),\n KEY `Discount3` (`Discount3`),\n KEY `Discount2` (`Discount2`),\n KEY `ipd_times` (`ipd_times`),\n KEY `update_back` (`update_back`)\n) ENGINE=InnoDB AUTO_INCREMENT=1006079 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `ipd_id` int DEFAULT '0',\n `doc_id` int DEFAULT '0',\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=7086 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_package": { "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_package` (\n `id` int NOT NULL AUTO_INCREMENT,\n `ipd_id` int DEFAULT NULL,\n `package_id` int DEFAULT NULL,\n `package_name` varchar(100) DEFAULT NULL,\n `package_desc` varchar(250) DEFAULT NULL,\n `comment` varchar(250) DEFAULT NULL,\n `ins_id` int DEFAULT '0',\n `org_code` varchar(100) DEFAULT NULL,\n `package_Amount` decimal(10,2) DEFAULT NULL,\n `insert_by` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `update_by` varchar(200) DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `ipd_id` (`ipd_id`),\n KEY `package_id` (`package_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=238 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `ipd_package_id` int NOT NULL DEFAULT '0',\n `is_ipd_opd` int NOT NULL DEFAULT '0' COMMENT '0 OPD,1 IPD',\n `item_type` int NOT NULL DEFAULT '0',\n `item_id` int NOT NULL DEFAULT '0',\n `amount` decimal(10,2) NOT NULL DEFAULT '0.00',\n PRIMARY KEY (`id`),\n KEY `ipd_package_id` (`ipd_package_id`)\n) 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` (\n `ipd_package_id` int NOT NULL AUTO_INCREMENT,\n `id` int NOT NULL,\n `ipd_id` int DEFAULT NULL,\n `package_id` int DEFAULT NULL,\n `package_name` varchar(100) DEFAULT NULL,\n `package_desc` varchar(250) DEFAULT NULL,\n `comment` varchar(250) DEFAULT NULL,\n `ins_id` int DEFAULT '0',\n `org_code` varchar(100) DEFAULT NULL,\n `package_Amount` decimal(10,2) DEFAULT NULL,\n `insert_by` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `update_by` varchar(200) DEFAULT NULL,\n `update_by_id` int DEFAULT NULL,\n `update_action` varchar(50) DEFAULT NULL,\n `update_by_action` varchar(50) DEFAULT NULL,\n PRIMARY KEY (`ipd_package_id`),\n KEY `ipd_id` (`ipd_id`),\n KEY `package_id` (`package_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=112 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` (\n `id` bigint unsigned NOT NULL AUTO_INCREMENT,\n `invoice_id` int unsigned NOT NULL,\n `lab_type` int unsigned NOT NULL,\n `file_upload_id` int unsigned DEFAULT NULL,\n `panel_name` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `ai_provider` varchar(50) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'azure-openai',\n `model_name` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `ocr_text` longtext COLLATE utf8mb4_general_ci,\n `raw_response_json` longtext COLLATE utf8mb4_general_ci,\n `status` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'completed',\n `doctor_verified` tinyint(1) NOT NULL DEFAULT '0',\n `verified_by` varchar(80) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `verified_at` datetime DEFAULT NULL,\n `created_at` datetime DEFAULT NULL,\n `updated_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `invoice_id_lab_type` (`invoice_id`,`lab_type`),\n KEY `file_upload_id` (`file_upload_id`),\n KEY `doctor_verified` (`doctor_verified`)\n) 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` (\n `id` bigint unsigned NOT NULL AUTO_INCREMENT,\n `batch_id` bigint unsigned NOT NULL,\n `test_name` varchar(180) COLLATE utf8mb4_general_ci NOT NULL,\n `test_value` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `unit` varchar(80) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `reference_range` varchar(180) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `abnormal_flag` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `raw_line` text COLLATE utf8mb4_general_ci,\n `created_at` datetime DEFAULT NULL,\n `updated_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `batch_id` (`batch_id`),\n KEY `test_name` (`test_name`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `invoice_id` int NOT NULL DEFAULT '0',\n `invoice_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `lab_type` int NOT NULL DEFAULT '0',\n `daily_sr_no` int NOT NULL DEFAULT '0',\n `lab_test_no` int NOT NULL DEFAULT '0',\n `doc_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `print_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `print_allowed` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `remove_show_list` int NOT NULL DEFAULT '0',\n `remove_update_by` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `report_header` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,\n `report_data` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,\n `report_compile` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,\n `report_insert` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n `report_update` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,\n `report_print_status` int NOT NULL,\n `report_print_time` datetime NOT NULL,\n `collected_time` datetime DEFAULT NULL,\n `reported_time` datetime DEFAULT NULL,\n `report_reopen_status` int NOT NULL DEFAULT '0' COMMENT '0 For 1 Times, more the 0 Modify',\n `report_reopen_status_log` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,\n `report_status` int NOT NULL DEFAULT '0' COMMENT '0 Pending, 1 Final',\n `file_id` int NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`),\n UNIQUE KEY `invoice_id_lab_type` (`invoice_id`,`lab_type`),\n UNIQUE KEY `invoice_code_lab_type` (`invoice_code`,`lab_type`),\n KEY `file_id` (`file_id`)\n) 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": "" }, "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` (\n `mstItemKey` int NOT NULL AUTO_INCREMENT,\n `mstPLKey` int NOT NULL,\n `Item` varchar(40) NOT NULL,\n `ShortName` varchar(10) DEFAULT '0',\n `Rate` int NOT NULL DEFAULT '0',\n `CatKey` int NOT NULL DEFAULT '0',\n PRIMARY KEY (`mstItemKey`),\n UNIQUE KEY `mstPLKey` (`mstPLKey`,`Item`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `lab_repo_id` int DEFAULT '0',\n `log_insert_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n `log_by_id` int DEFAULT NULL,\n `log_by` varchar(100) DEFAULT NULL,\n `log_type_id` int DEFAULT NULL,\n `log_type` varchar(50) DEFAULT NULL,\n `log_Faults_id` int DEFAULT NULL,\n `log_Faults` varchar(100) DEFAULT NULL,\n `comments` varchar(100) DEFAULT NULL,\n PRIMARY KEY (`id`) USING BTREE,\n KEY `log_by_id_log_type_id_log_Faults_id` (`log_by_id`,`log_type_id`,`log_Faults_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=1023 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_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` (\n `analytical_id` int NOT NULL,\n `analytical_name` varchar(50) NOT NULL DEFAULT '',\n PRIMARY KEY (`analytical_id`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `analytical_faults_type` int DEFAULT NULL COMMENT '1 Pre Analytical Faults , 2 Analytical Faults, 3 Post Analytical Faults',\n `analytical_faults` varchar(100) DEFAULT NULL,\n `option_desc` tinytext,\n PRIMARY KEY (`id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_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` (\n `mstItemKey` int NOT NULL,\n `mstRepoKey` int NOT NULL,\n PRIMARY KEY (`mstItemKey`,`mstRepoKey`)\n) 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` (\n `mstRepoKey` int NOT NULL AUTO_INCREMENT,\n `Title` varchar(100) NOT NULL,\n `RTFData` longtext,\n `HTMLData` longtext,\n `GrpKey` int NOT NULL,\n `IncludeHeader` tinyint(1) DEFAULT '1',\n `IncludeFooter` tinyint(1) DEFAULT '1',\n `charge_id` int DEFAULT '0',\n PRIMARY KEY (`mstRepoKey`),\n UNIQUE KEY `Title` (`Title`),\n KEY `GrpKey` (`GrpKey`),\n KEY `charge_id` (`charge_id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `mstRepoKey` int NOT NULL,\n `mstTestKey` int NOT NULL,\n `EOrder` tinyint unsigned NOT NULL DEFAULT '0',\n PRIMARY KEY (`mstRepoKey`,`mstTestKey`),\n UNIQUE KEY `id` (`id`),\n UNIQUE KEY `mstRepoKey_EOrder` (`mstRepoKey`,`EOrder`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `lab_repo_id` int DEFAULT NULL,\n `charge_id` int DEFAULT NULL,\n `lab_type` int DEFAULT NULL,\n `charge_item_id` int DEFAULT NULL,\n `invoice_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `patient_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `patient_id` int DEFAULT NULL,\n `ipd_id` int DEFAULT '0',\n `org_id` int DEFAULT '0',\n `Request_Date` datetime DEFAULT NULL,\n `report_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `status` int DEFAULT '0' COMMENT '0 Pending,1 Entered,2confirm,3 Print',\n `rep_data` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `insert_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `confirm_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `attach_report` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `print_allowed` int DEFAULT '0',\n `Remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `Report_Data` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `report_data_Impression` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `print_combine` int DEFAULT '1',\n `collected_time` datetime DEFAULT NULL,\n `reported_time` datetime DEFAULT NULL,\n `report_update` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `report_edit_req_no` int DEFAULT '0',\n PRIMARY KEY (`id`),\n UNIQUE KEY `charge_item_id` (`charge_item_id`),\n KEY `status` (`status`),\n KEY `combine_Id` (`lab_repo_id`,`charge_id`,`lab_type`,`charge_item_id`,`patient_id`,`ipd_id`,`org_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=36 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` (\n `del_id` int NOT NULL AUTO_INCREMENT,\n `id` int NOT NULL,\n `lab_repo_id` int DEFAULT NULL,\n `charge_id` int DEFAULT NULL,\n `lab_type` int DEFAULT NULL,\n `charge_item_id` int DEFAULT NULL,\n `invoice_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `patient_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `patient_id` int DEFAULT NULL,\n `ipd_id` int DEFAULT '0',\n `org_id` int DEFAULT '0',\n `Request_Date` datetime DEFAULT NULL,\n `report_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `status` int DEFAULT '0' COMMENT '0 Pending,1 Entered,2confirm,3 Print',\n `rep_data` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `insert_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `confirm_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `attach_report` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `print_allowed` int DEFAULT '0',\n `Remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `Report_Data` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `report_data_Impression` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `print_combine` int DEFAULT '1',\n `collected_time` datetime DEFAULT NULL,\n `reported_time` datetime DEFAULT NULL,\n `remove_update_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '1',\n `report_update` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `report_edit_req_no` int DEFAULT NULL,\n PRIMARY KEY (`del_id`),\n KEY `status` (`status`),\n KEY `combine_Id` (`lab_repo_id`,`charge_id`,`lab_type`,`charge_item_id`,`patient_id`,`ipd_id`,`org_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=3 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `lab_request_id` int NOT NULL DEFAULT '0',\n `lab_repo_id` int NOT NULL DEFAULT '0',\n `lab_test_id` int NOT NULL DEFAULT '0',\n `lab_test_value` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,\n `lab_test_option_value` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,\n `lab_test_option_text` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,\n `lab_test_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,\n `lab_test_update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,\n `test_datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n PRIMARY KEY (`id`),\n UNIQUE KEY `lab_request_id_lab_repo_id_lab_test_id` (`lab_request_id`,`lab_repo_id`,`lab_test_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=35 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` (\n `mstRGrpKey` int NOT NULL AUTO_INCREMENT,\n `RepoGrp` varchar(100) NOT NULL,\n `PreFix` varchar(3) NOT NULL DEFAULT '0',\n `Suffix` varchar(3) NOT NULL DEFAULT '0',\n `LastNo` int NOT NULL DEFAULT '0',\n `sort_order` int NOT NULL DEFAULT '0',\n `Notes` varchar(50) NOT NULL DEFAULT '0',\n PRIMARY KEY (`mstRGrpKey`),\n UNIQUE KEY `RepoGrp` (`RepoGrp`)\n) ENGINE=MyISAM AUTO_INCREMENT=17 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` (\n `mstTestKey` int NOT NULL AUTO_INCREMENT,\n `Test` varchar(80) NOT NULL DEFAULT '0',\n `TestID` varchar(15) NOT NULL,\n `Result` varchar(180) NOT NULL DEFAULT '0',\n `Options` text,\n `Formula` varchar(50) DEFAULT NULL,\n `VRule` varchar(50) DEFAULT NULL,\n `VMsg` varchar(50) DEFAULT NULL,\n `Unit` varchar(10) NOT NULL DEFAULT '0',\n `FixedNormals` varchar(30) NOT NULL DEFAULT '0',\n `isGenderSpecific` int NOT NULL DEFAULT '0',\n `FixedNormalsWomen` varchar(30) NOT NULL,\n PRIMARY KEY (`mstTestKey`),\n UNIQUE KEY `TestID` (`TestID`),\n KEY `Test` (`Test`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `mstTestKey` int DEFAULT NULL,\n `sort_id` int DEFAULT NULL,\n `option_value` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `option_text` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `option_bold` int DEFAULT '0',\n PRIMARY KEY (`id`),\n UNIQUE KEY `mstTestKey_sort_id` (`mstTestKey`,`sort_id`),\n UNIQUE KEY `mstTestKey_option_value` (`mstTestKey`,`option_value`),\n KEY `option_value` (`option_value`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `company_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `contact_person_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `contact_phone_no` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `company_name` (`company_name`)\n) ENGINE=InnoDB AUTO_INCREMENT=878 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `formulation_length` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0',\n `formulation` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0',\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=175 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `gen_desc` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n PRIMARY KEY (`id`),\n KEY `gen_desc` (`gen_desc`)\n) ENGINE=InnoDB AUTO_INCREMENT=5582 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `gst_per` decimal(20,2) NOT NULL DEFAULT '0.00',\n PRIMARY KEY (`id`)\n) 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": "" }, "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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `med_cat_desc` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n PRIMARY KEY (`id`),\n KEY `med_cat_desc` (`med_cat_desc`)\n) ENGINE=MyISAM AUTO_INCREMENT=42 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": "" }, "med_cat_desc": { "Field": "med_cat_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" ] }, "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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `item_name` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n `formulation` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0' COMMENT 'tablet,syp,inj',\n `formulation_id` int DEFAULT '0',\n `genericname` varchar(1000) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n `packing` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n `unit_1` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n `unit_2` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n `HSNCODE` varchar(20) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n `CGST_per` decimal(10,2) NOT NULL DEFAULT '0.00',\n `SGST_per` decimal(10,2) NOT NULL DEFAULT '0.00',\n `ban_flag_id` int NOT NULL DEFAULT '0',\n `rack_no` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n `shelf_no` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n `cold_storage` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n `re_order_qty` int NOT NULL DEFAULT '5',\n `alert_day_before` int NOT NULL DEFAULT '5',\n `related_drug_id` int NOT NULL DEFAULT '0' COMMENT 'drug_temp->item_id',\n `company_name` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n `company_id` int NOT NULL DEFAULT '0',\n `mfgname` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n `insert_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n `is_continue` int NOT NULL DEFAULT '1',\n `batch_applicable` int NOT NULL DEFAULT '1',\n `exp_date_applicable` int NOT NULL DEFAULT '1',\n `schedule_h` int NOT NULL DEFAULT '0',\n `schedule_h1` int NOT NULL DEFAULT '0',\n `narcotic` int NOT NULL DEFAULT '0',\n `schedule_x` int NOT NULL DEFAULT '0',\n `schedule_g` int NOT NULL DEFAULT '0',\n `high_risk` int NOT NULL DEFAULT '0',\n `dosage` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_when` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_freq` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_where` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `qty` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `no_of_days` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `remark` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `item_name` (`item_name`),\n KEY `company_id` (`company_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=2464 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` (\n `del_id` int NOT NULL AUTO_INCREMENT,\n `id` int NOT NULL,\n `item_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `formulation` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'tablet,syp,inj',\n `formulation_id` int DEFAULT '0',\n `genericname` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `packing` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `unit_2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `unit_1` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `HSNCODE` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `CGST_per` decimal(10,2) DEFAULT '0.00',\n `SGST_per` decimal(10,2) DEFAULT '0.00',\n `ban_flag_id` int DEFAULT '0',\n `rack_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `shelf_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `cold_storage` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `re_order_qty` int DEFAULT '5',\n `alert_day_before` int DEFAULT '5',\n `related_drug_id` int DEFAULT '0' COMMENT 'drug_temp->item_id',\n `company_name` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `company_id` int NOT NULL DEFAULT '0',\n `schedule_h` int NOT NULL DEFAULT '0',\n `schedule_h1` int NOT NULL DEFAULT '0',\n `narcotic` int NOT NULL DEFAULT '0',\n `mfgname` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `insert_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,\n `is_continue` int NOT NULL DEFAULT '1',\n `batch_applicable` int NOT NULL DEFAULT '1',\n `exp_date_applicable` int NOT NULL DEFAULT '1',\n `update_by_id` int NOT NULL DEFAULT '1',\n `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,\n `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n `schedule_x` int NOT NULL DEFAULT '0',\n `schedule_g` int NOT NULL DEFAULT '0',\n `high_risk` int NOT NULL DEFAULT '0',\n `dosage` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_when` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_freq` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_where` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `qty` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `no_of_days` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `remark` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`del_id`) USING BTREE,\n KEY `id` (`id`) USING BTREE,\n KEY `item_name` (`item_name`) USING BTREE,\n KEY `company_name_company_id` (`company_name`,`company_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=75 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `SpecName` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`)\n) 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` (\n `sid` int NOT NULL AUTO_INCREMENT,\n `name_supplier` varchar(100) DEFAULT NULL,\n `short_name` varchar(50) DEFAULT NULL,\n `contact_no` varchar(50) DEFAULT NULL,\n `gst_no` varchar(50) DEFAULT NULL,\n `city` varchar(50) DEFAULT NULL,\n `state` varchar(50) DEFAULT NULL,\n `active` int DEFAULT '1',\n PRIMARY KEY (`sid`),\n UNIQUE KEY `gst_no` (`gst_no`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `supplier_id` int DEFAULT '0',\n `purchase_id` int DEFAULT '0',\n `tran_date` date DEFAULT NULL,\n `credit_debit` int DEFAULT '0' COMMENT '0 Cr, 1 Dr',\n `amount` decimal(10,2) DEFAULT NULL,\n `bank_id` int DEFAULT '1' COMMENT '1 cash,2 bank',\n `tran_desc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insert_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `insert_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insert_by_id` int DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `insert_by_id` (`insert_by_id`),\n KEY `supplier_id_purchase_id_tran_date` (`supplier_id`,`purchase_id`,`tran_date`),\n KEY `supplier_id_tran_date_mode` (`supplier_id`,`tran_date`,`bank_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=425 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` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `action_type` varchar(50) NOT NULL,\n `action_summary` varchar(255) NOT NULL,\n `payload_json` text,\n `created_by_id` int DEFAULT NULL,\n `created_by_name` varchar(160) DEFAULT NULL,\n `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,\n PRIMARY KEY (`id`),\n KEY `idx_action_type` (`action_type`),\n KEY `idx_created_at` (`created_at`)\n) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_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` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `bank_name` varchar(150) COLLATE utf8mb4_general_ci NOT NULL,\n PRIMARY KEY (`id`)\n) 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` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `bank_id` int unsigned NOT NULL,\n `pay_type` varchar(150) COLLATE utf8mb4_general_ci NOT NULL,\n PRIMARY KEY (`id`),\n KEY `bank_id` (`bank_id`)\n) 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` (\n `id` bigint unsigned NOT NULL AUTO_INCREMENT,\n `version` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `class` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `group` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `namespace` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `time` int NOT NULL,\n `batch` int unsigned NOT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=MyISAM AUTO_INCREMENT=22 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" ] } } }, "opd_advice": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_advice` (\n `id` int NOT NULL AUTO_INCREMENT,\n `advice` text,\n `advice_hindi` longtext,\n PRIMARY KEY (`id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `advice_type` int NOT NULL DEFAULT '0',\n `advice_id` int NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`),\n KEY `advice_type_advice_id` (`advice_type`,`advice_id`),\n KEY `FK_opd_advice_sub_opd_advise` (`advice_id`),\n CONSTRAINT `FK_opd_advice_sub_opd_advice_type` FOREIGN KEY (`advice_type`) REFERENCES `opd_advice_type` (`id`),\n CONSTRAINT `FK_opd_advice_sub_opd_advise` FOREIGN KEY (`advice_id`) REFERENCES `opd_advice` (`id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `advice_for` varchar(50) NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `advice` varchar(1000) DEFAULT NULL,\n `advice_hindi` varchar(1000) DEFAULT NULL,\n PRIMARY KEY (`id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `HCODE` int NOT NULL DEFAULT '0',\n `doc_id` int NOT NULL DEFAULT '0',\n `dept_id` int NOT NULL DEFAULT '0',\n `opd_date` date DEFAULT '0000-00-00',\n `opd_day_slot` int DEFAULT '0',\n `opd_no` int DEFAULT '0',\n `p_id` int DEFAULT '0',\n `last_opd_no` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0',\n `pname` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0',\n `phone_no` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0',\n `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',\n `update_status` int DEFAULT '0' COMMENT '0 Pending,1 Confirm,2 Cancel',\n `assign_opd_id` int DEFAULT '0',\n PRIMARY KEY (`id`),\n KEY `phone_no` (`phone_no`),\n KEY `opd_date_opd_day_slot_opd_no_p_id` (`opd_date`,`opd_day_slot`,`opd_no`,`p_id`),\n KEY `assign_opd_id` (`assign_opd_id`),\n KEY `HCODE_doc_id` (`HCODE`,`doc_id`),\n KEY `HCODE_dept_id` (`HCODE`,`dept_id`)\n) 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_clinical_template_usage": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_clinical_template_usage` (\n `id` int NOT NULL AUTO_INCREMENT,\n `doc_id` int NOT NULL,\n `template_id` int NOT NULL,\n `section_key` varchar(80) COLLATE utf32_unicode_ci NOT NULL,\n `use_count` int NOT NULL DEFAULT '0',\n `last_used_at` datetime DEFAULT NULL,\n `created_at` datetime DEFAULT NULL,\n `updated_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `uniq_doc_template_section` (`doc_id`,`template_id`,`section_key`),\n KEY `idx_template` (`template_id`),\n KEY `idx_section_use` (`section_key`,`use_count`)\n) ENGINE=MyISAM AUTO_INCREMENT=6 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `doc_id` int NOT NULL DEFAULT '0',\n `section_key` varchar(80) COLLATE utf32_unicode_ci NOT NULL,\n `template_name` varchar(255) COLLATE utf32_unicode_ci NOT NULL,\n `template_text` text COLLATE utf32_unicode_ci NOT NULL,\n `is_active` tinyint NOT NULL DEFAULT '1',\n `created_at` datetime DEFAULT NULL,\n `updated_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `idx_doc_section` (`doc_id`,`section_key`),\n KEY `idx_section_active` (`section_key`,`is_active`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `duration` varchar(50) NOT NULL,\n PRIMARY KEY (`id`),\n KEY `duration` (`duration`)\n) 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` (\n `dose_freq_id` int NOT NULL AUTO_INCREMENT,\n `dose_sign` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dose_sign_desc` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dose_sign_hindi` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`dose_freq_id`) USING BTREE\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `dose_remark` int DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `dose_remark` (`dose_remark`)\n) 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` (\n `dose_shed_id` int NOT NULL AUTO_INCREMENT,\n `dose_show_sign` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '',\n `dose_show_desc` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '',\n PRIMARY KEY (`dose_shed_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=25 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` (\n `dose_when_id` int NOT NULL AUTO_INCREMENT,\n `dose_sign` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dose_sign_desc` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dose_sign_hindi` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`dose_when_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=17 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` (\n `dose_where_id` int NOT NULL AUTO_INCREMENT,\n `dose_sign` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dose_sign_desc` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dose_sign_hindi` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`dose_where_id`) USING BTREE\n) 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` (\n `id` bigint unsigned NOT NULL AUTO_INCREMENT,\n `opd_id` int unsigned NOT NULL,\n `opd_session_id` int unsigned NOT NULL,\n `bundle_type` varchar(80) COLLATE utf8mb4_general_ci NOT NULL,\n `bundle_json` longtext COLLATE utf8mb4_general_ci NOT NULL,\n `generated_by` varchar(80) COLLATE utf8mb4_general_ci NOT NULL,\n `generated_at` datetime NOT NULL,\n `created_at` datetime DEFAULT NULL,\n `updated_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `opd_id` (`opd_id`),\n KEY `opd_session_id` (`opd_session_id`),\n KEY `bundle_type` (`bundle_type`)\n) ENGINE=MyISAM AUTO_INCREMENT=42 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` (\n `opd_id` int NOT NULL AUTO_INCREMENT,\n `opd_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `p_id` int DEFAULT NULL,\n `P_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `opd_book_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `apointment_date` date DEFAULT NULL,\n `opd_spec_id` int DEFAULT NULL,\n `opd_no` int DEFAULT NULL,\n `doc_id` int DEFAULT NULL,\n `doc_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `doc_spec` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insurance_id` int DEFAULT '0',\n `insurance_case_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `opd_fee_type` int DEFAULT '0',\n `opd_fee_id` int DEFAULT NULL,\n `opd_fee_gross_amount` decimal(10,2) DEFAULT NULL,\n `opd_discount` decimal(10,2) DEFAULT '0.00',\n `opd_disc_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `opd_disc_update_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `opd_fee_amount` decimal(10,2) DEFAULT '0.00',\n `opd_fee_amount_1` decimal(10,2) DEFAULT '0.00',\n `opd_fee_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `opd_status` int DEFAULT '1',\n `opd_status_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `payment_status` int DEFAULT '0' COMMENT '0 Pending,1 Confirm',\n `payment_id` int DEFAULT '0',\n `payment_mode` int DEFAULT '0' COMMENT '0 Pending,1 cash , 2 Card,3 ECHS Credit',\n `payment_mode_desc` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `confirm_pay_opd` datetime DEFAULT NULL,\n `prepared_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `prepared_by_id` int DEFAULT NULL,\n `running_opd` int DEFAULT '0',\n `running_opd_id` int DEFAULT '0',\n `last_opdvisit_date` date DEFAULT NULL,\n `no_visit` int DEFAULT '0',\n `online_book` int DEFAULT '0',\n PRIMARY KEY (`opd_id`),\n KEY `p_id` (`p_id`),\n KEY `opd_code` (`opd_code`),\n KEY `ech_clam_id` (`insurance_case_id`),\n KEY `prepared_by` (`prepared_by`),\n KEY `opd_status` (`opd_status`),\n KEY `P_name` (`P_name`),\n 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,\n KEY `online_book` (`online_book`),\n KEY `opd_id_p_id_apointment_date_insurance_id` (`opd_id`,`p_id`,`apointment_date`,`insurance_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=2039667 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": "", "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": "", "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" ] } } }, "opd_med_master": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_med_master` (\n `id` int NOT NULL AUTO_INCREMENT,\n `item_name` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `formulation` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL COMMENT 'tablet,syp,inj',\n `formulation_id` int DEFAULT '0',\n `genericname` varchar(1000) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `company_name` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `company_id` int DEFAULT '0',\n `mfgname` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `insert_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `schedule_h` int DEFAULT '0',\n `schedule_h1` int DEFAULT '0',\n `narcotic` int DEFAULT '0',\n `schedule_x` int DEFAULT '0',\n `schedule_g` int DEFAULT '0',\n `high_risk` int DEFAULT '0',\n `dosage` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_when` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_freq` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_where` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `qty` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `no_of_days` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `remark` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `salt_name` varchar(255) COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_restriction` varchar(255) COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`) USING BTREE,\n KEY `schedule_h_schedule_h1_narcotic` (`schedule_h`,`schedule_h1`,`narcotic`) USING BTREE,\n KEY `company_name_company_id` (`company_name`,`company_id`) USING BTREE,\n KEY `item_name` (`item_name`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=3467 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": "", "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" ] } } }, "opd_medicine_favorites": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_medicine_favorites` (\n `id` bigint unsigned NOT NULL AUTO_INCREMENT,\n `user_id` int unsigned NOT NULL,\n `med_id` int unsigned NOT NULL,\n `created_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `uniq_user_med_fav` (`user_id`,`med_id`),\n KEY `idx_user_fav_created` (`user_id`,`created_at`)\n) 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": "" }, "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` (\n `id` bigint unsigned NOT NULL AUTO_INCREMENT,\n `user_id` int unsigned NOT NULL,\n `med_id` int unsigned NOT NULL,\n `use_count` int unsigned NOT NULL DEFAULT '0',\n `last_used_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `uniq_user_med_usage` (`user_id`,`med_id`),\n KEY `idx_user_last_used` (`user_id`,`last_used_at`)\n) ENGINE=MyISAM AUTO_INCREMENT=3 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `next_visit_desc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',\n `no_of_days` int NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `opd_no_min` int NOT NULL DEFAULT '0',\n `opd_no_max` int NOT NULL DEFAULT '0',\n `opd_time` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `HCODE` int DEFAULT '0',\n `opd_id` int DEFAULT NULL,\n `doc_id` int DEFAULT '0',\n `revisit` int DEFAULT '0',\n `visit_status` int DEFAULT '0',\n `p_id` int DEFAULT '0',\n `session_id` int DEFAULT '0',\n `date_opd_visit` date DEFAULT NULL,\n `queue_no` int DEFAULT '0',\n `current_queue_no` int DEFAULT '0',\n `p_datetime` timestamp NULL DEFAULT NULL,\n `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `Finding_Examinations` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `Prescriber_Remarks` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `bp` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `diastolic` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `pulse` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `height` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `weight` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `waist` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `temp` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `rr_min` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `spo2` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `glucose` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `paediatric` int DEFAULT '0',\n `pregnancy` int DEFAULT '0',\n `lactation` int DEFAULT '0',\n `liver_insufficiency` int DEFAULT '0',\n `renal_insufficiency` int DEFAULT '0',\n `pulmonary_insufficiency` int DEFAULT '0',\n `corona_suspected` int DEFAULT '0',\n `dengue` int DEFAULT '0',\n `complaints` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `diagnosis` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `Provisional_diagnosis` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `investigation` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `advice` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `next_visit` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `refer_to` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `pallor` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `Icterus` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `cyanosis` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `clubbing` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `edema` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `pain_value` int DEFAULT '-1',\n PRIMARY KEY (`id`),\n KEY `HCODE_opd_id_p_id_session_id` (`HCODE`,`opd_id`,`p_id`,`session_id`),\n KEY `doc_id_date_opd_visit_queue_no` (`doc_id`,`queue_no`,`opd_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=61062 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": "", "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" ] } } }, "opd_prescription_advice": { "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_advice` (\n `id` int NOT NULL AUTO_INCREMENT,\n `opd_id` int DEFAULT '0',\n `opd_pre_id` int DEFAULT '0',\n `advice_id` int DEFAULT '0',\n `advice_txt` text,\n `advice_txt_hindi` text,\n PRIMARY KEY (`id`),\n KEY `opd_id_opd_pre_id_advice_id` (`opd_id`,`opd_pre_id`,`advice_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=23326 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `opd_pre_id` int NOT NULL DEFAULT '0',\n `order_id` int NOT NULL DEFAULT '0',\n `comp_code` int DEFAULT '0',\n `comp_report` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `comp_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n PRIMARY KEY (`id`),\n KEY `opd_pre_id_order_id` (`opd_pre_id`,`order_id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `opd_pre_id` int NOT NULL DEFAULT '0',\n `order_id` int NOT NULL DEFAULT '0',\n `diag_code` int DEFAULT '0',\n `diag_report` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `diag_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n PRIMARY KEY (`id`),\n KEY `opd_pre_id_order_id` (`opd_pre_id`,`order_id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `opd_pre_id` int DEFAULT '0',\n `order_id` int DEFAULT NULL,\n `investigation_code` int DEFAULT NULL,\n `investigation_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `insert_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=38 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `HCODE` int DEFAULT NULL,\n `layout_id` int DEFAULT NULL,\n `active` int DEFAULT '1',\n `layout_name` int unsigned DEFAULT NULL,\n `p_code_w` int unsigned DEFAULT NULL,\n `p_code_h` int unsigned DEFAULT NULL,\n `p_code_x` int unsigned DEFAULT NULL,\n `p_code_y` int unsigned DEFAULT NULL,\n `p_code_b` int unsigned DEFAULT NULL,\n `p_code_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `p_name_w` int unsigned DEFAULT NULL,\n `p_name_h` int unsigned DEFAULT NULL,\n `p_name_x` int unsigned DEFAULT NULL,\n `p_name_y` int unsigned DEFAULT NULL,\n `p_name_b` int unsigned DEFAULT NULL,\n `p_name_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `gender_w` int DEFAULT NULL,\n `gender_h` int DEFAULT NULL,\n `gender_x` int DEFAULT NULL,\n `gender_y` int DEFAULT NULL,\n `gender_b` int DEFAULT NULL,\n `gender_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `age_w` int DEFAULT NULL,\n `age_h` int DEFAULT NULL,\n `age_x` int DEFAULT NULL,\n `age_y` int DEFAULT NULL,\n `age_b` int DEFAULT NULL,\n `age_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `opdcode_w` int DEFAULT NULL,\n `opdcode_h` int DEFAULT NULL,\n `opdcode_x` int DEFAULT NULL,\n `opdcode_y` int DEFAULT NULL,\n `opdcode_b` int DEFAULT NULL,\n `opdcode_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `odate_w` int DEFAULT NULL,\n `oDate_h` int DEFAULT NULL,\n `oDate_x` int DEFAULT NULL,\n `oDate_y` int DEFAULT NULL,\n `oDate_b` int DEFAULT NULL,\n `oDate_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `doctor_name_w` int DEFAULT NULL,\n `doctor_name_h` int DEFAULT NULL,\n `doctor_name_x` int DEFAULT NULL,\n `doctor_name_y` int DEFAULT NULL,\n `doctor_name_b` int DEFAULT NULL,\n `doctor_name_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `complaint_w` int DEFAULT NULL,\n `complaint_h` int DEFAULT NULL,\n `complaint_x` int DEFAULT NULL,\n `complaint_y` int DEFAULT NULL,\n `complaint_b` int DEFAULT NULL,\n `complaint_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `diagnosis_w` int DEFAULT NULL,\n `diagnosis_h` int DEFAULT NULL,\n `diagnosis_x` int DEFAULT NULL,\n `diagnosis_y` int DEFAULT NULL,\n `diagnosis_b` int DEFAULT NULL,\n `diagnosis_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `investigation_w` int DEFAULT NULL,\n `investigation_h` int DEFAULT NULL,\n `investigation_x` int DEFAULT NULL,\n `investigation_y` int DEFAULT NULL,\n `investigation_b` int DEFAULT NULL,\n `investigation_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `pharma_w` int DEFAULT NULL,\n `pharma_h` int DEFAULT NULL,\n `pharma_x` int DEFAULT NULL,\n `pharma_y` int DEFAULT NULL,\n `pharma_b` int DEFAULT NULL,\n `pharma_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `barcode_w` int DEFAULT NULL,\n `barcode_h` int DEFAULT NULL,\n `barcode_x` int DEFAULT NULL,\n `barcode_y` int DEFAULT NULL,\n `barcode_b` int DEFAULT NULL,\n `barcode_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `HCODE_layout_id` (`HCODE`,`layout_id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `HCODE` int DEFAULT '0',\n `opd_id` int DEFAULT NULL,\n `doc_id` int DEFAULT '0',\n `revisit` int DEFAULT '0',\n `visit_status` int DEFAULT '0',\n `p_id` int DEFAULT '0',\n `session_id` int DEFAULT '0',\n `date_opd_visit` date DEFAULT NULL,\n `queue_no` int DEFAULT '0',\n `p_datetime` timestamp NULL DEFAULT NULL,\n `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `Finding_Examinations` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `Prescriber_Remarks` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `bp` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `diastolic` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `pulse` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `height` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `weight` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `waist` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `temp` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `rr_min` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `spo2` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `glucose` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `paediatric` int DEFAULT '0',\n `pregnancy` int DEFAULT '0',\n `lactation` int DEFAULT '0',\n `liver_insufficiency` int DEFAULT '0',\n `renal_insufficiency` int DEFAULT '0',\n `pulmonary_insufficiency` int DEFAULT '0',\n PRIMARY KEY (`id`),\n KEY `HCODE_opd_id_p_id_session_id` (`HCODE`,`opd_id`,`p_id`,`session_id`),\n KEY `doc_id_date_opd_visit_queue_no` (`doc_id`,`date_opd_visit`,`queue_no`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `opd_pre_id` int NOT NULL DEFAULT '0',\n `order_id` int NOT NULL DEFAULT '0',\n `proc_code` int DEFAULT '0',\n `proc_report` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `proc_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n PRIMARY KEY (`id`),\n KEY `opd_pre_id_order_id` (`opd_pre_id`,`order_id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `rx_group_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n `doc_id` int DEFAULT '0',\n `p_datetime` timestamp NULL DEFAULT NULL,\n `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `Finding_Examinations` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `Prescriber_Remarks` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `complaints` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `diagnosis` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `investigation` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n PRIMARY KEY (`id`) USING BTREE,\n KEY `doc_id_date_opd_visit_queue_no` (`doc_id`) USING BTREE\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `opd_pre_id` int DEFAULT NULL,\n `med_id` int DEFAULT '0',\n `med_name` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `med_type` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_str` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_when` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_when_str` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_freq` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_freq_str` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_where` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_where_str` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `qty` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `no_of_days` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `remark` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `update_by` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `opd_session_id` (`opd_pre_id`),\n KEY `med_name` (`med_name`),\n KEY `med__id` (`med_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=153112 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `rx_group_id` int DEFAULT NULL,\n `med_id` int DEFAULT '0',\n `med_name` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `med_type` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_when` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_freq` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_where` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `qty` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `no_of_days` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `remark` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `update_by` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_str` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_when_str` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_freq_str` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_where_str` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`) USING BTREE,\n KEY `med_name` (`med_name`) USING BTREE,\n KEY `med__id` (`med_id`) USING BTREE,\n KEY `opd_session_id` (`rx_group_id`) USING BTREE\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `p_id` int NOT NULL DEFAULT '0',\n `p_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n `opd_id` int NOT NULL DEFAULT '0',\n `opd_type` int NOT NULL DEFAULT '0',\n `running_opd` int NOT NULL DEFAULT '0',\n `date_opd` date NOT NULL,\n `opd_no` int NOT NULL DEFAULT '0' COMMENT '0 Pending',\n `opd_slot` int NOT NULL DEFAULT '1',\n `booking_no` int NOT NULL DEFAULT '0',\n `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n `phone_number` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n `opd_status` int NOT NULL DEFAULT '0' COMMENT '0 Booking,1 for Confirm Booking,2 OPD No assigned,3 OPD Done,4 OPD Cancel',\n PRIMARY KEY (`id`),\n KEY `p_id` (`p_id`),\n KEY `opd_id` (`opd_id`),\n KEY `opd_id_running_opd_date_opd_opd_no` (`opd_id`,`running_opd`,`date_opd`,`opd_no`),\n KEY `p_name` (`p_name`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `app_status` varchar(50) NOT NULL,\n `color` varchar(50) NOT NULL,\n PRIMARY KEY (`id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `org_type` int NOT NULL DEFAULT '0' COMMENT '0 for OPd, 1 for IPD',\n `date_of_create` date NOT NULL,\n `label_no` varchar(50) NOT NULL,\n `files_status` int NOT NULL DEFAULT '0' COMMENT '0 Pending,1 Budle Complete, 2 Send',\n PRIMARY KEY (`id`),\n KEY `org_type` (`org_type`)\n) 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` (\n `id` bigint NOT NULL AUTO_INCREMENT,\n `org_id` int DEFAULT '0' COMMENT 'Org Case ID',\n `org_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `patient_id` bigint DEFAULT NULL,\n `patient_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `org_date` date DEFAULT NULL,\n `payment_type` int DEFAULT '1' COMMENT '1 For Org.Payment',\n `payment_amount` decimal(10,2) DEFAULT NULL,\n `payment_request_datetime` datetime DEFAULT NULL,\n `request_by_id` int DEFAULT NULL,\n `request_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `remark` varchar(250) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `payment_datetime` datetime DEFAULT NULL,\n `payment_process` int DEFAULT '0' COMMENT '0 Pending,1 Complete',\n `pay_id` int DEFAULT '0',\n `payment_accept_by_id` int DEFAULT '0',\n `payment_accept_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `org_id_patient_id` (`org_id`,`patient_id`),\n KEY `org_code` (`org_code`),\n KEY `patient_name` (`patient_name`),\n KEY `org_code_patient_name` (`org_code`,`patient_name`)\n) ENGINE=InnoDB AUTO_INCREMENT=7 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `p_id` int DEFAULT NULL,\n `case_id_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `ipd_id` int DEFAULT '0',\n `case_type` int DEFAULT '0' COMMENT '0 for OPD,1 IPD',\n `insurance_id` int DEFAULT NULL,\n `insurance_card_id` int DEFAULT NULL,\n `insurance_company_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insurance_card_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `relation_with_cardholder` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `card_remark` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insurance_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insurance_no_1` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insurance_no_2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insurance_no_3` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `date_registration` date DEFAULT NULL,\n `insert_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `p_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `p_gender` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `p_phone_number` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `doc_recd` int DEFAULT '0',\n `preauth_send` int DEFAULT '0',\n `org_approved_amount` decimal(10,2) DEFAULT '0.00',\n `org_approved_status` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'Under Process' COMMENT 'Query,Approved,Deny',\n `org_approved_status_id` int DEFAULT '1',\n `final_bill_send` int DEFAULT '0',\n `final_bill_amount` decimal(10,2) DEFAULT '0.00',\n `final_approve_amount` decimal(10,2) DEFAULT '0.00',\n `Org_insurance_comp` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `status` int DEFAULT '0' COMMENT '0-Pending,1-Case Close',\n `org_submit_date` date DEFAULT NULL,\n `org_status_update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `log` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `contingent_bill` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `contingent_update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `pay_date_received` date DEFAULT NULL,\n `amount_recived` decimal(10,2) DEFAULT NULL,\n `amount_deduction` decimal(10,2) DEFAULT NULL,\n `amount_claim` decimal(10,2) DEFAULT NULL,\n `amount_tds` decimal(10,2) DEFAULT NULL,\n `amount_direct` decimal(10,2) DEFAULT NULL,\n `amount_update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `amount_payment_info` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `inv_opd_amt` decimal(10,2) DEFAULT '0.00',\n `inv_opd_charge_amt` decimal(10,2) DEFAULT '0.00',\n `inv_opd_med_amt` decimal(10,2) DEFAULT '0.00',\n `packing_id` int DEFAULT '0',\n `packing_short` int DEFAULT '0',\n `packing_update_by` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `p_id` (`p_id`),\n KEY `insurance_id` (`insurance_id`),\n KEY `p_phone_number` (`p_phone_number`),\n KEY `date_registration` (`date_registration`),\n KEY `case_id_code` (`case_id_code`),\n KEY `insurance_card_name` (`insurance_card_name`),\n KEY `insurance_no` (`insurance_no`),\n KEY `insurance_no_1` (`insurance_no_1`),\n KEY `insurance_no_insurance_no_1` (`insurance_no`,`insurance_no_1`),\n KEY `case_for_ipd` (`ipd_id`),\n KEY `case_type` (`case_type`)\n) ENGINE=InnoDB AUTO_INCREMENT=4356 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `ipd_pakage_name` varchar(150) DEFAULT NULL,\n `pakage_group_id` int DEFAULT NULL,\n `package_name_edit` int DEFAULT '0',\n `Pakage_description` text,\n `Pakage_Min_Amount` decimal(10,2) DEFAULT '0.00',\n `Pakage_Cat_1_amount` decimal(10,2) DEFAULT '0.00',\n `Pakage_Cat_2_amount` decimal(10,2) DEFAULT '0.00',\n `Pakage_Cat_3_amount` decimal(10,2) DEFAULT '0.00',\n `Pakage_Cat_4_amount` decimal(10,2) DEFAULT '0.00',\n `Pakage_Term_Condition` text,\n `update_by` varchar(200) DEFAULT NULL,\n `update_date` datetime DEFAULT NULL,\n `active` int DEFAULT '1',\n PRIMARY KEY (`id`),\n KEY `ipd_pakage_name` (`ipd_pakage_name`),\n KEY `pakage_group_id` (`pakage_group_id`)\n) 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` (\n `pak_id` int NOT NULL AUTO_INCREMENT,\n `pakage_group_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`pak_id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `hc_items_id` int DEFAULT NULL,\n `hc_insurance_id` int DEFAULT NULL,\n `i_amount` decimal(10,2) DEFAULT NULL,\n `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `isdelete` int DEFAULT '0',\n `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n PRIMARY KEY (`id`) USING BTREE,\n UNIQUE KEY `hc_items_id_hc_insurance_id_isdelete` (`hc_items_id`,`hc_insurance_id`) USING BTREE,\n KEY `delete` (`isdelete`) USING BTREE\n) 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` (\n `id_ins_update_id` int NOT NULL AUTO_INCREMENT,\n `id` int NOT NULL DEFAULT '0',\n `hc_items_id` int DEFAULT NULL,\n `hc_insurance_id` int DEFAULT NULL,\n `i_amount` decimal(10,2) DEFAULT NULL,\n `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `isdelete` int DEFAULT '0',\n `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `update_datetime` datetime DEFAULT NULL,\n `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `action` int DEFAULT NULL,\n `action_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `action_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n PRIMARY KEY (`id_ins_update_id`) USING BTREE,\n KEY `delete` (`isdelete`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=5 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `item_cat` int NOT NULL DEFAULT '0' COMMENT '0 opd,1 for IPD',\n `item_type` int NOT NULL DEFAULT '0',\n `item_id` int NOT NULL DEFAULT '0',\n `item_name` varchar(50) NOT NULL,\n `item_amount` decimal(10,2) NOT NULL,\n `cat_id` decimal(10,2) NOT NULL COMMENT '0 for Comman,1 to 4 cat wise',\n PRIMARY KEY (`id`)\n) 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_duplicate_log": { "create_sql": "CREATE TABLE IF NOT EXISTS `patient_duplicate_log` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `new_uhid` int NOT NULL,\n `name_of_person` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `new_patient_code` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `date_of_registration` datetime NOT NULL,\n `update_by` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `remark_duplicate` text COLLATE utf8mb4_general_ci,\n PRIMARY KEY (`id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `p_id` int DEFAULT '0',\n `investigation_id` int DEFAULT '0',\n `investigation_name` varchar(50) DEFAULT NULL,\n `date_investigation` date DEFAULT NULL,\n `result` int DEFAULT '0',\n `result_text` tinytext,\n `normal_range` varchar(50) DEFAULT '',\n `isbold` int DEFAULT '0',\n `out_range` int DEFAULT '0' COMMENT '0 for Normal , 1 For Out of Range',\n PRIMARY KEY (`id`),\n KEY `p_id` (`p_id`),\n KEY `investigation_id` (`investigation_id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `p_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'Patient Code',\n `old_uhid` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'If Any OLD HMS Patient Code',\n `udai` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'Aadhar Number',\n `p_fname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'Patient Full Name',\n `p_relative` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'Patient Relative Type like Son, Husband , Father',\n `p_rname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'Patient Relative Name',\n `title` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'Mr.' COMMENT 'Title like Mr. , Dr., Master etc',\n `p_lname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `mphone1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'Patient Phone Number',\n `mphone2` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'Patient Another Number',\n `gender` int DEFAULT '1' COMMENT 'Gender',\n `insurance_id` int DEFAULT '0' COMMENT 'Insurance Id like Direct Patient 0 ',\n `insurance_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'Insurance Card No.',\n `card_holder_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '' COMMENT 'Name on Card',\n `relation_patient_cardholder` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '',\n `issue_date` date DEFAULT NULL,\n `expiry_date` date DEFAULT NULL,\n `insurance_card_id` int DEFAULT '0',\n `dob` date DEFAULT NULL,\n `estimate_dob` int DEFAULT '1',\n `age` int DEFAULT NULL,\n `age_in` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `age_in_month` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `zip` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `email1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `email2` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `register_date` datetime DEFAULT NULL,\n `add1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `add2` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `city` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `district` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `state` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `country` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `profile_file_id` int DEFAULT '0',\n `profile_picture_update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `referby` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insert_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `last_update` datetime DEFAULT NULL,\n `last_visit` datetime DEFAULT NULL,\n `blood_group` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `no_of_visit` int DEFAULT '0',\n `log` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `is_smoking` int DEFAULT '0',\n `is_alcohol` int DEFAULT '0',\n `is_drug_abuse` int DEFAULT '0',\n `is_tobacoo` int DEFAULT '0',\n `is_hypertesion` int DEFAULT '0',\n `is_niddm` int DEFAULT '0',\n `is_hbsag` int DEFAULT '0',\n `is_hcv` int DEFAULT '0',\n `is_hiv_I_II` int DEFAULT '0',\n `Others` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `p_code` (`p_code`),\n KEY `p_fname_123` (`p_fname`,`p_lname`,`mphone1`,`mphone2`,`email1`,`email2`),\n KEY `udai` (`udai`),\n KEY `insert_date` (`insert_date`),\n KEY `old_uhid` (`old_uhid`),\n KEY `p_relative` (`p_relative`)\n) ENGINE=InnoDB AUTO_INCREMENT=328470 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" }, "p_lname": { "Field": "p_lname", "Type": "varchar(100)", "Collation": "utf8mb3_unicode_ci", "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" }, "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": "" } }, "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", "p_lname", "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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `p_id` int DEFAULT '0',\n `tag_id` int DEFAULT '0',\n `assign_by_id` int DEFAULT '0',\n `assign_by` varchar(100) DEFAULT NULL,\n `assign_datetime` timestamp NULL DEFAULT NULL,\n `isdelete` int DEFAULT '0' COMMENT '1 for delete',\n `delete_by` varchar(100) DEFAULT NULL,\n PRIMARY KEY (`id`) USING BTREE,\n KEY `cust_id_tag_id` (`p_id`,`tag_id`) USING BTREE\n) 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` (\n `id` bigint NOT NULL AUTO_INCREMENT,\n `payof_type` int DEFAULT NULL COMMENT '1 for OPD,2 for Invoice,3 For IPD,4 for Org.OPD',\n `payof_id` int DEFAULT NULL,\n `payof_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `confirm_invoice` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `credit_debit` int DEFAULT '0' COMMENT '0 for Credit, 1 for Debit',\n `amount` decimal(10,2) DEFAULT NULL,\n `amount_1` decimal(10,2) DEFAULT NULL,\n `remark` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insert_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `payment_date` datetime DEFAULT NULL,\n `update_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `update_by_id` int DEFAULT NULL,\n `payment_mode` int DEFAULT NULL,\n `pay_bank_id` int DEFAULT '0',\n `card_bank` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `card_remark` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `cust_card` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `card_tran_id` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `bankcard_machine` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insert_code` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `update_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `payof_type_payof_id_insert_time` (`payof_type`,`payof_id`,`insert_time`),\n KEY `ipd_id` (`payof_type`),\n KEY `payof_type_payof_id` (`payof_type`,`payof_id`,`payof_code`),\n KEY `insert_code` (`insert_code`),\n KEY `payment_date` (`payment_date`)\n) ENGINE=InnoDB AUTO_INCREMENT=108937 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` (\n `pay_log_id` int NOT NULL AUTO_INCREMENT,\n `pay_id` int NOT NULL DEFAULT '0',\n `update_by` varchar(50) NOT NULL DEFAULT '0',\n `insert_datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n `update_type` int NOT NULL DEFAULT '0' COMMENT '1 ToCash,2 ToBank',\n `update_remark` varchar(200) NOT NULL,\n PRIMARY KEY (`pay_log_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_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` (\n `id` bigint NOT NULL AUTO_INCREMENT,\n `Customerof_type` int DEFAULT NULL COMMENT '1 for Patient,2 for IPD Credit,3 for Custom',\n `Customerof_id` int DEFAULT NULL,\n `Customerof_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `Medical_invoice_id` int DEFAULT NULL,\n `Medical_invoice_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `group_id` int DEFAULT '0',\n `ipd_id` int DEFAULT '0',\n `med_type` int DEFAULT '0',\n `credit_debit` int DEFAULT '0' COMMENT '0 for Credit, 1 for Debit',\n `amount` decimal(10,2) DEFAULT '0.00',\n `amount_1` decimal(10,2) DEFAULT '0.00',\n `remark` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insert_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `payment_date` datetime DEFAULT NULL,\n `update_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `update_by_id` int DEFAULT NULL,\n `payment_mode` int DEFAULT NULL,\n `pay_bank_id` int DEFAULT '0',\n `card_bank` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `card_remark` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `cust_card` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `card_tran_id` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `bankcard_machine` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `ipd_id` (`Customerof_type`),\n KEY `update_by` (`update_by`),\n KEY `update_by_id` (`update_by_id`),\n KEY `payment_date` (`payment_date`)\n) ENGINE=InnoDB AUTO_INCREMENT=11 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `sid` int DEFAULT '0',\n `ischallan` int DEFAULT '0',\n `monthyear` varchar(50) DEFAULT '1920',\n `supp_name` varchar(50) DEFAULT '0',\n `date_of_invoice` date DEFAULT NULL,\n `Invoice_no` varchar(50) DEFAULT '0',\n `Taxable_Amt` decimal(10,2) DEFAULT '0.00',\n `CGST_Amt` decimal(10,2) DEFAULT '0.00',\n `SGST_Amt` decimal(10,2) DEFAULT '0.00',\n `T_Net_Amount` decimal(10,2) DEFAULT '0.00',\n `insert_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `inv_status` int DEFAULT '0' COMMENT '0 For Pending,1 For Final',\n `inv_status_update_by` int DEFAULT '0',\n PRIMARY KEY (`id`),\n UNIQUE KEY `sid_monthyear_Invoice_no` (`sid`,`monthyear`,`Invoice_no`),\n KEY `supplier_id` (`sid`),\n KEY `date_of_invoice` (`date_of_invoice`),\n KEY `idx_pi_date_supplier` (`date_of_invoice`,`sid`),\n KEY `idx_pi_supplier` (`sid`)\n) ENGINE=InnoDB AUTO_INCREMENT=232 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `purchase_id` int NOT NULL DEFAULT '0',\n `item_code` int DEFAULT NULL,\n `Item_name` varchar(50) DEFAULT NULL,\n `packing` int NOT NULL,\n `batch_no` varchar(50) DEFAULT NULL,\n `purchase_price` decimal(10,2) DEFAULT NULL,\n `expiry_date` date NOT NULL,\n `mrp` decimal(10,2) DEFAULT NULL,\n `qty` decimal(10,2) DEFAULT NULL,\n `qty_free` decimal(10,2) DEFAULT NULL,\n `tqty` decimal(10,2) DEFAULT NULL,\n `amount` decimal(10,2) DEFAULT NULL,\n `discount` decimal(10,2) DEFAULT NULL,\n `sch_disc_amt` decimal(10,2) DEFAULT '0.00',\n `sch_disc_per` decimal(10,2) DEFAULT '0.00',\n `taxable_amount` decimal(10,2) DEFAULT NULL,\n `CGST_per` decimal(10,2) DEFAULT NULL,\n `CGST_per_old` decimal(10,2) DEFAULT NULL,\n `CGST` decimal(10,2) DEFAULT NULL,\n `SGST_per` decimal(10,2) DEFAULT NULL,\n `SGST` decimal(10,2) DEFAULT NULL,\n `net_amount` decimal(10,2) DEFAULT NULL,\n `HSNCODE` varchar(50) DEFAULT NULL,\n `selling_price` decimal(10,2) DEFAULT NULL,\n `total_unit` int DEFAULT '0',\n `total_sale_unit` int DEFAULT '0',\n `total_return_unit` int DEFAULT '0',\n `total_lost_unit` int DEFAULT '0',\n `selling_unit_rate` decimal(10,2) DEFAULT '0.00',\n `purchase_unit_rate` decimal(10,2) DEFAULT NULL,\n `item_return` int DEFAULT '0',\n `remove_item` int DEFAULT '0',\n `stock_date` date DEFAULT NULL,\n `ss_flag_id` int DEFAULT NULL,\n `ban_flag_id` int DEFAULT NULL,\n `rack_no` varchar(50) DEFAULT NULL,\n `shelf_no` varchar(50) DEFAULT NULL,\n `cold_storage` varchar(50) DEFAULT NULL,\n `update_stock_qty` int DEFAULT NULL,\n `insert_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `insert_by` varchar(100) DEFAULT NULL,\n `old_purchase_id` int DEFAULT '0',\n PRIMARY KEY (`id`),\n KEY `item_code` (`item_code`),\n KEY `purchase_id` (`purchase_id`),\n KEY `item_return` (`item_return`),\n KEY `remove_item` (`remove_item`),\n KEY `batch_no` (`batch_no`),\n KEY `Item_name` (`Item_name`),\n KEY `idx_pii_item_code` (`item_code`),\n KEY `idx_pii_purchase_id` (`purchase_id`),\n KEY `idx_pii_stock_date` (`stock_date`),\n KEY `idx_pii_status_flags` (`remove_item`,`item_return`),\n KEY `idx_pii_expiry_date` (`expiry_date`),\n KEY `idx_pii_item_batch` (`item_code`,`batch_no`)\n) ENGINE=InnoDB AUTO_INCREMENT=1251 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `purchase_id` int NOT NULL,\n `purchase_item_id` int NOT NULL,\n `qty` int NOT NULL,\n `unit_qty` int NOT NULL,\n `insert_date` datetime NOT NULL,\n `refund_status` int NOT NULL DEFAULT '0',\n `reasons` int NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `sid` int NOT NULL DEFAULT '0',\n `p_r_invoice_no` varchar(50) NOT NULL DEFAULT '0',\n `date_of_invoice` date NOT NULL,\n `insert_datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n `status` int NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`),\n KEY `p_r_invoice_no` (`p_r_invoice_no`),\n KEY `date_of_invoice` (`date_of_invoice`)\n) ENGINE=InnoDB AUTO_INCREMENT=24 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `purchase_inv_id` int NOT NULL DEFAULT '0',\n `purchase_item_id` int NOT NULL DEFAULT '0',\n `batch_no_r` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `expiry_date_r` date DEFAULT NULL,\n `item_code` int DEFAULT NULL,\n `Item_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `qty` int DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `item_code` (`item_code`),\n KEY `Item_name` (`Item_name`),\n KEY `purchase_id` (`purchase_inv_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=50 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `Modality` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `itype` int DEFAULT NULL,\n PRIMARY KEY (`id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `template_name` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `keywords` varchar(1000) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `title` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `Modality` int DEFAULT NULL,\n `charge_id` int DEFAULT NULL,\n `Findings` longtext CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `Impression` longtext CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `impression_cat` int DEFAULT '0' COMMENT '0 Not Noteable,1 Noteable',\n PRIMARY KEY (`id`) USING BTREE,\n KEY `template_name` (`template_name`) USING BTREE,\n KEY `title` (`title`) USING BTREE,\n KEY `keywords` (`keywords`(768))\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `title` varchar(50) NOT NULL,\n `f_name` varchar(50) NOT NULL,\n `phone_number` varchar(100) NOT NULL,\n `refer_type` int NOT NULL DEFAULT '0' COMMENT '0 Person,1 Doctor,2 Staff',\n `date_of_add` datetime NOT NULL,\n `insert_by` varchar(50) NOT NULL DEFAULT '',\n `active` int DEFAULT '1',\n PRIMARY KEY (`id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `type_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,\n PRIMARY KEY (`id`)\n) 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` (\n `id` bigint NOT NULL AUTO_INCREMENT,\n `refund_type` int DEFAULT '1' COMMENT '1 OPD,2 Charge,3 IPD',\n `patient_id` bigint DEFAULT NULL,\n `patient_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `rec_person_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `rec_phone_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `refund_type_id` bigint DEFAULT '1',\n `refund_type_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `refund_type_reason` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `approved_by_id` int DEFAULT NULL,\n `approved_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `approved_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `refund_amount` decimal(10,2) DEFAULT NULL,\n `refund_date` datetime DEFAULT NULL,\n `refund_by_id` int DEFAULT NULL,\n `refund_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `refund_datetime` datetime DEFAULT NULL,\n `refund_process` int DEFAULT '0' COMMENT '0 Pending,1 Complete',\n `pay_id` int DEFAULT '0',\n PRIMARY KEY (`id`),\n KEY `refund_type_id` (`refund_type_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=4755 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `item_code` int NOT NULL DEFAULT '0',\n `batch_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `mrp` decimal(10,2) DEFAULT NULL,\n `packing` int DEFAULT NULL,\n `expiry_date` date DEFAULT NULL,\n `Pur_Qty` decimal(65,2) DEFAULT '0.00',\n `Sale_Qty` decimal(65,0) DEFAULT '0',\n `Cur_Qty` decimal(65,2) DEFAULT '0.00',\n `last_update` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n PRIMARY KEY (`id`) USING BTREE,\n KEY `item_code_batch_no_mrp_packing` (`item_code`,`batch_no`,`mrp`,`packing`),\n KEY `item_code_expiry_date_Cur_Qty` (`item_code`,`expiry_date`,`Cur_Qty`),\n KEY `item_code_Cur_Qty_last_update` (`item_code`,`Cur_Qty`,`last_update`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `class` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `key` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `value` text COLLATE utf8mb4_general_ci,\n `type` varchar(31) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'string',\n `context` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `created_at` datetime NOT NULL,\n `updated_at` datetime NOT NULL,\n PRIMARY KEY (`id`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `tag_name` varchar(100) DEFAULT NULL,\n `tag_type_id` int DEFAULT '0' COMMENT '0 Predefine, 1 Custom',\n `tag_desc` varchar(200) DEFAULT NULL,\n `insert_dateimte` timestamp NULL DEFAULT NULL,\n `insert_by` varchar(100) DEFAULT NULL,\n PRIMARY KEY (`id`) USING BTREE,\n KEY `tag_name` (`tag_name`) USING BTREE,\n KEY `tag_type_id` (`tag_type_id`) USING BTREE\n) 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` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `username` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `status` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `status_message` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `active` tinyint(1) NOT NULL DEFAULT '0',\n `last_active` datetime DEFAULT NULL,\n `created_at` datetime DEFAULT NULL,\n `updated_at` datetime DEFAULT NULL,\n `deleted_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `username` (`username`)\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `ward_id` int NOT NULL,\n `bed_number` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,\n `bed_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'General',\n `bed_status` enum('available','occupied','maintenance','reserved') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'available',\n `ipd_id` int DEFAULT NULL,\n `assigned_date` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `unique_ward_bed` (`ward_id`,`bed_number`),\n KEY `idx_ward_id` (`ward_id`),\n KEY `idx_bed_status` (`bed_status`),\n KEY `idx_ipd_id` (`ipd_id`),\n CONSTRAINT `ward_beds_ibfk_1` FOREIGN KEY (`ward_id`) REFERENCES `ward_master` (`id`) ON DELETE CASCADE\n) 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` (\n `id` int NOT NULL AUTO_INCREMENT,\n `ward_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,\n `ward_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,\n `department_id` int NOT NULL,\n `building_id` int DEFAULT NULL,\n `floor_number` int DEFAULT NULL,\n `ward_type` enum('General','Private','Semi-Private','Deluxe','ICU','NICU','PICU','HDU','ICCU','CCU','Emergency') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'General',\n `gender_type` enum('male','female','unisex') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'unisex',\n `ward_category` enum('adult','pediatric','maternity','isolation','surgical','medical') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'adult',\n `total_capacity` int NOT NULL DEFAULT '0',\n `nurse_station_location` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,\n `has_oxygen` tinyint(1) DEFAULT '0',\n `has_suction` tinyint(1) DEFAULT '0',\n `has_monitor` tinyint(1) DEFAULT '0',\n `status` enum('active','inactive','under_maintenance') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'active',\n `remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,\n `created_by` int DEFAULT NULL,\n `created_at` datetime DEFAULT CURRENT_TIMESTAMP,\n `updated_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,\n PRIMARY KEY (`id`),\n UNIQUE KEY `ward_code` (`ward_code`),\n KEY `idx_dept` (`department_id`),\n KEY `idx_building` (`building_id`),\n KEY `idx_ward_type` (`ward_type`),\n KEY `idx_gender` (`gender_type`),\n KEY `idx_status` (`status`)\n) 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" ] } } } } }