/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES tis620 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
DROP TABLE IF EXISTS `person_duty`;
CREATE TABLE `person_duty` (
  `person_duty_id` int(11) NOT NULL,
  `person_duty_name` varchar(150) NOT NULL,
  `hcis_code` varchar(2) DEFAULT NULL,
  `hos_guid` varchar(38) DEFAULT NULL,
  PRIMARY KEY (`person_duty_id`),
  UNIQUE KEY `ix_person_duty_name` (`person_duty_name`),
  KEY `ix_hcis_code` (`hcis_code`),
  KEY `ix_hos_guid` (`hos_guid`)
) ENGINE=InnoDB DEFAULT CHARSET=tis620;

LOCK TABLES `person_duty` WRITE;
/*!40000 ALTER TABLE `person_duty` DISABLE KEYS */;
INSERT INTO `person_duty` VALUES
  (1, '1- กำนัน,ผู้ใหญ่บ้าน,ผู้ช่วยผู้ใหญ่บ้าน', '1', ''),
  (3, '3 - แพทย์ประจำตำบล', '3', ''),
  (6, '2- อสม.', '2', ''),
  (12, '4- สมาชิก อบต.', '4', ''),
  (23, '5- อื่นๆ', '5', '');
/*!40000 ALTER TABLE `person_duty` ENABLE KEYS */;
UNLOCK TABLES;

/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
