/*!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 `marrystatus`;
CREATE TABLE `marrystatus` (
  `code` char(1) NOT NULL DEFAULT '',
  `name` varchar(20) DEFAULT NULL,
  `hos_guid` varchar(38) DEFAULT NULL,
  `code506` char(1) DEFAULT NULL,
  `nhso_marriage_code` varchar(3) DEFAULT NULL,
  PRIMARY KEY (`code`),
  KEY `ix_hos_guid` (`hos_guid`)
) ENGINE=InnoDB DEFAULT CHARSET=tis620;

LOCK TABLES `marrystatus` WRITE;
/*!40000 ALTER TABLE `marrystatus` DISABLE KEYS */;
INSERT INTO `marrystatus` VALUES
  ('1', 'โสด', '{90AC6768-AEB2-11E1-9962-BEA60421999E}', NULL, '1'),
  ('2', 'คู่', '{90AC6A07-AEB2-11E1-9962-BEA60421999E}', NULL, '2'),
  ('3', 'หม้าย', '{90AC6B62-AEB2-11E1-9962-BEA60421999E}', NULL, '3'),
  ('4', 'หย่า', '{90AC6CA6-AEB2-11E1-9962-BEA60421999E}', NULL, '5'),
  ('5', 'ร้าง(แยก)', '{90AC6DD4-AEB2-11E1-9962-BEA60421999E}', NULL, '5'),
  ('6', 'สมณะ', '{90AC6F0B-AEB2-11E1-9962-BEA60421999E}', NULL, '6'),
  ('9', 'ไม่ทราบ', NULL, NULL, '9');
/*!40000 ALTER TABLE `marrystatus` 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 */;
