-- Dumping data for table `electro_mechanical_detail`
--


--
-- Table structure for table `electro_mechanical_import`
--

CREATE TABLE `electro_mechanical_import` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `success` int NOT NULL,
  `fail` int NOT NULL,
  `title` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `file_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `electro_mechanical_import`
--


--
-- Table structure for table `electro_mechanical_patrol`
--

CREATE TABLE `electro_mechanical_patrol` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `handler_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '安排者編號_群光',
  `electro_mechanical_checklist_id` int NOT NULL,
  `frequency` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `number` smallint NOT NULL,
  `cycle_way` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `day` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `end_way` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `repeat_number` int NOT NULL,
  `time` time NOT NULL,
  `summary` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `note` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '安排原因_群光',
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `push_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `electro_mechanical_patrol`
--


--
-- Table structure for table `email_receivers`
--

CREATE TABLE `email_receivers` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `email_id` int NOT NULL,
  `address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `email_receivers`
--


--
-- Table structure for table `emails`
--

CREATE TABLE `emails` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `function` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `password` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `emails`
--


--
-- Table structure for table `energies`
--

CREATE TABLE `energies` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `waterSwitch` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '水開關',
  `inputBudgetWater` int NOT NULL COMMENT '預算單位萬元',
  `electricitySwitch` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '電開關',
  `inputBudgetElectricity` int NOT NULL COMMENT '預算單位萬元',
  `gasSwitch` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '氣開關',
  `inputBudgetGas` int NOT NULL COMMENT '預算單位萬元',
  `hotSwitch` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '熱開關',
  `inputBudgetHot` int NOT NULL COMMENT '預算單位萬元',
  `oilSwitch` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '油開關',
  `inputBudgetOil` int NOT NULL COMMENT '預算單位萬元',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `energies`
--

INSERT INTO `energies` VALUES (1,'open',10,'',0,'',0,'',0,'',0,'0000-00-00 00:00:00','0000-00-00 00:00:00');

--
-- Table structure for table `energy_categories`
--

CREATE TABLE `energy_categories` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '分類名稱',
  `firm` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '廠商代號',
  `status` int NOT NULL COMMENT '狀態',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `energy_categories`
--


--
-- Table structure for table `energy_details`
--

CREATE TABLE `energy_details` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `tag` varchar(50) COLLATE utf8_unicode_ci NOT NULL COMMENT '設備名稱',
  `date` datetime NOT NULL COMMENT '年月',
  `value` double(8,2) NOT NULL COMMENT '數值',
  `type` int NOT NULL COMMENT '時段類別 0:離峰 1:半尖峰 2:尖峰',
  `amount` double(8,2) NOT NULL DEFAULT '0.00' COMMENT '每一單位的金額',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `energy_details`
--


--
-- Table structure for table `energy_imports`
--

CREATE TABLE `energy_imports` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `success` int NOT NULL COMMENT '成功',
  `fail` int NOT NULL COMMENT '失敗',
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '批次名稱',
  `file_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '檔案名稱',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `energy_imports`
--


--
-- Table structure for table `energy_locations`
--

CREATE TABLE `energy_locations` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '位置名稱',
  `building` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '棟別',
  `floor` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '樓別',
  `location` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '地上地下',
  `status` int NOT NULL COMMENT '狀態',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `energy_locations`
--


--
-- Table structure for table `energy_logs`
--

CREATE TABLE `energy_logs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `tag` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '設備Tag',
  `trigger_time` datetime NOT NULL COMMENT '發生時間',
  `data_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '設備類別',
  `check` int NOT NULL COMMENT '自檢結果',
  `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '數值',
  `value_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '數值類型',
  `memo` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '備註',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `energy_logs`
--


--
-- Table structure for table `energy_records`
--

CREATE TABLE `energy_records` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `tag` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '名稱',
  `value` int NOT NULL COMMENT '累計值',
  `trigger_time` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '時間',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `energy_records`
--


--
-- Table structure for table `energy_sensors`
--

CREATE TABLE `energy_sensors` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '設備名稱',
  `tag` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Tag',
  `door_id` int NOT NULL COMMENT '門牌ID',
  `l_id` int NOT NULL COMMENT '位置ID',
  `c_id` int NOT NULL COMMENT '分類ID',
  `location` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '室內/外',
  `status` int NOT NULL COMMENT '狀態',
  `issave` int NOT NULL DEFAULT '0' COMMENT '是否記錄電錶度數變化 0:不記錄 1:記錄',
  `xls_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '匯入的EXCEL檔名',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `energy_sensors`
--


--
-- Table structure for table `energy_settings`
--

CREATE TABLE `energy_settings` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `type_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '對應名稱',
  `value_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '資料類型',
  `unit` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '資料單位',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `energy_settings`
--


--
-- Table structure for table `error_energies`
--

CREATE TABLE `error_energies` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `device_code` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `room_no` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `date` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `error_energies`
--


--
-- Table structure for table `expenses`
--

CREATE TABLE `expenses` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `acct_id` int NOT NULL COMMENT '科目代號',
  `ym` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '年月',
  `exp_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '支出類別',
  `payment` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '是否繳費',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `amount` int NOT NULL COMMENT '金額',
  `firm_id` int NOT NULL COMMENT '廠商id',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `expenses`
--


--
-- Table structure for table `factories`
--

CREATE TABLE `factories` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `cover_img` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `store_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sale` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `location` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bus_area` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `time_start` datetime DEFAULT NULL,
  `time_end` datetime DEFAULT NULL,
  `web_map` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tel` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `info` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `opening` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `web` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `goods` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tag` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `map` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `file` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `safe_note` text COLLATE utf8_unicode_ci,
  `content` text COLLATE utf8_unicode_ci,
  `image1` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `image2` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `image3` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `image4` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `image5` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `factories`
--


--
-- Table structure for table `fault_dispatches`
--

CREATE TABLE `fault_dispatches` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `fid` int NOT NULL,
  `project_list` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `time_dispatch` datetime NOT NULL,
  `info` text COLLATE utf8_unicode_ci NOT NULL,
  `note` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '派工原因_群光',
  `finish_time` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '預計處理時間_群光',
  `status` tinyint NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `fault_dispatches`
--


--
-- Table structure for table `fault_handle_outsides`
--

CREATE TABLE `fault_handle_outsides` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `report_id` int NOT NULL,
  `user_id` int NOT NULL,
  `task_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '派工單ID_群光',
  `content` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status_change` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `costs` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image1` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image2` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image3` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image4` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image5` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `sign_image` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `fault_handle_outsides`
--


--
-- Table structure for table `fault_handles`
--

CREATE TABLE `fault_handles` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `report_id` int NOT NULL,
  `user_id` int NOT NULL,
  `task_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '派工單ID_群光',
  `content` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status_change` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `costs` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `image1` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image2` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image3` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image4` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image5` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `sign_image` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `fault_handles`
--


--
-- Table structure for table `fault_report_lists`
--

CREATE TABLE `fault_report_lists` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `fault_report_id` int NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `rfid` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `fault_report_lists`
--


--
-- Table structure for table `fault_report_outlists`
--

CREATE TABLE `fault_report_outlists` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `fault_report_id` int NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `get_in_item` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `get_out_item` text COLLATE utf8_unicode_ci NOT NULL,
  `info` text COLLATE utf8_unicode_ci NOT NULL,
  `date` datetime NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `fault_report_outlists`
--


--
-- Table structure for table `fault_report_outsides`
--

CREATE TABLE `fault_report_outsides` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int DEFAULT NULL,
  `type_floor` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type_location` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type_class` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type_situation` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `target` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `info` text COLLATE utf8_unicode_ci,
  `sf_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'BA連動修繕單之id(sensor_fault)',
  `tel` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `contact_person` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `wish` text COLLATE utf8_unicode_ci,
  `time_report` datetime DEFAULT NULL,
  `status` int NOT NULL,
  `task_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '派工單ID_群光',
  `image1` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `image2` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `image3` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `image4` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `image5` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `content` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `report_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `company` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `work_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `work_place` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `contact` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `contact_phone` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `work_person` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `is_business` tinyint(1) NOT NULL COMMENT '住或商 0為住 1為商',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `fault_report_outsides`
--


--
-- Table structure for table `fault_reports`
--

CREATE TABLE `fault_reports` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int DEFAULT NULL,
  `type_floor` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type_location` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type_class` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type_situation` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `target` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `info` text COLLATE utf8_unicode_ci,
  `tel` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `contact_person` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `wish` text COLLATE utf8_unicode_ci,
  `time_report` datetime DEFAULT NULL,
  `status` int NOT NULL,
  `task_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '派工單ID_群光',
  `image1` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `image2` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `image3` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `image4` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `image5` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `content` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `report_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `company` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `work_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `work_place` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `contact` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `contact_phone` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `work_person` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `is_business` tinyint(1) NOT NULL COMMENT '住或商 0為住 1為商',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `fault_reports`
--


--
-- Table structure for table `festivals`
--

CREATE TABLE `festivals` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `cover_img` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `introduce` text COLLATE utf8_unicode_ci,
  `info` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `map` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `file` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `safe_note` text COLLATE utf8_unicode_ci,
  `content` text COLLATE utf8_unicode_ci,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `image1` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image2` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image3` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image4` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image5` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `festivals`
--


--
-- Table structure for table `files`
--

CREATE TABLE `files` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `filename` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `url` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `mime` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `original_filename` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `download` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `files`
--


--
-- Table structure for table `fire_control_cctvs`
--

CREATE TABLE `fire_control_cctvs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `sid` int NOT NULL COMMENT 'BA設備ID',
  `cid` int NOT NULL COMMENT 'CCTV設備ID',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `fire_control_cctvs`
--


--
-- Table structure for table `fire_control_imports`
--

CREATE TABLE `fire_control_imports` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `success` int NOT NULL COMMENT '成功筆數',
  `fail` int NOT NULL COMMENT '失敗筆數',
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '註記',
  `file_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '檔案名稱',
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '類型',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `fire_control_imports`
--


--
-- Table structure for table `fire_control_phones`
--

CREATE TABLE `fire_control_phones` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `sid` int NOT NULL COMMENT 'BA設備ID',
  `phone_list_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '手機號碼清單ID',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `fire_control_phones`
--


--
-- Table structure for table `fire_control_subtitles`
--

CREATE TABLE `fire_control_subtitles` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `sid` int NOT NULL COMMENT 'BA設備ID',
  `stid` int NOT NULL COMMENT '字幕機設備ID',
  `message` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '訊息內容',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `fire_control_subtitles`
--


--
-- Table structure for table `fire_control_voices`
--

CREATE TABLE `fire_control_voices` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `sid` int NOT NULL COMMENT 'BA設備ID',
  `vid` int NOT NULL COMMENT '語音代碼ID',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `fire_control_voices`
--


--
-- Table structure for table `firms`
--

CREATE TABLE `firms` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `no` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `image` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `address` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `tel_no` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `fax` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `contacts` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `country` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `cell_phone` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `web_site` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `ein` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `business_hours` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `email` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `business_item` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `remark` text COLLATE utf8_unicode_ci NOT NULL,
  `annex` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `location` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `download` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `safety_precautions` text COLLATE utf8_unicode_ci NOT NULL,
  `details` text COLLATE utf8_unicode_ci NOT NULL,
  `status` int NOT NULL COMMENT '狀態',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `firms_no_index` (`no`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `firms`
--


--
-- Table structure for table `forum_classes`
--

CREATE TABLE `forum_classes` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `forum_classes`
--

INSERT INTO `forum_classes` VALUES (1,'社區討論','2021-08-11 11:25:46','2021-08-11 11:25:46'),(2,'玩樂話題','2021-08-11 11:25:46','2021-08-11 11:25:46'),(3,'社區雜事','2021-08-11 11:25:46','2021-08-11 11:25:46'),(4,'買賣交流','2021-08-11 11:25:46','2021-08-11 11:25:46');

--
-- Table structure for table `forum_contents`
--

CREATE TABLE `forum_contents` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL COMMENT '回文者',
  `respondText` text COLLATE utf8_unicode_ci NOT NULL COMMENT '回文內容',
  `title_id` int NOT NULL COMMENT '回覆文章編號',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `forum_contents`
--


--
-- Table structure for table `forum_lists`
--

CREATE TABLE `forum_lists` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT '文章編號',
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '文章主題',
  `viewNumber` int NOT NULL COMMENT '瀏覽人數',
  `isTopping` tinyint(1) NOT NULL COMMENT '是否置頂',
  `isOpenning` tinyint(1) NOT NULL COMMENT '是否開放留言',
  `titleStatue` tinyint NOT NULL COMMENT '文章狀態 EX:開放、隱藏、',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `forum_lists`
--


--
-- Table structure for table `forums`
--

CREATE TABLE `forums` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `forum_topic` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `parent_id` int NOT NULL,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `content` text COLLATE utf8_unicode_ci NOT NULL,
  `readed` text COLLATE utf8_unicode_ci,
  `count_read` int DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `forums`
--


--
-- Table structure for table `general_category`
--

CREATE TABLE `general_category` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `function` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `category` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `budget_year` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '預算年度',
  `budget_amount` int NOT NULL COMMENT '預算金額',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `general_category`
--


--
-- Table structure for table `guest_pawns`
--

CREATE TABLE `guest_pawns` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `info` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `guest_pawns`
--

INSERT INTO `guest_pawns` VALUES (1,'證件類','身分證','身分證件','2021-08-11 11:25:44','2021-08-11 11:25:44'),(2,'證件類','健保卡','國民用健保卡','2021-08-11 11:25:44','2021-08-11 11:25:44'),(3,'證件類','駕照','開車就要帶駕照','2021-08-11 11:25:44','2021-08-11 11:25:44');

--
-- Table structure for table `guests`
--

CREATE TABLE `guests` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `host` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `host_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guest` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guest_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guest_in_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guest_phone` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guest_in_sign` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guest_in_image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `guest_pawn` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guest_out_sign` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guest_out_image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `guest_count` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guest_rfid` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guest_in_time` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guest_out_time` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `cost_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '0 臨停收費、1 違停罰款',
  `cost` double(8,2) NOT NULL COMMENT '臨停收費、違停罰款之金額',
  `guest_out_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `handler` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` int NOT NULL,
  `invalid_time` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `location` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guest_relationship` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guest_cause` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guest_photo` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `door` text COLLATE utf8_unicode_ci NOT NULL,
  `floor_limit` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `guests`
--


--
-- Table structure for table `health_classes`
--

CREATE TABLE `health_classes` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '名稱',
  `company` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '廠商',
  `status` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '資料狀態',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `health_classes`
--


--
-- Table structure for table `health_devices`
--

CREATE TABLE `health_devices` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '設備名稱',
  `device_number` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '設備編號',
  `class_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '類別ID',
  `location_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '位置ID',
  `status` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '狀態',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `health_devices`
--


--
-- Table structure for table `health_locations`
--

CREATE TABLE `health_locations` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '名稱',
  `building` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '棟別',
  `floor` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '樓層',
  `location` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '位置',
  `status` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '資料狀態',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `health_locations`
--


--
-- Table structure for table `health_logs`
--

CREATE TABLE `health_logs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `deviceNo` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `patientNo` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `patientName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `patientGender` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `patientBirthday` date NOT NULL,
  `chartNo` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `rfidNo` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `measureDateTime` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `BT` double(8,2) NOT NULL,
  `BH` double(8,2) NOT NULL,
  `BW` double(8,2) NOT NULL,
  `BMI` double(8,2) NOT NULL,
  `SP` int NOT NULL,
  `DP` int NOT NULL,
  `Pulse` int NOT NULL,
  `SpO2` int NOT NULL,
  `Glucose` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `health_logs`
--


--
-- Table structure for table `health_records`
--

CREATE TABLE `health_records` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '使用者ID',
  `card_no` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `height` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '身高',
  `weight` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '體重',
  `SBP` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '收縮壓',
  `DBP` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '舒張壓',
  `PULSE` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '脈搏',
  `type_mode` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '主機狀態',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `command_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '流水號',
  `hd_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '設備ID',
  `GLU` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '血糖',
  `BT` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '體溫',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `health_records`
--


--
-- Table structure for table `healths`
--

CREATE TABLE `healths` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `hbp` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lbp` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `pulse` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `data` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `healths`
--


--
-- Table structure for table `home_service_items`
--

CREATE TABLE `home_service_items` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `status` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `home_service_items`
--


--
-- Table structure for table `home_services`
--

CREATE TABLE `home_services` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `phone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `service` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `peoples` int DEFAULT NULL,
  `time` datetime NOT NULL,
  `status` int DEFAULT NULL,
  `info` text COLLATE utf8_unicode_ci,
  `handle` text COLLATE utf8_unicode_ci,
  `time_handle` datetime DEFAULT NULL,
  `handle_by` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `home_services`
--


--
-- Table structure for table `home_services_handles`
--

CREATE TABLE `home_services_handles` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `home_services_id` int NOT NULL,
  `user_id` int NOT NULL,
  `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `content` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image1` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image2` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image3` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image4` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image5` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `home_services_handles`
--


--
-- Table structure for table `hosts`
--

CREATE TABLE `hosts` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `hosts_number` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `ip_location` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `class_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `location_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type_mode` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `hosts`
--


--
-- Table structure for table `hosts_classes`
--

CREATE TABLE `hosts_classes` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `company` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `error_image` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `hosts_classes`
--


--
-- Table structure for table `hosts_locations`
--

CREATE TABLE `hosts_locations` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `building` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `floor` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `location` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `hosts_locations`
--


--
-- Table structure for table `hosts_logs`
--

CREATE TABLE `hosts_logs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `h_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type_mode` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `operator` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `hosts_logs`
--


--
-- Table structure for table `hot_pump_energies`
--

CREATE TABLE `hot_pump_energies` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `device_code` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '設備代號',
  `room_no` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '宿舍號碼',
  `date` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '日期',
  `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '數值',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `hot_pump_energies`
--


--
-- Table structure for table `hotpump_facilities`
--

CREATE TABLE `hotpump_facilities` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `code` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `work_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '加熱方式',
  `cycle` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '循環方式',
  `refrigerant` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '冷媒種類',
  `record_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '抄表方式',
  `place` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '設置地點',
  `floor` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '設置樓層',
  `label` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '廠牌',
  `unit` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '單位',
  `verification` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '檢定有無',
  `verification_date` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '檢定有效期限',
  `verification_code` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '檢定編號',
  `status` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `hotpump_facilities`
--


--
-- Table structure for table `images`
--

CREATE TABLE `images` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `filename` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `url` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `mime` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `original_filename` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `download` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `images`
--


--
-- Table structure for table `import_settings`
--

CREATE TABLE `import_settings` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `import_settings`
--


--
-- Table structure for table `imports`
--

CREATE TABLE `imports` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `file` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `pwd_print` int NOT NULL,
  `import_success` int NOT NULL,
  `import_failed` int NOT NULL,
  `log` text COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `imports`
--

INSERT INTO `imports` VALUES (1,'20210427','1631357773.xls',0,0,0,'','2021-09-11 18:56:13','2021-09-11 18:56:13');

--
-- Table structure for table `inouts`
--

CREATE TABLE `inouts` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `out_reason` text COLLATE utf8_unicode_ci,
  `remark` text COLLATE utf8_unicode_ci,
  `in_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `user_id` int unsigned NOT NULL,
  `status` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `inouts_user_id_foreign` (`user_id`),
  CONSTRAINT `inouts_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `inouts`
--


--
-- Table structure for table `inst_equipment_orders`
--

CREATE TABLE `inst_equipment_orders` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `equipment` int DEFAULT NULL,
  `inst_order` int DEFAULT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `borrower` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `return` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `beforeby` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `afterby` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `inst_equipment_orders`
--


--
-- Table structure for table `inst_equipments`
--

CREATE TABLE `inst_equipments` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `equipment_name` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `equipment_no` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `custodian` int DEFAULT NULL,
  `purchase_date` date DEFAULT NULL,
  `costs` int DEFAULT NULL,
  `age_limit` int DEFAULT NULL,
  `depreciation_price` int DEFAULT NULL,
  `placement` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `specification` text COLLATE utf8_unicode_ci,
  `cover_img` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` int DEFAULT NULL,
  `borrowing_time` datetime DEFAULT NULL,
  `borrower` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `inst` int DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `inst_equipments`
--


--
-- Table structure for table `inst_order_timings`
--

CREATE TABLE `inst_order_timings` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `inst_id` int NOT NULL,
  `user_id` int NOT NULL,
  `person` int NOT NULL,
  `cost` int NOT NULL,
  `point_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `pawn` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `enter_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `leave_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `status` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `log` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `inst_order_timings`
--


--
-- Table structure for table `inst_orders`
--

CREATE TABLE `inst_orders` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `inst_id` int NOT NULL,
  `user_id` int NOT NULL,
  `date` date NOT NULL,
  `time_section` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `is_box` tinyint(1) NOT NULL,
  `person` int NOT NULL,
  `point_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `status` int NOT NULL,
  `desc` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
  `memo` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `alert_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `alert_interval` int NOT NULL,
  `alert_unit` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `alert_done_flag` tinyint(1) NOT NULL,
  `create_user_id` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `pawn` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `log` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `undertake` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `platform` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `inst_orders`
--


--
-- Table structure for table `inst_timings`
--

CREATE TABLE `inst_timings` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `cover_img` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` int DEFAULT NULL,
  `point_use` int DEFAULT NULL,
  `point_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `rule` text COLLATE utf8_unicode_ci,
  `info` text COLLATE utf8_unicode_ci,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `inst_timings`
--


--
-- Table structure for table `insts`
--

CREATE TABLE `insts` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `cover_img` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `rule` text COLLATE utf8_unicode_ci,
  `info` text COLLATE utf8_unicode_ci,
  `status` int DEFAULT NULL,
  `point_use` int DEFAULT NULL,
  `is_mooncard_only` tinyint NOT NULL,
  `mooncard_point_use` int NOT NULL,
  `point_by_person` int DEFAULT NULL,
  `point_box` int DEFAULT NULL,
  `point_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `point_no_use_flag` tinyint(1) DEFAULT NULL,
  `point_no_use_min` int DEFAULT NULL,
  `point_invalid_use_flag` tinyint(1) DEFAULT NULL,
  `point_invalid_use` int DEFAULT NULL,
  `orders_pre_days` int DEFAULT NULL,
  `orders_one_day_flag` tinyint(1) DEFAULT NULL,
  `orders_one_day` int DEFAULT NULL,
  `orders_one_section_flag` tinyint(1) DEFAULT NULL,
  `orders_one_section` int DEFAULT NULL,
  `persons_one_day_flag` tinyint(1) DEFAULT NULL,
  `persons_one_day` int DEFAULT NULL,
  `persons_one_section_flag` tinyint(1) DEFAULT NULL,
  `persons_one_section` int DEFAULT NULL,
  `persons_one_user_one_section_flag` tinyint(1) DEFAULT NULL,
  `persons_one_user_one_section` int DEFAULT NULL,
  `orders_one_user_one_day_flag` tinyint(1) DEFAULT NULL,
  `orders_one_user_one_day` int DEFAULT NULL,
  `orders_by_today_flag` tinyint NOT NULL,
  `alert_after_sign_flag` tinyint(1) DEFAULT NULL,
  `alert_after_sign_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `alert_notice_flag` tinyint(1) DEFAULT NULL,
  `alert_notice_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `is_box` tinyint(1) DEFAULT NULL,
  `is_vvip` tinyint(1) DEFAULT NULL,
  `is_need_sign` tinyint(1) DEFAULT NULL,
  `card_reader_1` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `card_reader_2` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `support_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `support_info` text COLLATE utf8_unicode_ci,
  `time_section` text COLLATE utf8_unicode_ci,
  `each_section` text COLLATE utf8_unicode_ci,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `insts`
--


--
-- Table structure for table `intercom`
--

CREATE TABLE `intercom` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `intercom_number` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `subtype` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `action_type` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `action_content` varchar(60) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `type_mode` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `solution` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `intercom`
--


--
-- Table structure for table `intercom_classes`
--

CREATE TABLE `intercom_classes` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `error_image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `intercom_classes`
--


--
-- Table structure for table `intercom_house`
--

CREATE TABLE `intercom_house` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `house_code` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `intercom_number` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `ip_address` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `ip_address2` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `location` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `class` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `intercom_house`
--


--
-- Table structure for table `intercom_import`
--

CREATE TABLE `intercom_import` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `success` int NOT NULL,
  `fail` int NOT NULL,
  `title` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `file_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `intercom_import`
--


--
-- Table structure for table `intercom_locations`
--

CREATE TABLE `intercom_locations` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `building` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `floor` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `location` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `status` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `intercom_locations`
--


--
-- Table structure for table `intercom_log`
--

CREATE TABLE `intercom_log` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `caseid` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `houseid` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `command_id` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `intercom_number` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `subtype` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `subject` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `message` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
  `event_date` date NOT NULL,
  `event_time` time NOT NULL,
  `type_mode` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `mode` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mode_value` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `flag` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
  `dts` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `dte` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `ip1` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `ip2` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `intercom_log`
--


--
-- Table structure for table `jobs`
--

CREATE TABLE `jobs` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `queue` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `payload` longtext COLLATE utf8_unicode_ci NOT NULL,
  `attempts` tinyint unsigned NOT NULL,
  `reserved` tinyint unsigned NOT NULL,
  `reserved_at` int unsigned DEFAULT NULL,
  `available_at` int unsigned NOT NULL,
  `created_at` int unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `jobs_queue_reserved_reserved_at_index` (`queue`,`reserved`,`reserved_at`)
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `jobs`
--


--
-- Table structure for table `keeper_lockers`
--

CREATE TABLE `keeper_lockers` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `info` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `keeper_lockers`
--

INSERT INTO `keeper_lockers` VALUES (1,'第01櫃','左上角一號櫃','2021-08-11 11:25:44','2021-08-11 11:25:44'),(2,'第02櫃','左中間第二櫃','2021-08-11 11:25:44','2021-08-11 11:25:44'),(3,'第03櫃','左下面第三櫃','2021-08-11 11:25:44','2021-08-11 11:25:44'),(4,'第04櫃','中下面第三櫃','2021-08-11 11:25:44','2021-08-11 11:25:44'),(5,'第05櫃','中下面第三櫃','2021-08-11 11:25:44','2021-08-11 11:25:44'),(6,'第06櫃','中下面第三櫃','2021-08-11 11:25:44','2021-08-11 11:25:44');

--
-- Table structure for table `keepers`
--

CREATE TABLE `keepers` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `host` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `host_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guest` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guest_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guest_in_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guest_phone` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guest_in_sign` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `keeper_in_image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `guest_locker` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guest_out_sign` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `keeper_out_image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `guest_rfid` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guest_in_time` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guest_out_time` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guest_out_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `handler` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` int NOT NULL,
  `invalid_time` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `keeper_relationship` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `keeper_class` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `keeper_cost` int NOT NULL COMMENT '費用',
  `keeper_before_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `keeper_after_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `keeper_image` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `keeper_get_image` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `keepers`
--


--
-- Table structure for table `lang`
--

CREATE TABLE `lang` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `code` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `lang` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `lang`
--

INSERT INTO `lang` VALUES (1,'lang_setting','zh'),(2,'lang_setting','zh-NPM');

--
-- Table structure for table `lang_import`
--

CREATE TABLE `lang_import` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `success` int NOT NULL,
  `fail` int NOT NULL,
  `title` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `file_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `lang_import`
--


--
-- Table structure for table `library_borrowed_logs`
--

CREATE TABLE `library_borrowed_logs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `handle_id` int NOT NULL,
  `handle_id2` int NOT NULL,
  `book_id` int NOT NULL,
  `return_date` date NOT NULL,
  `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `library_borrowed_logs`
--


--
-- Table structure for table `library_classes`
--

CREATE TABLE `library_classes` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `class_no` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `class_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `location` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `library_classes`
--


--
-- Table structure for table `library_presses`
--

CREATE TABLE `library_presses` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `company_no` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `company_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `phone` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `fax` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `mobile` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `address` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `contact` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `library_presses`
--


--
-- Table structure for table `library_punish_reports`
--

CREATE TABLE `library_punish_reports` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `library_id` int NOT NULL,
  `punish_id` int NOT NULL,
  `punish_date` date NOT NULL,
  `punish_info` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `library_punish_reports`
--


--
-- Table structure for table `library_punishs`
--

CREATE TABLE `library_punishs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `discard` int NOT NULL,
  `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `library_punishs`
--


--
-- Table structure for table `library_settings`
--

CREATE TABLE `library_settings` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `setting_no` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `setting_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `day` int NOT NULL,
  `amount` int NOT NULL,
  `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `library_settings`
--


--
-- Table structure for table `library_users`
--

CREATE TABLE `library_users` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `setting_id` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `library_users`
--


--
-- Table structure for table `librarys`
--

CREATE TABLE `librarys` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `book_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `book_isbn` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `press_id` int NOT NULL,
  `class_id` int NOT NULL,
  `status` int NOT NULL,
  `borrower` int NOT NULL,
  `discard` int NOT NULL,
  `book_set_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `book_author` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `book_version` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `book_media` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `book_image` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `amount` int NOT NULL,
  `book_id` int NOT NULL,
  `info` text COLLATE utf8_unicode_ci NOT NULL,
  `purchase_date` date NOT NULL,
  `publishing_date` date NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `librarys`
--


--
-- Table structure for table `links`
--

CREATE TABLE `links` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `cover_img` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `link` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `links`
--


--
-- Table structure for table `location`
--

CREATE TABLE `location` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `place` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `BAID` varchar(2) COLLATE utf8_unicode_ci NOT NULL,
  `FID` varchar(3) COLLATE utf8_unicode_ci NOT NULL,
  `HID` varchar(3) COLLATE utf8_unicode_ci NOT NULL,
  `HName` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `UpdNo` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `location`
--


--
-- Table structure for table `login_logs`
--

CREATE TABLE `login_logs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `login_from` int NOT NULL,
  `ip` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `login_logs`
--

INSERT INTO `login_logs` VALUES (1,1,1,'10.0.2.2','2021-08-11 11:27:25','2021-08-11 11:27:25'),(2,1,1,'10.0.2.2','2021-09-11 18:13:51','2021-09-11 18:13:51'),(3,22,1,'10.0.2.2','2021-09-11 18:18:45','2021-09-11 18:18:45'),(4,1,1,'10.0.2.2','2021-09-13 09:54:38','2021-09-13 09:54:38'),(5,23,1,'10.0.2.2','2021-09-13 10:15:15','2021-09-13 10:15:15'),(6,22,1,'10.0.2.2','2021-09-13 10:15:33','2021-09-13 10:15:33'),(7,23,1,'10.0.2.2','2021-09-13 10:20:36','2021-09-13 10:20:36'),(8,22,1,'10.0.2.2','2021-09-13 13:01:54','2021-09-13 13:01:54');

--
-- Table structure for table `lost_things`
--

CREATE TABLE `lost_things` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `type` tinyint(1) NOT NULL,
  `user_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `location` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `class` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '無',
  `keeper` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `publisher` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `time_find` datetime DEFAULT NULL,
  `time_take` datetime DEFAULT NULL,
  `things_photo` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `finder_photo` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `owner_photo` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `finder_sign_image` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `owner_sign_image` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `close_reason` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `handle` text COLLATE utf8_unicode_ci,
  `status` int NOT NULL,
  `content` text COLLATE utf8_unicode_ci,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `lost_things`
--


--
-- Table structure for table `lost_things_handle`
--

CREATE TABLE `lost_things_handle` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `userid` smallint NOT NULL,
  `lost_things_id` smallint NOT NULL,
  `status` tinyint NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `lost_things_handle`
--


--
-- Table structure for table `mail_sources`
--

CREATE TABLE `mail_sources` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `mail_source` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `mail_sources`
--

INSERT INTO `mail_sources` VALUES (1,'中華郵政','2021-08-11 11:25:44','2021-08-11 11:25:44'),(2,'黑貓宅急便','2021-08-11 11:25:44','2021-08-11 11:25:44'),(3,'大嘴鳥宅配','2021-08-11 11:25:44','2021-08-11 11:25:44'),(4,'台灣高鐵','2021-08-11 11:25:44','2021-08-11 11:25:44'),(5,'台灣自來水','2021-08-11 11:25:44','2021-08-11 11:25:44'),(6,'總統府','2021-08-11 11:25:44','2021-08-11 11:25:44'),(7,'國際航郵','2021-08-11 11:25:44','2021-08-11 11:25:44'),(8,'行政院','2021-08-11 11:25:44','2021-08-11 11:25:44'),(9,'立法院','2021-08-11 11:25:44','2021-08-11 11:25:44'),(10,'銀行','2021-08-11 11:25:44','2021-08-11 11:25:44');

--
-- Table structure for table `mail_types`
--

CREATE TABLE `mail_types` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `mail_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `mail_types`
--

INSERT INTO `mail_types` VALUES (1,'掛號','2021-08-11 11:25:44','2021-08-11 11:25:44'),(2,'包裹','2021-08-11 11:25:44','2021-08-11 11:25:44'),(3,'平信','2021-08-11 11:25:44','2021-08-11 11:25:44'),(4,'雙掛號','2021-08-11 11:25:44','2021-08-11 11:25:44'),(5,'廣告','2021-08-11 11:25:44','2021-08-11 11:25:44');

--
-- Table structure for table `mails`
--

CREATE TABLE `mails` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `mailtype` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mailnumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mail_source` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mailsenddate` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mailsend` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mailgetdate` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mailget` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mailattach` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mailstate` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
  `sign_image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mailpay` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mailmoney` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `com_id` int NOT NULL DEFAULT '0',
  `box_id` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `sms_send` int NOT NULL DEFAULT '0',
  `sms_log_id` int NOT NULL DEFAULT '0',
  `before_user_id` int NOT NULL,
  `after_user_id` int NOT NULL,
  `rfid_card_no` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `groupid` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `mailbackdate` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `mail_image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `photo_image` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `info` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `mails`
--


--
-- Table structure for table `matter_handles`
--

CREATE TABLE `matter_handles` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `matter_id` int NOT NULL,
  `user_id` int NOT NULL,
  `content` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status_change` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `image1` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image2` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image3` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image4` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image5` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `matter_handles`
--


--
-- Table structure for table `matter_reports`
--

CREATE TABLE `matter_reports` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int DEFAULT NULL,
  `matters_item` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `matters_important` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `matters_subject` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `matters_situation` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `target` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `info` text COLLATE utf8_unicode_ci,
  `wish` text COLLATE utf8_unicode_ci,
  `time_report` datetime DEFAULT NULL,
  `status` int NOT NULL,
  `image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `matter_reports`
--


--
-- Table structure for table `meal_bloods`
--

CREATE TABLE `meal_bloods` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `meal_id` int NOT NULL,
  `blood_list` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `status` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `meal_bloods`
--


--
-- Table structure for table `meal_carts`
--

CREATE TABLE `meal_carts` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `sid` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `item_id` int NOT NULL,
  `item_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `amount` int NOT NULL,
  `point` int NOT NULL,
  `type` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `seat_id` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `meal_carts`
--


--
-- Table structure for table `meal_classes`
--

CREATE TABLE `meal_classes` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `sort` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `meal_classes`
--


--
-- Table structure for table `meal_food_logs`
--

CREATE TABLE `meal_food_logs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `food_id` int NOT NULL,
  `old_stock` int NOT NULL,
  `new_stock` int NOT NULL,
  `num` int NOT NULL,
  `operator` int NOT NULL,
  `mode` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `reason` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `meal_food_logs`
--


--
-- Table structure for table `meal_foods`
--

CREATE TABLE `meal_foods` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `food_id` int NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `units` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `now_stock` int NOT NULL,
  `sort` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `info` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `status` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `meal_foods`
--


--
-- Table structure for table `meal_items`
--

CREATE TABLE `meal_items` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `class_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '分類名稱',
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '商品名稱',
  `priority` int NOT NULL COMMENT '優先級',
  `point` int NOT NULL COMMENT '所需點數',
  `cover_img` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '商品圖片',
  `barcode` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '商品條碼',
  `stock` int NOT NULL COMMENT '剩餘庫存',
  `info` text CHARACTER SET utf8 COLLATE utf8_unicode_ci COMMENT '說明',
  `status` int NOT NULL COMMENT '開關(0關 1開)',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `meal_items`
--


--
-- Table structure for table `meal_order_details`
--

CREATE TABLE `meal_order_details` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `order_id` int NOT NULL,
  `item_id` int NOT NULL,
  `amount` int NOT NULL,
  `point_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '消費點數類型',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `meal_order_details`
--


--
-- Table structure for table `meal_orders`
--

CREATE TABLE `meal_orders` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `num` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `user_id` int NOT NULL,
  `content` text COLLATE utf8_unicode_ci,
  `cost_point` int NOT NULL,
  `amount` int NOT NULL,
  `status` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `meal_orders`
--


--
-- Table structure for table `meal_seats`
--

CREATE TABLE `meal_seats` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `table_id` int NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `person` int NOT NULL,
  `info` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `menu` text COLLATE utf8_unicode_ci NOT NULL,
  `status` int NOT NULL,
  `left_num` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `top_num` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `meal_seats`
--


--
-- Table structure for table `meetings`
--

CREATE TABLE `meetings` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `location` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `chair` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `record` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `attend` text COLLATE utf8_unicode_ci,
  `nonvoting` text COLLATE utf8_unicode_ci,
  `time_start` datetime NOT NULL,
  `time_end` datetime NOT NULL,
  `content_1` text COLLATE utf8_unicode_ci NOT NULL,
  `content_2` text COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `file` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `meetings`
--


--
-- Table structure for table `message_sets`
--

CREATE TABLE `message_sets` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `comment` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `message_sets`
--


--
-- Table structure for table `messages`
--

CREATE TABLE `messages` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `send_user_id` int NOT NULL,
  `to_user_id` int NOT NULL,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `content` text COLLATE utf8_unicode_ci NOT NULL,
  `is_readed` tinyint(1) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `messages`
--


--
-- Table structure for table `migrations`
--

CREATE TABLE `migrations` (
  `migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `batch` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `migrations`
--

INSERT INTO `migrations` VALUES ('2013_04_11_233631_orchestra_memory_create_options_table',1),('2014_06_01_015519_create_imports_table',1),('2014_07_02_230147_migration_cartalyst_sentinel',1),('2014_10_12_100000_create_password_resets_table',1),('2015_08_25_172600_create_settings_table',1),('2015_09_16_024735_create_cards_table',1),('2015_09_25_160554_create_communities_table',1),('2015_10_07_025003_create_mails_table',1),('2015_10_07_040120_create_mail_sources_table',1),('2015_10_07_040251_create_mail_types_table',1),('2015_10_08_182049_create_guests_table',1),('2015_10_08_184252_create_guest_pawns_table',1),('2015_10_08_210551_create_keepers_table',1),('2015_10_08_210721_create_keeper_lockers_table',1),('2015_10_13_033843_create_abouts_table',1),('2015_10_13_093014_create_news_table',1),('2015_10_14_045836_create_news_columns_table',1),('2015_10_14_045842_create_news_types_table',1),('2015_10_14_070204_create_files_table',1),('2015_10_14_090231_create_calendar_events_table',1),('2015_10_15_025927_create_calendars_table',1),('2015_10_20_074611_create_albums_table',1),('2015_10_20_075025_create_album_images_table',1),('2015_10_23_041626_create_notices_table',1),('2015_10_28_020700_create_meetings_table',1),('2015_10_28_061905_create_activities_table',1),('2015_10_29_033027_create_messages_table',1),('2015_11_02_035709_create_recruits_table',1),('2015_11_02_080131_create_lost_things_table',1),('2015_11_03_040435_create_votes_table',1),('2015_11_03_040447_create_vote_options_table',1),('2015_11_03_042145_create_vote_comments_table',1),('2015_11_03_072813_create_forums_table',1),('2015_11_03_111108_create_forum_classes_table',1),('2015_11_04_021400_create_home_services_table',1),('2015_11_04_030651_create_home_service_items_table',1),('2015_11_04_082046_create_fault_reports_table',1),('2015_11_04_090337_create_tags_table',1),('2015_11_04_115410_create_fault_handles_table',1),('2015_11_05_070615_create_pushes_table',1),('2015_11_05_071057_create_push_tips_table',1),('2015_11_06_022925_create_rentsales_table',1),('2015_11_06_025839_create_secondhands_table',1),('2015_11_07_122624_create_point_incomes_table',1),('2015_11_07_122633_create_point_costs_table',1),('2015_11_09_045446_create_insts_table',1),('2015_11_10_031345_create_inst_orders_table',1),('2015_12_01_171656_create_jobs_table',1),('2015_12_02_114854_create_import_settings_table',1),('2015_12_03_222053_create_data_weemas_table',1),('2015_12_05_143920_create_records_table',1),('2015_12_05_144431_create_record_lists_table',1),('2015_12_08_151349_create_data_bas_table',1),('2015_12_11_184407_create_images_table',1),('2015_12_14_104015_create_album_folders_table',1),('2015_12_16_183245_create_point_settings_table',1),('2015_12_17_093644_create_point_allgives_table',1),('2015_12_18_002721_create_meal_classes_table',1),('2015_12_18_002733_create_meal_items_table',1),('2015_12_18_002829_create_meal_carts_table',1),('2015_12_20_161225_create_meal_orders_table',1),('2015_12_21_130251_add_file_to_meetings',1),('2015_12_23_201722_create_sms_logs_table',1),('2015_12_23_205147_add_sms_send_to_mail_table',1),('2015_12_24_151722_change_inst_time_section',1),('2015_12_24_151950_change_inst_order_time_section',1),('2015_12_26_174041_add_last_from_to_users',1),('2015_12_26_215939_create_login_logs_table',1),('2015_12_27_151704_create_vote_lists_table',1),('2015_12_29_154454_change_inst_order_nullable',1),('2015_12_29_204636_add_file_type_to_activities',1),('2016_01_01_124311_drop_user_email_unique',1),('2016_01_04_162630_change_users_email_nullable',1),('2016_01_07_152826_add_cover_img__recruits',1),('2016_01_16_105531_add_file_type_to_data_bas',1),('2016_01_18_105825_create_action_logs_table',1),('2016_01_19_120632_add_create_user_and_rfid',1),('2016_01_26_110751_create_card_sets_table',1),('2016_01_26_135213_create_push_logs_table',1),('2016_01_28_165520_create_healths_table',1),('2016_02_03_150911_add_user_id_to_push_logs',1),('2016_02_04_132059_add_service_to_action_log',1),('2016_02_24_163409_create_user_atts_table',1),('2016_04_21_175319_create_doorplates_table',1),('2016_04_22_110648_add_groupid_in_users_table',1),('2016_04_22_144822_add_nickname_in_users_table',1),('2016_04_28_154514_add_groupid_in_mails_table',1),('2016_05_09_153102_create_documents_table',1),('2016_05_09_153336_create_document_files',1),('2016_05_09_153410_create_document_folders_table',1),('2016_05_11_105359_create_message_sets',1),('2016_05_15_203213_add_fault_handles',1),('2016_06_09_120539_create_convinients_table',1),('2016_06_09_120553_create_links_table',1),('2016_06_16_150458_add_file_to_calendar_events',1),('2016_04_21_104049_create_activities_applies_table',2),('2016_04_26_111535_create_asset_images',2),('2016_04_26_164705_acquired_source',2),('2016_04_26_164705_create_assets',2),('2016_04_26_164705_create_category',2),('2016_04_26_164705_create_disposal_item',2),('2016_04_26_164705_create_general_category',2),('2016_04_26_164705_create_storage_place_table',2),('2016_04_26_181058_create_storages',2),('2016_04_27_073411_create_asset_punish_table',2),('2016_04_27_123028_create_storage_substitute_table',2),('2016_04_27_144059_alter_asset_images_table',2),('2016_05_03_102458_create_departments_table',2),('2016_05_03_111209_create_storage_unit_table',2),('2016_05_03_120520_create_firms_table',2),('2016_05_03_150544_alter_assets_table',2),('2016_05_03_154555_create_applicant_table',2),('2016_05_03_154556_create_picklist_table',2),('2016_05_03_170226_create_authority_table',2),('2016_05_04_183724_create_user_authority_table',2),('2016_05_09_103648_add_no_to_departments_table',2),('2016_05_13_115335_create_purchase_table',2),('2016_05_15_194059_add_deaprtment_and_title_to_users_table',2),('2016_05_15_212752_add_firm_to_storages_table',2),('2016_05_15_213407_add_firm_to_assets_table',2),('2016_05_16_124823_add_issued_number_to_picklist',2),('2016_05_16_135149_rename_picklist_to_piclist_item',2),('2016_05_16_135959_create_new_picklist',2),('2016_05_17_073524_rename_purchase_to_purchase_item',2),('2016_05_17_073555_create_new_purchase_table',2),('2016_05_17_141818_create_sensor_para_config_table',2),('2016_05_17_155755_create_sensor_records_table',2),('2016_05_17_161313_create_sensors_table',2),('2016_05_22_215121_add_item_no_to_applicant_table',2),('2016_05_24_142256_alter_storage_substitute_columns',2),('2016_05_24_171321_create_sensor_category_table',2),('2016_05_24_171431_create_location_table',2),('2016_05_26_094338_create_sensor_api_config',2),('2016_06_02_140557_create_ba_import_table',2),('2016_06_02_142817_add_xls_name_to_sensors',2),('2016_06_03_114150_add_disable_to_sensors_table',2),('2016_06_06_100210_add_asset_custodian_log',2),('2016_06_06_100434_add_asset_maintenance_log',2),('2016_06_06_121523_add_chairman_to_users',2),('2016_06_06_131219_add_approved_2_to_applicant',2),('2016_06_10_121704_create_asset_import_table',2),('2016_06_10_133528_add_xls_name_to_assets_table',2),('2016_06_12_212425_create_sales_table',2),('2016_06_13_160546_create_asset_check_import_table',2),('2016_06_15_005747_create_stores_table',2),('2016_06_20_135857_create_festivals_table',2),('2016_06_20_230405_create_tours_table',2),('2016_06_21_000410_create_theme_spots_table',2),('2016_06_21_004356_create_spots_table',2),('2016_06_21_195746_add_employee_no_to_users',2),('2016_06_21_205604_create_import_lang_table',2),('2016_06_22_100925_chage_principal_from_departments',2),('2016_06_22_102009_create_lang_table',2),('2016_06_22_170523_change_no_from_category',2),('2016_06_24_112909_add_image5_to_secondhand_table',2),('2016_06_27_110312_add_stores_table',2),('2016_06_27_223230_add_sales_table',2),('2016_06_27_223336_add_festivals_table',2),('2016_06_27_223354_add_tours_table',2),('2016_06_27_223425_add_theme_spots_table',2),('2016_06_27_223438_add_spots_table',2),('2016_06_27_224016_add_convinients_table',2),('2016_07_01_103636_add_image5_to_rentsale_table',2),('2016_07_02_204454_add_views_to_vote_table',2),('2016_07_09_182646_add_location_to_guests',2),('2016_07_10_015601_add_type_to_message_sets_table',2),('2016_07_10_121903_add_status_to_doorplates_table',2),('2016_07_11_101605_create_patrol_location_table',2),('2016_07_11_101630_create_patrol_event_table',2),('2016_07_11_101648_create_patrol_route_table',2),('2016_07_11_101706_create_patrol_items_table',2),('2016_07_11_101804_add_card_no_to_users_table',2),('2016_07_11_101936_create_patrol_config_table',2),('2016_07_11_102219_create_patrol_log_table',2),('2016_07_11_104314_create_patrol_format_table',2),('2016_07_11_233345_add_mailbackdate_in_mails_table',2),('2016_07_12_142057_add_content_in_convinients_table',2),('2016_07_12_152549_add_memo_to_doorplates_table',2),('2016_07_13_155050_add_api_token_to_patrol_config',2),('2016_07_14_095209_alter_card_no_to_location_code_from_patrol_location',2),('2016_07_18_141235_add_remark_to_patrol_log',2),('2016_07_20_161259_alter_duty_column_patrol_items',2),('2016_07_21_193258_add_status_to_storages',2),('2016_07_25_103851_add_status_to_patrol_log',2),('2016_07_26_101101_add_check_status_to_assets_table',2),('2016_07_26_230838_create_storage_import_table',2),('2016_07_26_234846_add_xls_name_to_storages_table',2),('2016_07_27_144720_create_patrol_off_log',2),('2016_07_30_192156_add_cost_to_asset_maintenance_log',2),('2016_07_30_204436_add_punish_id_to_asset_custodian_log',2),('2016_08_02_095519_create_ehr_log',2),('2016_08_02_095550_create_ehr_location',2),('2016_08_02_095930_create_ehr_shift',2),('2016_08_02_100322_create_ehr_schedule',2),('2016_08_05_172515_add_off_time_to_patrol_off_log',2),('2016_08_10_094242_alter_patrol_off_log_columns',2),('2016_08_10_100431_alter_patrol_log_columns',2),('2016_08_20_113220_add_photo12345_img_to_activities_table',2),('2016_09_07_100901_add_fault_outside_to_push_tips_table',2),('2016_09_07_112854_add_document_store_sale_to_push_tips_table',2),('2016_09_07_114418_create_fault_handle_outsides_table',2),('2016_09_07_114427_create_fault_report_outsides_table',2),('2016_09_07_211416_add_firm_to_push_tips_table',2),('2016_09_08_112208_add_guest_keeper_to_push_tips_table',2),('2016_09_19_104934_create_matter_reports_table',2),('2016_09_19_104949_create_matter_handles_table',2),('2016_09_19_135806_add_matter_assigned_to_push_tips_table',2),('2016_09_20_161539_create_aboutus_table',2),('2016_09_20_161644_create_aboutus_columns_table',2),('2016_09_22_145945_add_aboutus_to_push_tips_table',2),('2016_09_29_142655_create_wenlin_columns_table',2),('2016_09_29_143203_create_wenlins_table',2),('2016_09_29_152831_add_wenlin_to_push_tips',2),('2016_10_06_100728_add_line_id_to_patrol_route',2),('2016_10_14_165626_create_inst_equipments_table',2),('2016_10_17_102926_create_inst_equipment_orders_table',2),('2016_10_20_230012_create_inout_table',2),('2016_10_21_164757_add_handled_in_activities_applies_table',2),('2016_11_03_092724_add_privilege_to_users_table',2),('2016_11_07_175405_add_pawn_to_inst_orders_table',2),('2016_11_08_141956_create_inst_timings_table',2),('2016_11_08_142025_create_inst_timing_orders_table',2),('2016_11_09_152551_create_emails_table',2),('2016_11_20_102426_add_mail_image_to_mails_table',2),('2016_11_23_095531_create_email_receivers_table',2),('2016_12_08_100406_create_meal_order_details_table',2),('2016_12_09_164450_add_fault_report_to_image1_image2_table',2),('2016_12_12_164537_add_image1_image2_to_fault_report_outsides_table',2),('2016_12_16_131124_add_guest_in_image_guest_out_image_handler_to_guests_table',2),('2016_12_20_110000_add_keeper_image_to_keepers_table',2),('2016_12_29_110832_create_push_manages_table',2),('2016_12_29_110909_create_push_tip_manages_table',2),('2016_12_29_110924_create_push_log_manages_table',2),('2016_12_30_104140_add_lifeinfo_to_push_tips_table',2),('2017_03_03_101552_add_log_in_inst_orders_table',2),('2017_03_03_103754_add_log_in_inst_order_timings_table',2),('2017_03_03_180555_add_relation_ship_in_keepers_table',2),('2017_03_08_104848_add_relation_in_guests_table',2),('2017_03_30_101716_add_photo_image_in_mails_table',2),('2017_04_07_144307_add_phone_in_communities',2),('2017_05_02_140929_create_intercom_log_table',2),('2017_05_02_140951_create_intercom_house_table',2),('2017_05_02_151529_create_intercom_table',2),('2017_05_08_141758_create_intercom_import_table',2),('2017_05_12_164706_add_HCBI_colums_in_intercom_log_table',2),('2017_05_17_133642_add_ip_address2_in_intercom_house_table',2),('2017_05_17_154529_add_action_in_intercom_table',2),('2017_05_18_100133_add_type_subtype_in_intercom_table',2),('2017_05_18_101057_add_ip_in_intercom_log_table',2),('2017_05_19_132147_change_subtype_nullable_intercom_log_table',2),('2017_05_23_171522_change_action_content_length_intercom_table',2),('2017_05_25_170442_create_mooncard_table',2),('2017_05_25_171925_create_mooncard_user_table',2),('2017_05_25_174649_create_mooncard_log_table',2),('2017_05_29_114423_add_groupid_in_mooncard_user_table',2),('2017_05_29_115447_add_card_type_in_mooncard_log_table',2),('2017_05_29_132458_add_status_in_mooncard_table',2),('2017_06_01_141947_create_access_controll_table',2),('2017_06_01_142007_create_access_controll_log_table',2),('2017_06_02_133312_change_over_date_in_mooncard_user_table',2),('2017_06_07_141107_add_visitors_in_news_table',2),('2017_06_07_141508_create_news_logs_table',2),('2017_06_19_095237_create_electro_mechanical_checklist_table',2),('2017_06_19_095246_create_electro_mechanical_detail_table',2),('2017_06_19_133115_create_electro_mechanical_checklist_report_table',2),('2017_06_19_145351_add_user_card_number_in_access_controll_log',2),('2017_06_20_113400_add_scrapped_to_disposal_item_table',2),('2017_06_20_172328_create_electro_mechanical_import_table',2),('2017_06_23_105444_add_museum_type_in_users_table',2),('2017_06_23_112134_create_tickets_table',2),('2017_06_23_115315_create_museum_sales_table',2),('2017_06_23_131547_create_repairs_table',2),('2017_06_23_134152_create_repair_lists_table',2),('2017_06_23_134719_create_repair_outlists_table',2),('2017_06_23_135243_create_repair_settings_table',2),('2017_06_23_140633_add_fault_reports_table',2),('2017_06_23_150212_add_fault_report_outsides_table',2),('2017_06_23_150539_add_communities_table',2),('2017_06_23_170340_add_info_table',2),('2017_06_26_181944_add_user_command_table',2),('2017_06_26_183155_create_user_license_table',2),('2017_06_27_095508_add_status_in_electro_mechanical_detail',2),('2017_06_27_095837_create_electro_mechanical_patrol_table',2),('2017_06_28_160835_create_user_option_table',2),('2017_07_03_184201_create_fault_report_lists_table',2),('2017_07_04_131256_create_fault_report_outlists_table',2),('2017_07_05_101020_add_user_options_table',2),('2017_07_05_142034_add_work_name_in_fault_reports_table',2),('2017_07_05_142452_add_work_name_in_fault_report_outsides_table',2),('2017_07_09_144857_create_electro_mechanical_checklist_report_list_table',2),('2017_07_12_184620_add_orders_by_today_flag_in_insts_table',2),('2017_07_12_200245_add_patrol_datetime_in_electro_mechanical_checklist_report_list',2),('2017_07_13_101419_delete_location_code_in_ehr_log',2),('2017_07_13_101446_add_rest_start_time_in_ehr_schedule',2),('2017_07_13_101453_add_rest_start_time_in_ehr_shift',2),('2017_07_14_132839_create_electro_mechanical_checklist_fixlist_table',2),('2017_07_17_105336_add_status_in_electro_mechanical_checklist_report_list',2),('2017_07_18_111234_add_status_in_electro_mechanical_checklist_report_data',2),('2017_07_23_180458_add_patrol_id_in_electro_mechanical_checklist_report_list',2),('2017_07_24_160259_create_device_config_table',2),('2017_07_24_160259_create_device_event_table',2),('2017_07_24_160259_create_device_format_table',2),('2017_07_24_160259_create_device_items_table',2),('2017_07_24_160259_create_device_location_table',2),('2017_07_24_160259_create_device_log_table',2),('2017_07_24_160259_create_device_off_log_table',2),('2017_07_24_160259_create_device_route_table',2),('2017_07_24_160300_create_purifying_config_table',2),('2017_07_24_160300_create_purifying_event_table',2),('2017_07_24_160300_create_purifying_format_table',2),('2017_07_24_160300_create_purifying_items_table',2),('2017_07_24_160300_create_purifying_location_table',2),('2017_07_24_160300_create_purifying_log_table',2),('2017_07_24_160300_create_purifying_off_log_table',2),('2017_07_24_160300_create_purifying_route_table',2),('2017_07_27_103722_change_start_time_format_to_datetime_in_ehr_schedule',2),('2017_07_28_163444_add_amount_in_applicant',2),('2017_07_28_164823_add_prefix_in_category',2),('2017_08_04_021401_add_question_number_in_electro_mechanical_detail',2),('2017_08_04_034930_add_cost_in_electro_mechanical_checklist',2),('2017_08_08_095601_create_app_icon_replace_table',2),('2017_08_08_095609_add_icon_refresh_in_pushes_table',2),('2017_08_15_093137_add_fault_type_in_picklist_table',2),('2017_08_29_130647_add_things_photo_in_lost_things',2),('2017_08_31_095754_add_sign_image_in_mails_table',2),('2017_09_04_094224_add_costs_in_repairs_table',2),('2017_09_07_105507_add_costs_in_fault_handle_outsides_table',2),('2017_09_07_105613_add_costs_in_fault_handles_table',2),('2017_09_15_113749_create_home_services_handles_table',2),('2017_09_20_153021_create_lost_things_handle_table',2),('2017_09_21_114510_create_mqtt_ba_log_table',2),('2017_09_21_174813_add_baid_in_location',2),('2017_09_21_175833_create_ba_building_table',2),('2017_09_22_151716_create_ba_floor_table',2),('2017_09_28_163701_add_attrtype_in_sensors',2),('2017_09_28_173544_create_BA_EqLog_table',2),('2017_10_02_153901_create_librarys_table',2),('2017_10_02_155452_create_library_punishs_table',2),('2017_10_02_162844_create_library_classes_table',2),('2017_10_02_170116_create_library_settings_table',2),('2017_10_03_094648_create_library_presses_table',2),('2017_10_03_101306_create_library_punish_reports_table',2),('2017_10_03_162955_create_ba_alarm_table',2),('2017_10_05_142416_create_electricity_table',2),('2017_10_16_100904_create_library_users_table',2),('2017_10_16_174930_create_library_borrowed_logs_table',2),('2017_10_19_171714_add_handle_id2_in_library_borrowed_logs_table',2),('2017_10_26_162246_add_banner_img_in_news',2),('2017_10_27_134713_add_version_in_pushes_table',2),('2017_11_02_104117_create_meal_foods_table',2),('2017_11_06_102739_create_meal_bloods_table',2),('2017_11_06_104015_create_meal_food_logs_table',2),('2017_11_07_112434_rename_image_in_fault_reports_table',2),('2017_11_07_112502_rename_image_in_fault_report_outsides_table',2),('2017_11_08_154601_add_image4_in_fault_reports_table',2),('2017_11_08_154609_add_image4_in_fault_report_outsides_table',2),('2017_11_09_112205_create_meal_seats_table',2),('2017_11_17_190618_add_top_and_left_in_meal_seats_table',2),('2017_11_29_182219_add_mooncard_point_use_in_insts_table',2),('2017_12_04_012436_add_is_mooncard_only_in_insts_table',2),('2017_12_19_143945_create_cameras_table',2),('2017_12_20_154848_create_camera_locations_table',2),('2017_12_20_172237_create_camera_classes_table',2),('2017_12_21_110725_create_camera_settings_table',2),('2017_12_21_184124_add_camera_number_in_cameras',2),('2017_12_25_152605_add_building_in_camera_locations_table',2),('2017_12_25_171515_create_accesses_table',2),('2017_12_25_180919_create_access_settings_table',2),('2017_12_25_180931_create_access_classes_table',2),('2017_12_25_180938_create_access_locations_table',2),('2017_12_26_142254_create_pccs_buildings_table',2),('2017_12_26_143207_create_pccs_floors_table',2),('2017_12_27_161724_create_access_doors_table',2),('2017_12_27_161804_create_access_door_cardmachines_table',2),('2017_12_27_161827_create_access_staffs_table',2),('2017_12_27_161842_create_access_staff_cards_table',2),('2018_01_02_102639_create_weather__stations_table',2),('2018_01_02_113216_create_weather__station_locations_table',2),('2018_01_02_153552_create_weather__station_classes_table',2),('2018_01_04_135524_add_location_in_camera_locations_table',2),('2018_01_04_175344_create_subtitles_table',2),('2018_01_09_175728_add_is_subtitle_in_accesses_table',2),('2018_01_09_182207_add_status_in_subtitles_table',2),('2018_01_10_113414_add_type_in_meal_carts_table',2),('2018_01_12_183708_create_weather__station_logs_table',2),('2018_01_16_135444_create_subtitle_logs_table',2),('2018_01_18_101827_add_is_speed_in_subtitles_table',2),('2018_01_19_175911_create_access_staff_to_doors_table',2),('2018_01_22_115349_add_is_company_code_in_accesses_table',2),('2018_01_22_173628_add_Staff_group_in_access_controll_log_table',2),('2018_01_23_132317_add_in_project_departments_table',2),('2018_01_24_201820_create_community_settings_table',2),('2018_02_01_131836_create_fault_dispatches_table',2),('2018_02_02_101808_create_questionnaires_table',2),('2018_02_02_164421_create_access_actions_table',2),('2018_02_05_160719_add_is_sign_image_in_fault_handle_outsides_table',2),('2018_02_05_162137_add_is_sign_image_in_fault_handles_table',2),('2018_02_07_132403_add_is_alliance_link_in_community_settings_table',2),('2018_02_07_154428_create_questionnaires_faults_table',2),('2018_02_07_155858_create_community_images_table',2),('2018_02_07_185626_create_questionnaires_fault_outsides_table',2),('2018_02_09_154603_add_time_start_in_access_controll_log_table',2),('2018_02_11_113109_create_cron_tabs_table',2),('2018_02_21_101421_add_status_in_fault_dispatches_table',2),('2018_03_07_164914_create_factories_table',2),('2018_03_09_145139_create_pccs_graphs_table',2),('2018_03_15_115625_add_is_location_in_access_locations_table',2),('2018_03_30_141715_add_is_image_in_sensor_category_table',2),('2018_03_31_114946_add_is_image_in_camera_classes_table',2),('2018_03_31_115300_add_is_image_in_access_classes_table',2),('2018_04_18_105844_add_is_tel_in_fault_reports_table',2),('2018_04_18_110050_add_is_tel_in_fault_report_outsides_table',2),('2018_05_03_130734_add_is_undertake_in_inst_orders_table',2),('2018_05_03_143345_add_level_in_sensor_category_table',2),('2018_05_07_140926_create_intercom_locations_table',2),('2018_05_07_144742_add_is_location_in_intercom_house_table',2),('2018_05_08_131013_create_intercom_classes_table',2),('2018_05_08_142749_add_is_class_in_intercom_house_table',2),('2018_05_08_165837_add_is_error_image_in_sensor_category_table',2),('2018_05_08_173104_add_is_error_image_in_camera_classes_table',2),('2018_05_08_173602_add_is_error_image_in_access_classes_table',2),('2018_05_08_173807_add_is_error_image_in_intercom_classes_table',2),('2018_05_22_110845_add_is_mode_in_intercom_log_table',2),('2018_05_22_140921_update_lavel_to_level_in_electricity',2),('2018_05_24_114606_add_city_in_communities_table',2),('2018_05_24_141720_create_weathers_table',2),('2018_05_28_102343_create_access_admins_table',2),('2018_05_29_132701_modify_userid_in_access_admins_table',2),('2018_06_05_171955_add_is_operator_in_access_controll_log_table',2),('2018_06_08_094701_create_hosts_table',2),('2018_06_08_094717_create_hosts_locations_table',2),('2018_06_08_094750_create_hosts_classes_table',2),('2018_06_08_094800_create_hosts_logs_table',2),('2018_06_13_162406_add_is_operator_in_hosts_logs_table',2),('2018_06_14_161754_add_inst_order_id_in_access_controll_log_table',2),('2018_06_15_151055_create_monitor_icons_table',2),('2018_06_15_151144_create_monitor_table',2),('2018_06_15_151737_add_columns_in_monitor_icons_table',2),('2018_06_15_153623_add_category_in_monitor_icons_table',2),('2018_06_19_150324_add_door_staff_in_access_admin',2),('2018_06_29_155942_create_payment_tenants_table',2),('2018_06_29_163828_create_payment_imports_table',2),('2018_06_29_164104_add_columns_in_paymentimport_table',2),('2018_07_02_135255_create_payment_datas_table',2),('2018_07_02_141243_add_checked_in_payment_imports_table',2),('2018_07_02_143632_add_date_in_payment_datas_table',2),('2018_07_02_145137_add_datas_in_payment_datas_table',2),('2018_07_03_111046_add_is_other_in_payment_tenants_table',2),('2018_07_03_143611_create_payment_logs_table',2),('2018_07_05_102000_create_payment_peak_days_table',2),('2018_07_09_171826_create_electric_fees_table',2),('2018_07_13_093944_create_water_fees_table',2),('2018_07_13_164136_create_electricity_prices_table',2),('2018_07_16_091916_add_status_in_electric_prices_table',2),('2018_07_16_143405_create_payment_facilities_table',2),('2018_07_17_130327_create_user_facility_mappings_table',2),('2018_07_17_163210_add_facility_name_in_user_facility_mapping_table',2),('2018_07_20_101746_add_status_parking_in_doorplates_table',2),('2018_07_20_170000_create_other_fees_table',2),('2018_07_20_180953_create_e_tags_table',2),('2018_07_23_104648_add_floor_in_access_doors_table',2),('2018_07_23_133551_add_floor_limit_in_access_staffs_table',2),('2018_07_25_153612_create_electric_xls_imports_table',2),('2018_07_26_142556_add_cm_type_in_accesses_table',2),('2018_07_26_144211_add_cm_type_in_access_actions_table',2),('2018_07_26_145417_add_cm_type_in_access_classes_table',2),('2018_07_26_145625_add_cm_type_in_access_doors_table',2),('2018_07_26_152559_add_cm_type_in_access_locations_table',2),('2018_07_26_152741_add_cm_type__in_access_staffs_table',2),('2018_07_30_114055_change_comand_id_to_comand_id_in_intercom_log_table',2),('2018_07_31_150020_create_payment_btu_facility',2),('2018_08_01_171803_add_door_in_guests_table',2),('2018_08_06_110821_create_parking_garages_table',2),('2018_08_06_113818_create_payment_parking_fees_table',2),('2018_08_07_103257_add_groupid_in_parking_garages_table',2),('2018_08_07_145209_create_water_facilities_table',2),('2018_08_08_151651_create_water_degrees_table',2),('2018_08_08_173551_create_parking_imports_table',2),('2018_08_09_112332_drop_is_car_parking_number_in_payment_tenants_table',2),('2018_08_09_144417_create_payment_tenant_settings_table',2),('2018_08_09_163318_add_columns_in_water_facilities_table',2),('2018_08_09_185754_add_inout_in_accesses_table',2),('2018_08_10_110119_add_columns_in_payment_facilities_table',2),('2018_08_10_131557_add_rate_in_payment_facilities_table',2),('2018_08_10_133156_add_btu_in_payment_facilities_table',2),('2018_08_13_165008_add_last_in_xls_table',2),('2018_08_14_173108_add_created_at_in_settings',2),('2018_08_15_140503_create_parking_temporaries_table',2),('2018_08_20_153129_add_is_meter_start_in_payment_tenants_table',2),('2018_08_20_181408_add_digital_image_in_sensor_category_table',2),('2018_08_21_152249_add_type_in_cards',2),('2018_08_21_163552_add_is_remark_in_payment_facilities_table',2),('2018_09_03_164506_del_is_fee_in_electric_fees_table',2),('2018_09_03_172816_add_is_peak_in_electric_fees_table',2),('2018_09_10_105315_create_user_water_facility_mappings_table',2),('2018_09_12_175914_add_checked_in_electric_xls_imports_table',2),('2018_09_14_134912_add_is_import_in_payment_imports_table',2),('2018_09_19_163905_create_water_records_table',2),('2018_09_20_161509_add_updated_at_in_parking_temporaries_table',2),('2018_09_25_135034_add_user_name_in_lost_things_table',2),('2018_09_25_152014_create_water_taishui_mappings_table',2),('2018_10_01_151248_add_floor_in_payment_facilities',2),('2018_10_31_172116_create_forum_lists_table',2),('2018_10_31_174237_add_is_url_in_access_controll_log_table',2),('2018_10_31_175438_create_forum_contents_table',2),('2018_11_09_170635_create_payment_notices_table',2),('2018_11_19_202811_add_is_publicfee_in_payment_notices_table',2),('2018_11_20_191017_add_is_payment_info_in_payment_tenant_settings_table',2),('2018_12_07_182930_create_energies_table',2),('2018_12_12_164509_create_energy_records_table',2),('2018_12_20_130552_add_is_status_in_meal_orders_table',2),('2018_12_20_165504_add_status_in_calendar_events_table',2),('2018_12_22_175445_add_bind_type_in_sensors_table',2),('2018_12_24_154045_change_digital_image_in_sensor_category_table',2),('2018_12_25_141406_add_is_floor_public_in_payment_notices_table',2),('2019_01_08_091224_create_fire_control_phones_table',2),('2019_01_08_092443_create_phone_lists_table',2),('2019_01_08_095241_create_fire_control_voices_table',2),('2019_01_08_095652_create_voice_codes_table',2),('2019_01_08_102432_create_fire_control_imports_table',2),('2019_01_08_103212_create_fire_control_cctvs_table',2),('2019_01_08_103634_create_fire_control_subtitles_table',2),('2019_01_09_145719_add_is_message_in_fire_control_subtitles_table',2),('2019_01_11_095926_add_class_in_parking_temporaries_table',2),('2019_01_11_095937_add_class_in_parking_garages_table',2),('2019_01_15_103652_add_class_in_accesses_table',2),('2019_01_15_120044_add_class_in_access_classes_table',2),('2019_01_15_120054_delete_access_controll_table',2),('2019_01_15_120100_add_class_in_access_doors_table',2),('2019_01_15_120106_add_class_in_access_locations_table',2),('2019_01_15_120112_add_class_in_access_staffs_table',2),('2019_01_15_165822_add_class_in_parking_import_table',2),('2019_01_19_104120_add_class_in_e_tags_table',2),('2019_01_19_155705_add_image_in_parking_temporaries_table',2),('2019_02_19_093749_create_charge_equipments_table',2),('2019_02_20_094208_create_charges_table',2),('2019_02_21_180019_create_charge_times_table',2),('2019_02_22_170351_add_image_out_in_parking_temporaries_table',2),('2019_03_13_151444_add_is_cost_in_keeper_table',2),('2019_03_14_100127_add_priority_in_meal_items_table',2),('2019_03_14_162505_add_cost_in_guests_table',2),('2019_03_21_151943_add_is_object_id_in_payment_facilities_table',2),('2019_07_01_090620_create_charge_orders_table',2),('2019_07_08_103422_create_charge_logs_table',2),('2019_07_18_103843_create_health_devices_table',2),('2019_07_18_104521_create_health_records_table',2),('2019_07_18_105457_create_health_classes_table',2),('2019_07_18_110148_create_health_locations_table',2),('2019_07_22_133715_alter_tablename_table',2),('2019_07_22_135824_alter_tablename_table',2),('2019_07_23_134355_alter_tablename_table',2),('2019_08_01_102327_create_sensor_faults_table',2),('2019_08_02_102207_add_health_record_table',2),('2019_08_05_133713_add_sf_id_in_fault_reports_table',2),('2019_08_08_131848_add_etag_in_parking_table1',2),('2019_08_16_151636_add_currently_in_parking_garage_table',2),('2019_10_03_095604_add_breeze_fee_in_electric_fees_table',2),('2019_10_03_114329_add_extra_pay_in_payment_tenants_table',2),('2019_10_03_134653_add_year_start_in_payment_tenants_table',2),('2019_11_04_161149_create_electric_mails_table',2),('2019_11_05_145952_add_is_box_in_accesses_table',2),('2019_11_06_154911_create_water_meter_table',2),('2019_11_06_160754_create_solar_energy_table',2),('2019_11_06_161405_create_divice_record_table',2),('2019_11_06_174424_add_power_in_divice_record_table',2),('2019_11_08_153330_add_type_in_device_records_table',2),('2019_11_12_111040_add_iskw_in_solar_energies_table',2),('2019_11_22_103446_create_room_temperatures_table',2),('2019_12_17_094908_create_plantings_table',2),('2019_12_17_103431_create_planting_infos_table',2),('2019_12_17_104126_create_planting_orders_table',2),('2019_12_17_110804_create_planting_logs_table',2),('2020_01_20_100321_create_energy_logs_table',2),('2020_02_03_104224_add_is_floor_in_storage_place_table',2),('2020_02_05_174157_add_is_warranty_start_date_in_assets_table',2),('2020_02_07_094720_add_handle_id_in_electro_mechanical_patrol_table',2),('2020_02_11_153317_add_is_status_in_sensors_table',2),('2020_02_11_154230_add_task_id_in_fault_reports_table',2),('2020_02_11_154612_add_finish_time_in_fault_dispatches_table',2),('2020_02_11_154852_add_task_id_in_fault_handles_table',2),('2020_02_12_111428_add_task_id_in_fault_report_outsides_table',2),('2020_02_12_111610_add_task_id_in_fault_handle_outsides_table',2),('2020_02_12_171521_create_chicony_settings_table',2),('2020_02_19_142255_add_is_status_in_firms_table',2),('2020_02_21_153658_add_total_cost_in_purchase_table',2),('2020_02_21_155108_add_total_cost_in_purchase_item_table',2),('2020_02_24_201032_create_energy_settings_table',2),('2020_02_25_105446_create_chicony_park_log_table',2),('2020_02_25_151846_add_guest_name_in_chicony_park_log_table',2),('2020_03_04_210447_create_energy_categories_table',2),('2020_03_05_095548_create_energy_locations_table',2),('2020_03_05_112808_create_energy_sensors_table',2),('2020_03_18_161120_add_is_door_id_in_energy_sensors_table',2),('2020_04_07_135613_add_is_card_type_in_cards_table',2),('2020_04_24_160210_create_central_weather_settings_table',2),('2020_04_27_114721_create_energy_imports_table',2),('2020_04_29_160455_create_central_weather_logs_table',2),('2020_06_02_104016_add_is_business_in_mails_table',2),('2020_06_02_104841_add_is_business_in_fault_report_outsides_table',2),('2020_06_02_174641_create_permissions_table',2),('2020_06_08_102142_add_cover_img_in_votes_table',2),('2020_06_15_135059_create_transfer_log_table',2),('2020_07_03_113045_add_elec_mail_in_doorplates_table',2),('2020_07_03_114228_add_is_point_type_table',2),('2020_07_24_144215_create_planting_holidays_table',2),('2020_08_05_140955_add_orders_pre_days_in_plantings_table',2),('2020_08_12_144858_create_calendar_comprehensives_table',2),('2020_10_12_172404_create_setting_tables_table',2),('2020_10_12_172756_create_setting_columns_table',2),('2021_01_04_092755_create_recognition_logs_table',2),('2021_01_04_093903_create_recognition_setting_logs_table',2),('2021_02_22_164027_add_is_bank_code_in_doorplates_table',2),('2021_02_23_100604_create_accts_tabls',2),('2021_02_23_100646_create_summons_tabls',2),('2021_02_23_100956_create_costs_tabls',2),('2021_02_23_101033_create_expenses_tabls',2),('2021_02_23_101136_create_spaces_tabls',2),('2021_02_24_175848_add_amount_in_costs_table',2),('2021_02_24_175905_add_amount_in_expenses_table',2),('2021_02_25_111351_create_summarys_table',2),('2021_02_25_135006_add_is_car_clean_fee_in_doorplates_table',2),('2021_02_26_135824_create_payable_expenses_table',2),('2021_03_02_153624_change_summon_num_column_in_summons_table',2),('2021_03_05_132102_add_default_in_accts_table',2),('2021_03_05_154106_add_bankinfo_in_summons_table',2),('2021_03_08_102404_add_is_firm_id_in_payable_expenses_table',2),('2021_03_08_144455_add_cost_id_in_summons_table',2),('2021_03_12_160944_add_firm_id_in_expenses_table',2),('2021_03_25_133226_create_table_unrecognized',2),('2021_04_07_141241_create_energy_details_table',2),('2021_04_08_133101_create_sensor_runtimes_table',2),('2021_04_08_141657_add_is_issave_energy_sensors',2),('2021_04_08_142836_add_is_issave_sensors',2),('2021_04_15_153256_add_is_amount_table',2),('2021_04_29_175834_change_date_type_in_energy_details',2),('2021_05_17_101342_create_health_logs_table',2),('2021_05_19_113406_add_is_pay_mode_id_in_point_settings_table',2),('2021_05_19_130916_create_pay_to_points_table',2),('2021_06_02_101211_create_bike_logs_table',2),('2021_06_02_130650_create_bus_logs_table',2),('2021_06_02_153623_create_parking_logs_table',2),('2021_06_02_160902_create_water_logs_table',2),('2021_06_02_182858_create_working_logs_table',2),('2021_06_03_094400_create_action_api_logs_table',2),('2021_06_08_132437_change_is_receipt_table',2),('2021_06_10_151609_add_is_firm_energy_categories',2),('2021_06_23_165052_add_is_finance_account_in_users_table',2),('2021_06_23_173229_create_water_energy_table',2),('2021_06_23_173840_create_electricity_energy_table',2),('2021_06_23_174109_create_hot_pump_energy_table',2),('2021_06_23_174119_create_air_conditioning_energy_table',2),('2021_06_23_174902_create_air_conditioning_error_log',2),('2021_06_24_095439_create_dorm_tenants_table',2),('2021_06_24_100124_add_soga_id_in_access_doors_table',2),('2021_06_24_110934_create_dorm_ele_prices_table',2),('2021_06_25_111953_add_type_in_access_settings_table',2),('2021_06_28_115049_create_dormitory_electricity_table',2),('2021_06_29_100611_create_dorm_ele_mappings_table',2),('2021_06_29_140153_create_dorm_water_mappings_table',2),('2021_06_29_140312_create_dorm_btu_mappings_table',2),('2021_07_06_144709_add_is_s_number_in_users_table',2),('2021_07_07_170658_add_is_cost_in_dorm_tenants_table',2),('2021_07_07_175308_create_dorm_bed_logs_table',2),('2021_07_08_133618_create_dorm_bed_settings_table',2),('2021_07_09_132634_create_hotpump_facilities_table',2),('2021_07_12_173955_add_colomn_in_hotpump_facilities_table',2),('2021_07_13_155028_create_table_device_contrast_table',2),('2021_07_15_163610_add_soga_d_id_in_access_staffs_table',2),('2021_07_16_172259_add_is_costs_table',2),('2021_07_19_111010_add_colomn_in_assets_table',2),('2021_07_19_121829_add_colomn_in_category_table',2),('2021_07_19_122552_add_budget_year_in_general_category_table',2),('2021_07_22_160756_create_table_error_energies',2),('2021_07_29_115128_create_monthly_status_table',2),('2021_07_29_115637_change_acct_id_in_accts_table',2);

--
-- Table structure for table `monitor`
--

CREATE TABLE `monitor` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `monitor`
--


--
-- Table structure for table `monitor_icons`
--

CREATE TABLE `monitor_icons` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `icon_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `icon_category` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `monitor_icons`
--


--
-- Table structure for table `monthly_statuses`
--

CREATE TABLE `monthly_statuses` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `ym` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '做帳年月',
  `billing` date NOT NULL COMMENT '起始日',
  `closing` date NOT NULL COMMENT '結算日',
  `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '註記(0.開帳,1.關帳)',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `monthly_statuses`
--


--
-- Table structure for table `mooncard`
--

CREATE TABLE `mooncard` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `month` int NOT NULL,
  `cost` int NOT NULL,
  `discount_way` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `discount` double(8,2) NOT NULL,
  `main` tinyint NOT NULL,
  `follow` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `status` tinyint NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `mooncard`
--


--
-- Table structure for table `mooncard_log`
--

CREATE TABLE `mooncard_log` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `card_type` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
  `card_number` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `cost` int NOT NULL,
  `pay_date` date NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `mooncard_log`
--


--
-- Table structure for table `mooncard_user`
--

CREATE TABLE `mooncard_user` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `groupid` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `card_number` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `card_type` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
  `pay_date` date NOT NULL,
  `over_date` date NOT NULL DEFAULT '0000-00-00',
  `status` smallint unsigned NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `mooncard_user`
--


--
-- Table structure for table `mqtt_ba_alarm`
--

CREATE TABLE `mqtt_ba_alarm` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `sensor_records_id` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `Atime` datetime NOT NULL,
  `AlarmID` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `AlarmType` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
  `AlarmMsg` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `AlarmRank` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `AlarmDT` datetime NOT NULL,
  `Url` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `CID` varchar(8) COLLATE utf8_unicode_ci NOT NULL,
  `BAID` varchar(2) COLLATE utf8_unicode_ci NOT NULL,
  `FID` varchar(3) COLLATE utf8_unicode_ci NOT NULL,
  `HID` varchar(3) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `mqtt_ba_alarm`
--


--
-- Table structure for table `mqtt_ba_log`
--

CREATE TABLE `mqtt_ba_log` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `CID` varchar(8) COLLATE utf8_unicode_ci NOT NULL,
  `CName` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `BAID` varchar(2) COLLATE utf8_unicode_ci NOT NULL,
  `BAName` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `FID` varchar(3) COLLATE utf8_unicode_ci NOT NULL,
  `FName` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `HID` varchar(3) COLLATE utf8_unicode_ci NOT NULL,
  `HName` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `LGSSID` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `LGWSUrl` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `UpdNo` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `mqtt_ba_log`
--


--
-- Table structure for table `museum_sales`
--

CREATE TABLE `museum_sales` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `gift_store` int NOT NULL,
  `hall` int NOT NULL,
  `post_office` int NOT NULL,
  `visitor_center` int NOT NULL,
  `car_park` int NOT NULL,
  `voice` int NOT NULL,
  `create_by` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `museum_sales`
--


--
-- Table structure for table `news`
--

CREATE TABLE `news` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `author` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `column` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `content` text COLLATE utf8_unicode_ci,
  `cover_img` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `banner_img` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `banner_status` tinyint NOT NULL,
  `file` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `link` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `date_start` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `date_end` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `visitors` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `news`
--

INSERT INTO `news` VALUES (1,'消息發布測試-標題','系統開發者','社區公告','測試類','測試內文',NULL,NULL,0,'',NULL,'2021-08-11 11:25:44','2021-08-12 00:00:00',0,'2021-08-11 11:25:44','2021-08-11 11:25:44');

--
-- Table structure for table `news_columns`
--

CREATE TABLE `news_columns` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `news_columns`
--

INSERT INTO `news_columns` VALUES (1,'社區公告','2021-08-11 11:25:44','2021-08-11 11:25:44'),(2,'最新消息','2021-08-11 11:25:44','2021-08-11 11:25:44'),(3,'管委會訊息','2021-08-11 11:25:44','2021-08-11 11:25:44'),(4,'社區財報','2021-08-11 11:25:44','2021-08-11 11:25:44'),(5,'常見FAQ','2021-08-11 11:25:44','2021-08-11 11:25:44'),(6,'好康報報','2021-08-11 11:25:44','2021-08-11 11:25:44');

--
-- Table structure for table `news_logs`
--

CREATE TABLE `news_logs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `news_id` int NOT NULL,
  `login_from` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `news_logs`
--


--
-- Table structure for table `news_types`
--

CREATE TABLE `news_types` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `column_id` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `news_types`
--

INSERT INTO `news_types` VALUES (1,'政府類',1,'2021-08-11 11:25:44','2021-08-11 11:25:44'),(2,'公告類',1,'2021-08-11 11:25:44','2021-08-11 11:25:44'),(3,'設備類',1,'2021-08-11 11:25:44','2021-08-11 11:25:44'),(4,'環境類',1,'2021-08-11 11:25:44','2021-08-11 11:25:44');

--
-- Table structure for table `notices`
--

CREATE TABLE `notices` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `content` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `readed` tinyint(1) NOT NULL DEFAULT '0',
  `read_at` datetime DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `notices`
--


--
-- Table structure for table `orchestra_options`
--

CREATE TABLE `orchestra_options` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
  `value` longtext COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `orchestra_options_name_unique` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `orchestra_options`
--


--
-- Table structure for table `other_fees`
--

CREATE TABLE `other_fees` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `tenant_id` int NOT NULL,
  `isTax` int NOT NULL,
  `item_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `item_price` int NOT NULL,
  `year` int NOT NULL,
  `month` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `other_fees`
--


--
-- Table structure for table `parking_garages`
--

CREATE TABLE `parking_garages` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `class` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '車輛類型(car、moto)',
  `building` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `floor` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `location` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '車位編號',
  `groupid` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '門牌',
  `status` int NOT NULL COMMENT '0空車位、1有車',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `e_tag_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'e_tagID',
  `currently` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '目前停的車',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `parking_garages`
--


--
-- Table structure for table `parking_import`
--

CREATE TABLE `parking_import` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT '流水號',
  `class` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '車輛類型(car汽車、moto機車)',
  `success` int NOT NULL COMMENT '成功筆數',
  `fail` int NOT NULL COMMENT '失敗筆數',
  `title` varchar(50) COLLATE utf8_unicode_ci NOT NULL COMMENT '匯入說明',
  `file_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL COMMENT '檔案名稱',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `parking_import`
--


--
-- Table structure for table `parking_logs`
--

CREATE TABLE `parking_logs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '停車場名稱',
  `car_space` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '剩餘汽車車位',
  `moto_space` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '剩餘機車車位',
  `bus_space` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '剩餘大客車車位',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `parking_logs`
--


--
-- Table structure for table `parking_temporaries`
--

CREATE TABLE `parking_temporaries` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `card_no` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `class` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '車輛類型(car、moto)',
  `type` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '刷卡類型(etag、card)',
  `image_in` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '車牌辨識圖片檔名',
  `image_out` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '車牌辨識圖片檔名(出)',
  `enter_at` datetime NOT NULL COMMENT '進場時間',
  `leave_at` datetime NOT NULL COMMENT '離場時間',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `parking_temporaries`
--


--
-- Table structure for table `password_resets`
--

CREATE TABLE `password_resets` (
  `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  KEY `password_resets_email_index` (`email`),
  KEY `password_resets_token_index` (`token`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `password_resets`
--


--
-- Table structure for table `patrol_config`
--

CREATE TABLE `patrol_config` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `normal_mins` int NOT NULL,
  `normal_active` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
  `late_mins` int NOT NULL,
  `late_active` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
  `early_mins` int NOT NULL,
  `early_active` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
  `off_mins` int NOT NULL,
  `off_active` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
  `ng_user_mins` int NOT NULL,
  `ng_user_active` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
  `ng_location_active` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
  `ng_location_mins` int NOT NULL,
  `ng_time_active` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
  `modifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `api_token` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `patrol_config`
--


--
-- Table structure for table `patrol_event`
--

CREATE TABLE `patrol_event` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `event_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `event_code` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `sort` int NOT NULL,
  `modifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `patrol_event_event_code_index` (`event_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `patrol_event`
--


--
-- Table structure for table `patrol_format`
--

CREATE TABLE `patrol_format` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `card_no` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `event_code` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `modifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `patrol_format_card_no_index` (`card_no`),
  KEY `patrol_format_event_code_index` (`event_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `patrol_format`
--


--
-- Table structure for table `patrol_items`
--

CREATE TABLE `patrol_items` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `route_id` int NOT NULL,
  `patrol_time` time NOT NULL,
  `location_id` int NOT NULL,
  `duty` int NOT NULL,
  `modifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `patrol_items`
--


--
-- Table structure for table `patrol_location`
--

CREATE TABLE `patrol_location` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `location` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `location_code` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `sort` int NOT NULL,
  `modifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `patrol_location_card_no_index` (`location_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `patrol_location`
--


--
-- Table structure for table `patrol_log`
--

CREATE TABLE `patrol_log` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `patrol_time` datetime NOT NULL,
  `location_code` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `event_code` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `user_card_no` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `modifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `remark` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `error` tinyint NOT NULL,
  `status` int NOT NULL,
  `item_id` int NOT NULL,
  `route_id` int NOT NULL,
  `right_time` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `patrol_log_location_code_index` (`location_code`),
  KEY `patrol_log_event_code_index` (`event_code`),
  KEY `patrol_log_user_card_no_index` (`user_card_no`),
  KEY `patrol_log_item_id_index` (`item_id`),
  KEY `patrol_log_route_id_index` (`route_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `patrol_log`
--


--
-- Table structure for table `patrol_off_log`
--

CREATE TABLE `patrol_off_log` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `route_id` int NOT NULL,
  `modifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `remark` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `status` int NOT NULL,
  `off_time` datetime NOT NULL,
  `item_id` int NOT NULL,
  PRIMARY KEY (`id`),
  KEY `patrol_off_log_route_id_index` (`route_id`),
  KEY `patrol_off_log_item_id_index` (`item_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `patrol_off_log`
--


--
-- Table structure for table `patrol_route`
--

CREATE TABLE `patrol_route` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `item` int NOT NULL,
  `route_name` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `title` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `sat_inc` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
  `sun_inc` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
  `modifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `line_id` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `patrol_route_line_id_index` (`line_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `patrol_route`
--


--
-- Table structure for table `pay_to_points`
--

CREATE TABLE `pay_to_points` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `door_id` int NOT NULL COMMENT '門牌ID',
  `status` int NOT NULL COMMENT '狀態',
  `Ym` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '年月',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `pay_to_points`
--


--
-- Table structure for table `payable_expenses`
--

CREATE TABLE `payable_expenses` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `firm_id` int NOT NULL COMMENT '協力廠商ID',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '廠商名稱',
  `items` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '費用名目',
  `cost` int NOT NULL COMMENT '費用金額',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `payable_expenses`
--


--
-- Table structure for table `payment_btu_facilities`
--

CREATE TABLE `payment_btu_facilities` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `code` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `status` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `payment_btu_facilities`
--


--
-- Table structure for table `payment_datas`
--

CREATE TABLE `payment_datas` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `month` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `facility_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `tag_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `checked` int NOT NULL,
  `peak` double(8,2) NOT NULL,
  `off_peak` double(8,2) NOT NULL,
  `semipeak` double(8,2) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `payment_datas`
--


--
-- Table structure for table `payment_facilities`
--

CREATE TABLE `payment_facilities` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `is_btu` int NOT NULL,
  `rate` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `each_facility` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `mark` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `time` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `method` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `class` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `electric_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `capacity` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `facility_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `facility_num` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `unit` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `digits` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `brand` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `exist` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `deadline` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `num` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `converter` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `converter_num` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `converter_deadline` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `code` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `floor` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `object_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'object_id',
  `remark1` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `remark2` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `remark3` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `remark4` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `remark5` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `status` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `payment_facilities`
--


--
-- Table structure for table `payment_imports`
--

CREATE TABLE `payment_imports` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `success` int NOT NULL,
  `fail` int NOT NULL,
  `file_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `checked` int NOT NULL,
  `is_import` tinyint NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `payment_imports`
--


--
-- Table structure for table `payment_logs`
--

CREATE TABLE `payment_logs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `table_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `action` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `num` int NOT NULL,
  `content` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `operator` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `payment_logs`
--


--
-- Table structure for table `payment_notices`
--

CREATE TABLE `payment_notices` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `t_id` int NOT NULL,
  `year` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `month` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `water_basic` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `water_public_fee` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `water_flow` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `water_protectfee` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `water_sewerfee` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `water_tax` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `electricity_basic` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `electricity_flow` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `electricity_tax` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `electricity_public` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `floor_public` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `payment_notices`
--


--
-- Table structure for table `payment_parking_fees`
--

CREATE TABLE `payment_parking_fees` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `t_id` int NOT NULL,
  `car_parking_number` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `car_amount` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `car_unit_price` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `car_fee` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `scooter_parking_number` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `scooter_amount` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `scooter_unit_price` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `scooter_cleaning_fee` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `remind` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `set_date` date NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `payment_parking_fees`
--


--
-- Table structure for table `payment_peak_days`
--

CREATE TABLE `payment_peak_days` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `starting_year` int NOT NULL,
  `starting_month` int NOT NULL,
  `starting_day` int NOT NULL,
  `starting_date` date NOT NULL,
  `ending_year` int NOT NULL,
  `ending_month` int NOT NULL,
  `ending_day` int NOT NULL,
  `ending_date` date NOT NULL,
  `remark` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `payment_peak_days`
--


--
-- Table structure for table `payment_tenant_settings`
--

CREATE TABLE `payment_tenant_settings` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `business_tax` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `payment_title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `payment_tel` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `payment_address` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `payment_tax_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `payment_info` text COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `payment_tenant_settings`
--

INSERT INTO `payment_tenant_settings` VALUES (1,'5','南山廣場公寓大廈管理維護股份有限公司','(02)27238009','台北市信義區松仁路100號','52563206','','0000-00-00 00:00:00','0000-00-00 00:00:00');

--
-- Table structure for table `payment_tenants`
--

CREATE TABLE `payment_tenants` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `management_number` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `building` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `floor` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `nppm_number` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `ns_number` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `address` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `tenant_number` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `tenant_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `contract_area` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `unit_price` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `security` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `public_unit` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `area_unit` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `contract_date_start` date NOT NULL,
  `contract_date_end` date NOT NULL,
  `reserve` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `request_account` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `bank_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `branch` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `bank_account` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `other` text COLLATE utf8_unicode_ci NOT NULL,
  `meter_start` date NOT NULL,
  `meter_end` date NOT NULL,
  `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `extra_pay` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '額外電費',
  `month_start` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '生效月',
  `year_start` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '生效年',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `payment_tenants`
--


--
-- Table structure for table `pccs_buildings`
--

CREATE TABLE `pccs_buildings` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `on_floor` int NOT NULL,
  `under_floor` int NOT NULL,
  `status` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `pccs_buildings`
--


--
-- Table structure for table `pccs_floors`
--

CREATE TABLE `pccs_floors` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `bid` int NOT NULL,
  `floor` int NOT NULL,
  `location` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `status` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `pccs_floors`
--


--
-- Table structure for table `pccs_graphs`
--

CREATE TABLE `pccs_graphs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `e_id` int NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `left` int NOT NULL,
  `top` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `pccs_graphs`
--


--
-- Table structure for table `permissions`
--

CREATE TABLE `permissions` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL COMMENT '帳號ID',
  `key` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '開關名稱',
  `value` int NOT NULL COMMENT '0顯示,1隱藏,2唯讀',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `permissions`
--


--
-- Table structure for table `persistences`
--

CREATE TABLE `persistences` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int unsigned NOT NULL,
  `code` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  UNIQUE KEY `persistences_code_unique` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `persistences`
--

INSERT INTO `persistences` VALUES (1,1,'QfDck2nnNQztEEov2tFCM8mdDXC1QEbK','2021-08-11 11:27:25','2021-08-11 11:27:25'),(3,22,'zfyFGYYfjgA8zakSsgCwpbY3sNa6MQjd','2021-09-11 18:18:45','2021-09-11 18:18:45'),(4,1,'3CSYbEW2nWCqaBgALXcixjtDLYclDiZm','2021-09-13 09:54:38','2021-09-13 09:54:38'),(7,23,'8b2nZOphbqRXBimmEXoibgeMboJaMc9c','2021-09-13 10:20:36','2021-09-13 10:20:36'),(8,22,'wk587oYAYECsXWxMxiHJJ1gpcRp6gouw','2021-09-13 13:01:54','2021-09-13 13:01:54');

--
-- Table structure for table `phone_lists`
--

CREATE TABLE `phone_lists` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `phone_number` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '手機號碼',
  `phone_contact` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '聯絡人',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `phone_lists`
--


--
-- Table structure for table `picklist`
--

CREATE TABLE `picklist` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `type` int NOT NULL,
  `no` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `function` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `consuming` int NOT NULL,
  `consuming_time` datetime NOT NULL,
  `remark` text COLLATE utf8_unicode_ci NOT NULL,
  `fault_type` int NOT NULL,
  `fault_id` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `picklist_function_index` (`function`),
  KEY `picklist_consuming_index` (`consuming`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `picklist`
--


--
-- Table structure for table `picklist_item`
--

CREATE TABLE `picklist_item` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `function` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `number` int NOT NULL,
  `target_id` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `issued_number` int NOT NULL,
  `picklist_id` int NOT NULL,
  `explain` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `picklist_function_index` (`function`),
  KEY `picklist_target_id_index` (`target_id`),
  KEY `picklist_picklist_id_index` (`picklist_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `picklist_item`
--


--
-- Table structure for table `planting_holidays`
--

CREATE TABLE `planting_holidays` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `info` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type` int NOT NULL,
  `datetime` date NOT NULL,
  `status` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `planting_holidays`
--


--
-- Table structure for table `planting_infos`
--

CREATE TABLE `planting_infos` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '標題',
  `content` text COLLATE utf8_unicode_ci NOT NULL COMMENT '內容',
  `status` int NOT NULL COMMENT '狀態',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `planting_infos`
--

INSERT INTO `planting_infos` VALUES (1,'尚未建立','',0,'2021-08-11 11:26:48','0000-00-00 00:00:00');

--
-- Table structure for table `planting_logs`
--

CREATE TABLE `planting_logs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `planting_id` int NOT NULL COMMENT '植栽項目ID',
  `user_id` int NOT NULL COMMENT '操作者ID',
  `action` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '行為',
  `content` text COLLATE utf8_unicode_ci NOT NULL COMMENT '內容',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `planting_logs`
--


--
-- Table structure for table `planting_orders`
--

CREATE TABLE `planting_orders` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `planting_id` int NOT NULL COMMENT '植栽項目ID',
  `date` date NOT NULL COMMENT '預約日期',
  `time_section` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '預約時段區間',
  `user_id` int NOT NULL COMMENT '預約人ID',
  `door_id` int NOT NULL COMMENT '門牌ID',
  `status` int NOT NULL COMMENT '狀態',
  `source` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '訂單來源',
  `memo` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '備註',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `planting_orders`
--


--
-- Table structure for table `plantings`
--

CREATE TABLE `plantings` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '名稱',
  `status` int NOT NULL COMMENT '狀態',
  `time_section` text COLLATE utf8_unicode_ci NOT NULL COMMENT '日期時段區間',
  `each_section` text COLLATE utf8_unicode_ci NOT NULL COMMENT '時段區間',
  `orders_pre_days` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '提前預約天數',
  `info` text COLLATE utf8_unicode_ci NOT NULL COMMENT '使用條款',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `plantings`
--


--
-- Table structure for table `point_allgives`
--

CREATE TABLE `point_allgives` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `point_allgives`
--


--
-- Table structure for table `point_costs`
--

CREATE TABLE `point_costs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `income_id` int NOT NULL,
  `user_id` int NOT NULL,
  `point` int NOT NULL,
  `status` int NOT NULL,
  `memo` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `order_id` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `point_costs`
--


--
-- Table structure for table `point_incomes`
--

CREATE TABLE `point_incomes` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `point` int NOT NULL,
  `status` int NOT NULL,
  `user_id` int NOT NULL,
  `source_id` int NOT NULL,
  `allgive_id` int NOT NULL,
  `time_out` datetime NOT NULL,
  `memo` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `point_incomes`
--


--
-- Table structure for table `point_settings`
--

CREATE TABLE `point_settings` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `allgive_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `point_fix` int NOT NULL,
  `point_by_manage` int NOT NULL,
  `manage` int NOT NULL,
  `point_by_floor` int NOT NULL,
  `floor` int NOT NULL,
  `is_give_other` int NOT NULL,
  `ratio_point` int NOT NULL,
  `ratio_cash` int NOT NULL,
  `ratio_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `pay_mode` int NOT NULL COMMENT '發點規則',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `point_settings`
--

INSERT INTO `point_settings` VALUES (1,'fix',100,0,0,0,0,0,1,1,'round',0,'2021-08-11 11:25:46','2021-08-11 11:25:46');

--
-- Table structure for table `purchase`
--

CREATE TABLE `purchase` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `no` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `purchase_date` date NOT NULL,
  `type` int NOT NULL,
  `function` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `attn` int NOT NULL,
  `total_cost` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '進貨總額_群光',
  `remark` text COLLATE utf8_unicode_ci NOT NULL,
  `f_id` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `purchase_attn_index` (`attn`),
  KEY `purchase_f_id_index` (`f_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `purchase`
--


--
-- Table structure for table `purchase_item`
--

CREATE TABLE `purchase_item` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `function` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `target_id` int NOT NULL,
  `number` int NOT NULL,
  `total_cost` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '進貨總額_群光',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `purchase_id` int NOT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_target_id_index` (`target_id`),
  KEY `purchase_purchase_id_index` (`purchase_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `purchase_item`
--


--
-- Table structure for table `purifying_config`
--

CREATE TABLE `purifying_config` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `normal_mins` int NOT NULL,
  `normal_active` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
  `late_mins` int NOT NULL,
  `late_active` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
  `early_mins` int NOT NULL,
  `early_active` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
  `off_mins` int NOT NULL,
  `off_active` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
  `ng_user_mins` int NOT NULL,
  `ng_user_active` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
  `ng_location_active` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
  `ng_location_mins` int NOT NULL,
  `ng_time_active` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
  `modifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `api_token` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `purifying_config`
--


--
-- Table structure for table `purifying_event`
--

CREATE TABLE `purifying_event` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `event_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `event_code` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `sort` int NOT NULL,
  `modifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `purifying_event_event_code_index` (`event_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `purifying_event`
--


--
-- Table structure for table `purifying_format`
--

CREATE TABLE `purifying_format` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `card_no` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `event_code` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `modifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `purifying_format_card_no_index` (`card_no`),
  KEY `purifying_format_event_code_index` (`event_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `purifying_format`
--


--
-- Table structure for table `purifying_items`
--

CREATE TABLE `purifying_items` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `route_id` int NOT NULL,
  `purifying_time` time NOT NULL,
  `location_id` int NOT NULL,
  `duty` int NOT NULL,
  `modifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `purifying_items`
--


--
-- Table structure for table `purifying_location`
--

CREATE TABLE `purifying_location` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `location` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `location_code` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `sort` int NOT NULL,
  `modifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `purifying_location_location_code_index` (`location_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `purifying_location`
--


--
-- Table structure for table `purifying_log`
--

CREATE TABLE `purifying_log` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `purifying_time` datetime NOT NULL,
  `location_code` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `event_code` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `user_card_no` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `modifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `remark` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `error` tinyint NOT NULL,
  `status` int NOT NULL,
  `item_id` int NOT NULL,
  `route_id` int NOT NULL,
  `right_time` datetime NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `purifying_log_location_code_index` (`location_code`),
  KEY `purifying_log_event_code_index` (`event_code`),
  KEY `purifying_log_user_card_no_index` (`user_card_no`),
  KEY `purifying_log_item_id_index` (`item_id`),
  KEY `purifying_log_route_id_index` (`route_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `purifying_log`
--


--
-- Table structure for table `purifying_off_log`
--

CREATE TABLE `purifying_off_log` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `route_id` int NOT NULL,
  `modifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `remark` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `status` int NOT NULL,
  `off_time` datetime NOT NULL,
  `item_id` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `purifying_off_log_route_id_index` (`route_id`),
  KEY `purifying_off_log_item_id_index` (`item_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `purifying_off_log`
--


--
-- Table structure for table `purifying_route`
--

CREATE TABLE `purifying_route` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `item` int NOT NULL,
  `route_name` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `title` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `sat_inc` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
  `sun_inc` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
  `modifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `line_id` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `purifying_route_line_id_index` (`line_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `purifying_route`
--


--
-- Table structure for table `push_log_manages`
--

CREATE TABLE `push_log_manages` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `content` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `num` int NOT NULL,
  `result` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `push_log_manages`
--


--
-- Table structure for table `push_logs`
--

CREATE TABLE `push_logs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `content` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `num` int NOT NULL,
  `result` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `user_id` int NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `push_logs`
--


--
-- Table structure for table `push_manages`
--

CREATE TABLE `push_manages` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `time_push` datetime DEFAULT NULL,
  `device` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `number` int DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `push_manages`
--


--
-- Table structure for table `push_tip_manages`
--

CREATE TABLE `push_tip_manages` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `calendar` datetime NOT NULL,
  `notice` datetime NOT NULL,
  `firm` datetime NOT NULL,
  `store` datetime NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `push_tip_manages`
--


--
-- Table structure for table `push_tips`
--

CREATE TABLE `push_tips` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `announcement_1` datetime NOT NULL,
  `announcement_2` datetime NOT NULL,
  `announcement_3` datetime NOT NULL,
  `announcement_4` datetime NOT NULL,
  `announcement_5` datetime NOT NULL,
  `announcement_6` datetime NOT NULL,
  `exchange_1` datetime NOT NULL,
  `exchange_2` datetime NOT NULL,
  `exchange_3` datetime NOT NULL,
  `exchange_4` datetime NOT NULL,
  `email` datetime NOT NULL,
  `facility` datetime NOT NULL,
  `album` datetime NOT NULL,
  `gas` datetime NOT NULL,
  `service_1` datetime NOT NULL,
  `service_2` datetime NOT NULL,
  `calendar` datetime NOT NULL,
  `lost_found` datetime NOT NULL,
  `fault` datetime NOT NULL,
  `notice` datetime NOT NULL,
  `attractions` datetime NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `fault_outside` datetime NOT NULL,
  `document` datetime NOT NULL,
  `store` datetime NOT NULL,
  `sale` datetime NOT NULL,
  `firm` datetime NOT NULL,
  `guest` datetime NOT NULL,
  `keeper` datetime NOT NULL,
  `matter_assigned` datetime NOT NULL,
  `aboutus_1` datetime NOT NULL,
  `aboutus_2` datetime NOT NULL,
  `aboutus_3` datetime NOT NULL,
  `aboutus_4` datetime NOT NULL,
  `wenlin_1` datetime NOT NULL,
  `wenlin_2` datetime NOT NULL,
  `lifeinfo` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `push_tips`
--


--
-- Table structure for table `pushes`
--

CREATE TABLE `pushes` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `time_push` datetime DEFAULT NULL,
  `icon_refresh_at` datetime NOT NULL,
  `device` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `model` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `version` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `number` int DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `pushes`
--


--
-- Table structure for table `questionnaires`
--

CREATE TABLE `questionnaires` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `description` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `class` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `questionnaires`
--

INSERT INTO `questionnaires` VALUES (1,'對於修繕人員的服務態度','choose','fault','0000-00-00 00:00:00','0000-00-00 00:00:00'),(2,'對於修繕人員的用語措辭','choose','fault','0000-00-00 00:00:00','0000-00-00 00:00:00'),(3,'對於修繕人員的技術','choose','fault','0000-00-00 00:00:00','0000-00-00 00:00:00'),(4,'對於修繕人員的說明解說','choose','fault','0000-00-00 00:00:00','0000-00-00 00:00:00'),(5,'對於本次修繕的環境整潔','choose','fault','0000-00-00 00:00:00','0000-00-00 00:00:00'),(6,'對於本次修繕的完工結果','choose','fault','0000-00-00 00:00:00','0000-00-00 00:00:00'),(7,'主動詢問是否需要其他協助','choose','fault','0000-00-00 00:00:00','0000-00-00 00:00:00'),(8,'對於修繕的費用是否合理','choose','fault','0000-00-00 00:00:00','0000-00-00 00:00:00'),(9,'對於本次報修的處理速度','choose','fault','0000-00-00 00:00:00','0000-00-00 00:00:00'),(10,'對於本次服務的整體滿意度','choose','fault','0000-00-00 00:00:00','0000-00-00 00:00:00');

--
-- Table structure for table `questionnaires_fault_outsides`
--

CREATE TABLE `questionnaires_fault_outsides` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `fault_handles_outside_id` int NOT NULL,
  `ans1` tinyint NOT NULL,
  `ans2` tinyint NOT NULL,
  `ans3` tinyint NOT NULL,
  `ans4` tinyint NOT NULL,
  `ans5` tinyint NOT NULL,
  `ans6` tinyint NOT NULL,
  `ans7` tinyint NOT NULL,
  `ans8` tinyint NOT NULL,
  `ans9` tinyint NOT NULL,
  `ans10` tinyint NOT NULL,
  `satisfaction` tinyint NOT NULL,
  `message` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `questionnaires_fault_outsides`
--


--
-- Table structure for table `questionnaires_faults`
--

CREATE TABLE `questionnaires_faults` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `fault_handles_id` int NOT NULL,
  `ans1` tinyint NOT NULL,
  `ans2` tinyint NOT NULL,
  `ans3` tinyint NOT NULL,
  `ans4` tinyint NOT NULL,
  `ans5` tinyint NOT NULL,
  `ans6` tinyint NOT NULL,
  `ans7` tinyint NOT NULL,
  `ans8` tinyint NOT NULL,
  `ans9` tinyint NOT NULL,
  `ans10` tinyint NOT NULL,
  `satisfaction` tinyint NOT NULL,
  `message` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `questionnaires_faults`
--


--
-- Table structure for table `recognition_logs`
--

CREATE TABLE `recognition_logs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `command_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '流水ID',
  `user_code` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '身分代碼',
  `event_date` datetime NOT NULL COMMENT '發生時間',
  `img` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '圖片檔名',
  `mode` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '模式',
  `result` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '辨識結果',
  `temperature` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '體溫',
  `mask` int NOT NULL COMMENT '是否戴口罩',
  `reset` int NOT NULL COMMENT '重傳資料',
  `number` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '卡號',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `recognition_logs`
--


--
-- Table structure for table `recognition_setting_logs`
--

CREATE TABLE `recognition_setting_logs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL COMMENT '帳號對象',
  `api_mode` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'API行為',
  `action` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '行為',
  `mode` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '模式',
  `datetime_start` datetime NOT NULL COMMENT '有效時間起',
  `datetime_end` datetime NOT NULL COMMENT '有效時間訖',
  `msg` text COLLATE utf8_unicode_ci NOT NULL COMMENT '訊息內容',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `recognition_setting_logs`
--


--
-- Table structure for table `record_lists`
--

CREATE TABLE `record_lists` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `record_id` int NOT NULL,
  `user_id` int NOT NULL,
  `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `record_lists`
--


--
-- Table structure for table `records`
--

CREATE TABLE `records` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `time_start` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `time_end` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` tinyint(1) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `records`
--


--
-- Table structure for table `recruits`
--

CREATE TABLE `recruits` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `publisher` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `class` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `num_of_times` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `price_announce` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `date_bid` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `contact` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `contact_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `contact_phone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `contact_addr` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `location` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `only_announced` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `qualification` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `doc_recive` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `time_open` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `time_deadline` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `access_method` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `file` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cover_img` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `content` text COLLATE utf8_unicode_ci,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `recruits`
--


--
-- Table structure for table `reminders`
--

CREATE TABLE `reminders` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int unsigned NOT NULL,
  `code` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `completed` tinyint(1) NOT NULL DEFAULT '0',
  `completed_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `reminders`
--


--
-- Table structure for table `rentsales`
--

CREATE TABLE `rentsales` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `fee` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `spawn` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `house_pattern` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `house_use` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `house_footage` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `house_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `house_floor` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `contact_1` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `contact_2` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `contact_email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `contact_phone` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `contact_tel` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `manage_method` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `parking_lot` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `community` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `toward` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `short_rent` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `can_cook` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `require_sexual` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `require_position` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `can_pet` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `require_host` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `time_movein` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `address` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `life_function` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `offer_facility` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `offer_furniture` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `building_mark` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `location` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `cover_img` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `file` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `safe_note` text COLLATE utf8_unicode_ci NOT NULL,
  `content` text COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `image1` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image2` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image3` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image4` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image5` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `rentsales`
--


--
-- Table structure for table `repair_lists`
--

CREATE TABLE `repair_lists` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `repair_id` int NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `rfid` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `repair_lists`
--


--
-- Table structure for table `repair_outlists`
--

CREATE TABLE `repair_outlists` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `repair_id` int NOT NULL,
  `username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `get_in_item` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `get_out_item` text COLLATE utf8_unicode_ci NOT NULL,
  `info` text COLLATE utf8_unicode_ci NOT NULL,
  `date` datetime NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `repair_outlists`
--


--
-- Table structure for table `repair_settings`
--

CREATE TABLE `repair_settings` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `type` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `content` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `repair_settings`
--

INSERT INTO `repair_settings` VALUES (1,'repair',''),(2,'inside',''),(3,'outside','');

--
-- Table structure for table `repairs`
--

CREATE TABLE `repairs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `status` int NOT NULL,
  `work_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `work_place` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `work_com` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `contact` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `contact_phone` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `work_person` int NOT NULL,
  `appointment_start` datetime NOT NULL,
  `appointment_end` datetime NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `costs` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `repairs`
--


--
-- Table structure for table `role_users`
--

CREATE TABLE `role_users` (
  `user_id` int unsigned NOT NULL,
  `role_id` int unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`user_id`,`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `role_users`
--

INSERT INTO `role_users` VALUES (1,2,'2021-08-11 11:25:44','2021-08-11 11:25:44'),(22,2,'2021-09-11 18:15:39','2021-09-11 18:15:39'),(23,2,'2021-09-11 18:46:54','2021-09-11 18:46:54'),(24,2,'2021-09-11 18:47:35','2021-09-11 18:47:35'),(25,1,'2021-09-11 18:56:13','2021-09-11 18:56:13'),(26,1,'2021-09-11 18:56:13','2021-09-11 18:56:13'),(27,1,'2021-09-11 18:56:13','2021-09-11 18:56:13'),(28,1,'2021-09-11 18:56:13','2021-09-11 18:56:13'),(29,1,'2021-09-11 18:56:13','2021-09-11 18:56:13'),(30,1,'2021-09-11 18:56:13','2021-09-11 18:56:13'),(31,1,'2021-09-11 18:56:13','2021-09-11 18:56:13'),(32,1,'2021-09-11 18:56:13','2021-09-11 18:56:13'),(33,1,'2021-09-11 18:56:13','2021-09-11 18:56:13'),(34,1,'2021-09-11 18:56:14','2021-09-11 18:56:14'),(35,1,'2021-09-11 18:56:14','2021-09-11 18:56:14'),(36,1,'2021-09-11 18:56:14','2021-09-11 18:56:14'),(37,1,'2021-09-11 18:56:14','2021-09-11 18:56:14'),(38,1,'2021-09-11 18:56:14','2021-09-11 18:56:14'),(39,1,'2021-09-11 18:56:14','2021-09-11 18:56:14'),(40,1,'2021-09-11 18:56:14','2021-09-11 18:56:14'),(41,1,'2021-09-11 18:56:14','2021-09-11 18:56:14'),(42,1,'2021-09-11 18:56:14','2021-09-11 18:56:14'),(43,1,'2021-09-11 18:56:14','2021-09-11 18:56:14'),(44,1,'2021-09-11 18:56:14','2021-09-11 18:56:14'),(45,1,'2021-09-11 18:56:14','2021-09-11 18:56:14'),(46,1,'2021-09-11 18:56:14','2021-09-11 18:56:14'),(47,1,'2021-09-11 18:56:14','2021-09-11 18:56:14'),(48,1,'2021-09-11 18:56:14','2021-09-11 18:56:14'),(49,1,'2021-09-11 18:56:14','2021-09-11 18:56:14'),(50,1,'2021-09-11 18:56:15','2021-09-11 18:56:15'),(51,1,'2021-09-11 18:56:15','2021-09-11 18:56:15'),(52,1,'2021-09-11 18:56:15','2021-09-11 18:56:15'),(53,1,'2021-09-11 18:56:15','2021-09-11 18:56:15'),(54,1,'2021-09-11 18:56:15','2021-09-11 18:56:15'),(55,1,'2021-09-11 18:56:15','2021-09-11 18:56:15'),(56,1,'2021-09-11 18:56:15','2021-09-11 18:56:15'),(57,1,'2021-09-11 18:56:15','2021-09-11 18:56:15'),(58,1,'2021-09-11 18:56:15','2021-09-11 18:56:15'),(59,1,'2021-09-11 18:56:15','2021-09-11 18:56:15'),(60,1,'2021-09-11 18:56:15','2021-09-11 18:56:15'),(61,1,'2021-09-11 18:56:15','2021-09-11 18:56:15'),(62,1,'2021-09-11 18:56:15','2021-09-11 18:56:15'),(63,1,'2021-09-11 18:56:15','2021-09-11 18:56:15'),(64,1,'2021-09-11 18:56:15','2021-09-11 18:56:15'),(65,1,'2021-09-11 18:56:15','2021-09-11 18:56:15'),(66,1,'2021-09-11 18:56:15','2021-09-11 18:56:15'),(67,1,'2021-09-11 18:56:16','2021-09-11 18:56:16'),(68,1,'2021-09-11 18:56:16','2021-09-11 18:56:16'),(69,1,'2021-09-11 18:56:16','2021-09-11 18:56:16'),(70,1,'2021-09-11 18:56:16','2021-09-11 18:56:16'),(71,1,'2021-09-11 18:56:16','2021-09-11 18:56:16'),(72,1,'2021-09-11 18:56:16','2021-09-11 18:56:16'),(73,1,'2021-09-11 18:56:16','2021-09-11 18:56:16'),(74,1,'2021-09-11 18:56:16','2021-09-11 18:56:16'),(75,1,'2021-09-11 18:56:16','2021-09-11 18:56:16'),(76,1,'2021-09-11 18:56:16','2021-09-11 18:56:16'),(77,1,'2021-09-11 18:56:16','2021-09-11 18:56:16'),(78,1,'2021-09-11 18:56:16','2021-09-11 18:56:16'),(79,1,'2021-09-11 18:56:16','2021-09-11 18:56:16'),(80,1,'2021-09-11 18:56:16','2021-09-11 18:56:16'),(81,1,'2021-09-11 18:56:16','2021-09-11 18:56:16'),(82,1,'2021-09-11 18:56:16','2021-09-11 18:56:16'),(83,1,'2021-09-11 18:56:16','2021-09-11 18:56:16'),(84,1,'2021-09-11 18:56:17','2021-09-11 18:56:17'),(85,1,'2021-09-11 18:56:17','2021-09-11 18:56:17'),(86,1,'2021-09-11 18:56:17','2021-09-11 18:56:17'),(87,1,'2021-09-11 18:56:17','2021-09-11 18:56:17'),(88,1,'2021-09-11 18:56:17','2021-09-11 18:56:17'),(89,1,'2021-09-11 18:56:17','2021-09-11 18:56:17'),(90,1,'2021-09-11 18:56:17','2021-09-11 18:56:17'),(91,1,'2021-09-11 18:56:17','2021-09-11 18:56:17'),(92,1,'2021-09-11 18:56:17','2021-09-11 18:56:17'),(93,1,'2021-09-11 18:56:17','2021-09-11 18:56:17'),(94,1,'2021-09-11 18:56:17','2021-09-11 18:56:17'),(95,1,'2021-09-11 18:56:17','2021-09-11 18:56:17'),(96,1,'2021-09-11 18:56:17','2021-09-11 18:56:17'),(97,1,'2021-09-11 18:56:17','2021-09-11 18:56:17'),(98,1,'2021-09-11 18:56:17','2021-09-11 18:56:17'),(99,1,'2021-09-11 18:56:17','2021-09-11 18:56:17'),(100,1,'2021-09-11 18:56:18','2021-09-11 18:56:18'),(101,1,'2021-09-11 18:56:18','2021-09-11 18:56:18'),(102,1,'2021-09-11 18:56:18','2021-09-11 18:56:18'),(103,1,'2021-09-11 18:56:18','2021-09-11 18:56:18'),(104,1,'2021-09-11 18:56:18','2021-09-11 18:56:18'),(105,1,'2021-09-11 18:56:18','2021-09-11 18:56:18'),(106,1,'2021-09-11 18:56:18','2021-09-11 18:56:18'),(107,1,'2021-09-11 18:56:18','2021-09-11 18:56:18'),(108,1,'2021-09-11 18:56:18','2021-09-11 18:56:18'),(109,1,'2021-09-11 18:56:18','2021-09-11 18:56:18'),(110,1,'2021-09-11 18:56:18','2021-09-11 18:56:18'),(111,1,'2021-09-11 19:08:01','2021-09-11 19:08:01');

--
-- Table structure for table `roles`
--

CREATE TABLE `roles` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `slug` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `permissions` text COLLATE utf8_unicode_ci,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  UNIQUE KEY `roles_slug_unique` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `roles`
--

INSERT INTO `roles` VALUES (1,'user','User',NULL,'2021-08-11 11:25:44','2021-08-11 11:25:44'),(2,'admin','Admin',NULL,'2021-08-11 11:25:44','2021-08-11 11:25:44');

--
-- Table structure for table `room_temperatures`
--

CREATE TABLE `room_temperatures` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '設備名稱',
  `code` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `object_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'object_id',
  `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '狀態',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `room_temperatures`
--


--
-- Table structure for table `sales`
--

CREATE TABLE `sales` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `cover_img` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `store_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sale` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `location` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bus_area` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `time_start` datetime DEFAULT NULL,
  `time_end` datetime DEFAULT NULL,
  `web_map` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tel` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `info` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `opening` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `web` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `goods` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tag` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `map` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `file` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `safe_note` text COLLATE utf8_unicode_ci,
  `content` text COLLATE utf8_unicode_ci,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `image1` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image2` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image3` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image4` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image5` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `sales`
--


--
-- Table structure for table `secondhands`
--

CREATE TABLE `secondhands` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `price` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `product_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `product_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `contact` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `contact_email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `contact_phone` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `contact_tel` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `get_address` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `get_time` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `get_method` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `location` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `file` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `cover_img` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `safe_note` text COLLATE utf8_unicode_ci NOT NULL,
  `content` text COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `image1` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image2` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image3` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image4` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image5` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `secondhands`
--


--
-- Table structure for table `sensor_api_config`
--

CREATE TABLE `sensor_api_config` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `type` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  UNIQUE KEY `sensor_api_config_type_unique` (`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `sensor_api_config`
--


--
-- Table structure for table `sensor_category`
--

CREATE TABLE `sensor_category` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '分類名稱',
  `image` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'PCCS圖片路徑(正常)',
  `error_image` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'PCCS圖片路徑(異常)',
  `level` tinyint DEFAULT NULL,
  `digital_image` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '多媒體跳圖圖片',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `sensor_category`
--

INSERT INTO `sensor_category` VALUES (1,'水',NULL,NULL,NULL,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00'),(2,'空調',NULL,NULL,NULL,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00'),(3,'照明',NULL,NULL,NULL,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00'),(4,'動力',NULL,NULL,NULL,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00'),(5,'氣',NULL,NULL,NULL,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00'),(6,'熱',NULL,NULL,NULL,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00'),(7,'油',NULL,NULL,NULL,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00');

--
-- Table structure for table `sensor_faults`
--

CREATE TABLE `sensor_faults` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `ba_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `wish` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '期望的解決方法',
  `limit` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '時數限制',
  `number` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '第幾次達標',
  `type_floor` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '樓層',
  `type_location` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '地點',
  `type_class` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '分類',
  `type_situation` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '狀況',
  `handler` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '經手人',
  `start_date` date NOT NULL COMMENT '開始日期',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `sensor_faults`
--


--
-- Table structure for table `sensor_para_config`
--

CREATE TABLE `sensor_para_config` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `para_no` int NOT NULL,
  `text` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `represent` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  UNIQUE KEY `sensor_para_config_para_no_unique` (`para_no`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `sensor_para_config`
--


--
-- Table structure for table `sensor_records`
--

CREATE TABLE `sensor_records` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `tag` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `value` double(8,2) NOT NULL,
  `trigger_time` datetime NOT NULL,
  `error` tinyint NOT NULL,
  `para1` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `para2` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `para3` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `para4` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `para5` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `para6` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `para7` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `para8` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `para9` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `para10` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `status` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `sensor_records_tag_index` (`tag`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `sensor_records`
--


--
-- Table structure for table `sensor_runtimes`
--

CREATE TABLE `sensor_runtimes` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `tag` varchar(50) COLLATE utf8_unicode_ci NOT NULL COMMENT '設備名稱',
  `date` varchar(6) COLLATE utf8_unicode_ci NOT NULL COMMENT '年月',
  `time` int NOT NULL DEFAULT '0' COMMENT '運轉時數(小時)',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `sensor_runtimes`
--


--
-- Table structure for table `sensors`
--

CREATE TABLE `sensors` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `tag` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `bind_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '綁定的裝置類別',
  `bind_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '綁定的裝置id',
  `monitor_type` tinyint NOT NULL,
  `attrtype` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
  `alarm_rank` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `sensor_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `location` int NOT NULL,
  `category` int NOT NULL,
  `status` int NOT NULL COMMENT '0為已建立1為未建立',
  `upper_limit` double(8,2) NOT NULL,
  `lower_limit` double(8,2) NOT NULL,
  `major_monitor` tinyint NOT NULL,
  `unit` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `issave` int NOT NULL DEFAULT '0' COMMENT '是否記錄運轉時間 0:不記錄 1:記錄',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `xls_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `disable` tinyint NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `sensors_tag_unique` (`tag`),
  KEY `sensors_major_monitor_index` (`major_monitor`),
  KEY `sensors_location_index` (`location`),
  KEY `sensors_category_index` (`category`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `sensors`
--


--
-- Table structure for table `setting_columns`
--

CREATE TABLE `setting_columns` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `setting_table_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `remote_tag` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `local_tag` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `setting_columns`
--


--
-- Table structure for table `setting_tables`
--

CREATE TABLE `setting_tables` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `table_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `setting_tables`
--


--
-- Table structure for table `settings`
--

CREATE TABLE `settings` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `key` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `value` text COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `settings_key_index` (`key`)
) ENGINE=InnoDB AUTO_INCREMENT=124 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `settings`
--

INSERT INTO `settings` VALUES (1,'manage.inst.display','show','0000-00-00 00:00:00','0000-00-00 00:00:00'),(2,'manage.meal.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(3,'manage.guest.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(4,'manage.keeper.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(5,'manage.ba.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(6,'manage.mail.display','show','0000-00-00 00:00:00','0000-00-00 00:00:00'),(7,'manage.message.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(8,'manage.inst_new.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(9,'manage.patrol.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(10,'manage.ehr.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(11,'manage.finance.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(12,'manage.inouts.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(13,'manage.digital.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(14,'show_ip','0','0000-00-00 00:00:00','0000-00-00 00:00:00'),(15,'show_phoneNumber','0','0000-00-00 00:00:00','0000-00-00 00:00:00'),(16,'mail_location','0','0000-00-00 00:00:00','0000-00-00 00:00:00'),(17,'pwd_title','show','0000-00-00 00:00:00','0000-00-00 00:00:00'),(18,'pwd_border','show','0000-00-00 00:00:00','0000-00-00 00:00:00'),(19,'jinray_version','0','0000-00-00 00:00:00','0000-00-00 00:00:00'),(20,'sensor_version','nsst','0000-00-00 00:00:00','0000-00-00 00:00:00'),(21,'YONDON_sensor_version','off','0000-00-00 00:00:00','0000-00-00 00:00:00'),(22,'manage.healthcare.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(23,'chicony_building','f945cdb0-1a62-4a2d-83dd-6c967ba3e56c','0000-00-00 00:00:00','0000-00-00 00:00:00'),(24,'item_manager_b','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(25,'door_elec_mail','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(26,'mssql_baconnect','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(27,'intercom_token','','0000-00-00 00:00:00','0000-00-00 00:00:00'),(28,'intercom_schideron','0','0000-00-00 00:00:00','0000-00-00 00:00:00'),(29,'beda_control','0','0000-00-00 00:00:00','0000-00-00 00:00:00'),(30,'ntnu_control','0','0000-00-00 00:00:00','0000-00-00 00:00:00'),(31,'icon_replace_time','0000-00-00 00:00:00','0000-00-00 00:00:00','0000-00-00 00:00:00'),(32,'app.fault.detail_data.display','show','0000-00-00 00:00:00','0000-00-00 00:00:00'),(33,'tsm_to_tatung','false','0000-00-00 00:00:00','0000-00-00 00:00:00'),(34,'access_toast_show','true','0000-00-00 00:00:00','0000-00-00 00:00:00'),(35,'plant_account','plant','0000-00-00 00:00:00','0000-00-00 00:00:00'),(36,'manage.platform.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(37,'health_calendar','show','0000-00-00 00:00:00','0000-00-00 00:00:00'),(38,'manage.interactive.display','show','0000-00-00 00:00:00','0000-00-00 00:00:00'),(39,'manage.asset.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(40,'manage.storage.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(41,'manage.sales.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(42,'manage.ticket.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(43,'manage.intercom.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(44,'manage.access.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(45,'manage.parking.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(46,'manage.parking.token','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(47,'manage.parking_moto.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(48,'manage.camera.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(49,'manage.weather_station.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(50,'weather_station_control.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(51,'manage.subtitle.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(52,'manage.electro_mechanical.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(53,'manage.purifying.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(54,'manage.device.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(55,'manage.library.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(56,'manage.pccs.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(57,'mail_orderBy','0','0000-00-00 00:00:00','0000-00-00 00:00:00'),(58,'barcode_name','0','0000-00-00 00:00:00','0000-00-00 00:00:00'),(59,'manage.builders.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(60,'manage.plan.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(61,'manage.sms.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(62,'manage.energy.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(63,'manage.hosts.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(64,'manage.payment.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(65,'manage.energy_new.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(66,'manage.firecontrol.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(67,'manage.charging.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(68,'manage.prompt.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(69,'manage.faultreport.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(70,'manage.planting.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(71,'manage.cwb_gov.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(72,'manage.electric_mail.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(73,'manage.dormitory.display','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(74,'guest_invalid_time','8','0000-00-00 00:00:00','0000-00-00 00:00:00'),(75,'mail_month_clear','0','0000-00-00 00:00:00','0000-00-00 00:00:00'),(76,'change_app_icons_image','0','0000-00-00 00:00:00','0000-00-00 00:00:00'),(77,'mailinfo','0','0000-00-00 00:00:00','0000-00-00 00:00:00'),(78,'typeorsource','0','0000-00-00 00:00:00','0000-00-00 00:00:00'),(79,'npm_version','0','0000-00-00 00:00:00','0000-00-00 00:00:00'),(80,'chicony_version','0','0000-00-00 00:00:00','0000-00-00 00:00:00'),(81,'function.store.display','show','0000-00-00 00:00:00','0000-00-00 00:00:00'),(82,'function.point.display','show','0000-00-00 00:00:00','0000-00-00 00:00:00'),(83,'function.news.display','show','0000-00-00 00:00:00','0000-00-00 00:00:00'),(84,'function.record.display','show','0000-00-00 00:00:00','0000-00-00 00:00:00'),(85,'function.firm.display','show','0000-00-00 00:00:00','0000-00-00 00:00:00'),(86,'function.activity.display','show','0000-00-00 00:00:00','0000-00-00 00:00:00'),(87,'function.lost_thing.display','show','0000-00-00 00:00:00','0000-00-00 00:00:00'),(88,'function.coming_soon.display','show','0000-00-00 00:00:00','0000-00-00 00:00:00'),(89,'sms_time','2017-08-29 00:00:00','0000-00-00 00:00:00','0000-00-00 00:00:00'),(90,'receive_email','','0000-00-00 00:00:00','0000-00-00 00:00:00'),(91,'point_to_door','off','0000-00-00 00:00:00','0000-00-00 00:00:00'),(92,'alarm_audio','off','0000-00-00 00:00:00','0000-00-00 00:00:00'),(93,'seat_image','','0000-00-00 00:00:00','0000-00-00 00:00:00'),(94,'access_to_subtitle','hide','0000-00-00 00:00:00','0000-00-00 00:00:00'),(95,'meal_audio','off','0000-00-00 00:00:00','0000-00-00 00:00:00'),(96,'monitor_loading_image','on','0000-00-00 00:00:00','0000-00-00 00:00:00'),(97,'inst_BA_connetcion','off','0000-00-00 00:00:00','0000-00-00 00:00:00'),(98,'inst_BA_URL','http://10.10.15.201/publicPM/reservation','0000-00-00 00:00:00','0000-00-00 00:00:00'),(99,'login_lock','on','0000-00-00 00:00:00','0000-00-00 00:00:00'),(100,'intercom_return_array','on','0000-00-00 00:00:00','0000-00-00 00:00:00'),(101,'manage.keeper_cost.display','off','0000-00-00 00:00:00','0000-00-00 00:00:00'),(102,'manage.guest_cost.display','off','0000-00-00 00:00:00','0000-00-00 00:00:00'),(103,'intercom_push','on','0000-00-00 00:00:00','0000-00-00 00:00:00'),(104,'crontab_auto_point','0','0000-00-00 00:00:00','0000-00-00 00:00:00'),(105,'temporary_parking','false','0000-00-00 00:00:00','0000-00-00 00:00:00'),(106,'parking_cost_type','free','0000-00-00 00:00:00','0000-00-00 00:00:00'),(107,'parking_cost_value','1','0000-00-00 00:00:00','0000-00-00 00:00:00'),(108,'parking_cost_time','one_hour','0000-00-00 00:00:00','0000-00-00 00:00:00'),(109,'console_pilot_lamp','off','0000-00-00 00:00:00','0000-00-00 00:00:00'),(110,'DB_to_json','off','0000-00-00 00:00:00','0000-00-00 00:00:00'),(111,'meal_status_check','off','0000-00-00 00:00:00','0000-00-00 00:00:00'),(112,'mail_not_take_report','off','0000-00-00 00:00:00','0000-00-00 00:00:00'),(113,'push_mail_return','off','0000-00-00 00:00:00','0000-00-00 00:00:00'),(114,'take_mssql_data','off','0000-00-00 00:00:00','0000-00-00 00:00:00'),(115,'pic_warning','on','0000-00-00 00:00:00','0000-00-00 00:00:00'),(116,'cctv_warning','on','0000-00-00 00:00:00','0000-00-00 00:00:00'),(117,'push_warning','on','0000-00-00 00:00:00','0000-00-00 00:00:00'),(118,'sign_version','0','0000-00-00 00:00:00','0000-00-00 00:00:00'),(119,'lang','zh','0000-00-00 00:00:00','0000-00-00 00:00:00'),(120,'ios_qrcode','https://apps.apple.com/tw/app/%E6%99%BA%E6%85%A7%E8%A1%8C%E5%8B%95%E5%BB%BA%E7%AF%89/id1023445688','0000-00-00 00:00:00','0000-00-00 00:00:00'),(121,'point_recover_date','0000-00-00','0000-00-00 00:00:00','0000-00-00 00:00:00'),(122,'sensor_digital_url','','0000-00-00 00:00:00','0000-00-00 00:00:00'),(123,'finance_version','V2.21.08.11','0000-00-00 00:00:00','0000-00-00 00:00:00');

--
-- Table structure for table `sms_logs`
--

CREATE TABLE `sms_logs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `credit` int NOT NULL,
  `sended` int NOT NULL,
  `cost` int NOT NULL,
  `unsend` int NOT NULL,
  `batch_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `content` text COLLATE utf8_unicode_ci,
  `mobile` text COLLATE utf8_unicode_ci,
  `user_id` int NOT NULL,
  `result` text COLLATE utf8_unicode_ci NOT NULL,
  `status` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `sms_logs`
--


--
-- Table structure for table `solar_energies`
--

CREATE TABLE `solar_energies` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `isKW` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '使否為發電量',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '設備名稱',
  `code` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `object_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'object_id',
  `status` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `solar_energies`
--


--
-- Table structure for table `spaces`
--

CREATE TABLE `spaces` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '類型(car/moto)',
  `space_number` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '車位編號',
  `user_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '使用者id',
  `start_date` date NOT NULL COMMENT '車位起租日',
  `end_date` date NOT NULL COMMENT '車位止租日',
  `car_no` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '車牌號碼',
  `car_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '車型',
  `car_color` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '顏色',
  `car_vendor` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '廠牌',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `spaces`
--


--
-- Table structure for table `spots`
--

CREATE TABLE `spots` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `cover_img` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `introduce` text COLLATE utf8_unicode_ci,
  `info` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `map` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `file` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `safe_note` text COLLATE utf8_unicode_ci,
  `content` text COLLATE utf8_unicode_ci,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `image1` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image2` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image3` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image4` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image5` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `spots`
--


--
-- Table structure for table `storage_import`
--

CREATE TABLE `storage_import` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `success` int NOT NULL,
  `fail` int NOT NULL,
  `title` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `file_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `storage_import`
--


--
-- Table structure for table `storage_place`
--

CREATE TABLE `storage_place` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `function` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `place` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `floor` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '樓層',
  `buildid` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'BuildID',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `storage_place`
--


--
-- Table structure for table `storage_substitute`
--

CREATE TABLE `storage_substitute` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `storage_id` int NOT NULL,
  `old_no` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `new_no` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `storage_substitute_storage_id_index` (`storage_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `storage_substitute`
--


--
-- Table structure for table `storage_unit`
--

CREATE TABLE `storage_unit` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `storage_unit`
--


--
-- Table structure for table `storages`
--

CREATE TABLE `storages` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `no` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `storage_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `model` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `specification` text COLLATE utf8_unicode_ci NOT NULL,
  `c_id` int NOT NULL,
  `sp_id` int NOT NULL,
  `age_limit` int NOT NULL,
  `unit` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `consuming_limit` int NOT NULL,
  `begin_inventory` int NOT NULL,
  `now_inventory` int NOT NULL,
  `avg_costs` int NOT NULL,
  `inventory_upper_limit` int NOT NULL,
  `safe_inventory` int NOT NULL,
  `remark` text COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `f_id` int NOT NULL,
  `status` int NOT NULL,
  `xls_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `storages_f_id_index` (`f_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `storages`
--


--
-- Table structure for table `stores`
--

CREATE TABLE `stores` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `cover_img` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tel` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fax` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `contact` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `location` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mobile` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `web` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `vat_num` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `opening` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bus_area` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `note` text COLLATE utf8_unicode_ci,
  `map` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `file` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `safe_note` text COLLATE utf8_unicode_ci,
  `content` text COLLATE utf8_unicode_ci,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `image1` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image2` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image3` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image4` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image5` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `stores`
--


--
-- Table structure for table `subtitle_logs`
--

CREATE TABLE `subtitle_logs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `s_id` int NOT NULL,
  `speed` int NOT NULL,
  `color_code` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `color` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `message` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `send_user` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `subtitle_logs`
--


--
-- Table structure for table `subtitles`
--

CREATE TABLE `subtitles` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `api_link` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `speed` int NOT NULL,
  `comport` int NOT NULL,
  `recover_time` int NOT NULL,
  `lighter` int NOT NULL,
  `color` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `text` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `status` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `subtitles`
--


--
-- Table structure for table `summarys`
--

CREATE TABLE `summarys` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `ym` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '年月',
  `acct_id` int NOT NULL COMMENT '科目代號id',
  `amt` int NOT NULL COMMENT '金額',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `summarys`
--


--
-- Table structure for table `summons`
--

CREATE TABLE `summons` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `ws_num` bigint NOT NULL COMMENT '沖銷傳票號碼',
  `summon_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '傳票類型(m/w)',
  `summon_num` bigint NOT NULL COMMENT '傳票號碼',
  `accts_id` int NOT NULL COMMENT '會科id',
  `user_accts` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '特別帳號',
  `borrow` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '借/貸(d/c)',
  `amount` int NOT NULL COMMENT '金額',
  `summary` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '摘要',
  `remark` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '備註',
  `close` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '是否關帳',
  `pay_num` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '金流代碼',
  `receipt` bigint NOT NULL COMMENT '收據編號',
  `cost_id` int NOT NULL COMMENT '費用單id',
  `bank_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '銀行名稱/匯入帳號',
  `account_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '帳號/匯款人姓名',
  `account_num` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '支票號碼/匯款帳號末5碼',
  `account_time` datetime NOT NULL COMMENT '兌現日/匯款時間',
  `account_amount` int NOT NULL COMMENT '支票金額/匯款金額',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `summons`
--


--
-- Table structure for table `tags`
--

CREATE TABLE `tags` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `tags` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tags`
--

INSERT INTO `tags` VALUES (1,'type_floor','1F,2F,3F,4F,5F,6F,7F,8F,9F,10F,11F','2021-08-11 11:25:46','2021-08-11 11:25:46'),(2,'type_location','大廳,停車場,東側大門,西側大門,後門,警衛室,游泳池,健身房,廚房,餐廳','2021-08-11 11:25:46','2021-08-11 11:25:46'),(3,'type_class','水電問題,消防設備問題,公設問題,人員問題,建築體問題,結構問題','2021-08-11 11:25:46','2021-08-11 11:25:46'),(4,'type_situation','沒電,停水,故障,爆炸,漏水,漏電,攏起,發霉,環境髒亂,破損,毀壞,短缺/缺少','2021-08-11 11:25:46','2021-08-11 11:25:46'),(5,'life_function','近便利商店,近傳統市場,近百貨公司,近醫療機構,近夜市,近學區','2021-08-11 11:25:46','2021-08-11 11:25:46'),(6,'offer_facility','電視,冷氣,冰箱,熱水器,天然瓦斯,瓦斯爐,洗衣機','2021-08-11 11:25:46','2021-08-11 11:25:46'),(7,'offer_furniture','床,衣櫃,沙發,書桌椅,書架,椅子,餐桌椅,茶几','2021-08-11 11:25:46','2021-08-11 11:25:46'),(8,'after_sign_alert_type','手機簡訊(SMS),電子信箱(Email),網站訊息,APP通知','2021-08-11 11:25:46','2021-08-11 11:25:46'),(9,'point_type','贈送點數,購買點數,餐點點數','2021-08-11 11:25:46','2021-08-11 11:25:46'),(10,'forum_topic','重要討論區,聊天區,社區大小事','2021-08-11 11:25:46','2021-08-11 11:25:46'),(11,'home_service_handle','進行聯繫中,住戶取消本服務,已通知廠商(服務單位)進行處理,暫時無法處理,處理完畢(結案)','2021-08-11 11:25:46','2021-08-11 11:25:46'),(12,'home_service_item','室內裝潢,學童接送服務,代訂機票,教練預約,代訂旅館,才藝學習,搬家清運,代叫車,代沖印,臨時伴讀/家教,居家打掃,臨時托兒,鐘點傭人,水電維修,收送洗衣,其他','2021-08-11 11:25:46','2021-08-11 11:25:46'),(13,'record_type','瓦斯錶,水錶,電錶','2021-08-11 11:25:46','2021-08-11 11:25:46'),(14,'matters_item','工作交接,執勤人員確認','0000-00-00 00:00:00','0000-00-00 00:00:00'),(15,'matters_important','重要,急迫,一般','0000-00-00 00:00:00','0000-00-00 00:00:00'),(16,'matters_subject','水電問題,消防設備問題,公設問題,人員問題,建築體問題,結構問題','0000-00-00 00:00:00','0000-00-00 00:00:00'),(17,'matters_situation','沒電,停水,故障,爆炸,漏水,漏電,攏起,發霉,環境髒亂,破損,毀壞,短缺/缺少','0000-00-00 00:00:00','0000-00-00 00:00:00'),(18,'type_floor_outside','1F,2F,3F,4F,5F,6F,7F,8F,9F,10F,11F','0000-00-00 00:00:00','0000-00-00 00:00:00'),(19,'type_location_outside','大廳,停車場,東側大門,西側大門,後門,警衛室,游泳池,健身房,廚房,餐廳','0000-00-00 00:00:00','0000-00-00 00:00:00'),(20,'type_class_outside','水電問題,消防設備問題,公設問題,人員問題,建築體問題,結構問題','0000-00-00 00:00:00','0000-00-00 00:00:00'),(21,'type_situation_outside','沒電,停水,故障,爆炸,漏水,漏電,攏起,發霉,環境髒亂,破損,毀壞,短缺/缺少','0000-00-00 00:00:00','0000-00-00 00:00:00'),(22,'type_floor_outside_b','1F,2F,3F,4F,5F,6F,7F,8F,9F,10F,11F','0000-00-00 00:00:00','0000-00-00 00:00:00'),(23,'type_location_outside_b','大廳,停車場,東側大門,西側大門,後門,警衛室,游泳池,健身房,廚房,餐廳','0000-00-00 00:00:00','0000-00-00 00:00:00'),(24,'type_class_outside_b','水電問題,消防設備問題,公設問題,人員問題,建築體問題,結構問題','0000-00-00 00:00:00','0000-00-00 00:00:00'),(25,'type_situation_outside_b','沒電,停水,故障,爆炸,漏水,漏電,攏起,發霉,環境髒亂,破損,毀壞,短缺/缺少','0000-00-00 00:00:00','0000-00-00 00:00:00'),(26,'type_floor_b','1F,2F,3F,4F,5F,6F,7F,8F,9F,10F,11F','0000-00-00 00:00:00','0000-00-00 00:00:00'),(27,'type_location_b','大廳,停車場,東側大門,西側大門,後門,警衛室,游泳池,健身房,廚房,餐廳','0000-00-00 00:00:00','0000-00-00 00:00:00'),(28,'type_class_b','水電問題,消防設備問題,公設問題,人員問題,建築體問題,結構問題','0000-00-00 00:00:00','0000-00-00 00:00:00'),(29,'type_situation_b','沒電,停水,故障,爆炸,漏水,漏電,攏起,發霉,環境髒亂,破損,毀壞,短缺/缺少','0000-00-00 00:00:00','0000-00-00 00:00:00'),(30,'out_reason_item','看病,找朋友,辦事','0000-00-00 00:00:00','0000-00-00 00:00:00'),(31,'placement','儲物櫃1A,儲物櫃1B,儲物櫃2A,儲物櫃2B,儲物櫃3A,儲物櫃3B,防水儲物櫃,防銹儲物櫃,長方型儲物箱','0000-00-00 00:00:00','0000-00-00 00:00:00'),(32,'charge_placement','儲物櫃1A,儲物櫃1B,儲物櫃2A,儲物櫃2B,儲物櫃3A,儲物櫃3B,防水儲物櫃,防銹儲物櫃,長方型儲物箱','0000-00-00 00:00:00','0000-00-00 00:00:00'),(33,'pawn','身份證,駕照,健保卡','0000-00-00 00:00:00','0000-00-00 00:00:00'),(34,'relationship','朋友,家人,鄰居','0000-00-00 00:00:00','0000-00-00 00:00:00'),(35,'guest_relationship','朋友,家人,鄰居','0000-00-00 00:00:00','0000-00-00 00:00:00'),(36,'keeper_class','3C產品,書籍,飾品,生鮮食品,傢俱,紀念品','0000-00-00 00:00:00','0000-00-00 00:00:00'),(37,'guest_cause','洽公,探訪','0000-00-00 00:00:00','0000-00-00 00:00:00'),(38,'point_reason','折抵月卡,退換現金','0000-00-00 00:00:00','0000-00-00 00:00:00'),(39,'lost_things_type','尋獲,遺失','0000-00-00 00:00:00','0000-00-00 00:00:00'),(40,'lost_things_class','3C,錢包,其他','0000-00-00 00:00:00','0000-00-00 00:00:00'),(41,'lost_things_keeper','管理中心','0000-00-00 00:00:00','0000-00-00 00:00:00'),(42,'mail_location_now','1000','0000-00-00 00:00:00','0000-00-00 00:00:00'),(43,'mail_location_today','1000','0000-00-00 00:00:00','0000-00-00 00:00:00'),(44,'sort_tag','麵粉類,醬料類,調味類,果醬類,奶類,油料類','0000-00-00 00:00:00','0000-00-00 00:00:00'),(45,'water_facility','台水','0000-00-00 00:00:00','0000-00-00 00:00:00'),(46,'electricity_facility','台電','0000-00-00 00:00:00','0000-00-00 00:00:00');

--
-- Table structure for table `theme_spots`
--

CREATE TABLE `theme_spots` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `cover_img` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `introduce` text COLLATE utf8_unicode_ci,
  `info` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `map` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `file` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `safe_note` text COLLATE utf8_unicode_ci,
  `content` text COLLATE utf8_unicode_ci,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `image1` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image2` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image3` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image4` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image5` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `theme_spots`
--


--
-- Table structure for table `throttle`
--

CREATE TABLE `throttle` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int unsigned DEFAULT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `ip` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `throttle_user_id_index` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `throttle`
--


--
-- Table structure for table `tickets`
--

CREATE TABLE `tickets` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `child_each` int NOT NULL,
  `child_team` int NOT NULL,
  `union_team` int NOT NULL,
  `show_room` int NOT NULL,
  `special_room` int NOT NULL,
  `arts` int NOT NULL,
  `create_by` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tickets`
--


--
-- Table structure for table `tours`
--

CREATE TABLE `tours` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `cover_img` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `introduce` text COLLATE utf8_unicode_ci,
  `info` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `map` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `file` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `safe_note` text COLLATE utf8_unicode_ci,
  `content` text COLLATE utf8_unicode_ci,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `image1` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image2` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image3` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image4` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `image5` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `tours`
--


--
-- Table structure for table `transfer_log`
--

CREATE TABLE `transfer_log` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `transfer_time` datetime NOT NULL,
  `location_code` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `event_code` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `user_card_no` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `modifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `remark` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `error` tinyint NOT NULL,
  `status` int NOT NULL,
  `item_id` int NOT NULL,
  `route_id` int NOT NULL,
  `right_time` datetime NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `transfer_log_location_code_index` (`location_code`),
  KEY `transfer_log_event_code_index` (`event_code`),
  KEY `transfer_log_user_card_no_index` (`user_card_no`),
  KEY `transfer_log_item_id_index` (`item_id`),
  KEY `transfer_log_route_id_index` (`route_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `transfer_log`
--


--
-- Table structure for table `unrecognized`
--

CREATE TABLE `unrecognized` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `summon_num` bigint NOT NULL COMMENT '傳票號碼',
  `date` date NOT NULL COMMENT '生效日期',
  `status` int NOT NULL COMMENT '狀態(0.未生效 1.已生效 2.已作廢',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `unrecognized`
--


--
-- Table structure for table `user_atts`
--

CREATE TABLE `user_atts` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `user_atts`
--


--
-- Table structure for table `user_authority`
--

CREATE TABLE `user_authority` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `route` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `user_id` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `user_authority_user_id_index` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `user_authority`
--


--
-- Table structure for table `user_facility_mappings`
--

CREATE TABLE `user_facility_mappings` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user` int NOT NULL,
  `facilities` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `facility_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `user_facility_mappings`
--


--
-- Table structure for table `user_licenses`
--

CREATE TABLE `user_licenses` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `licenses_name1` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `licenses_img1` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `licenses_name2` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `licenses_img2` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `licenses_name3` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `licenses_img3` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `licenses_name4` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `licenses_img4` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `licenses_name5` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `licenses_img5` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `licenses_name6` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `licenses_img6` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `licenses_name7` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `licenses_img7` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `licenses_name8` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `licenses_img8` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `licenses_name9` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `licenses_img9` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `licenses_name10` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `licenses_img10` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `user_licenses`
--


--
-- Table structure for table `user_options`
--

CREATE TABLE `user_options` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `department` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `time_start` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `time_end` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `teacher` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `place` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `user_options`
--


--
-- Table structure for table `user_water_facility_mappings`
--

CREATE TABLE `user_water_facility_mappings` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `facilities_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `user_water_facility_mappings`
--


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `email` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'user',
  `identity_id` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `birthday` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tel` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mobile` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `s_number` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '學號',
  `d_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '科系',
  `campus` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '校區',
  `bank_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '銀行名稱',
  `bank_branch` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '銀行分行',
  `bank_account` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '銀行帳號',
  `door_no` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `footage` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `footage_price` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `manage_money` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `memo` text COLLATE utf8_unicode_ci,
  `status` int NOT NULL,
  `import_id` int NOT NULL DEFAULT '0',
  `permissions` text COLLATE utf8_unicode_ci,
  `user_authority` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '權限',
  `last_login` timestamp NULL DEFAULT NULL,
  `first_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `last_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `last_from` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `groupid` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `nickname` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `department` int NOT NULL,
  `title` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `chairman` tinyint NOT NULL,
  `employee_no` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `card_no` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `privilege` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'none',
  `museum_type` int NOT NULL,
  `museum_ticket` int NOT NULL,
  `command` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `users_username_unique` (`username`),
  KEY `users_employee_no_index` (`employee_no`)
) ENGINE=InnoDB AUTO_INCREMENT=112 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'admin','系統管理員','admin@admin.com','$2y$10$vYArEo6PHQFcI0Zy3q.te.Og.A58JdwgNrvi5a.qw3.pvyUFRv1HW','admin','ADMIN',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,0,'{\"manage.access\":true,\"community.read\":true,\"community.write\":true,\"community.delete\":true,\"user.read\":true,\"user.write\":true,\"user.delete\":true}','0,1,2,3,4','2021-09-13 09:54:38',NULL,NULL,'2021-08-11 11:25:44','2021-09-13 09:54:38','web','','',0,'',0,'','','none',0,0,''),(22,'buya','管理者','','$2y$10$EeyZ1XzNXcAoQsn7zF9s4.qZh1ooXqLeJpvSmKZtw993o2aDHoN9S','admin','','','','','',NULL,NULL,NULL,NULL,NULL,NULL,'','','','','',1,0,'{\"manage.access\":true,\"community.read\":true,\"community.write\":true,\"community.delete\":true,\"user.read\":true,\"user.write\":true,\"user.delete\":true}','','2021-09-13 13:01:54',NULL,NULL,'2021-09-11 18:15:39','2021-09-13 13:01:54','web','','',99999,'',0,'00001','','none',0,0,''),(23,'002','安管日班','','$2y$10$Sh7X7JUbFd5NVy0I5OSW2eGO8OZPrAXLc/w92Eq2esdO0CyMBpPlS','admin','','','','','',NULL,NULL,NULL,NULL,NULL,NULL,'','','','','',1,0,'{\"manage.access\":true,\"community.read\":true,\"community.write\":true,\"community.delete\":true,\"user.read\":true,\"user.write\":true,\"user.delete\":true}','','2021-09-13 10:20:36',NULL,NULL,'2021-09-11 18:46:54','2021-09-13 10:20:36','web','','',0,'',0,'00002','','guard',0,0,''),(24,'002-1','安管夜班','','$2y$10$4R1KU2pmRn77it6H.H7/MuekYM870sTNPlX0lXFuICK8ASLKxVD2a','admin','','','','','',NULL,NULL,NULL,NULL,NULL,NULL,'','','','','',1,0,'{\"manage.access\":true,\"community.read\":true,\"community.write\":true,\"community.delete\":true,\"user.read\":true,\"user.write\":true,\"user.delete\":true}','',NULL,NULL,NULL,'2021-09-11 18:47:35','2021-09-11 18:47:35',NULL,'','',0,'',0,'00003','','none',0,0,''),(25,'22-1','22號(1樓A1戶)',NULL,'$2y$10$qlrZGbunmiYo8nfYI6by9uKIXzxizP2CmLESKF6cE3bk0Ea1pQTP2','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:13','2021-09-11 18:56:13',NULL,'22-1-1-1-G','',0,'',0,'','08835203,08998387,09000739,090','none',0,0,''),(26,'26-1','26號(1樓A2戶)',NULL,'$2y$10$lpcoH932YOo9Abw2rVQkf.cmHYSG9jffTnJKRQGkXpImJaL1cX5GO','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:13','2021-09-11 18:56:13',NULL,'26-1-1-1-G','',0,'',0,'','09318163,08805907,08772291,087','none',0,0,''),(27,'28-1','28號(1樓A3戶)',NULL,'$2y$10$XYeHVa2KLiytiMBi7eUWEuLABcUpwIZ.mhpYuctxjqgkjfQEzuBLq','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:13','2021-09-11 18:56:13',NULL,'28-1-1-1-G','',0,'',0,'','09281299,08831267,09316035,087','none',0,0,''),(28,'30-1','30號(1樓A4戶)',NULL,'$2y$10$G6I.z/d8eG7w.alK5evG1O8Pi.BMjVrJ3Uv7UDx.BZYDfZefYuvFG','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:13','2021-09-11 18:56:13',NULL,'30-1-1-1-G','',0,'',0,'','08665411,08998307,08699123,086','none',0,0,''),(29,'32-1','32號(1樓A5戶)',NULL,'$2y$10$9rVj5ryrkApfWF7SM8Y.ruOOGLllT2ffeJugdRWTFcda3jizm44n6','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:13','2021-09-11 18:56:13',NULL,'32-1-1-1-G','',0,'',0,'','08665251,08808339,09297939,088','none',0,0,''),(30,'22-2','22號(2樓B戶)',NULL,'$2y$10$iaetJko/vv26DzQpY7DUMu9oe/ePt8ULmCtgHNB1MfFI9mXTxrPbK','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:13','2021-09-11 18:56:13',NULL,'22-2-1-1-G','',0,'',0,'','08772083,08863331,08828787,088','none',0,0,''),(31,'26-2','26號(2樓A戶)',NULL,'$2y$10$8EpKMThJBCZBZ3TpPohEmOO7DB2lbzaqj4RyyBd8n9f1QV1nVmXqa','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:13','2021-09-11 18:56:13',NULL,'26-2-1-1-G','',0,'',0,'','08665619,08961139,08844531,088','none',0,0,''),(32,'28-2','28號(2樓H戶)',NULL,'$2y$10$L9K.BACXqYvF/SJ/VWTlXuNgZf9cmOS/J0DJFrjmUk0T1b10v45ee','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:13','2021-09-11 18:56:13',NULL,'28-2-1-1-G','',0,'',0,'','08810963,08829075,08868019,088','none',0,0,''),(33,'30-2','30號(2樓G戶)',NULL,'$2y$10$UoEPO1CYzMKxlp7JGc6Z4ujlsIJOJUP7FT1bPX6l6tnlIVZgPgeRO','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:13','2021-09-11 18:56:13',NULL,'30-2-1-1-G','',0,'',0,'','08808435,08844979,08882003,090','none',0,0,''),(34,'38-2','38號(2樓C戶)',NULL,'$2y$10$oW3vEgpx/IpOkCvYm/X51eCSncKnQYNNphiti8WtDWYO1.hvE2PrW','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,' ',NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:14','2021-09-11 18:56:14',NULL,'38-2-1-1-G','',0,'',0,'','08759315,08759139,08833139,088','none',0,0,''),(35,'22-3','22號(3樓B戶)',NULL,'$2y$10$HiE5EhKx2WYtv7YXtF9vSOAofRGXtnXfB0ct.mJevfcAh9QzrN5rC','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:14','2021-09-11 18:56:14',NULL,'22-3-1-1-G','',0,'',0,'','09316227,08664131,08867987,088','none',0,0,''),(36,'26-3','26號(3樓A戶)',NULL,'$2y$10$qWg46LanfXzCVrBIDZTxkOIGCEvXjaf7wKZE3iPFycKawcU87Mv46','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:14','2021-09-11 18:56:14',NULL,'26-3-1-1-G','',0,'',0,'','08998131,08883715,09280995,088','none',0,0,''),(37,'28-3','28號(3樓H戶)',NULL,'$2y$10$/wyr/xAlpLcCZA6x.0x2Z.h9ycKtFqGRzpjKvMoLe/2JMh3.8nTYy','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:14','2021-09-11 18:56:14',NULL,'28-3-1-1-G','',0,'',0,'','08844611,09315923,09317971,088','none',0,0,''),(38,'30-3','30號(3樓G戶)',NULL,'$2y$10$iCuoD.ATy.E4z8lG1dbFWuGgg4xn969UoA5/pBbPg3mQbm0pp8pX.','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:14','2021-09-11 18:56:14',NULL,'30-3-1-1-G','',0,'',0,'','08670163,09314227,09003107,090','none',0,0,''),(39,'32-3','32號(3樓F戶)',NULL,'$2y$10$4txJzpCYP/hJUvdX6PSb/uHqXFB7P4xGWyPgb3ovyUlA7HqufgqmK','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:14','2021-09-11 18:56:14',NULL,'32-3-1-1-G','',0,'',0,'','09320595,08879875,08806691,088','none',0,0,''),(40,'36-3','36號(3樓D戶)',NULL,'$2y$10$dIzOulTcepWSTtEoEizyDu2nnpF1dNvNxXi.pK.ZLo.B80IjdLE6i','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:14','2021-09-11 18:56:14',NULL,'36-3-1-1-G','',0,'',0,'','09318467,08838195,08649875,090','none',0,0,''),(41,'38-3','38號(3樓C戶)',NULL,'$2y$10$uuN4PSLJkDhvGbmlWGvYl.LZT2iWC/KQuyghr5wRxZOELrDc0PiJi','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:14','2021-09-11 18:56:14',NULL,'38-3-1-1-G','',0,'',0,'','08644915,08982723,09006883,088','none',0,0,''),(42,'22-4','22號(4樓B戶)',NULL,'$2y$10$rpXUh6wnAZcMqUTpZqLKHOPI1qtErBSKYu1.5n6AGFXCgcdYpKzeq','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:14','2021-09-11 18:56:14',NULL,'22-4-1-1-G','',0,'',0,'','08887843,09028675,09322291,093','none',0,0,''),(43,'26-4','26號(4樓A戶)',NULL,'$2y$10$IunFF6/ZOI1A7HQrtpyfzObOpF11MlfKS0udbUVqzNeFISGlOQa7O','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:14','2021-09-11 18:56:14',NULL,'26-4-1-1-G','',0,'',0,'','08806931,09028947,08668003,088','none',0,0,''),(44,'28-4','28號(4樓H戶)',NULL,'$2y$10$Ex7N7DMVKB8ZkzFWfUhv1ebBOJaE2qnRRM1lv/fFhW1oTNZu1mdsa','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:14','2021-09-11 18:56:14',NULL,'28-4-1-1-G','',0,'',0,'','08808675,09318691,08844355,089','none',0,0,''),(45,'30-4','30號(4樓G戶)',NULL,'$2y$10$hYWx327lwq98Drrdo1s6LuZMEiCCrD/PFgRod/N.SuEkBjZPlyo4G','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:14','2021-09-11 18:56:14',NULL,'30-4-1-1-G','',0,'',0,'','08959619,08867875,08833123,088','none',0,0,''),(46,'32-4','32號(4樓F戶)',NULL,'$2y$10$Pxd6qwF0m5qEK2Guqx1cWeRYY8J39ob0H9bh./seyR9ig8mGxjqeu','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:14','2021-09-11 18:56:14',NULL,'32-4-1-1-G','',0,'',0,'','08831059,09320819,08809155,086','none',0,0,''),(47,'36-4','36號(4樓D戶)',NULL,'$2y$10$Qy9D7Aa.Ia3a2js1bLuWreiMGLo4HORzHz2OIorOZzKHI.4N9UGB.','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:14','2021-09-11 18:56:14',NULL,'36-4-1-1-G','',0,'',0,'','08840707,08807155,08867603,088','none',0,0,''),(48,'38-4','38號(4樓C戶)',NULL,'$2y$10$TQB/YiQfA1CVmAXxR0..4ezY1CYdqRblHj2czpTD84JR2VI1mWaVG','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:14','2021-09-11 18:56:14',NULL,'38-4-1-1-G','',0,'',0,'','08788947,08889747,08805843,088','none',0,0,''),(49,'22-5','22號(5樓B戶)',NULL,'$2y$10$mlZ1zBjktNlGXynqehiMZ.GCYABvvscu7U8a7RUYN4cmTcjis0icS','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:14','2021-09-11 18:56:14',NULL,'22-5-1-1-G','',0,'',0,'','09032979,09300243,08959315,088','none',0,0,''),(50,'26-5','26號(5樓A戶)',NULL,'$2y$10$o6Kq6Azu6JxKvfxmtDEyFOd2gAtvRG4IRYQfJsp3Awd4bP/SdImeu','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:14','2021-09-11 18:56:14',NULL,'26-5-1-1-G','',0,'',0,'','08813123,08812371,08813123,088','none',0,0,''),(51,'28-5','28號(5樓H戶)',NULL,'$2y$10$uIPls46UjPNVEmAUzjAC.ebD27MQzeNojlBqy2D.gtH8vnlX34GES','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:15','2021-09-11 18:56:15',NULL,'28-5-1-1-G','',0,'',0,'','08828803,08813315,08790659,092','none',0,0,''),(52,'30-5','30號(5樓G戶)',NULL,'$2y$10$sRvwqi6nRTMWKjYJfZDgruJsnU7zB9nS7U7Dxceh9tmWAJmx6Lc/G','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:15','2021-09-11 18:56:15',NULL,'30-5-1-1-G','',0,'',0,'','08755219,08578595,09283139,087','none',0,0,''),(53,'32-5','32號(5樓F戶)',NULL,'$2y$10$gnwpv9LUD3Si57UAh5YSUOBpd77K2l3TMyfVSlU01EFAfqUN7LuXi','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:15','2021-09-11 18:56:15',NULL,'32-5-1-1-G','',0,'',0,'','08883651,08812531,08828883,089','none',0,0,''),(54,'36-5','36號(5樓D戶)',NULL,'$2y$10$7KDoG/HiMawrFP2ZveNyreKJM4XVNRer1cQI2Z5XhXU6bMxrI7vLy','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:15','2021-09-11 18:56:15',NULL,'36-5-1-1-G','',0,'',0,'','08782755,08757251,08958963,093','none',0,0,''),(55,'38-5','38號(5樓C戶)',NULL,'$2y$10$t40YDot2rhOcZooGc8RD6uCUzeff8VQsx9of4h6IY5CsCV3/WzQrm','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:15','2021-09-11 18:56:15',NULL,'38-5-1-1-G','',0,'',0,'','08889683,08840323,09304259,090','none',0,0,''),(56,'22-6','22號(6樓B戶)',NULL,'$2y$10$kSO846YIJJG8SOuQOI8EW.AopU9fwqiXI1vBVQN49wDt2jPH4Zbvi','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:15','2021-09-11 18:56:15',NULL,'22-6-1-1-G','',0,'',0,'','08865555,09300323,08881811,088','none',0,0,''),(57,'26-6','26號(6樓A戶)',NULL,'$2y$10$SyVg.D0AzWmY6ATiP5DG0OnJzUpa2PrzPwmxpo4DeSFpROagQnBMm','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:15','2021-09-11 18:56:15',NULL,'26-6-1-1-G','',0,'',0,'','09316611,08846499,08790995,088','none',0,0,''),(58,'28-6','28號(6樓H戶)',NULL,'$2y$10$z/sTZh70ujdVAWttGhIjwu3Ye6j.ZEGQPGX6YU9hhZ8WqV91ZDnzC','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:15','2021-09-11 18:56:15',NULL,'28-6-1-1-G','',0,'',0,'','08791123,08842195,08869539,087','none',0,0,''),(59,'30-6','30號(6樓G戶)',NULL,'$2y$10$CESRn0Ce5ImOcRO6bwJ//.4PH9vC2tushW8ir2KIDyKMT624ynKXa','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:15','2021-09-11 18:56:15',NULL,'30-6-1-1-G','',0,'',0,'','09287427,09284691,08803875,089','none',0,0,''),(60,'32-6','32號(6樓F戶)',NULL,'$2y$10$M2a044aBGmsue2Gg4RkJT.kqpLH6vRQNeZ00zgans3pgGQCmXh5Dy','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:15','2021-09-11 18:56:15',NULL,'32-6-1-1-G','',0,'',0,'','08868083,09314595,08804115,088','none',0,0,''),(61,'36-6','36號(6樓D戶)',NULL,'$2y$10$6S5bpTDyuCg/RxOQzmjlYeRUK0RcyVXsc5uiRs0TZjwzMUustUHvO','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:15','2021-09-11 18:56:15',NULL,'36-6-1-1-G','',0,'',0,'','08804435,08807011,09082195,089','none',0,0,''),(62,'38-6','38號(6樓C戶)',NULL,'$2y$10$5ODX1aWHoopHmoDqOKQQHOb09rXSjn6pufyBQbHWmBlHLqwKDBGmq','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:15','2021-09-11 18:56:15',NULL,'38-6-1-1-G','',0,'',0,'','08844723,08868099,09320899,087','none',0,0,''),(63,'22-7','22號(7樓B戶)',NULL,'$2y$10$6smoZpM1VcmYSDo7IKFYnOJ.C6s12DoLyp5Zx221GPZ9MOATF8zoK','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:15','2021-09-11 18:56:15',NULL,'22-7-1-1-G','',0,'',0,'','08791075,09304355,09000851,088','none',0,0,''),(64,'26-7','26號(7樓A戶)',NULL,'$2y$10$7BzTUMxUym/NoBZQOQ8lpug3UftJEXXR.rtWk4tDXSt2zwbks7F9C','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:15','2021-09-11 18:56:15',NULL,'26-7-1-1-G','',0,'',0,'','08774435,09285571,08842963,085','none',0,0,''),(65,'28-7','28號(7樓H戶)',NULL,'$2y$10$/ehPHcKwhSGk.eTqxErqVee335zj8yFM4L3d5tCB2brmMAEbWmIDa','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:15','2021-09-11 18:56:15',NULL,'28-7-1-1-G','',0,'',0,'','08959715,08842147,09314739,086','none',0,0,''),(66,'30-7','30號(7樓G戶)',NULL,'$2y$10$ZyPEdOAh2YgD4JtGErv8nuYOb6qBt/q2YpXEUWCOmAL6cquIn0KUu','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:15','2021-09-11 18:56:15',NULL,'30-7-1-1-G','',0,'',0,'','08996051,08846675,09302131,090','none',0,0,''),(67,'32-7','32號(7樓F戶)',NULL,'$2y$10$ztjH3t89xlUBlFRKDZ1kCugxywwMqfhfJc0IgXxrL28DxShWJlP2S','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:16','2021-09-11 18:56:16',NULL,'32-7-1-1-G','',0,'',0,'','08840259,09287571,08668019,090','none',0,0,''),(68,'36-7','36號(7樓D戶)',NULL,'$2y$10$CVz0uwYlRDtvRxQm71dwl.UFyll3WxnLXv05Y91OfbZMKKKBvr4Zq','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:16','2021-09-11 18:56:16',NULL,'36-7-1-1-G','',0,'',0,'','09004691,08804035,09030867,093','none',0,0,''),(69,'38-7','38號(7樓C戶)',NULL,'$2y$10$UpUaitvTfsyMKY9EFw5eiOpHX8xuYQBtKD5T1mWXmtJvpdicWpgVC','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:16','2021-09-11 18:56:16',NULL,'38-7-1-1-G','',0,'',0,'','09030787,08808547,09320723,088','none',0,0,''),(70,'22-8','22號(8樓B戶)',NULL,'$2y$10$OoAyoGFu.CA0iuxQSlwrwuoPVY3y9Q8wUZLwM4wZx8CzUsG9yN4ZG','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:16','2021-09-11 18:56:16',NULL,'22-8-1-1-G','',0,'',0,'','08867107,08865251,08826851,090','none',0,0,''),(71,'26-8','26號(8樓A戶)',NULL,'$2y$10$7IU8nFNMpiFB29tO3/L3Xuqt4pGVfGg8O5KbjbqPrn5hkNQAEAiFS','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:16','2021-09-11 18:56:16',NULL,'26-8-1-1-G','',0,'',0,'','08700867,09321699,09320147,088','none',0,0,''),(72,'28-8','28號(8樓H戶)',NULL,'$2y$10$0W9kBzCwGz7deFD8hXE69.KNykSO6l9ufDUMgErPJG9pxo51VFU3S','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:16','2021-09-11 18:56:16',NULL,'28-8-1-1-G','',0,'',0,'','09287251,09321923,09316627,087','none',0,0,''),(73,'30-8','30號(8樓G戶)',NULL,'$2y$10$H1IPuoNwbAVwVBCl802ae.k.4sVTFMNbvvcetEi5dCzq0JDNG3ppC','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:16','2021-09-11 18:56:16',NULL,'30-8-1-1-G','',0,'',0,'','08813251,08865363,08784739,093','none',0,0,''),(74,'32-8','32號(8樓F戶)',NULL,'$2y$10$0kHYCvRzMYrVh8LUBVNYoOtPNjIPDucZKLAQkCyQvhOs2EpHY.4La','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:16','2021-09-11 18:56:16',NULL,'32-8-1-1-G','',0,'',0,'','09000195,09299987,08840771,090','none',0,0,''),(75,'36-8','36號(8樓D戶)',NULL,'$2y$10$wQt7mYhZLe3KS/EU3X4b0e/LgMjyhqmg1ftAxqCmFVbdrZ49Kl0bK','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:16','2021-09-11 18:56:16',NULL,'36-8-1-1-G','',0,'',0,'','08807091,09287059,08695299,092','none',0,0,''),(76,'38-8','38號(8樓C戶)',NULL,'$2y$10$RISBM3dzJs4RdPz1c9dQaOO7mNnPlgZqONV2drMbfxeA2tqkzvt7y','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:16','2021-09-11 18:56:16',NULL,'38-8-1-1-G','',0,'',0,'','09283283,08842211,08840435,088','none',0,0,''),(77,'22-9','22號(9樓B戶)',NULL,'$2y$10$MCAmJcl/Ui6HPkeeWFEQO.GDibGBN/jq6N70wfx2fpWGYynuUHEl2','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:16','2021-09-11 18:56:16',NULL,'22-9-1-1-G','',0,'',0,'','08863123,08774243,08668115,093','none',0,0,''),(78,'26-9','26號(9樓A戶)',NULL,'$2y$10$yCTdwgtV07ZawaMGvVEk/uVuf23aQ8MKpuaB64vwPVdBuQLD0JLQG','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:16','2021-09-11 18:56:16',NULL,'26-9-1-1-G','',0,'',0,'','09281027,08665139,08804723,092','none',0,0,''),(79,'28-9','28號(9樓H戶)',NULL,'$2y$10$cDHFQ7BEi5irnVWmugjKEuslvn0WEfbe0hKwxR1BBWu2KRuLEGfeq','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:16','2021-09-11 18:56:16',NULL,'28-9-1-1-G','',0,'',0,'','09320515,08828899,09285107,090','none',0,0,''),(80,'30-9','30號(9樓G戶)',NULL,'$2y$10$s82dkSzxI9MnjclRFzhpj.hBGd0dGXoTuLkpN2vNO.xvaNWU5v9vq','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:16','2021-09-11 18:56:16',NULL,'30-9-1-1-G','',0,'',0,'','09286835,09300099,09319987,088','none',0,0,''),(81,'32-9','32號(9樓F戶)',NULL,'$2y$10$QN1oujUfRC1ZJy4vhsF6/.1yKJvPJwCS8.mINYZLQ2W65PPp3dvHO','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:16','2021-09-11 18:56:16',NULL,'32-9-1-1-G','',0,'',0,'','08961523,08869459,08998291,093','none',0,0,''),(82,'36-9','36號(9樓D戶)',NULL,'$2y$10$VaPijXjYCRCrMUOHmD2WXOFP4VJpYFaDZWAsdeyT2pXvcBfZpxRVi','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:16','2021-09-11 18:56:16',NULL,'36-9-1-1-G','',0,'',0,'','08701171,08807043,09299939,089','none',0,0,''),(83,'38-9','38號(9樓C戶)',NULL,'$2y$10$iTnKnaB1527lriKxSj6pu.wNnIp82C7NUkUZw6qy1IqRCfwmbIS1e','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:16','2021-09-11 18:56:16',NULL,'38-9-1-1-G','',0,'',0,'','08814419,08806579,08844787,088','none',0,0,''),(84,'22-10','22號(10樓B戶)',NULL,'$2y$10$HaFu9DAbG39E6Uh7TGgubeaXmim7ssbMuJ9bYM1jwZwhF0ETWrCAS','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:17','2021-09-11 18:56:17',NULL,'22-10-1-1-G','',0,'',0,'','09318451,08867523,08867155,093','none',0,0,''),(85,'26-10','26號(10樓A戶)',NULL,'$2y$10$abXi7e35pCYtZFLCWK/E0uGhE4EoflO7bN6h97BZ1LIWUNDfNCJFW','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:17','2021-09-11 18:56:17',NULL,'26-10-1-1-G','',0,'',0,'','09082547,08793123,08881747,087','none',0,0,''),(86,'28-10','28號(10樓H戶)',NULL,'$2y$10$Ga6Gi..ml.uN1YGH4f95ouz.x4Wdc6.Csr8XhyesNnd1iEBa7DDi6','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:17','2021-09-11 18:56:17',NULL,'28-10-1-1-G','',0,'',0,'','08961427,08576035,08786963,087','none',0,0,''),(87,'30-10','30號(10樓G戶)',NULL,'$2y$10$6kCd8DX5wJrQToCKHVWhEuiWTJsavZKH3xfLQfzRHHP4USn9BL8Ny','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:17','2021-09-11 18:56:17',NULL,'30-10-1-1-G','',0,'',0,'','09316739,09296339,08814851,092','none',0,0,''),(88,'32-10','32號(10樓F戶)',NULL,'$2y$10$FoJZyRg7kPd.wEatjXbwGOL0RIckA1moDCMsV6h9zTgLnXHk5nyxu','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:17','2021-09-11 18:56:17',NULL,'32-10-1-1-G','',0,'',0,'','09321651,09304467,08776339,090','none',0,0,''),(89,'36-10','36號(10樓D戶)',NULL,'$2y$10$eo30Li0M6eAwebgWQowsfOnBL5FWQ.0o8aXHWMbvuSMGdafpbXBaS','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:17','2021-09-11 18:56:17',NULL,'36-10-1-1-G','',0,'',0,'','08806307,09316451,09318435,088','none',0,0,''),(90,'38-10','38號(10樓C戶)',NULL,'$2y$10$U05k7MCG05L391EYYVYZzOG1lRzm0jkokBWcHAGLwgx1VCYLNi6su','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:17','2021-09-11 18:56:17',NULL,'38-10-1-1-G','',0,'',0,'','08887795,09032851,09304483,087','none',0,0,''),(91,'22-11','22號(11樓B戶)',NULL,'$2y$10$ES367el7KRSRVBD337hqH.vvTCBeNUyNOQ1IcjRI64Kje9rn570Bi','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:17','2021-09-11 18:56:17',NULL,'22-11-1-1-G','',0,'',0,'','08809043,08845091,09008771,088','none',0,0,''),(92,'26-11','26號(11樓A戶)',NULL,'$2y$10$0dtzJqHCUNLAYxjID6euO.ssmnrUC1Eg46RJxIBWhXOgna9jO9.GG','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:17','2021-09-11 18:56:17',NULL,'26-11-1-1-G','',0,'',0,'','08846691,08816771,08959763,088','none',0,0,''),(93,'28-11','28號(11樓H戶)',NULL,'$2y$10$gPO.H9aR49QJTlFYCTTffeGte5tg7A2dY1eT40N3Rfi3mrq4mcL66','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:17','2021-09-11 18:56:17',NULL,'28-11-1-1-G','',0,'',0,'','09296291,08580867,08998227,088','none',0,0,''),(94,'30-11','30號(11樓G戶)',NULL,'$2y$10$8TgunLD4GcZuMMMNodJu0ulBYBCW6ZGbd7cFhbGeI5Jl7aTmwxiIC','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:17','2021-09-11 18:56:17',NULL,'30-11-1-1-G','',0,'',0,'','08582627,08838051,09000883,093','none',0,0,''),(95,'32-11','32號(11樓F戶)',NULL,'$2y$10$qD4v7EMogWIwvkdaNCj.vOMBv78k3wwqouDz48Y2nmBLKwl3vmCJu','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:17','2021-09-11 18:56:17',NULL,'32-11-1-1-G','',0,'',0,'','08992131,09300147,09034739,093','none',0,0,''),(96,'36-11','36號(11樓D戶)',NULL,'$2y$10$JABgXnEWq/YeEtVJz4/dDezxDUz2VtwpkYlZ6g9vlUeyiv6QWzEiu','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:17','2021-09-11 18:56:17',NULL,'36-11-1-1-G','',0,'',0,'','08887699,09302163,08838355,088','none',0,0,''),(97,'38-11','38號(11樓C戶)',NULL,'$2y$10$1qR.6L.cir9nYrCguDMVeuPMvhDTYd4aVOdLfYs1yaflx1xjH6T2u','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:17','2021-09-11 18:56:17',NULL,'38-11-1-1-G','',0,'',0,'','08666099,08757299,08846531,089','none',0,0,''),(98,'22-12','22號(12樓B戶)',NULL,'$2y$10$sM4oH5rEZM2YmA6xcd.v8uHrqjtGw2vzP7wqWADZ9Q140Vnxouxhy','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:17','2021-09-11 18:56:17',NULL,'22-12-1-1-G','',0,'',0,'','08842259,08701059,09320771,088','none',0,0,''),(99,'26-12','26號(12樓A戶)',NULL,'$2y$10$O2POU6fn4OGwzgOWD652VOrvyGFeFTirrGnvbnyOR2rybMNwpknZa','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:17','2021-09-11 18:56:17',NULL,'26-12-1-1-G','',0,'',0,'','08844851,09314579,08982963,090','none',0,0,''),(100,'28-12','28號(12樓H戶)',NULL,'$2y$10$EUaMeQK6gglzOzHAZjTwVef2Ekd/LOcep4uSGpKV3gCotNNODzCo2','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:18','2021-09-11 18:56:18',NULL,'28-12-1-1-G','',0,'',0,'','08812979,08786579,08804259,086','none',0,0,''),(101,'30-12','30號(12樓G戶)',NULL,'$2y$10$uXU6Ip2ZF7QU11MwRBFEE.A4sBqFPFA99WF2BaoLR4mn6vRHFRxQW','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:18','2021-09-11 18:56:18',NULL,'30-12-1-1-G','',0,'',0,'','08667635,09304179,08840531,088','none',0,0,''),(102,'32-12','32號(12樓F戶)',NULL,'$2y$10$FyWSEMvqosc2Xc7eknAD4.vqkYq8kDhGORwhXpin1cd0vFgGykMoO','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:18','2021-09-11 18:56:18',NULL,'32-12-1-1-G','',0,'',0,'','08844595,09004899,09316579,087','none',0,0,''),(103,'36-12','36號(12樓D戶)',NULL,'$2y$10$DpZjOf44Xyj.Oy2vYFSMkO6B61y6FMu9elkX9NMYgeBuKXWEe7heW','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:18','2021-09-11 18:56:18',NULL,'36-12-1-1-G','',0,'',0,'','08812691,09298147,08869667,093','none',0,0,''),(104,'38-12','38號(12樓C戶)',NULL,'$2y$10$J7diY8rQDwuRDVfl2BDb5eCq.SkDfPNhqIShPQcEXkR6Ju9FVElCa','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:18','2021-09-11 18:56:18',NULL,'38-12-1-1-G','',0,'',0,'','09322307,08810291,08665171,088','none',0,0,''),(105,'22-13','22號(13樓A戶)',NULL,'$2y$10$Lgdbf9NmcztKdmEQteE9TeZa2eBfSH3keWxBPhUwSWZ1Ecj6cUA5S','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:18','2021-09-11 18:56:18',NULL,'22-13-1-1-G','',0,'',0,'','09316531,08840083,08867507,088','none',0,0,''),(106,'38-13','38號(13樓B戶)',NULL,'$2y$10$D2dFMrELFaUbzmiYZBM0VuepekAfbpsNDq2UoC9rOIgm/SYpZDaVq','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:18','2021-09-11 18:56:18',NULL,'38-13-1-1-G','',0,'',0,'','09300419,08838259,08960867,093','none',0,0,''),(107,'22-14','22號(14樓B戶)',NULL,'$2y$10$/eTcDT4VtCJxa.dWDeOET.ObloNpMyL4afZnMnu3/lo/iPcS5yVta','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:18','2021-09-11 18:56:18',NULL,'22-14-1-1-G','',0,'',0,'','08806003,08648851,08959251,090','none',0,0,''),(108,'26-14','26號(14樓A戶)',NULL,'$2y$10$HfdROBJIOcq7UZXgcNB3ou3bAGM.Tikf4nGfQelxuyfBHqZWtabxC','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:18','2021-09-11 18:56:18',NULL,'26-14-1-1-G','',0,'',0,'','08842899,09007011,08831091,092','none',0,0,''),(109,'30-14','30號(14樓G戶)',NULL,'$2y$10$Q6oe.mYA8Ze9oNp/JHlxPe2PG.iDRXEfBYLkDDiPcAwkpbLvc.oBq','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:18','2021-09-11 18:56:18',NULL,'30-14-1-1-G','',0,'',0,'','08959219,09321811,08961091,088','none',0,0,''),(110,'38-14','38號(14樓C戶)',NULL,'$2y$10$gJx1mEO2ZtAmrdsMJNUYqetjYiVn.zMn0UhlEmaXXMBCnH0p4h0ha','user',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,'',NULL,NULL,NULL,'2021-09-11 18:56:18','2021-09-11 18:56:18',NULL,'38-14-1-1-G','',0,'',0,'','08667795,08884051,09278915,089','none',0,0,''),(111,'36-1','36號(1樓管委會)','','$2y$10$aDGFfXCBvjMpYJkOqdCz5.aygbMIqqYhZW27MZumJw/ZgdslpmgZG','user','','','','','',NULL,NULL,NULL,NULL,NULL,NULL,'','','','','',1,0,NULL,'',NULL,NULL,NULL,'2021-09-11 19:08:01','2021-09-11 19:08:01',NULL,'36-1-1-1-G','',0,'',0,'','','none',0,0,'');

--
-- Table structure for table `voice_codes`
--

CREATE TABLE `voice_codes` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `code` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '語音代碼',
  `message` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '語音內容',
  `language` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '語系',
  `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '狀態',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `voice_codes`
--


--
-- Table structure for table `vote_comments`
--

CREATE TABLE `vote_comments` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `vote_id` int NOT NULL,
  `content` text COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `vote_comments`
--


--
-- Table structure for table `vote_lists`
--

CREATE TABLE `vote_lists` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `vote_id` int NOT NULL,
  `option_id` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `vote_lists`
--


--
-- Table structure for table `vote_options`
--

CREATE TABLE `vote_options` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `vote_id` int NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `votes` int NOT NULL,
  `voters` text COLLATE utf8_unicode_ci,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `vote_options`
--


--
-- Table structure for table `votes`
--

CREATE TABLE `votes` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `content` text COLLATE utf8_unicode_ci,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'radio',
  `time_start` datetime NOT NULL,
  `time_end` datetime NOT NULL,
  `voters` text COLLATE utf8_unicode_ci,
  `cover_img` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '封面圖檔',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `views` int NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `votes`
--


--
-- Table structure for table `water_degrees`
--

CREATE TABLE `water_degrees` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `facility_id` int NOT NULL,
  `degree` double(8,2) NOT NULL,
  `year` int NOT NULL,
  `month` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `water_degrees`
--


--
-- Table structure for table `water_energies`
--

CREATE TABLE `water_energies` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `device_code` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '設備代號',
  `room_no` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '宿舍號碼',
  `date` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '日期',
  `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '數值',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `water_energies`
--


--
-- Table structure for table `water_facilities`
--

CREATE TABLE `water_facilities` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `code` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `floor` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `rate` double(8,2) NOT NULL,
  `status` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `each_facility` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `mark` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `time` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `method` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `class` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `inch` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `radius` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `facility_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `facility_num` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `unit` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `digits` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `brand` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `place` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `num` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `exist` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `deadline` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `water_facilities`
--


--
-- Table structure for table `water_fees`
--

CREATE TABLE `water_fees` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `tag_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `degree` double(8,2) NOT NULL,
  `basic_fee` double(8,2) NOT NULL,
  `use_fee` double(8,2) NOT NULL,
  `protect_fee` double(8,2) NOT NULL,
  `sewer_fee` double(8,2) NOT NULL,
  `year` int NOT NULL,
  `month` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `water_fees`
--


--
-- Table structure for table `water_logs`
--

CREATE TABLE `water_logs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `num` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '案件編號',
  `start_time` datetime NOT NULL COMMENT '停水起',
  `end_time` datetime NOT NULL COMMENT '起水止',
  `area` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '地區',
  `info` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '停水原因',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `water_logs`
--


--
-- Table structure for table `water_meters`
--

CREATE TABLE `water_meters` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '設備名稱',
  `code` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `object_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'object_id',
  `status` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `water_meters`
--


--
-- Table structure for table `water_records`
--

CREATE TABLE `water_records` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `f_id` int NOT NULL,
  `degree` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `year` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `month` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `last` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `water_records`
--


--
-- Table structure for table `water_taishui_mappings`
--

CREATE TABLE `water_taishui_mappings` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `t_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `f_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `water_taishui_mappings`
--


--
-- Table structure for table `weather__station_classes`
--

CREATE TABLE `weather__station_classes` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `weather__station_classes`
--


--
-- Table structure for table `weather__station_locations`
--

CREATE TABLE `weather__station_locations` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `building` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `floor` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `status` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `weather__station_locations`
--


--
-- Table structure for table `weather__station_logs`
--

CREATE TABLE `weather__station_logs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `w_id` int NOT NULL,
  `lightDimmingValue` int NOT NULL,
  `streetLampFault` tinyint(1) NOT NULL,
  `temperature` double NOT NULL,
  `humidity` int NOT NULL,
  `pm25` int NOT NULL,
  `rainfallMeter` int NOT NULL,
  `illuminanceValue` int NOT NULL,
  `wind` int NOT NULL,
  `windTo` int NOT NULL,
  `numberOfPeople` int NOT NULL,
  `carDetection` tinyint(1) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `weather__station_logs`
--


--
-- Table structure for table `weather__stations`
--

CREATE TABLE `weather__stations` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `class_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `weather_station_number` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `weather_station_model` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `weather_station_serial` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `location` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `link_url` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `status` int NOT NULL,
  `info` text COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `weather__stations`
--


--
-- Table structure for table `weathers`
--

CREATE TABLE `weathers` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `des` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `tem` tinyint NOT NULL,
  `hum` tinyint NOT NULL,
  `pop` tinyint NOT NULL,
  `uvi` tinyint NOT NULL,
  `aqi` tinyint NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `weathers`
--


--
-- Table structure for table `wenlin_columns`
--

CREATE TABLE `wenlin_columns` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `wenlin_columns`
--


--
-- Table structure for table `wenlins`
--

CREATE TABLE `wenlins` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `author` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `column` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `content` text COLLATE utf8_unicode_ci,
  `cover_img` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `file` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `link` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `wenlins`
--


--
-- Table structure for table `working_logs`
--

CREATE TABLE `working_logs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `num` int NOT NULL COMMENT 'num',
  `address` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '施工位置',
  `start_date` date NOT NULL COMMENT '施工起日',
  `end_date` date NOT NULL COMMENT '施工迄日',
  `time_section` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '施工時段',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `working_logs`
--


--
-- Current Database: `phpmyadmin`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `phpmyadmin` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;

USE `phpmyadmin`;

--
-- Table structure for table `pma__bookmark`
--

CREATE TABLE `pma__bookmark` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `dbase` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
  `user` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
  `label` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
  `query` text COLLATE utf8_bin NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin COMMENT='Bookmarks';

--
-- Dumping data for table `pma__bookmark`
--


--
-- Table structure for table `pma__central_columns`
--

CREATE TABLE `pma__central_columns` (
  `db_name` varchar(64) COLLATE utf8_bin NOT NULL,
  `col_name` varchar(64) COLLATE utf8_bin NOT NULL,
  `col_type` varchar(64) COLLATE utf8_bin NOT NULL,
  `col_length` text COLLATE utf8_bin,
  `col_collation` varchar(64) COLLATE utf8_bin NOT NULL,
  `col_isNull` tinyint(1) NOT NULL,
  `col_extra` varchar(255) COLLATE utf8_bin DEFAULT '',
  `col_default` text COLLATE utf8_bin,
  PRIMARY KEY (`db_name`,`col_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin COMMENT='Central list of columns';

--
-- Dumping data for table `pma__central_columns`
--


--
-- Table structure for table `pma__column_info`
--

CREATE TABLE `pma__column_info` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `table_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `column_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `comment` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
  `mimetype` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
  `transformation` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
  `transformation_options` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
  `input_transformation` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
  `input_transformation_options` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `db_name` (`db_name`,`table_name`,`column_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin COMMENT='Column information for phpMyAdmin';

--
-- Dumping data for table `pma__column_info`
--


--
-- Table structure for table `pma__designer_settings`
--

CREATE TABLE `pma__designer_settings` (
  `username` varchar(64) COLLATE utf8_bin NOT NULL,
  `settings_data` text COLLATE utf8_bin NOT NULL,
  PRIMARY KEY (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin COMMENT='Settings related to Designer';

--
-- Dumping data for table `pma__designer_settings`
--


--
-- Table structure for table `pma__export_templates`
--

CREATE TABLE `pma__export_templates` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(64) COLLATE utf8_bin NOT NULL,
  `export_type` varchar(10) COLLATE utf8_bin NOT NULL,
  `template_name` varchar(64) COLLATE utf8_bin NOT NULL,
  `template_data` text COLLATE utf8_bin NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `u_user_type_template` (`username`,`export_type`,`template_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin COMMENT='Saved export templates';

--
-- Dumping data for table `pma__export_templates`
--


--
-- Table structure for table `pma__favorite`
--

CREATE TABLE `pma__favorite` (
  `username` varchar(64) COLLATE utf8_bin NOT NULL,
  `tables` text COLLATE utf8_bin NOT NULL,
  PRIMARY KEY (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin COMMENT='Favorite tables';

--
-- Dumping data for table `pma__favorite`
--


--
-- Table structure for table `pma__history`
--

CREATE TABLE `pma__history` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `db` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `table` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `timevalue` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `sqlquery` text COLLATE utf8_bin NOT NULL,
  PRIMARY KEY (`id`),
  KEY `username` (`username`,`db`,`table`,`timevalue`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin COMMENT='SQL history for phpMyAdmin';

--
-- Dumping data for table `pma__history`
--


--
-- Table structure for table `pma__navigationhiding`
--

CREATE TABLE `pma__navigationhiding` (
  `username` varchar(64) COLLATE utf8_bin NOT NULL,
  `item_name` varchar(64) COLLATE utf8_bin NOT NULL,
  `item_type` varchar(64) COLLATE utf8_bin NOT NULL,
  `db_name` varchar(64) COLLATE utf8_bin NOT NULL,
  `table_name` varchar(64) COLLATE utf8_bin NOT NULL,
  PRIMARY KEY (`username`,`item_name`,`item_type`,`db_name`,`table_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin COMMENT='Hidden items of navigation tree';

--
-- Dumping data for table `pma__navigationhiding`
--


--
-- Table structure for table `pma__pdf_pages`
--

CREATE TABLE `pma__pdf_pages` (
  `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `page_nr` int unsigned NOT NULL AUTO_INCREMENT,
  `page_descr` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`page_nr`),
  KEY `db_name` (`db_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin COMMENT='PDF relation pages for phpMyAdmin';

--
-- Dumping data for table `pma__pdf_pages`
--


--
-- Table structure for table `pma__recent`
--

CREATE TABLE `pma__recent` (
  `username` varchar(64) COLLATE utf8_bin NOT NULL,
  `tables` text COLLATE utf8_bin NOT NULL,
  PRIMARY KEY (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin COMMENT='Recently accessed tables';

--
-- Dumping data for table `pma__recent`
--

INSERT INTO `pma__recent` VALUES ('root','[{\"db\":\"BUYA\",\"table\":\"cards\"},{\"db\":\"BUYA\",\"table\":\"users\"}]');

--
-- Table structure for table `pma__relation`
--

CREATE TABLE `pma__relation` (
  `master_db` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `master_table` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `master_field` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `foreign_db` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `foreign_table` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `foreign_field` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  PRIMARY KEY (`master_db`,`master_table`,`master_field`),
  KEY `foreign_field` (`foreign_db`,`foreign_table`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin COMMENT='Relation table';

--
-- Dumping data for table `pma__relation`
--


--
-- Table structure for table `pma__savedsearches`
--

CREATE TABLE `pma__savedsearches` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `search_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `search_data` text COLLATE utf8_bin NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `u_savedsearches_username_dbname` (`username`,`db_name`,`search_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin COMMENT='Saved searches';

--
-- Dumping data for table `pma__savedsearches`
--


--
-- Table structure for table `pma__table_coords`
--

CREATE TABLE `pma__table_coords` (
  `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `table_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `pdf_page_number` int NOT NULL DEFAULT '0',
  `x` float unsigned NOT NULL DEFAULT '0',
  `y` float unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`db_name`,`table_name`,`pdf_page_number`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin COMMENT='Table coordinates for phpMyAdmin PDF output';

--
-- Dumping data for table `pma__table_coords`
--


--
-- Table structure for table `pma__table_info`
--

CREATE TABLE `pma__table_info` (
  `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `table_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `display_field` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  PRIMARY KEY (`db_name`,`table_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin COMMENT='Table information for phpMyAdmin';

--
-- Dumping data for table `pma__table_info`
--


--
-- Table structure for table `pma__table_uiprefs`
--

CREATE TABLE `pma__table_uiprefs` (
  `username` varchar(64) COLLATE utf8_bin NOT NULL,
  `db_name` varchar(64) COLLATE utf8_bin NOT NULL,
  `table_name` varchar(64) COLLATE utf8_bin NOT NULL,
  `prefs` text COLLATE utf8_bin NOT NULL,
  `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`username`,`db_name`,`table_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin COMMENT='Tables'' UI preferences';

--
-- Dumping data for table `pma__table_uiprefs`
--


--
-- Table structure for table `pma__tracking`
--

CREATE TABLE `pma__tracking` (
  `db_name` varchar(64) COLLATE utf8_bin NOT NULL,
  `table_name` varchar(64) COLLATE utf8_bin NOT NULL,
  `version` int unsigned NOT NULL,
  `date_created` datetime NOT NULL,
  `date_updated` datetime NOT NULL,
  `schema_snapshot` text COLLATE utf8_bin NOT NULL,
  `schema_sql` text COLLATE utf8_bin,
  `data_sql` longtext COLLATE utf8_bin,
  `tracking` set('UPDATE','REPLACE','INSERT','DELETE','TRUNCATE','CREATE DATABASE','ALTER DATABASE','DROP DATABASE','CREATE TABLE','ALTER TABLE','RENAME TABLE','DROP TABLE','CREATE INDEX','DROP INDEX','CREATE VIEW','ALTER VIEW','DROP VIEW') COLLATE utf8_bin DEFAULT NULL,
  `tracking_active` int unsigned NOT NULL DEFAULT '1',
  PRIMARY KEY (`db_name`,`table_name`,`version`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin COMMENT='Database changes tracking for phpMyAdmin';

--
-- Dumping data for table `pma__tracking`
--


--
-- Table structure for table `pma__userconfig`
--

CREATE TABLE `pma__userconfig` (
  `username` varchar(64) COLLATE utf8_bin NOT NULL,
  `timevalue` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `config_data` text COLLATE utf8_bin NOT NULL,
  PRIMARY KEY (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin COMMENT='User preferences storage for phpMyAdmin';

--
-- Dumping data for table `pma__userconfig`
--

INSERT INTO `pma__userconfig` VALUES ('root','2021-09-11 10:13:03','{\"lang\":\"zh_TW\",\"collation_connection\":\"utf8mb4_unicode_ci\"}');

--
-- Table structure for table `pma__usergroups`
--

CREATE TABLE `pma__usergroups` (
  `usergroup` varchar(64) COLLATE utf8_bin NOT NULL,
  `tab` varchar(64) COLLATE utf8_bin NOT NULL,
  `allowed` enum('Y','N') COLLATE utf8_bin NOT NULL DEFAULT 'N',
  PRIMARY KEY (`usergroup`,`tab`,`allowed`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin COMMENT='User groups with configured menu items';

--
-- Dumping data for table `pma__usergroups`
--


--
-- Table structure for table `pma__users`
--

CREATE TABLE `pma__users` (
  `username` varchar(64) COLLATE utf8_bin NOT NULL,
  `usergroup` varchar(64) COLLATE utf8_bin NOT NULL,
  PRIMARY KEY (`username`,`usergroup`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin COMMENT='Users and their assignments to user groups';

--
-- Dumping data for table `pma__users`
--



