CREATE TABLE `xray_head` (
`vn` varchar(13) NOT NULL DEFAULT '',
`hn` varchar(9) DEFAULT NULL,
`xray_list` text,
`confirm_all` char(1) DEFAULT NULL,
`order_date_time` datetime DEFAULT NULL,
`department` char(3) DEFAULT NULL,
`pt_xn` int(11) DEFAULT NULL,
`age_y` int(11) DEFAULT NULL,
`pttype` char(2) DEFAULT NULL,
`doctor_list` text,
`receive_no` int(11) DEFAULT NULL,
`print_status` char(1) DEFAULT NULL,
`confirm_read_film` char(1) DEFAULT NULL,
`department_code` varchar(4) DEFAULT NULL,
`department_name` varchar(100) DEFAULT NULL,
`xray_priority_id` int(11) DEFAULT NULL,
`xray_price` double(15,3) DEFAULT NULL,
`total_price` double(15,3) DEFAULT NULL,
`xray_order_number` int(11) DEFAULT NULL,
`doctor_code` varchar(4) DEFAULT NULL,
`xray_head_remark` varchar(250) DEFAULT NULL,
`order_date` date DEFAULT NULL,
`report_date` date DEFAULT NULL,
`reporter_name` varchar(100) DEFAULT NULL,
`report_time` time DEFAULT NULL,
`confirm_report` char(1) DEFAULT NULL,
`order_time` time DEFAULT NULL,
`begin_date` date DEFAULT NULL,
`begin_time` time DEFAULT NULL,
`ward` char(2) DEFAULT NULL,
`result_note` text,
`part_name` varchar(150) DEFAULT NULL,
PRIMARY KEY (`vn`),
UNIQUE KEY `ix_xray_order_number_unique` (`xray_order_number`),
KEY `hn` (`hn`),
KEY `vn_unique_unique_unique_unique_unique` (`vn`),
KEY `ix_order_date_time` (`order_date_time`),
KEY `ix_confirm_report` (`confirm_report`),
KEY `ix_order_date` (`order_date`)
) ENGINE=InnoDB DEFAULT CHARSET=tis620