ALTER TABLE village_temple_type ADD `village_temple_type_name` VARCHAR(200) NOT NULL
ALTER TABLE village_temple ADD `village_temple_type_id` INT NULL
ALTER TABLE village_survey_item ADD `unit_name` VARCHAR(50) NULL
ALTER TABLE village_survey_item ADD `item_group` INT NULL
ALTER TABLE village_survey_item ADD `count_sql` VARCHAR(250) NULL
ALTER TABLE village_survey_item ADD `village_survey_item_name` VARCHAR(200) NOT NULL
ALTER TABLE village_survey_detail ADD `survey_value` INT NOT NULL
ALTER TABLE village_survey_detail ADD `village_survey_item_id` INT NOT NULL
ALTER TABLE village_survey_detail ADD `village_id` INT NOT NULL
ALTER TABLE village_student ADD `village_school_class_id` INT NOT NULL
ALTER TABLE village_student ADD `person_id` INT NOT NULL
ALTER TABLE village_student ADD `village_school_id` INT NOT NULL
ALTER TABLE village_school_class ADD `village_school_class_name` VARCHAR(150) NOT NULL
ALTER TABLE village_priest ADD `person_id` INT NOT NULL
ALTER TABLE village_priest ADD `village_temple_id` INT NOT NULL
ALTER TABLE village ADD `village_code` VARCHAR(10) NULL
ALTER TABLE village ADD `hos_guid` VARCHAR(38) NULL
ALTER TABLE surveil_member_log ADD `data_sync` CHAR(1) NULL
ALTER TABLE surveil_member_log ADD `op_type` VARCHAR(10) NULL
ALTER TABLE surveil_member_log ADD `sv_guid` VARCHAR(38) NOT NULL
ALTER TABLE surveil_member ADD `data_sync` CHAR(1) NULL
ALTER TABLE surveil_member ADD `sv_guid` VARCHAR(38) NULL
ALTER TABLE surveil_member ADD `hospcode` CHAR(5) NULL
ALTER TABLE stock_return_list ADD `stock_return_unit_qty` INT NULL
ALTER TABLE stock_return_list ADD `stock_draw_list_id` INT NOT NULL
ALTER TABLE stock_return_list ADD `stock_return_qty` INT NOT NULL
ALTER TABLE stock_return_list ADD `item_list_id` INT NOT NULL
ALTER TABLE stock_return_list ADD `stock_return_id` INT NOT NULL
ALTER TABLE stock_return ADD `remark` VARCHAR(250) NULL
ALTER TABLE stock_return ADD `department_id` INT NOT NULL
ALTER TABLE stock_return ADD `stock_return_date` DATE NULL
ALTER TABLE stock_return ADD `stock_draw_id` INT NOT NULL
ALTER TABLE stock_item ADD `unit_cost` DOUBLE NULL
ALTER TABLE stock_adjust_detail ADD `original_qty` INT NULL
ALTER TABLE rx_summary ADD `pttype` CHAR(2) NULL
ALTER TABLE rx_summary ADD `income` CHAR(2) NULL
ALTER TABLE rx_summary ADD `sum_price` DOUBLE NULL
ALTER TABLE rx_summary ADD `qty` INT NULL
ALTER TABLE rx_summary ADD `department` CHAR(3) NOT NULL
ALTER TABLE rx_summary ADD `rx_date` DATE NOT NULL
ALTER TABLE rx_summary ADD `icode` VARCHAR(7) NOT NULL
ALTER TABLE risk_report MODIFY COLUMN risk_level VARCHAR(200)
ALTER TABLE rcpt_bill_type_head ADD `bookno` INT NULL
ALTER TABLE rcpt_bill_type_head ADD `department` CHAR(3) NULL
ALTER TABLE rcpt_bill_type_head ADD `rcpt_bill_type_active` CHAR(1) NULL
ALTER TABLE rcpt_bill_type_head ADD `rcpt_bill_type_name` VARCHAR(250) NULL
ALTER TABLE rcpt_bill_type_detail ADD `pttype` CHAR(2) NOT NULL
ALTER TABLE rcpt_bill_type_detail ADD `rcpt_bill_type_id` INT NOT NULL
ALTER TABLE person ADD `drug_allergy` VARCHAR(150) NULL
ALTER TABLE person ADD `family_position_id` INT NULL
ALTER TABLE person ADD `home_position_id` INT NULL
ALTER TABLE person ADD `income_per_year` INT NULL
ALTER TABLE person ADD `hos_guid` VARCHAR(38) NULL
ALTER TABLE ovstoprt ADD `ovst_diag_id` INT NULL
ALTER TABLE ovstoprt ADD `ovst_oper_type` INT NOT NULL
ALTER TABLE ovstoprt ADD `icd9cm` VARCHAR(7) NOT NULL
ALTER TABLE ovstoprt ADD `vn` VARCHAR(13) NOT NULL
ALTER TABLE ovstdiag ADD `ovst_oper_type` INT NULL
ALTER TABLE ovst_oper_type ADD `name` VARCHAR(100) NOT NULL
ALTER TABLE opitemrece_summary ADD `hos_guid` VARCHAR(38) NOT NULL
ALTER TABLE opitemrece_summary ADD `department` CHAR(3) NULL
ALTER TABLE opitemrece_summary ADD `sum_price` DOUBLE NULL
ALTER TABLE opitemrece_summary ADD `qty` INT NULL
ALTER TABLE opitemrece_summary ADD `income` CHAR(2) NULL
ALTER TABLE opitemrece_summary ADD `icode` VARCHAR(7) NOT NULL
ALTER TABLE opitemrece_summary ADD `rxdate` DATE NULL
ALTER TABLE opduser ADD `max_station` INT NULL
ALTER TABLE opd_hn_change ADD `opd_hn_change_id` INT NULL
ALTER TABLE iptoprt ADD `ovst_oper_type` INT NULL
ALTER TABLE iptdiag ADD `hos_guid` VARCHAR(38) NULL
ALTER TABLE ipt_income_auto_check ADD `last_check_date` DATE NULL
ALTER TABLE ipt_income_auto_check ADD `icode` VARCHAR(7) NOT NULL
ALTER TABLE ipt_income_auto ADD `last_charge_refdate` DATE NULL
ALTER TABLE ipt_income_auto ADD `last_charge_datetime` datetime NULL
ALTER TABLE ipd_data_synchronize ADD `sync_mode` VARCHAR(10) NULL
ALTER TABLE ipd_data_synchronize ADD `sync_complete` CHAR(1) NULL
ALTER TABLE ipd_data_synchronize ADD `last_sync` datetime NULL
ALTER TABLE ipd_data_synchronize ADD `last_update` datetime NULL
ALTER TABLE ipd_data_synchronize ADD `cid` VARCHAR(17) NULL
ALTER TABLE ipd_data_synchronize ADD `an_guid` VARCHAR(38) NULL
ALTER TABLE ipd_data_synchronize ADD `hn_guid` VARCHAR(38) NULL
ALTER TABLE house_survey_yesno ADD `name` VARCHAR(100) NULL
ALTER TABLE house_survey_water ADD `name` VARCHAR(100) NOT NULL
ALTER TABLE house_survey_toilet ADD `name` VARCHAR(150) NULL
ALTER TABLE house_survey_summary ADD `house_item_value_text` VARCHAR(200) NULL
ALTER TABLE house_survey_summary ADD `house_item_value` VARCHAR(25) NULL
ALTER TABLE house_survey_summary ADD `house_survey_item_id` INT NOT NULL
ALTER TABLE house_survey_summary ADD `house_id` INT NOT NULL
ALTER TABLE house_survey_item ADD `lookup_key_field` VARCHAR(30) NULL
ALTER TABLE house_survey_item ADD `survey_group` VARCHAR(50) NULL
ALTER TABLE house_survey_item ADD `lookup_field` VARCHAR(30) NULL
ALTER TABLE house_survey_item ADD `lookup_table` VARCHAR(30) NULL
ALTER TABLE house_survey_item ADD `item_data_type` VARCHAR(15) NOT NULL
ALTER TABLE house_survey_item ADD `house_survey_item_name` VARCHAR(250) NOT NULL
ALTER TABLE house_survey_health ADD `name` VARCHAR(150) NULL
ALTER TABLE house_survey_garbage ADD `name` VARCHAR(150) NULL
ALTER TABLE house_survey_detail ADD `hos_guid` VARCHAR(38) NULL
ALTER TABLE house_survey_detail ADD `house_item_value_text` VARCHAR(200) NULL
ALTER TABLE house_survey_detail ADD `house_item_value` VARCHAR(25) NULL
ALTER TABLE house_survey_detail ADD `house_survey_item_id` INT NULL
ALTER TABLE house_survey_detail ADD `house_survey_id` INT NOT NULL
ALTER TABLE house_survey ADD `survey_detail` text NULL
ALTER TABLE house_survey ADD `survey_date` DATE NULL
ALTER TABLE house_survey ADD `house_id` INT NOT NULL
ALTER TABLE house ADD `location_area_id` INT NULL
ALTER TABLE house ADD `hos_guid` VARCHAR(38) NULL
ALTER TABLE doctor_cert ADD `last_print_datetime` datetime NULL
ALTER TABLE data_synchronize ADD `department` CHAR(3) NULL
CREATE TABLE village_temple_type ( `village_temple_type_id` INT NOT NULL )
CREATE TABLE village_survey_item ( `village_survey_item_id` INT NOT NULL )
CREATE TABLE village_survey_detail ( `village_survey_detail_id` INT NOT NULL )
CREATE TABLE village_student ( `village_student_id` INT NOT NULL )
CREATE TABLE village_school_class ( `village_school_clas_id` INT NOT NULL )
CREATE TABLE village_priest ( `village_priest_id` INT NOT NULL )
CREATE TABLE surveil_member_log ( `sv_member_log_id` INT NOT NULL )
CREATE TABLE stock_return_list ( `stock_return_list_id` INT NOT NULL )
CREATE TABLE stock_return ( `stock_return_id` INT NOT NULL )
CREATE TABLE rx_summary ( `rx_summary_id` INT NOT NULL )
CREATE TABLE rcpt_bill_type_head ( `rcpt_bill_type_id` INT NOT NULL )
CREATE TABLE rcpt_bill_type_detail ( `rcpt_bill_type_detail_id` INT NOT NULL )
CREATE TABLE ovstoprt ( `ovst_oprt_id` INT NOT NULL )
CREATE TABLE ovst_oper_type ( `ovst_oper_type` INT NOT NULL )
CREATE TABLE opitemrece_summary ( `vn` VARCHAR(13) NOT NULL )
CREATE TABLE ipt_income_auto_check ( `an` VARCHAR(9) NOT NULL )
CREATE TABLE ipd_data_synchronize ( `an` VARCHAR(9) NOT NULL )
CREATE TABLE house_survey_yesno ( `house_survey_yesno_id` INT NOT NULL )
CREATE TABLE house_survey_water ( `house_survey_water_id` INT NOT NULL )
CREATE TABLE house_survey_toilet ( `house_survey_toilet_id` INT NOT NULL )
CREATE TABLE house_survey_summary ( `house_survey_summary_id` INT NOT NULL )
CREATE TABLE house_survey_item ( `house_survey_item_id` INT NOT NULL )
CREATE TABLE house_survey_health ( `house_survey_health_id` INT NOT NULL )
CREATE TABLE house_survey_garbage ( `house_survey_garbage_id` INT NOT NULL )
CREATE TABLE house_survey_detail ( `house_survey_detail_id` INT NOT NULL )
CREATE TABLE house_survey ( `house_survey_id` INT NOT NULL )