-- Table structure for table `languages`
--

CREATE TABLE `languages` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `name_ja` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '日本語名',
  `name_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '英語名',
  `short_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '略称',
  `is_show` tinyint NOT NULL DEFAULT '0' COMMENT '言語表示フラグ',
  `is_rtl` tinyint NOT NULL DEFAULT '0' COMMENT 'RTL向けスタイル適応フラグ',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `languages`
--

INSERT INTO `languages` VALUES (1,'英語 (English)','English (English)','en',1,0,'2023-07-02 12:40:49','2023-10-18 15:25:26',NULL),(2,'中国語 (中文 / 汉语)','Chinese (中文 / 汉语)','zh',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:29',NULL),(3,'スペイン語 (Español)','Spanish (Español)','es',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:29',NULL),(4,'ヒンディー語 (हिन्दी)','Hindi (हिन्दी)','hi',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:29',NULL),(5,'アラビア語 (العربية)','Arabic (العربية)','ar',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:29',NULL),(6,'ポルトガル語 (Português)','Portuguese (Português)','pt',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:29',NULL),(7,'ロシア語 (Русский)','Russian (Русский)','ru',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:30',NULL),(8,'フランス語 (Français)','French (Français)','fr',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:30',NULL),(9,'ベンガル語 (বাংলা)','Bengali (বাংলা)','bn',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:30',NULL),(10,'ドイツ語 (Deutsch)','German (Deutsch)','de',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:30',NULL),(11,'日本語 (日本語)','Japanese (日本語)','ja',1,0,'2023-07-02 12:40:49','2023-10-18 15:25:24',NULL),(12,'ウルドゥー語 (اردو)','Urdu (اردو)','ur',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:30',NULL),(13,'インドネシア語 (Bahasa Indonesia)','Indonesian (Bahasa Indonesia)','id',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:30',NULL),(14,'イタリア語 (Italiano)','Italian (Italiano)','it',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:30',NULL),(15,'タガログ語 (Tagalog)','Tagalog (Tagalog)','tl',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:30',NULL),(16,'クメール語 (ភាសាខ្មែរ)','Khmer (ភាសាខ្មែរ)','km',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:30',NULL),(17,'トルコ語 (Türkçe)','Turkish (Türkçe)','tr',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:30',NULL),(18,'ウクライナ語 (Українська)','Ukrainian (Українська)','uk',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:30',NULL),(19,'グジャラート語 (ગુજરાતી)','Gujarati (ગુજરાતી)','gu',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:30',NULL),(20,'オランダ語 (Nederlands)','Dutch (Nederlands)','nl',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:30',NULL),(21,'ベトナム語 (Tiếng Việt)','Vietnamese (Tiếng Việt)','vi',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:30',NULL),(22,'イングランド・ウェールズ語 (Cymraeg)','Welsh (Cymraeg)','cy',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:30',NULL),(23,'パンジャブ語 (ਪੰਜਾਬੀ)','Punjabi (ਪੰਜਾਬੀ)','pa',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:30',NULL),(24,'ヘブライ語 (עִבְרִית)','Hebrew (עִבְרִית)','he',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:30',NULL),(25,'チェコ語 (Čeština)','Czech (Čeština)','cs',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:30',NULL),(26,'スウェーデン語 (Svenska)','Swedish (Svenska)','sv',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:30',NULL),(27,'ノルウェー語 (Norsk)','Norwegian (Norsk)','no',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:30',NULL),(28,'スロバキア語 (Slovenčina)','Slovak (Slovenčina)','sk',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:30',NULL),(29,'フィンランド語 (Suomi)','Finnish (Suomi)','fi',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:30',NULL),(30,'デンマーク語 (Dansk)','Danish (Dansk)','da',0,0,'2023-07-02 12:40:49','2023-10-18 10:32:30',NULL),(31,'タイ語 (แบบไทย)','Thai (แบบไทย)','th',0,0,'2023-10-18 10:33:06','2023-10-18 11:01:40',NULL);

--
-- Table structure for table `login_certificates`
--

CREATE TABLE `login_certificates` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `kind` enum('CLINIC','OSADA') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'CLINIC' COMMENT 'ユーザー種別',
  `login_id` int unsigned NOT NULL COMMENT 'ログインID',
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '認証コード',
  `deadline_at` datetime DEFAULT NULL COMMENT '有効期限',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新日時',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `login_certificates`
--

INSERT INTO `login_certificates` VALUES (1,'CLINIC',1,'179536','2023-07-06 13:25:23','2023-07-02 18:13:42','2023-07-06 13:15:23'),(2,'OSADA',1,'527474','2024-07-20 22:34:08','2023-07-02 21:33:24','2024-07-20 22:24:08'),(3,'CLINIC',31,'357798','2023-07-07 07:47:35','2023-07-04 11:40:40','2023-07-07 07:37:35'),(4,'CLINIC',34,'975460','2023-07-07 09:19:12','2023-07-07 08:46:19','2023-07-07 09:09:12'),(5,'OSADA',4,'970779','2024-07-22 11:19:19','2023-09-25 19:51:20','2024-07-22 11:09:19');

--
-- Table structure for table `maintenance_answers`
--

CREATE TABLE `maintenance_answers` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `maintenance_result_id` bigint unsigned NOT NULL COMMENT '検査結果ID',
  `maintenance_question_id` bigint unsigned NOT NULL COMMENT '質問ID',
  `answer` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '回答',
  `notes` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '備考',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`),
  KEY `maintenance_answers_maintenance_result_id_foreign` (`maintenance_result_id`),
  KEY `maintenance_answers_maintenance_question_id_foreign` (`maintenance_question_id`),
  CONSTRAINT `maintenance_answers_maintenance_question_id_foreign` FOREIGN KEY (`maintenance_question_id`) REFERENCES `maintenance_questions` (`id`),
  CONSTRAINT `maintenance_answers_maintenance_result_id_foreign` FOREIGN KEY (`maintenance_result_id`) REFERENCES `maintenance_results` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=57 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `maintenance_answers`
--

INSERT INTO `maintenance_answers` VALUES (1,1,1,'OK',NULL,'2023-11-08 13:31:45','2023-11-08 13:31:45',NULL),(2,1,2,'OK',NULL,'2023-11-08 13:31:45','2023-11-08 13:31:45',NULL),(3,1,3,'OK',NULL,'2023-11-08 13:31:45','2023-11-08 13:31:45',NULL),(4,1,4,'OK',NULL,'2023-11-08 13:31:45','2023-11-08 13:31:45',NULL),(5,1,1,'OK',NULL,'2023-12-05 14:24:42','2023-12-05 14:24:42',NULL),(6,1,2,'OK',NULL,'2023-12-05 14:24:42','2023-12-05 14:24:42',NULL),(7,1,3,'OK',NULL,'2023-12-05 14:24:42','2023-12-05 14:24:42',NULL),(8,1,4,NULL,NULL,'2023-12-05 14:24:42','2023-12-05 14:24:42',NULL),(9,1,1,'OK',NULL,'2023-12-05 15:13:05','2023-12-05 15:13:05',NULL),(10,1,2,'OK',NULL,'2023-12-05 15:13:05','2023-12-05 15:13:05',NULL),(11,1,3,'OK',NULL,'2023-12-05 15:13:05','2023-12-05 15:13:05',NULL),(12,1,4,NULL,NULL,'2023-12-05 15:13:05','2023-12-05 15:13:05',NULL),(13,1,1,NULL,NULL,'2023-12-05 15:20:51','2023-12-05 15:20:51',NULL),(14,1,2,NULL,NULL,'2023-12-05 15:20:51','2023-12-05 15:20:51',NULL),(15,1,3,NULL,NULL,'2023-12-05 15:20:51','2023-12-05 15:20:51',NULL),(16,1,4,NULL,NULL,'2023-12-05 15:20:51','2023-12-05 15:20:51',NULL),(17,1,1,'OK',NULL,'2023-12-05 15:23:28','2023-12-05 15:23:28',NULL),(18,1,2,'OK',NULL,'2023-12-05 15:23:28','2023-12-05 15:23:28',NULL),(19,1,3,'OK',NULL,'2023-12-05 15:23:28','2023-12-05 15:23:28',NULL),(20,1,4,NULL,NULL,'2023-12-05 15:23:28','2023-12-05 15:23:28',NULL),(21,1,1,'OK',NULL,'2023-12-05 15:25:02','2023-12-05 15:25:02',NULL),(22,1,2,'OK',NULL,'2023-12-05 15:25:02','2023-12-05 15:25:02',NULL),(23,1,3,'OK',NULL,'2023-12-05 15:25:02','2023-12-05 15:25:02',NULL),(24,1,4,'OK',NULL,'2023-12-05 15:25:02','2023-12-05 15:25:02',NULL),(25,1,1,'OK',NULL,'2023-12-05 15:27:36','2023-12-05 15:27:36',NULL),(26,1,2,'OK',NULL,'2023-12-05 15:27:36','2023-12-05 15:27:36',NULL),(27,1,3,'OK',NULL,'2023-12-05 15:27:36','2023-12-05 15:27:36',NULL),(28,1,4,'OK',NULL,'2023-12-05 15:27:36','2023-12-05 15:27:36',NULL),(29,1,1,'OK',NULL,'2023-12-05 16:00:58','2023-12-05 16:00:58',NULL),(30,1,2,'OK',NULL,'2023-12-05 16:00:58','2023-12-05 16:00:58',NULL),(31,1,3,'OK',NULL,'2023-12-05 16:00:58','2023-12-05 16:00:58',NULL),(32,1,4,NULL,NULL,'2023-12-05 16:00:58','2023-12-05 16:00:58',NULL),(41,1,1,'OK',NULL,'2023-12-05 16:29:03','2023-12-05 16:29:03',NULL),(42,1,2,'OK',NULL,'2023-12-05 16:29:03','2023-12-05 16:29:03',NULL),(43,1,3,'OK',NULL,'2023-12-05 16:29:03','2023-12-05 16:29:03',NULL),(44,1,4,'OK',NULL,'2023-12-05 16:29:03','2023-12-05 16:29:03',NULL),(45,1,1,'OK',NULL,'2023-12-05 16:29:49','2023-12-05 16:29:49',NULL),(46,1,2,'OK',NULL,'2023-12-05 16:29:49','2023-12-05 16:29:49',NULL),(47,1,3,'OK',NULL,'2023-12-05 16:29:49','2023-12-05 16:29:49',NULL),(48,1,4,'OK',NULL,'2023-12-05 16:29:49','2023-12-05 16:29:49',NULL),(49,1,1,'OK',NULL,'2023-12-05 16:33:42','2023-12-05 16:33:42',NULL),(50,1,2,'OK',NULL,'2023-12-05 16:33:42','2023-12-05 16:33:42',NULL),(51,1,3,'OK',NULL,'2023-12-05 16:33:42','2023-12-05 16:33:42',NULL),(52,1,4,'OK',NULL,'2023-12-05 16:33:42','2023-12-05 16:33:42',NULL),(53,1,1,'OK',NULL,'2023-12-05 16:35:12','2023-12-05 16:35:12',NULL),(54,1,2,'OK',NULL,'2023-12-05 16:35:12','2023-12-05 16:35:12',NULL),(55,1,3,'OK',NULL,'2023-12-05 16:35:12','2023-12-05 16:35:12',NULL),(56,1,4,'OK',NULL,'2023-12-05 16:35:12','2023-12-05 16:35:12',NULL);

--
-- Table structure for table `maintenance_draft_answers`
--

CREATE TABLE `maintenance_draft_answers` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `maintenance_result_id` bigint unsigned NOT NULL COMMENT '検査結果ID',
  `employee_id` int NOT NULL COMMENT '社員ID',
  `maintenance_question_id` bigint unsigned NOT NULL COMMENT '質問ID',
  `answer` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '回答',
  `notes` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '備考',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`),
  KEY `maintenance_draft_answers_maintenance_result_id_foreign` (`maintenance_result_id`),
  KEY `maintenance_draft_answers_employee_id_foreign` (`employee_id`),
  KEY `maintenance_draft_answers_maintenance_question_id_foreign` (`maintenance_question_id`),
  CONSTRAINT `maintenance_draft_answers_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`),
  CONSTRAINT `maintenance_draft_answers_maintenance_question_id_foreign` FOREIGN KEY (`maintenance_question_id`) REFERENCES `maintenance_questions` (`id`),
  CONSTRAINT `maintenance_draft_answers_maintenance_result_id_foreign` FOREIGN KEY (`maintenance_result_id`) REFERENCES `maintenance_results` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `maintenance_draft_answers`
--


--
-- Table structure for table `maintenance_questions`
--

CREATE TABLE `maintenance_questions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `maintenance_survey_id` bigint unsigned NOT NULL COMMENT '項目票ID',
  `question` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '質問',
  `detail` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '説明',
  `type` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '回答タイプ',
  `required` tinyint NOT NULL DEFAULT '1' COMMENT '項目必須',
  `choices` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '選択肢',
  `page` tinyint NOT NULL DEFAULT '1' COMMENT '表示ページ',
  `orders` smallint NOT NULL DEFAULT '1' COMMENT 'ページ内順番',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`),
  KEY `maintenance_questions_maintenance_survey_id_foreign` (`maintenance_survey_id`),
  CONSTRAINT `maintenance_questions_maintenance_survey_id_foreign` FOREIGN KEY (`maintenance_survey_id`) REFERENCES `maintenance_surveys` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `maintenance_questions`
--

INSERT INTO `maintenance_questions` VALUES (1,6,'本体に型番は貼られているか？',NULL,'radio',1,'OK,NG',1,1,'2023-11-06 17:38:30','2023-11-08 10:47:23',NULL),(2,6,'外装に使用に差し支えるような傷、変形、変色などはあるか？',NULL,'radio',0,'OK,NG',1,2,'2023-11-06 20:31:10','2023-11-07 21:31:45',NULL),(3,6,'付属品の内容、数量の確認',NULL,'radio',1,'OK,NG',2,3,'2023-11-06 20:37:12','2023-11-07 14:57:53',NULL),(4,6,'規定通りの月に行われているか？',NULL,'radio',1,'OK,NG',3,4,'2023-11-06 20:37:41','2023-11-07 18:50:33',NULL);

--
-- Table structure for table `maintenance_results`
--

CREATE TABLE `maintenance_results` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `maintenance_survey_id` bigint unsigned NOT NULL COMMENT '項目票ID',
  `inspection_result` tinyint DEFAULT NULL COMMENT '検査結果',
  `inspection_result_pdf_id` int unsigned DEFAULT NULL COMMENT 'PDFファイルID',
  `notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '備考',
  `clinic_id` int unsigned NOT NULL COMMENT '医院ID',
  `own_osada_equipment_id` int unsigned DEFAULT NULL COMMENT '自社保有機器ID',
  `staff_id` int NOT NULL COMMENT '担当者ID',
  `staff_sub_id` int DEFAULT NULL COMMENT 'サブ担当者ID',
  `start_at` datetime DEFAULT NULL COMMENT '開始日時',
  `end_at` datetime DEFAULT NULL COMMENT '終了日時',
  `clinic_signature_file_id` bigint unsigned DEFAULT NULL COMMENT '医院サインファイルID',
  `osada_signature_file_id` bigint unsigned DEFAULT NULL COMMENT 'オサダサインファイルID',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`),
  KEY `maintenance_results_maintenance_survey_id_foreign` (`maintenance_survey_id`),
  KEY `maintenance_results_clinic_id_foreign` (`clinic_id`),
  KEY `maintenance_results_own_osada_equipment_id_foreign` (`own_osada_equipment_id`),
  KEY `maintenance_results_staff_id_foreign` (`staff_id`),
  KEY `maintenance_results_staff_sub_id_foreign` (`staff_sub_id`),
  CONSTRAINT `maintenance_results_clinic_id_foreign` FOREIGN KEY (`clinic_id`) REFERENCES `clinics` (`id`),
  CONSTRAINT `maintenance_results_maintenance_survey_id_foreign` FOREIGN KEY (`maintenance_survey_id`) REFERENCES `maintenance_surveys` (`id`),
  CONSTRAINT `maintenance_results_own_osada_equipment_id_foreign` FOREIGN KEY (`own_osada_equipment_id`) REFERENCES `own_osada_equipments` (`id`),
  CONSTRAINT `maintenance_results_staff_id_foreign` FOREIGN KEY (`staff_id`) REFERENCES `employees` (`id`),
  CONSTRAINT `maintenance_results_staff_sub_id_foreign` FOREIGN KEY (`staff_sub_id`) REFERENCES `employees` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `maintenance_results`
--

INSERT INTO `maintenance_results` VALUES (1,6,NULL,NULL,NULL,34,57,1,NULL,'2023-11-08 15:00:00','2023-12-05 16:35:12',194,193,'2023-11-07 15:02:43','2023-12-05 16:35:12',NULL);

--
-- Table structure for table `maintenance_survey_pages`
--

CREATE TABLE `maintenance_survey_pages` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `maintenance_survey_id` bigint unsigned NOT NULL COMMENT '項目票ID',
  `page` tinyint NOT NULL COMMENT 'ページ',
  `page_image_id` bigint unsigned DEFAULT NULL COMMENT '表示画像ファイルID',
  `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'タイトル',
  `caution` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '注意事項',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `maintenance_survey_pages`
--

INSERT INTO `maintenance_survey_pages` VALUES (1,6,1,133,'点検を始める前にチェック！',NULL,'2023-11-06 22:03:24','2023-12-03 21:43:22',NULL),(2,6,2,NULL,'2ページ','注意事項','2023-12-03 21:45:43','2023-12-03 21:45:43',NULL);

--
-- Table structure for table `maintenance_surveys`
--

CREATE TABLE `maintenance_surveys` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '名称',
  `equipment_type_ids` json DEFAULT NULL COMMENT '機器形式ID',
  `start_at` datetime DEFAULT NULL COMMENT '開始日時',
  `end_at` datetime DEFAULT NULL COMMENT '終了日時',
  `time_required` smallint unsigned NOT NULL DEFAULT '0' COMMENT '所要時間(分)',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `maintenance_surveys`
--

INSERT INTO `maintenance_surveys` VALUES (1,'テスト1','[\"45\", \"46\", \"47\"]',NULL,NULL,0,'2023-11-06 09:11:49','2023-11-06 09:11:49',NULL),(2,'テスト2','[\"37\", \"38\"]',NULL,NULL,0,'2023-11-06 09:20:24','2023-11-06 09:20:24',NULL),(3,'テスト3','[\"97\", \"98\", \"99\", \"100\", \"101\", \"102\", \"103\"]',NULL,NULL,0,'2023-11-06 09:21:37','2023-11-06 09:21:37',NULL),(4,'テスト4','[\"138\", \"139\"]',NULL,NULL,0,'2023-11-06 09:23:58','2023-11-06 09:23:58',NULL),(5,'テスト5','[\"37\", \"38\", \"39\", \"40\"]','2023-11-06 00:00:00',NULL,0,'2023-11-06 09:58:30','2023-11-06 10:25:11',NULL),(6,'テスト6','[\"176\", \"177\"]',NULL,NULL,0,'2023-11-06 10:29:49','2023-11-06 10:29:49',NULL);

--
-- Table structure for table `medical_categories`
--

CREATE TABLE `medical_categories` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `department_ja` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '科（日本語）',
  `department_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '科（英語）',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_categories`
--

INSERT INTO `medical_categories` VALUES (1,'歯科','Dentistry','2023-07-02 12:40:49','2023-07-02 12:40:49',NULL),(2,'獣医科','Veterinary','2023-07-02 12:40:49','2023-07-02 12:40:49',NULL),(3,'医科','Medical','2023-07-02 12:40:49','2023-07-02 12:40:49',NULL),(4,'その他','others','2023-07-02 12:40:49','2023-07-02 12:40:49',NULL);

--
-- Table structure for table `medical_category_excluded_equipment_document_languages`
--

CREATE TABLE `medical_category_excluded_equipment_document_languages` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `medical_category_document_excluded_equipment_id` int unsigned NOT NULL COMMENT '医療カテゴリ修理対象外機器PDF資料ID',
  `language_id` int unsigned NOT NULL COMMENT '言語マスタID',
  `file_id` int unsigned NOT NULL COMMENT 'ファイルID',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_category_excluded_equipment_document_languages`
--

INSERT INTO `medical_category_excluded_equipment_document_languages` VALUES (5,1,11,209,'2024-04-09 00:20:55','2024-04-09 00:20:55',NULL),(6,3,11,210,'2024-04-09 00:21:15','2024-04-09 00:21:15',NULL),(7,4,11,211,'2024-04-09 00:21:33','2024-04-09 00:21:33',NULL);

--
-- Table structure for table `medical_category_excluded_equipment_documents`
--

CREATE TABLE `medical_category_excluded_equipment_documents` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `medical_category_id` int unsigned NOT NULL COMMENT '医療カテゴリマスタID',
  `department_prefix_ja` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '医療カテゴリ名称接頭辞(日本語)',
  `department_prefix_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '医療カテゴリ名称接頭辞(英語)',
  `is_display` tinyint(1) NOT NULL DEFAULT '0' COMMENT '公開フラグ',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_category_excluded_equipment_documents`
--

INSERT INTO `medical_category_excluded_equipment_documents` VALUES (1,1,'国内','Domestic ',1,'2024-04-08 23:52:32','2024-04-09 00:20:55',NULL),(2,1,'国外','Foreign ',0,'2024-04-08 23:52:32','2024-04-08 23:52:32',NULL),(3,2,NULL,NULL,1,'2024-04-08 23:52:32','2024-04-09 00:21:14',NULL),(4,3,NULL,NULL,1,'2024-04-08 23:52:32','2024-04-09 00:21:33',NULL);

--
-- Table structure for table `message_files`
--

CREATE TABLE `message_files` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `message_id` bigint unsigned NOT NULL COMMENT '問い合わせID',
  `file_id` bigint unsigned NOT NULL COMMENT 'ファイルID',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`),
  KEY `message_files_message_id_foreign` (`message_id`),
  KEY `message_files_file_id_foreign` (`file_id`),
  CONSTRAINT `message_files_file_id_foreign` FOREIGN KEY (`file_id`) REFERENCES `files` (`id`),
  CONSTRAINT `message_files_message_id_foreign` FOREIGN KEY (`message_id`) REFERENCES `repair_messages` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `message_files`
--

INSERT INTO `message_files` VALUES (1,14,34,'2023-07-02 12:40:53','2023-07-02 12:40:53',NULL),(2,19,12,'2023-07-02 12:40:53','2023-07-02 12:40:53',NULL),(3,8,11,'2023-07-02 12:40:53','2023-07-02 12:40:53',NULL),(4,23,45,'2023-07-02 12:40:53','2023-07-02 12:40:53',NULL),(5,25,45,'2023-07-02 12:40:53','2023-07-02 12:40:53',NULL),(6,6,22,'2023-07-02 12:40:53','2023-07-02 12:40:53',NULL),(7,25,45,'2023-07-02 12:40:53','2023-07-02 12:40:53',NULL),(8,21,43,'2023-07-02 12:40:53','2023-07-02 12:40:53',NULL),(9,29,33,'2023-07-02 12:40:53','2023-07-02 12:40:53',NULL),(10,7,8,'2023-07-02 12:40:53','2023-07-02 12:40:53',NULL),(11,73,116,'2023-12-01 18:50:46','2023-12-01 18:50:46',NULL),(12,73,117,'2023-12-01 18:50:46','2023-12-01 18:50:46',NULL),(13,74,120,'2023-12-02 01:05:16','2023-12-02 01:05:16',NULL),(14,74,121,'2023-12-02 01:05:16','2023-12-02 01:05:16',NULL),(15,75,158,'2023-12-04 12:28:32','2023-12-04 12:28:32',NULL),(16,75,159,'2023-12-04 12:28:32','2023-12-04 12:28:32',NULL),(17,76,161,'2023-12-04 13:14:08','2023-12-04 13:14:08',NULL),(18,78,195,'2023-12-05 21:51:50','2023-12-05 21:51:50',NULL);

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

CREATE TABLE `migrations` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `migration` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=300 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `migrations` VALUES (1,'2014_10_12_000000_create_users_table',1),(2,'2014_10_12_100000_create_password_reset_tokens_table',1),(3,'2019_08_19_000000_create_failed_jobs_table',1),(4,'2019_12_14_000001_create_personal_access_tokens_table',1),(5,'2023_04_18_051806_create_positions_table',1),(6,'2023_04_18_052533_create_oasys_functions_table',1),(7,'2023_04_18_052738_create_operation_types_table',1),(8,'2023_04_18_073019_create_countries_table',1),(9,'2023_04_19_010214_create_prefecture_codes_table',1),(10,'2023_04_19_042936_create_affiliates_table',1),(11,'2023_04_19_042937_create_employees_table',1),(12,'2023_04_19_053501_create_operation_permissions_table',1),(13,'2023_04_20_015743_create_clinics_table',1),(14,'2023_04_20_030415_create_interests_table',1),(15,'2023_04_20_032320_create_medical_categories_table',1),(16,'2023_04_20_033138_create_clinic_categories_table',1),(17,'2023_04_20_034618_create_clinic_interests_table',1),(18,'2023_04_20_035248_create_clinic_staffs_table',1),(19,'2023_04_20_044203_create_languages_table',1),(20,'2023_04_28_040523_change_affiliates_table_column_section',1),(21,'2023_05_09_081344_drop_column_code_column',1),(22,'2023_05_12_155549_add_column_prefecture_code_clinics_table',1),(23,'2023_05_15_080821_create_equipment_types_table',1),(24,'2023_05_15_084418_create_equipment_genres_table',1),(25,'2023_05_15_084917_create_failures_table',1),(26,'2023_05_15_085947_create_repair_handling_types_table',1),(27,'2023_05_15_090637_create_failure_handlings_table',1),(28,'2023_05_15_091159_create_equipment_parts_table',1),(29,'2023_05_15_092424_create_rental_items_table',1),(30,'2023_05_15_093016_create_repair_requests_table',1),(31,'2023_05_15_094053_create_repair_rental_items_table',1),(32,'2023_05_15_094800_create_repair_request_failures_table',1),(33,'2023_05_15_095359_create_pickup_schedules_table',1),(34,'2023_05_15_100117_create_payment_methods_table',1),(35,'2023_05_15_100602_create_delivery_methods_table',1),(36,'2023_05_15_101240_create_repair_storage_status_table',1),(37,'2023_05_15_102253_create_estimate_info_table',1),(38,'2023_05_15_103331_create_replacements_table',1),(39,'2023_05_15_104047_create_estimate_files_table',1),(40,'2023_05_15_104738_create_invoice_detail_files_table',1),(41,'2023_05_15_105712_create_invoice_files_table',1),(42,'2023_05_15_112305_create_repair_messages_table',1),(43,'2023_05_15_114717_create_message_files_table',1),(44,'2023_05_15_120438_create_files_table',1),(45,'2023_05_15_122639_create_repair_request_logs_table',1),(46,'2023_05_16_161606_add_column_repair_handling_type_id_repair_requests_table',1),(47,'2023_05_16_172305_create_own_osada_equipments_table',1),(48,'2023_05_16_174226_change_column_osada_equipment_id_to_own_osada_equipment_id',1),(49,'2023_05_16_232844_rename_column_osada_equipment_id_repair_request_logs_table',1),(50,'2023_05_17_115139_drop_column_repair_request_at_repair_requests_table',1),(51,'2023_05_17_142927_drop_column_serial_number_request_table',1),(52,'2023_05_17_143936_drop_column_serial_number_repair_requests_table',1),(53,'2023_05_17_172745_drop_column_repair_request_at_repair_request_table',1),(54,'2023_05_19_112054_add_column_reply_to_message_id_repair_messages_table',1),(55,'2023_05_19_150823_change_equipment_types_table',1),(56,'2023_05_19_154008_change_equipment_genres_table',1),(57,'2023_05_19_155000_create_equipments_table',1),(58,'2023_05_24_111457_rename_column_returned_at_repair_rental_items_table',1),(59,'2023_05_26_140101_drop_repair_storage_status_table',1),(60,'2023_05_26_140410_create_repair_progress_table',1),(61,'2023_05_26_142112_change_repair_request_logs',1),(62,'2023_05_26_165653_add_column_rental_request_canceled_at_repair_requests',1),(63,'2023_05_26_170311_add_column_rental_request_canceled_at_repair_request_logs',1),(64,'2023_05_29_111257_drop_column_repair_handling_type_id',1),(65,'2023_05_29_131104_add_column_repair_requests',1),(66,'2023_05_29_131105_change_payment_method_id_repair_request_logs',1),(67,'2023_05_29_131855_drop_column_repair_handling_type_id',1),(68,'2023_05_29_131859_add_column_repair_request_logs',1),(69,'2023_05_29_135906_drop_table_repair_handling_types',1),(70,'2023_05_29_140000_drop_table_payment_methods',1),(71,'2023_05_29_151024_add_column_finished_at_repair_progress',1),(72,'2023_05_30_172842_drop_table_estimate_files',1),(73,'2023_05_30_173646_drop_column_estimate_document_id',1),(74,'2023_05_30_173822_drop_column_estimate_document_id_repair_request_logs',1),(75,'2023_05_30_174836_add_column_final_estimate_file_id_estimate_info',1),(76,'2023_05_30_180055_add_column_is_replace_requested_replacements',1),(77,'2023_05_31_115215_add_column_clinic_replace_parts_answered_at_estimate_info',1),(78,'2023_06_01_163829_create_tax_rates_table',1),(79,'2023_06_02_163050_rename_column_estimated_id_replacements',1),(80,'2023_06_04_195725_add_standard_price_to_failures_table',1),(81,'2023_06_05_105230_rename_column_estimate_id_to_estimate_info_id',1),(82,'2023_06_05_105342_rename_column_estimate_id_to_estimate_info_id',1),(83,'2023_06_05_105450_rename_column_estimate_id_to_estimate_info_id',1),(84,'2023_06_05_105458_rename_column_estimate_id_to_estimate_info_id',1),(85,'2023_06_12_102125_add_column_returned_at_payment_id_repair_requests_table',1),(86,'2023_06_12_131847_create_cardbrands_table',1),(87,'2023_06_12_144739_create_orders_table',1),(88,'2023_06_12_180043_rename_and_add_column_rental_items',1),(89,'2023_06_12_180428_drop_column_current_status_repair_rental_items',1),(90,'2023_06_13_122645_add_category_equipment_types',1),(91,'2023_06_14_115336_create_repair_request_files_table',1),(92,'2023_06_14_120221_add_sqa_estimate_id_estimate_info',1),(93,'2023_06_14_121637_add_content_replacements',1),(94,'2023_06_15_081654_add_pickup_worked_at_repair_requests',1),(95,'2023_06_15_082259_add_pickup_worked_at_repair_request_logs',1),(96,'2023_06_16_152954_drop_unique_index_equipment_types',1),(97,'2023_06_17_202813_create_rental_item_according_to_types',1),(98,'2023_06_18_095709_create_equipment_type_prices',1),(99,'2023_06_19_103043_rename_is_portable',1),(100,'2023_06_19_133043_rename_foreignkey_equipment_type_prices',1),(101,'2023_06_20_133822_change_guarantee_period_nullable_repair_requests',1),(102,'2023_06_21_142037_add_column_detail_delivery_methods',1),(103,'2023_06_22_161030_update_updated_at_on_update_current_timestamp',1),(104,'2023_06_22_174834_drop_table_pmd_genre',1),(105,'2023_06_22_181532_rename_table_from_replacements_to_estimate_info_detail',1),(106,'2023_06_24_070505_create_osada_holidays_table',1),(107,'2023_06_24_152637_add_column_caution_equipments',1),(108,'2023_06_26_230523_change_affiliates_table_column_section',1),(109,'2023_06_27_155609_change_employee_id_nullable_repair_progress',1),(110,'2023_06_27_165125_change_cancel_flag_to_canceled_at_repair_requests',1),(111,'2023_06_29_132758_drop_unique_indexes_clinic_categories',1),(112,'2023_06_29_135359_drop_unique_indexes_clinic_interests',1),(113,'2023_06_30_131402_create_table_clinic_free_informations',1),(114,'2023_06_30_133239_login_certificates_table',1),(115,'2023_06_30_180239_create_equipment_chekcpoints_table',1),(116,'2023_06_30_182637_add_column_manual_file_equipments',1),(117,'2023_06_30_232532_rename_column_deadline_at',1),(118,'2023_06_30_235537_add_column_procedure_file_equipments',1),(119,'2023_07_02_120309_change_flowchart_ja_file_id_nullable_failures',1),(120,'2023_07_03_200309_add_column_category_rental_items',2),(121,'2023_07_03_205309_add_column_day_clinic_free_times',3),(122,'2023_07_04_095309_add_column_day_clinic_free_times',4),(123,'2023_07_06_114322_change_sqa_estimate_id_string_estimate_info',5),(124,'2023_07_06_220309_add_column_category_equipment',6),(125,'2023_07_07_122637_add_compatible_flag_equipments',7),(126,'2023_07_07_153152_add_column_medical_category_id_interests',8),(127,'2023_07_07_222637_add_veterinary_equipment_types',9),(128,'2023_07_09_003022_change_rental_item_id_repair_rental_items',10),(129,'2023_07_11_090309_add_column_order_id_equipments',11),(130,'2023_07_10_113704_drop_columns_billing_at_repair_requests',12),(131,'2023_07_10_115303_drop_columns_billing_at_repair_request_logs',12),(132,'2023_07_10_210624_add_column_new_item_requested',12),(133,'2023_07_18_095644_create_sessions_table',13),(134,'2023_07_22_105644_clinic_priority_issues_table',14),(135,'2023_07_20_172828_change_column_employee_id_nullable_repair_rental_items',15),(136,'2023_07_21_164936_add_created_by_updated_by_deleted_by_rental_items',15),(137,'2023_07_25_142540_delete_unused_columns_step1',16),(138,'2023_07_26_172138_delete_unused_columns_step1_2',17),(141,'2023_07_28_084936_add_sfa_id_employees_affiliates',19),(143,'2023_07_27_225644_create_sfa_clinics_table',20),(144,'2023_08_10_170526_add_column_is_others_equipment_types',21),(145,'2023_07_27_145912_drop_column_needs_delivery_response_equipment_types',22),(146,'2023_08_19_153926_position_data_update',23),(147,'2023_09_02_170526_add_column_kayoibako_flag_equipment_types',24),(148,'2023_09_03_063826_add_column_kayoibako_shipped_at_repair_requests',25),(149,'2023_08_18_135000_add_2_en_column_to_clinic_priority_issues',26),(150,'2023_08_28_160000_create_news_categories_table',26),(151,'2023_08_28_161000_create_news_table',26),(152,'2023_08_28_162000_create_news_alert_histories_table',26),(153,'2023_09_04_090000_create_news_group_sequences_table',26),(154,'2023_09_04_110600_create_news_files_table',26),(155,'2023_08_22_151452_create_sfa_products_table',27),(156,'2023_08_22_151524_create_sfa_product_categories_table',27),(157,'2023_08_22_151624_create_item_categories_table',27),(158,'2023_08_22_151631_create_items_table',27),(159,'2023_09_11_233826_add_column_kayoibako_pickup_at_repair_requests',28),(160,'2023_09_16_224026_set_data_operation',29),(161,'2023_09_17_090455_developer_data',30),(165,'2023_09_19_103926_position_data_update',31),(167,'2023_09_25_213926_position_data_update',32),(168,'2023_09_13_114000_add_column_term_agreed_at_clinic_staffs',33),(169,'2023_09_13_114000_create_term_updated_datetimes',33),(170,'2023_09_12_110525_create_sfa_sales_table',34),(171,'2023_09_12_110637_add_column_after_support_status_sfa_clinics',34),(172,'2023_09_21_160000_add_column_name_en_prefectures',34),(173,'2023_09_27_111500_insert_record_news_categories_table',34),(175,'2023_10_02_172342_add_column_is_skipped_progress_repair_request',34),(176,'2023_10_05_185545_add_column_reason_for_repair_estimate_info_details',34),(177,'2023_10_11_170000_add_2_en_columns_equipments',34),(178,'2023_10_11_171500_add_2_en_columns_equipment_types',34),(179,'2023_10_18_094459_add_column_languages_short_name',35),(184,'2023_11_05_120000_create_maintenance_questions_table',36),(186,'2023_11_05_120000_create_maintenance_surveys_table',37),(189,'2023_11_06_120000_create_maintenance_survey_pages_table',38),(193,'2023_11_05_120000_create_maintenance_results_table',39),(194,'2023_11_05_120000_create_maintenance_answers_table',40),(195,'2023_10_16_180000_drop_2_en_columns_news',41),(196,'2023_10_17_173000_add_target_clinic_columns_news',41),(197,'2023_10_26_184000_add_required_action_history_cols_alert_histories_table',41),(198,'2023_10_30_170000_drop_table_repair_request_required_actions',41),(199,'2023_10_12_170000_add_en_column_affiliates',42),(200,'2023_10_12_175000_add_en_column_delivery_methods',42),(201,'2023_10_12_180000_add_en_column_employees',42),(202,'2023_10_12_181000_add_en_column_equipment_genres',42),(203,'2023_10_12_182000_add_en_column_failures',42),(204,'2023_10_12_183000_add_en_column_interests',42),(205,'2023_10_16_120000_add_en_column_item_categories',43),(206,'2023_10_16_121000_add_en_column_items',43),(207,'2023_11_01_120000_add_en_column_cardbrands',43),(208,'2023_11_02_120000_modify_post_at_columns_news',43),(209,'2023_11_02_170000_add_column_is_stop_endless_popup_news_clinic_action_histories',43),(210,'2023_11_06_180000_add_columns_read_history_repair_messages',43),(211,'2023_11_08_140000_create_repair_inquiry_status_table',43),(212,'2023_11_29_104000_add_column_discount_rate_estimate_info_details',44),(213,'2023_11_14_112740_create_sfa_sale_relations_table',45),(214,'2023_11_14_175831_create_consumable_categories_table',45),(215,'2023_11_15_100000_create_consumables_table',45),(216,'2023_11_15_101000_create_consumable_replacement_histories_table',45),(217,'2023_11_15_114909_create_consumable_category_messages_table',45),(218,'2023_11_16_111343_create_consumable_purchase_requests_table',45),(219,'2023_11_16_171910_add_column_is_applying_purchase_consumables',45),(220,'2023_11_17_190000_rename_column_replacement_interval_day_consumables',45),(221,'2023_11_20_100000_rename_column_replacement_interval_day_consumable_categories',45),(222,'2023_11_20_163005_recreate_consumable_teble',45),(223,'2023_11_20_163620_create_own_osada_consumables_table',45),(224,'2023_11_20_164147_rename_columns_consumable_id_consumable_replacement_histories',45),(225,'2023_11_20_164824_rename_columns_consumable_id_consumable_purchase_requests',45),(226,'2023_11_20_180848_create_equipment_type_consumables_table',45),(227,'2023_11_30_190000_rename_column_estimate_info_details',46),(228,'2023_12_03_134000_add_column_page_image_id_maintenance_survey_pages',47),(230,'2023_12_03_134000_add_column_signature_file_id_maintenance_results',48),(231,'2023_09_27_120000_create_repair_request_required_actions_table',49),(232,'2023_12_01_181852_create_sfa_agencies_table',50),(233,'2023_12_01_182056_create_sfa_clinic_agencies_table',50),(234,'2023_12_06_120000_add_column_is_required_reason_for_repair_estimate_info_details',50),(238,'2024_01_07_230057_create_chat_channel_users_table',53),(239,'2024_01_07_230059_create_chat_message_files_table',54),(240,'2024_01_07_230056_create_chat_channels_table',55),(241,'2024_01_07_230058_create_chat_messages_table',56),(242,'2024_01_03_140000_create_payment_methods',57),(243,'2024_01_03_141000_add_column_email_sfa_agencies',57),(244,'2024_01_03_142000_add_column_clinics',57),(245,'2024_01_03_143000_add_column_repair_requests',57),(246,'2024_01_03_144000_add_column_repair_request_logs',57),(247,'2024_01_05_100000_drop_column_payment_method_type_repair_requests',57),(248,'2024_01_05_101000_drop_column_payment_method_type_repair_request_logs',57),(249,'2024_01_10_170000_create_guest_news_table',57),(250,'2024_01_17_113000_create_event_group_sequences_table',58),(251,'2024_01_17_114000_create_events_table',58),(252,'2024_01_17_115000_create_event_files_table',58),(253,'2024_01_24_123000_insert_record_oasys_functions',58),(254,'2024_01_30_154000_add_column_events_table',59),(255,'2024_02_03_154000_add_column_consumables_table',60),(256,'2024_02_03_233926_position_data_insert',61),(257,'2024_02_13_123000_add_column_clinic_free_times_table',62),(258,'2023_12_27_185553_add_column_role_id_clinic_staffs_table',63),(259,'2024_01_17_231104_add_column_repair_requests',64),(260,'2024_02_16_190000_add_column_repair_messages_table',64),(261,'2024_02_28_141440_add_column_languages_is_rtl',64),(262,'2024_02_27_120000_add_column_oasys_functions_table',65),(263,'2024_02_29_130000_add_column_repair_progress_table',66),(264,'2024_02_29_131000_update_repair_progress_table',66),(269,'2024_03_17_070000_change_file_url',67),(270,'2024_03_27_172000_create_medical_category_excluded_equipment_documents_table',68),(271,'2024_03_27_173000_create_medical_category_excluded_equipment_document_languages_table',68),(273,'2024_04_09_192645_add_repiar_type_equipment_types',69),(274,'2024_04_10_090311_add_column_approval_limit_repair_request_logs',70),(275,'2024_04_08_200000_add_column_clinic_staffs_table',71),(276,'2024_04_19_153000_create_repair_request_accessories_table',72),(277,'2024_05_07_160000_add_column_repair_item_location_repair_request_table',72),(278,'2024_05_07_161000_add_column_repair_item_location_repair_request_logs_table',72),(279,'2024_05_07_162000_create_repair_request_on_site_switch_memos_table',72),(280,'2024_05_07_163000_update_repair_requests_table',72),(281,'2024_05_07_164000_update_repair_request_logs_table',72),(282,'2024_04_09_163119_add_column_estimate_info_details_table',73),(283,'2024_05_20_112744_add_column_is_pinned_chat_messages_table',74),(284,'2024_04_24_173000_add_column_repair_requests_table',75),(285,'2024_04_16_103100_add_columns_sfa_sale_relations_table',76),(286,'2024_04_16_103200_create_employee_clinics_table',76),(287,'2024_04_16_103300_create_support_months_table',76),(288,'2024_04_16_103400_create_equipment_type_support_month_rentals_table',76),(289,'2024_04_18_120000_create_employee_news_table',76),(290,'2024_04_18_120100_create_employee_support_pack_news_table',76),(291,'2024_04_18_120200_create_employee_consumable_news_table',76),(292,'2024_04_18_120300_create_employee_repair_request_news_table',76),(293,'2024_05_24_161000_add_column_incharge_department_id_sfa_clinics_table',76),(294,'2024_05_24_165618_add_column_alias_own_osada_equipments_table',77),(295,'2024_05_30_190000_create_maintenance_draft_answers_table',78),(296,'2024_06_02_220000_add_column_repair_request_id_events_table',78),(297,'2024_05_10_14300_employees_disable',79),(298,'2024_06_04_153000_add_column_maintenance_surveys_table',80),(299,'2024_06_14_123000_add_column_own_osada_equipments_table',81);

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

CREATE TABLE `news` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `group_id` int unsigned NOT NULL COMMENT 'グループID',
  `news_category_id` int unsigned NOT NULL COMMENT 'カテゴリID',
  `clinic_id` int unsigned DEFAULT NULL COMMENT 'お知らせ対象医院ID',
  `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '件名',
  `body` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '内容',
  `post_at` datetime NOT NULL COMMENT '投稿日時',
  `display_start_at` datetime NOT NULL COMMENT '公開開始日時',
  `display_end_at` datetime DEFAULT NULL COMMENT '公開終了日時',
  `is_display` tinyint(1) NOT NULL DEFAULT '0' COMMENT '公開フラグ',
  `is_important` tinyint(1) NOT NULL DEFAULT '0' COMMENT '重要表示フラグ',
  `is_popup` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'ポップアップ表示フラグ',
  `is_endless_popup` tinyint(1) NOT NULL DEFAULT '0' COMMENT '常時ポップアップ表示フラグ',
  `is_auto_registered` tinyint(1) NOT NULL DEFAULT '0' COMMENT '自動登録フラグ',
  `is_designated_clinic` tinyint(1) NOT NULL DEFAULT '0' COMMENT '特定医院向けフラグ',
  `is_domestic_dentistry` tinyint(1) NOT NULL DEFAULT '0' COMMENT '国内歯科向けフラグ',
  `is_domestic_veterinary` tinyint(1) NOT NULL DEFAULT '0' COMMENT '国内獣医科向けフラグ',
  `is_domestic_medical` tinyint(1) NOT NULL DEFAULT '0' COMMENT '国内医科向けフラグ',
  `is_domestic_others` tinyint(1) NOT NULL DEFAULT '0' COMMENT '国内その他向けフラグ',
  `is_oversea` tinyint(1) NOT NULL DEFAULT '0' COMMENT '海外向けフラグ',
  `oversea_country_id` json DEFAULT NULL COMMENT '海外対象国リスト',
  `oversea_country_id_for_index` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci GENERATED ALWAYS AS (json_unquote(json_extract(`oversea_country_id`,_utf8mb4'$.country_id'))) STORED COMMENT '海外対象国リストindex設定用',
  `is_oversea_other` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'その他海外向けフラグ',
  `is_required_action` tinyint(1) NOT NULL DEFAULT '0' COMMENT '要対応フラグ',
  `required_action_type` tinyint unsigned DEFAULT NULL COMMENT '要対応種別',
  `repair_request_id` bigint unsigned DEFAULT NULL COMMENT '要対応修理依頼ID',
  `root_repair_message_id` bigint unsigned DEFAULT NULL COMMENT '要確認ルートメッセージID',
  `is_attached_file` tinyint(1) NOT NULL DEFAULT '0' COMMENT '資料添付フラグ',
  `target_clinic_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT 'お知らせ対象医院ID',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`),
  KEY `news_group_id_index` (`group_id`),
  KEY `news_news_category_id_index` (`news_category_id`),
  KEY `news_clinic_id_index` (`clinic_id`),
  KEY `news_repair_request_id_foreign` (`repair_request_id`),
  KEY `news_root_repair_message_id_foreign` (`root_repair_message_id`),
  KEY `news_oversea_country_id_for_index_index` (`oversea_country_id_for_index`),
  CONSTRAINT `news_clinic_id_foreign` FOREIGN KEY (`clinic_id`) REFERENCES `clinics` (`id`),
  CONSTRAINT `news_news_category_id_foreign` FOREIGN KEY (`news_category_id`) REFERENCES `news_categories` (`id`),
  CONSTRAINT `news_repair_request_id_foreign` FOREIGN KEY (`repair_request_id`) REFERENCES `repair_requests` (`id`),
  CONSTRAINT `news_root_repair_message_id_foreign` FOREIGN KEY (`root_repair_message_id`) REFERENCES `repair_messages` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=55 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `news` (`id`, `group_id`, `news_category_id`, `clinic_id`, `title`, `body`, `post_at`, `display_start_at`, `display_end_at`, `is_display`, `is_important`, `is_popup`, `is_endless_popup`, `is_auto_registered`, `is_designated_clinic`, `is_domestic_dentistry`, `is_domestic_veterinary`, `is_domestic_medical`, `is_domestic_others`, `is_oversea`, `oversea_country_id`, `is_oversea_other`, `is_required_action`, `required_action_type`, `repair_request_id`, `root_repair_message_id`, `is_attached_file`, `target_clinic_id`, `created_at`, `updated_at`, `deleted_at`) VALUES (1,1,1,NULL,'テストテスト','<p>テストです。テストです</p>','2023-09-08 22:47:00','2023-09-08 22:47:00',NULL,1,0,1,0,0,0,1,1,1,1,1,'[360, 376]',1,0,NULL,NULL,NULL,1,NULL,'2023-09-08 22:52:04','2023-11-11 14:37:02',NULL),(2,2,4,31,'オサダからのご連絡があります（依頼番号：1-31-20230929222022）','<p>オサダからのご連絡があります</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/72\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-15 14:36:25','2023-10-15 14:36:25',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,3,72,46,0,'31','2023-10-15 14:36:25','2023-11-11 14:37:02',NULL),(3,3,4,31,'オサダからのご連絡があります（依頼番号：1-31-20230929222022）','<p>オサダからのご連絡があります</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/72\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-15 14:49:51','2023-10-15 14:49:51',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,3,72,47,0,'31','2023-10-15 14:49:51','2023-11-11 14:37:02',NULL),(4,4,4,31,'オサダからのご連絡があります（依頼番号：1-31-20230929222022）','<p>オサダからのご連絡があります</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/72\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-15 14:56:38','2023-10-15 14:56:38',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,3,72,47,0,'31','2023-10-15 14:56:38','2023-11-11 14:37:02',NULL),(5,5,4,31,'オサダからのご連絡があります（依頼番号：1-31-20230929222022）','<p>オサダからのご連絡があります</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/72\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-15 15:15:44','2023-10-15 15:15:44',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,3,72,50,0,'31','2023-10-15 15:15:44','2023-11-11 14:37:02',NULL),(6,6,4,31,'お問い合わせに回答が来ています（依頼番号：1-31-20230929222022）','<p>お問い合わせに回答が来ています</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/72\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-15 22:01:42','2023-10-15 22:01:42',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,2,72,51,0,'31','2023-10-15 22:01:42','2023-11-11 14:37:02',NULL),(7,7,4,26,'お見積りが登録されました（依頼番号：26-2307020820） 回答期日:2023/11/02','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/32\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-19 08:43:42','2023-10-19 08:43:42',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,0,NULL,NULL,NULL,0,'26','2023-10-19 08:43:42','2023-11-11 14:37:02',NULL),(8,8,4,26,'お見積りが登録されました（依頼番号：26-2307020820） 回答期日:2023/11/02','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/32\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-19 08:44:05','2023-10-19 08:44:05',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,1,32,NULL,0,'26','2023-10-19 08:44:05','2023-11-11 14:37:02',NULL),(9,9,4,45,'お見積りが登録されました（依頼番号：5-45-20231021080755） 回答期日:2023/11/04','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/74\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-21 15:37:17','2023-10-21 15:37:17',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,0,NULL,NULL,NULL,0,'45','2023-10-21 15:37:17','2023-11-11 14:37:02',NULL),(10,10,4,45,'お見積りが登録されました（依頼番号：5-45-20231021080755） 回答期日:2023/11/04','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/74\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-21 15:38:41','2023-10-21 15:38:41',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,0,NULL,NULL,NULL,0,'45','2023-10-21 15:38:41','2023-11-11 14:37:02',NULL),(11,11,4,45,'お見積りが登録されました（依頼番号：5-45-20231021080755） 回答期日:2023/11/04','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/74\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-21 15:43:45','2023-10-21 15:43:45',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,0,NULL,NULL,NULL,0,'45','2023-10-21 15:43:45','2023-11-11 14:37:02',NULL),(12,12,4,45,'お見積りが登録されました（依頼番号：5-45-20231021080755） 回答期日:2023/11/04','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/74\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-21 15:47:21','2023-10-21 15:47:21',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,0,NULL,NULL,NULL,0,'45','2023-10-21 15:47:21','2023-11-11 14:37:02',NULL),(13,13,4,45,'お見積りが登録されました（依頼番号：5-45-20231021080755） 回答期日:2023/11/04','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/74\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-21 15:48:03','2023-10-21 15:48:03',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,0,NULL,NULL,NULL,0,'45','2023-10-21 15:48:03','2023-11-11 14:37:02',NULL),(14,14,4,45,'お見積りが登録されました（依頼番号：5-45-20231021080755） 回答期日:2023/11/04','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/74\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-21 15:50:55','2023-10-21 15:50:55',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,0,NULL,NULL,NULL,0,'45','2023-10-21 15:50:55','2023-11-11 14:37:02',NULL),(15,15,4,45,'お見積りが登録されました（依頼番号：5-45-20231021080755） 回答期日:2023/11/04','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/74\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-21 15:53:27','2023-10-21 15:53:27',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,0,NULL,NULL,NULL,0,'45','2023-10-21 15:53:27','2023-11-11 14:37:02',NULL),(16,16,4,45,'お見積りが登録されました（依頼番号：5-45-20231021080755） 回答期日:2023/11/04','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/74\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-21 15:54:12','2023-10-21 15:54:12',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,0,NULL,NULL,NULL,0,'45','2023-10-21 15:54:12','2023-11-11 14:37:02',NULL),(17,17,4,45,'お見積りが登録されました（依頼番号：5-45-20231021080755） 回答期日:2023/11/05','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/74\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-22 07:07:56','2023-10-22 07:07:56',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,0,NULL,NULL,NULL,0,'45','2023-10-22 07:07:56','2023-11-11 14:37:02',NULL),(18,18,4,45,'お見積りが登録されました（依頼番号：5-45-20231021080755） 回答期日:2023/11/05','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/74\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-22 07:12:18','2023-10-22 07:12:18',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,0,NULL,NULL,NULL,0,'45','2023-10-22 07:12:18','2023-11-11 14:37:02',NULL),(19,19,4,45,'お見積りが登録されました（依頼番号：5-45-20231021080755） 回答期日:2023/11/05','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/74\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-22 08:53:44','2023-10-22 08:53:44',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,0,NULL,NULL,NULL,0,'45','2023-10-22 08:53:44','2023-11-11 14:37:03',NULL),(20,20,4,45,'お見積りが登録されました（依頼番号：5-45-20231021080755） 回答期日:2023/11/05','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/74\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-22 10:10:31','2023-10-22 10:10:31',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,0,NULL,NULL,NULL,0,'45','2023-10-22 10:10:31','2023-11-11 14:37:03',NULL),(21,21,4,45,'お見積りが登録されました（依頼番号：5-45-20231021080755） 回答期日:2023/11/05','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/74\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-22 10:11:25','2023-10-22 10:11:25',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,0,NULL,NULL,NULL,0,'45','2023-10-22 10:11:25','2023-11-11 14:37:03',NULL),(22,23,4,45,'お見積りが登録されました（依頼番号：5-45-20231021080755） 回答期日:2023/11/05','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/74\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-22 10:24:49','2023-10-22 10:24:49',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,0,NULL,NULL,NULL,0,'45','2023-10-22 10:24:49','2023-11-11 14:37:03',NULL),(23,24,4,45,'お見積りが登録されました（依頼番号：5-45-20231021080755） 回答期日:2023/11/05','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/74\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-22 10:27:56','2023-10-22 10:27:56',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,0,NULL,NULL,NULL,0,'45','2023-10-22 10:27:56','2023-11-11 14:37:03',NULL),(24,25,4,45,'お見積りが登録されました（依頼番号：5-45-20231021080755） 回答期日:2023/11/05','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/74\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-22 10:30:51','2023-10-22 10:30:51',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,0,NULL,NULL,NULL,0,'45','2023-10-22 10:30:51','2023-11-11 14:37:03',NULL),(25,26,4,45,'お見積りが登録されました（依頼番号：5-45-20231021080755） 回答期日:2023/11/05','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/74\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-22 10:53:55','2023-10-22 10:53:55',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,0,NULL,NULL,NULL,0,'45','2023-10-22 10:53:55','2023-11-11 14:37:03',NULL),(26,27,4,45,'お見積りが登録されました（依頼番号：5-45-20231021080755） 回答期日:2023/11/05','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/74\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-22 10:54:15','2023-10-22 10:54:15',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,0,NULL,NULL,NULL,0,'45','2023-10-22 10:54:15','2023-11-11 14:37:03',NULL),(27,30,4,45,'お見積りが登録されました（依頼番号：5-45-20231021080755） 回答期日:2023/11/05','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/74\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-22 16:22:22','2023-10-22 16:22:22',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,0,NULL,NULL,NULL,0,'45','2023-10-22 16:22:22','2023-11-11 14:37:03',NULL),(28,31,4,45,'オサダからのご連絡があります（依頼番号：5-45-20231022195428）','<p>オサダからのご連絡があります</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/78\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-22 21:30:42','2023-10-22 21:30:42',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,3,78,54,0,'45','2023-10-22 21:30:42','2023-11-11 14:37:03',NULL),(29,32,4,45,'オサダからのご連絡があります（依頼番号：5-45-20231022195428）','<p>オサダからのご連絡があります</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/78\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-23 23:30:08','2023-10-23 23:30:08',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,3,78,55,0,'45','2023-10-23 23:30:08','2023-11-11 14:37:03',NULL),(30,33,4,45,'オサダからのご連絡があります（依頼番号：5-45-20231022195428）','<p>オサダからのご連絡があります</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/78\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-23 23:30:38','2023-10-23 23:30:38',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,3,78,56,0,'45','2023-10-23 23:30:38','2023-11-11 14:37:03',NULL),(31,34,4,45,'お見積りが登録されました（依頼番号：5-45-20231021080755） 回答期日:2023/11/08','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/74\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-25 09:12:31','2023-10-25 09:12:31',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,0,NULL,NULL,NULL,0,'45','2023-10-25 09:12:31','2023-11-11 14:37:03',NULL),(32,35,4,45,'お見積りが登録されました（依頼番号：5-45-20231021080755） 回答期日:2023/11/08','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/74\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-25 09:35:59','2023-10-25 09:35:59',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,0,NULL,NULL,NULL,0,'45','2023-10-25 09:35:59','2023-11-11 14:37:03',NULL),(33,36,4,45,'お見積りが登録されました（依頼番号：5-45-20231021080755） 回答期日:2023/11/08','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/74\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-25 09:41:27','2023-10-25 09:41:27',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,1,74,NULL,0,'45','2023-10-25 09:41:27','2023-11-11 14:37:03',NULL),(34,37,4,45,'オサダからのご連絡があります（依頼番号：5-45-20231026084155）','<p>オサダからのご連絡があります</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/79\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-26 09:14:49','2023-10-26 09:14:49',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,3,79,57,0,'45','2023-10-26 09:14:49','2023-11-11 14:37:03',NULL),(35,38,4,45,'オサダからのご連絡があります（依頼番号：5-45-20231026084155）','<p>オサダからのご連絡があります</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/79\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-26 09:30:52','2023-10-26 09:30:52',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,3,79,58,0,'45','2023-10-26 09:30:52','2023-11-11 14:37:03',NULL),(36,39,4,45,'オサダからのご連絡があります（依頼番号：5-45-20231026084155）','<p>オサダからのご連絡があります</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/79\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-26 09:44:18','2023-10-26 09:44:18',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,3,79,59,0,'45','2023-10-26 09:44:18','2023-11-11 14:37:03',NULL),(37,40,4,45,'お問い合わせに回答が来ています（依頼番号：5-45-20231026084155）','<p>お問い合わせに回答が来ています</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/79\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-26 13:36:48','2023-10-26 13:36:48',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,2,79,60,0,'45','2023-10-26 13:36:48','2023-11-11 14:37:03',NULL),(38,41,4,45,'お問い合わせに回答が来ています（依頼番号：5-45-20231026084155）','<p>お問い合わせに回答が来ています</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/79\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-26 13:38:10','2023-10-26 13:38:10',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,2,79,60,0,'45','2023-10-26 13:38:10','2023-11-11 14:37:03',NULL),(39,42,4,31,'お見積りが登録されました（依頼番号：1-31-20230724204942） 回答期日:2023/11/12','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/60\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-29 11:42:36','2023-10-29 11:42:36',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,1,60,NULL,0,'31','2023-10-29 11:42:36','2023-11-11 14:37:03',NULL),(40,43,4,31,'オサダからのご連絡があります（依頼番号：1-31-20230720190302）','<p>オサダからのご連絡があります</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/58\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-29 16:36:35','2023-10-29 16:36:35',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,3,58,64,0,'31','2023-10-29 16:36:35','2023-11-11 14:37:03',NULL),(41,44,4,31,'お問い合わせに回答が来ています（依頼番号：1-31-20230720190302）','<p>お問い合わせに回答が来ています</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/58\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-10-29 16:38:09','2023-10-29 16:38:09',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,2,58,65,0,'31','2023-10-29 16:38:09','2023-11-11 14:37:03',NULL),(42,45,4,34,'オサダからのご連絡があります（依頼番号：2-34-20230825153716）','<p>オサダからのご連絡があります</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/66\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-11-03 21:18:18','2023-11-03 21:18:18',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,3,66,67,0,'34','2023-11-03 21:18:18','2023-11-11 14:37:03',NULL),(43,46,4,31,'お問い合わせに回答が来ています（依頼番号：31-2307070909）','<p>お問い合わせに回答が来ています</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/38\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-11-03 21:20:48','2023-11-03 21:20:48',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,2,38,68,0,'31','2023-11-03 21:20:48','2023-11-11 14:37:03',NULL),(44,47,4,31,'お問い合わせに回答が来ています（依頼番号：31-2307041111）','<p>お問い合わせに回答が来ています（依頼番号：31-2307041111）</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/36\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-12-04 14:22:56','2023-12-04 14:22:56',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,2,36,76,0,'31','2023-12-04 14:22:56','2023-12-04 14:22:56',NULL),(45,48,4,31,'オサダからのご連絡があります（依頼番号：1-31-20231124114815）','<p>オサダからのご連絡があります（依頼番号：1-31-20231124114815）</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/82\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-12-09 13:20:08','2023-12-09 13:20:08',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,3,82,79,0,'31','2023-12-09 13:20:08','2023-12-09 13:20:08',NULL),(46,49,4,31,'お見積りが登録されました（依頼番号：1-31-20231220140418） 回答期日:2024/01/03','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/84\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2023-12-20 14:06:24','2023-12-20 14:06:24',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,1,84,NULL,0,'31','2023-12-20 14:06:24','2023-12-20 14:06:24',NULL),(47,50,4,31,'お問い合わせに回答が来ています（依頼番号：31-2307041111）','<p>お問い合わせに回答が来ています（依頼番号：31-2307041111）</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/36\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2024-02-25 20:20:03','2024-02-25 20:20:03',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,2,36,75,0,'31','2024-02-25 20:20:03','2024-02-25 20:20:03',NULL),(48,51,4,31,'お見積りが登録されました（依頼番号：1-31-20240321211535） 回答期日:2024/04/04','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/85\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2024-03-21 21:23:37','2024-03-21 21:23:37',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,1,85,NULL,0,'31','2024-03-21 21:23:37','2024-03-21 21:23:37',NULL),(49,52,4,31,'お見積りが登録されました（依頼番号：1-31-20240410001412） 回答期日:2024/04/24','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/86\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2024-04-10 23:20:04','2024-04-10 23:20:04',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,1,86,NULL,0,'31','2024-04-10 23:20:04','2024-04-10 23:20:04',NULL),(50,53,4,31,'お見積りが登録されました（依頼番号：1-31-20231015213801） 回答期日:2024/04/25','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/73\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2024-04-11 20:17:57','2024-04-11 20:17:57',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,1,73,NULL,0,'31','2024-04-11 20:17:57','2024-04-11 20:17:57',NULL),(51,54,4,31,'お見積りが登録されました（依頼番号：1-31-20240413145332） 回答期日:2024/04/27','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/92\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2024-04-13 21:48:32','2024-04-13 21:48:32',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,1,92,NULL,0,'31','2024-04-13 21:48:32','2024-04-13 21:48:32',NULL),(52,55,4,31,'お見積りが登録されました（依頼番号：1-31-20240411204912） 回答期日:2024/04/29','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/89\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2024-04-15 22:12:43','2024-04-15 22:12:43',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,1,89,NULL,0,'31','2024-04-15 22:12:43','2024-04-15 22:12:43',NULL),(53,56,4,31,'お見積りが登録されました(依頼番号:1-31-20240602132700) 回答期日:2024/06/14','<p>こちらより内容をご確認ください。</p><p><a href=\"http://127.0.0.1:8000/smartsupport/clinic/repair-request/show/96\" target=\"_blank\">1-31-20240602132700</a></p>','2024-06-02 13:43:20','2024-06-02 13:43:20',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,1,96,NULL,0,'31','2024-06-02 13:43:20','2024-06-02 13:43:20',NULL),(54,57,4,31,'お見積りが登録されました（依頼番号：1-31-20230720190302） 回答期日:2024/07/23','<p>お見積りが登録されました。</p><p><a href=\"http://127.0.0.1:8000/clinic/repair-request/show/58\" target=\"_blank\">こちら</a>より内容をご確認ください。</p>','2024-07-09 20:45:41','2024-07-09 20:45:41',NULL,1,1,1,0,1,1,0,0,0,0,0,NULL,0,1,1,58,NULL,0,'31','2024-07-09 20:45:41','2024-07-09 20:45:41',NULL);

--
-- Table structure for table `news_categories`
--

CREATE TABLE `news_categories` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `name_ja` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'カテゴリ',
  `name_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'カテゴリ(英語)',
  `background_color` char(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '背景色',
  `display_order` int unsigned NOT NULL COMMENT '表示順序',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `news_categories`
--

INSERT INTO `news_categories` VALUES (1,'サービス情報','Services','274a78',1,'2023-10-14 14:34:32','2023-10-14 14:34:32',NULL),(2,'機器情報','Equipments','460e44',2,'2023-10-14 14:34:32','2023-10-14 14:34:32',NULL),(3,'スケジュール情報','Events','556b2f',3,'2023-10-14 14:34:32','2023-10-14 14:34:32',NULL),(4,'要対応','Action required','8b0000',4,'2023-10-14 14:34:32','2023-10-14 14:34:32',NULL);

--
-- Table structure for table `news_clinic_action_histories`
--

CREATE TABLE `news_clinic_action_histories` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `news_id` int unsigned NOT NULL COMMENT 'お知らせID',
  `news_group_id` int unsigned NOT NULL COMMENT 'お知らせグループID',
  `clinic_id` int unsigned NOT NULL COMMENT '医院ID',
  `checked_clinic_staff_id` int unsigned DEFAULT NULL COMMENT 'ポップアップ表示確認医院従業員ID',
  `checked_clinic_staff_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'ポップアップ表示確認医院従業員名',
  `checked_at` datetime DEFAULT NULL COMMENT 'ポップアップ表示確認日時',
  `is_stop_endless_popup` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'ポップアップ表示不要フラグ',
  `completed_clinic_staff_id` int unsigned DEFAULT NULL COMMENT '対応完了医院従業員ID',
  `completed_clinic_staff_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '対応完了医院従業員名',
  `completed_at` datetime DEFAULT NULL COMMENT '対応完了日時',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`),
  KEY `news_clinic_action_histories_news_id_index` (`news_id`),
  KEY `news_clinic_action_histories_news_group_id_index` (`news_group_id`),
  KEY `news_clinic_action_histories_clinic_id_index` (`clinic_id`),
  KEY `news_clinic_action_histories_checked_clinic_staff_id_foreign` (`checked_clinic_staff_id`),
  KEY `news_clinic_action_histories_completed_clinic_staff_id_foreign` (`completed_clinic_staff_id`),
  CONSTRAINT `news_clinic_action_histories_checked_clinic_staff_id_foreign` FOREIGN KEY (`checked_clinic_staff_id`) REFERENCES `clinic_staffs` (`id`),
  CONSTRAINT `news_clinic_action_histories_clinic_id_foreign` FOREIGN KEY (`clinic_id`) REFERENCES `clinics` (`id`),
  CONSTRAINT `news_clinic_action_histories_completed_clinic_staff_id_foreign` FOREIGN KEY (`completed_clinic_staff_id`) REFERENCES `clinic_staffs` (`id`),
  CONSTRAINT `news_clinic_action_histories_news_group_id_foreign` FOREIGN KEY (`news_group_id`) REFERENCES `news_group_sequences` (`id`),
  CONSTRAINT `news_clinic_action_histories_news_id_foreign` FOREIGN KEY (`news_id`) REFERENCES `news` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=54 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `news_clinic_action_histories`
--

INSERT INTO `news_clinic_action_histories` VALUES (1,1,1,31,31,'グランダー　次郎','2023-10-15 21:22:42',0,NULL,NULL,NULL,'2023-10-15 21:22:42','2023-11-11 14:23:54',NULL),(2,2,2,31,31,'グランダー　次郎','2023-10-15 21:22:47',0,NULL,NULL,NULL,'2023-10-15 21:22:47','2023-11-11 14:23:54',NULL),(3,3,3,31,31,'グランダー　次郎','2023-10-15 21:22:50',0,NULL,NULL,NULL,'2023-10-15 21:22:50','2023-11-11 14:23:54',NULL),(4,4,4,31,31,'グランダー　次郎','2023-10-15 21:22:52',0,NULL,NULL,NULL,'2023-10-15 21:22:52','2023-11-11 14:23:54',NULL),(5,5,5,31,31,'グランダー　次郎','2023-10-15 21:22:54',0,NULL,NULL,NULL,'2023-10-15 21:22:54','2023-11-11 14:23:54',NULL),(6,6,6,31,31,'グランダー　次郎','2023-10-16 10:23:23',0,NULL,NULL,NULL,'2023-10-16 10:23:23','2023-11-11 14:23:54',NULL),(7,9,9,45,45,'タイ　次郎','2023-10-22 10:18:16',0,NULL,NULL,NULL,'2023-10-22 10:18:16','2023-11-11 14:23:54',NULL),(8,10,10,45,45,'タイ　次郎','2023-10-22 10:18:19',0,NULL,NULL,NULL,'2023-10-22 10:18:19','2023-11-11 14:23:54',NULL),(9,11,11,45,45,'タイ　次郎','2023-10-22 10:18:21',0,NULL,NULL,NULL,'2023-10-22 10:18:21','2023-11-11 14:23:54',NULL),(10,12,12,45,45,'タイ　次郎','2023-10-22 10:18:22',0,NULL,NULL,NULL,'2023-10-22 10:18:22','2023-11-11 14:23:54',NULL),(11,13,13,45,45,'タイ　次郎','2023-10-22 10:18:23',0,NULL,NULL,NULL,'2023-10-22 10:18:23','2023-11-11 14:23:54',NULL),(12,14,14,45,45,'タイ　次郎','2023-10-22 10:18:24',0,NULL,NULL,NULL,'2023-10-22 10:18:24','2023-11-11 14:23:54',NULL),(13,15,15,45,45,'タイ　次郎','2023-10-22 10:18:26',0,NULL,NULL,NULL,'2023-10-22 10:18:26','2023-11-11 14:23:54',NULL),(14,16,16,45,45,'タイ　次郎','2023-10-22 10:18:27',0,NULL,NULL,NULL,'2023-10-22 10:18:27','2023-11-11 14:23:54',NULL),(15,17,17,45,45,'タイ　次郎','2023-10-22 10:18:28',0,NULL,NULL,NULL,'2023-10-22 10:18:28','2023-11-11 14:23:54',NULL),(16,18,18,45,45,'タイ　次郎','2023-10-22 10:18:29',0,NULL,NULL,NULL,'2023-10-22 10:18:29','2023-11-11 14:23:54',NULL),(17,19,19,45,45,'タイ　次郎','2023-10-22 10:18:30',0,NULL,NULL,NULL,'2023-10-22 10:18:30','2023-11-11 14:23:54',NULL),(18,20,20,45,45,'タイ　次郎','2023-10-22 10:18:31',0,NULL,NULL,NULL,'2023-10-22 10:18:31','2023-11-11 14:23:54',NULL),(19,21,21,45,45,'タイ　次郎','2023-10-22 10:18:32',0,NULL,NULL,NULL,'2023-10-22 10:18:32','2023-11-11 14:23:54',NULL),(20,22,23,45,45,'タイ　次郎','2023-10-22 10:34:12',0,NULL,NULL,NULL,'2023-10-22 10:34:12','2023-11-11 14:23:54',NULL),(21,23,24,45,45,'タイ　次郎','2023-10-22 10:34:14',0,NULL,NULL,NULL,'2023-10-22 10:34:14','2023-11-11 14:23:54',NULL),(22,24,25,45,45,'タイ　次郎','2023-10-22 10:35:59',0,NULL,NULL,NULL,'2023-10-22 10:35:59','2023-11-11 14:23:54',NULL),(23,25,26,45,45,'タイ　次郎','2023-10-22 10:55:10',0,NULL,NULL,NULL,'2023-10-22 10:55:10','2023-11-11 14:23:54',NULL),(24,26,27,45,45,'タイ　次郎','2023-10-22 10:55:12',0,NULL,NULL,NULL,'2023-10-22 10:55:12','2023-11-11 14:23:54',NULL),(25,27,30,45,45,'タイ　次郎','2023-10-22 16:42:00',0,NULL,NULL,NULL,'2023-10-22 16:42:00','2023-11-11 14:23:54',NULL),(26,28,31,45,45,'タイ　次郎','2023-10-22 22:42:36',0,45,'タイ　次郎','2023-10-23 23:23:55','2023-10-22 22:42:36','2023-11-11 14:23:55',NULL),(27,29,32,45,45,'タイ　次郎','2023-10-23 23:30:17',0,NULL,NULL,NULL,'2023-10-23 23:30:17','2023-11-11 14:23:54',NULL),(28,30,33,45,45,'タイ　次郎','2023-10-25 09:26:38',0,NULL,NULL,NULL,'2023-10-25 09:26:38','2023-11-11 14:23:54',NULL),(29,31,34,45,45,'タイ　次郎','2023-10-25 09:26:44',0,NULL,NULL,NULL,'2023-10-25 09:26:44','2023-11-11 14:23:54',NULL),(30,32,35,45,45,'タイ　次郎','2023-10-25 09:41:12',0,NULL,NULL,NULL,'2023-10-25 09:41:12','2023-11-11 14:23:54',NULL),(31,33,36,45,45,'タイ　次郎','2023-10-25 12:43:06',0,NULL,NULL,NULL,'2023-10-25 12:43:06','2023-11-11 14:23:54',NULL),(32,39,42,31,31,'グランダー　次郎','2023-10-29 15:47:15',0,31,'グランダー　次郎','2023-10-29 12:01:57','2023-10-29 15:47:15','2023-11-11 14:23:55',NULL),(33,40,43,31,31,'グランダー　次郎','2023-10-29 16:38:21',0,31,'グランダー　次郎','2023-10-29 16:37:05','2023-10-29 16:38:21','2023-11-11 14:23:55',NULL),(34,41,44,31,31,'グランダー　次郎','2023-11-02 18:33:52',0,31,'グランダー　次郎','2023-10-29 16:38:15','2023-11-02 18:33:52','2023-11-11 14:23:55',NULL),(35,43,46,31,31,'グランダー　次郎','2023-11-03 21:25:22',0,NULL,NULL,NULL,'2023-11-03 21:25:22','2023-11-11 14:23:54',NULL),(36,42,45,34,34,'阿部島　誉幸','2023-11-04 21:38:36',0,NULL,NULL,NULL,'2023-11-04 21:38:36','2023-11-11 14:23:54',NULL),(37,34,37,45,NULL,NULL,NULL,0,45,'タイ　次郎','2023-10-26 13:53:31','2023-11-11 14:23:55','2023-11-11 14:23:55',NULL),(38,35,38,45,NULL,NULL,NULL,0,45,'タイ　次郎','2023-10-26 13:42:33','2023-11-11 14:23:55','2023-11-11 14:23:55',NULL),(39,36,39,45,NULL,NULL,NULL,0,45,'タイ　次郎','2023-10-26 13:53:29','2023-11-11 14:23:55','2023-11-11 14:23:55',NULL),(40,37,40,45,NULL,NULL,NULL,0,45,'タイ　次郎','2023-10-26 13:53:33','2023-11-11 14:23:55','2023-11-11 14:23:55',NULL),(41,38,41,45,NULL,NULL,NULL,0,45,'タイ　次郎','2023-10-26 13:53:33','2023-11-11 14:23:55','2023-11-11 14:23:55',NULL),(42,44,47,31,31,'グランダー　次郎','2023-12-04 14:23:08',0,31,'グランダー　次郎','2023-12-04 14:23:08','2023-12-04 14:23:08','2023-12-04 14:23:08',NULL),(43,46,49,31,31,'グランダー　次郎','2023-12-20 14:08:29',0,31,'グランダー　次郎','2023-12-20 14:08:29','2023-12-20 14:08:29','2023-12-20 14:08:29',NULL),(44,45,48,31,31,'グランダー　次郎','2024-01-27 21:01:57',0,NULL,NULL,NULL,'2024-01-27 21:01:57','2024-01-27 21:01:57',NULL),(45,47,50,31,31,'グランダー 次郎','2024-02-26 10:18:05',0,31,'グランダー 次郎','2024-03-22 10:40:08','2024-02-26 10:18:05','2024-03-22 10:40:08',NULL),(46,1,1,34,34,'阿部島　誉幸','2024-03-05 14:40:09',0,NULL,NULL,NULL,'2024-03-05 14:40:09','2024-03-05 14:40:09',NULL),(47,48,51,31,31,'グランダー 次郎','2024-03-22 09:13:56',0,31,'グランダー 次郎','2024-04-11 20:26:03','2024-03-22 09:13:56','2024-04-11 20:26:03',NULL),(48,50,53,31,31,'グランダー 次郎','2024-04-11 20:18:50',0,31,'グランダー 次郎','2024-04-11 20:18:50','2024-04-11 20:18:50','2024-04-11 20:18:50',NULL),(49,49,52,31,31,'グランダー 次郎','2024-04-12 09:24:15',0,NULL,NULL,NULL,'2024-04-12 09:24:15','2024-04-12 09:24:15',NULL),(50,51,54,31,31,'グランダー 次郎','2024-04-15 08:50:20',0,31,'グランダー 次郎','2024-04-15 10:56:01','2024-04-15 08:50:20','2024-04-15 10:56:01',NULL),(51,52,55,31,31,'グランダー 次郎','2024-04-16 14:17:13',0,NULL,NULL,NULL,'2024-04-16 14:17:13','2024-04-16 14:17:13',NULL),(52,53,56,31,31,'グランダー 次郎','2024-06-20 10:07:14',0,NULL,NULL,NULL,'2024-06-20 10:07:14','2024-06-20 10:07:14',NULL),(53,54,57,31,31,'グランダー 次郎','2024-07-20 21:50:49',0,NULL,NULL,NULL,'2024-07-20 21:50:49','2024-07-20 21:50:49',NULL);

--
-- Table structure for table `news_files`
--

CREATE TABLE `news_files` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `news_group_id` int unsigned NOT NULL COMMENT '修理依頼ID',
  `file_id` bigint unsigned DEFAULT NULL COMMENT 'ファイルID',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`),
  KEY `news_news_group_id_index` (`news_group_id`),
  KEY `news_files_file_id_index` (`file_id`),
  CONSTRAINT `news_files_file_id_foreign` FOREIGN KEY (`file_id`) REFERENCES `files` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `news_files`
--

INSERT INTO `news_files` VALUES (1,1,86,'2023-09-08 22:52:04','2023-09-08 22:52:04',NULL),(2,1,87,'2023-09-08 22:52:04','2023-09-08 22:52:04',NULL);

--
-- Table structure for table `news_group_sequences`
--

CREATE TABLE `news_group_sequences` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=58 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `news_group_sequences`
--

INSERT INTO `news_group_sequences` VALUES (1,'2023-09-08 22:52:04','2023-09-08 22:52:04',NULL),(2,'2023-10-15 14:36:25','2023-10-15 14:36:25',NULL),(3,'2023-10-15 14:49:51','2023-10-15 14:49:51',NULL),(4,'2023-10-15 14:56:38','2023-10-15 14:56:38',NULL),(5,'2023-10-15 15:15:44','2023-10-15 15:15:44',NULL),(6,'2023-10-15 22:01:42','2023-10-15 22:01:42',NULL),(7,'2023-10-19 08:43:42','2023-10-19 08:43:42',NULL),(8,'2023-10-19 08:44:05','2023-10-19 08:44:05',NULL),(9,'2023-10-21 15:37:17','2023-10-21 15:37:17',NULL),(10,'2023-10-21 15:38:41','2023-10-21 15:38:41',NULL),(11,'2023-10-21 15:43:45','2023-10-21 15:43:45',NULL),(12,'2023-10-21 15:47:21','2023-10-21 15:47:21',NULL),(13,'2023-10-21 15:48:03','2023-10-21 15:48:03',NULL),(14,'2023-10-21 15:50:55','2023-10-21 15:50:55',NULL),(15,'2023-10-21 15:53:27','2023-10-21 15:53:27',NULL),(16,'2023-10-21 15:54:12','2023-10-21 15:54:12',NULL),(17,'2023-10-22 07:07:56','2023-10-22 07:07:56',NULL),(18,'2023-10-22 07:12:18','2023-10-22 07:12:18',NULL),(19,'2023-10-22 08:53:44','2023-10-22 08:53:44',NULL),(20,'2023-10-22 10:10:31','2023-10-22 10:10:31',NULL),(21,'2023-10-22 10:11:25','2023-10-22 10:11:25',NULL),(23,'2023-10-22 10:24:49','2023-10-22 10:24:49',NULL),(24,'2023-10-22 10:27:56','2023-10-22 10:27:56',NULL),(25,'2023-10-22 10:30:51','2023-10-22 10:30:51',NULL),(26,'2023-10-22 10:53:55','2023-10-22 10:53:55',NULL),(27,'2023-10-22 10:54:15','2023-10-22 10:54:15',NULL),(30,'2023-10-22 16:22:22','2023-10-22 16:22:22',NULL),(31,'2023-10-22 21:30:42','2023-10-22 21:30:42',NULL),(32,'2023-10-23 23:30:08','2023-10-23 23:30:08',NULL),(33,'2023-10-23 23:30:38','2023-10-23 23:30:38',NULL),(34,'2023-10-25 09:12:31','2023-10-25 09:12:31',NULL),(35,'2023-10-25 09:35:59','2023-10-25 09:35:59',NULL),(36,'2023-10-25 09:41:27','2023-10-25 09:41:27',NULL),(37,'2023-10-26 09:14:49','2023-10-26 09:14:49',NULL),(38,'2023-10-26 09:30:52','2023-10-26 09:30:52',NULL),(39,'2023-10-26 09:44:18','2023-10-26 09:44:18',NULL),(40,'2023-10-26 13:36:48','2023-10-26 13:36:48',NULL),(41,'2023-10-26 13:38:10','2023-10-26 13:38:10',NULL),(42,'2023-10-29 11:42:36','2023-10-29 11:42:36',NULL),(43,'2023-10-29 16:36:35','2023-10-29 16:36:35',NULL),(44,'2023-10-29 16:38:09','2023-10-29 16:38:09',NULL),(45,'2023-11-03 21:18:18','2023-11-03 21:18:18',NULL),(46,'2023-11-03 21:20:48','2023-11-03 21:20:48',NULL),(47,'2023-12-04 14:22:56','2023-12-04 14:22:56',NULL),(48,'2023-12-09 13:20:08','2023-12-09 13:20:08',NULL),(49,'2023-12-20 14:06:24','2023-12-20 14:06:24',NULL),(50,'2024-02-25 20:20:03','2024-02-25 20:20:03',NULL),(51,'2024-03-21 21:23:37','2024-03-21 21:23:37',NULL),(52,'2024-04-10 23:20:04','2024-04-10 23:20:04',NULL),(53,'2024-04-11 20:17:57','2024-04-11 20:17:57',NULL),(54,'2024-04-13 21:48:32','2024-04-13 21:48:32',NULL),(55,'2024-04-15 22:12:43','2024-04-15 22:12:43',NULL),(56,'2024-06-02 13:43:20','2024-06-02 13:43:20',NULL),(57,'2024-07-09 20:45:40','2024-07-09 20:45:40',NULL);

--
-- Table structure for table `oasys_functions`
--

CREATE TABLE `oasys_functions` (
  `id` int NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '機能名',
  `name_ja` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '機能名(日本語)',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `oasys_functions`
--

INSERT INTO `oasys_functions` VALUES (1,'employees','営業アカウント','2023-07-20 08:44:29','2024-03-06 12:04:15',NULL),(2,'clinics','医院','2023-07-20 08:44:29','2024-03-06 12:04:15',NULL),(3,'repair-requests','修理依頼','2023-07-20 08:44:29','2024-03-06 12:04:15',NULL),(4,'rental-items','貸用品','2023-07-20 08:44:29','2024-03-06 12:04:15',NULL),(5,'transportation','出荷回収','2023-07-20 08:44:29','2024-03-06 12:04:15',NULL),(6,'employee-auths','営業アカウントパスワード変更','2023-07-20 08:44:29','2024-03-06 12:04:15',NULL),(7,'clinics-all','医院(閲覧)','2023-07-20 08:44:29','2024-03-06 12:04:15',NULL),(8,'repair-request-all','修理依頼(閲覧)','2023-07-20 08:44:29','2024-03-06 12:04:15',NULL),(9,'equipments','機器','2023-09-17 08:32:25','2024-03-06 12:04:15',NULL),(10,'equipments-customize','オーダーメイド設定','2023-09-17 08:32:25','2024-03-06 12:04:15',NULL),(11,'news','お知らせ','2023-09-17 08:32:25','2024-03-06 12:04:15',NULL),(12,'ariticles','規約改定日時','2023-09-17 08:32:25','2024-03-06 12:04:15',NULL),(13,'clinic-relations','医院関連付け','2023-09-17 08:32:25','2024-03-06 12:04:15',NULL),(14,'consumables','消耗品','2023-09-17 08:32:25','2024-03-06 12:04:15',NULL),(15,'maintenance','定期メンテナンス','2023-09-17 08:32:25','2024-03-06 12:04:15',NULL),(16,'event','スケジュール','2024-01-27 13:50:10','2024-03-06 12:04:15',NULL);

--
-- Table structure for table `operation_permissions`
--

CREATE TABLE `operation_permissions` (
  `id` int NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `position_id` int NOT NULL COMMENT '役職ID',
  `affiliate_id` int NOT NULL COMMENT '部署/課ID',
  `oasys_function_id` int NOT NULL COMMENT '機能ID',
  `operation_type_id` int NOT NULL COMMENT '操作種別ID',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`),
  KEY `operation_permissions_position_id_foreign` (`position_id`),
  KEY `operation_permissions_affiliate_id_foreign` (`affiliate_id`),
  KEY `operation_permissions_oasys_function_id_foreign` (`oasys_function_id`),
  KEY `operation_permissions_operation_type_id_foreign` (`operation_type_id`),
  CONSTRAINT `operation_permissions_affiliate_id_foreign` FOREIGN KEY (`affiliate_id`) REFERENCES `affiliates` (`id`),
  CONSTRAINT `operation_permissions_oasys_function_id_foreign` FOREIGN KEY (`oasys_function_id`) REFERENCES `oasys_functions` (`id`),
  CONSTRAINT `operation_permissions_operation_type_id_foreign` FOREIGN KEY (`operation_type_id`) REFERENCES `operation_types` (`id`),
  CONSTRAINT `operation_permissions_position_id_foreign` FOREIGN KEY (`position_id`) REFERENCES `positions` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=64 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `operation_permissions`
--

INSERT INTO `operation_permissions` VALUES (1,9,291,1,3,'2023-07-20 08:44:38','2023-09-17 20:40:58',NULL),(2,9,291,2,3,'2023-07-20 08:44:38','2023-09-17 20:40:58',NULL),(3,9,291,3,3,'2023-07-20 08:44:38','2023-09-17 20:40:58',NULL),(4,9,291,4,3,'2023-07-20 08:44:38','2023-09-17 20:40:58',NULL),(5,9,291,5,3,'2023-07-20 08:44:38','2023-09-17 20:40:58',NULL),(6,9,291,6,3,'2023-07-20 08:44:38','2023-09-17 20:40:58',NULL),(7,9,291,7,1,'2023-07-20 08:44:38','2023-09-17 20:40:58',NULL),(8,9,291,8,1,'2023-07-20 08:44:38','2023-09-17 20:40:58',NULL),(9,3,286,3,1,'2023-07-20 08:44:38','2023-09-19 16:19:21',NULL),(10,3,286,4,1,'2023-07-20 08:44:38','2023-09-19 16:19:21',NULL),(11,3,286,5,1,'2023-07-20 08:44:38','2023-09-19 16:19:21',NULL),(12,3,287,3,1,'2023-07-20 08:44:38','2023-09-19 16:19:21',NULL),(13,3,287,4,1,'2023-07-20 08:44:38','2023-09-19 16:19:21',NULL),(14,3,287,5,1,'2023-07-20 08:44:38','2023-09-19 16:19:21',NULL),(15,5,292,3,2,'2023-07-20 08:44:38','2023-09-19 16:19:21',NULL),(16,7,292,7,1,'2023-07-20 08:44:38','2023-09-17 09:01:39',NULL),(17,7,292,8,1,'2023-07-20 08:44:38','2023-09-17 09:01:39',NULL),(18,9,291,12,3,'2023-09-17 09:02:14','2023-09-17 09:02:14',NULL),(19,9,291,9,3,'2023-09-17 09:02:14','2023-09-17 09:02:14',NULL),(20,9,291,11,3,'2023-09-17 09:02:14','2023-09-17 09:02:14',NULL),(21,9,291,13,3,'2023-09-17 09:02:14','2023-09-17 09:02:14',NULL),(22,9,291,14,3,'2023-09-17 09:02:14','2023-09-17 09:02:14',NULL),(23,9,291,15,3,'2023-09-17 09:02:14','2023-09-17 09:02:14',NULL),(24,9,291,10,3,'2023-09-17 09:02:14','2023-09-17 09:02:14',NULL),(25,3,286,13,1,'2023-09-17 09:02:14','2023-09-19 16:19:21',NULL),(26,3,286,14,1,'2023-09-17 09:02:14','2023-09-19 16:19:21',NULL),(27,3,286,15,1,'2023-09-17 09:02:14','2023-09-19 16:19:21',NULL),(28,3,287,13,1,'2023-09-17 09:02:14','2023-09-19 16:19:21',NULL),(29,3,287,14,1,'2023-09-17 09:02:14','2023-09-19 16:19:21',NULL),(30,3,287,15,1,'2023-09-17 09:02:14','2023-09-19 16:19:21',NULL),(31,5,292,11,3,'2023-09-17 09:02:14','2023-09-25 21:50:12',NULL),(32,5,292,13,2,'2023-09-17 09:02:14','2023-09-25 21:50:12',NULL),(33,5,292,14,2,'2023-09-17 09:02:14','2023-09-25 21:50:12',NULL),(34,5,292,15,2,'2023-09-17 09:02:14','2023-09-25 21:50:12',NULL),(35,3,290,10,3,'2023-09-17 09:02:14','2023-09-17 09:02:14',NULL),(36,9,291,12,3,'2023-09-17 18:02:24','2023-09-17 18:02:24',NULL),(37,9,291,9,3,'2023-09-17 18:02:24','2023-09-17 18:02:24',NULL),(38,9,291,11,3,'2023-09-17 18:02:24','2023-09-17 18:02:24',NULL),(39,9,291,13,3,'2023-09-17 18:02:24','2023-09-17 18:02:24',NULL),(40,9,291,14,3,'2023-09-17 18:02:24','2023-09-17 18:02:24',NULL),(41,9,291,15,3,'2023-09-17 18:02:24','2023-09-17 18:02:24',NULL),(42,9,291,10,3,'2023-09-17 18:02:24','2023-09-17 18:02:24',NULL),(43,3,286,13,1,'2023-09-17 18:02:24','2023-09-19 16:19:21',NULL),(44,3,286,14,1,'2023-09-17 18:02:24','2023-09-19 16:19:21',NULL),(45,3,286,15,1,'2023-09-17 18:02:24','2023-09-19 16:19:21',NULL),(46,3,287,13,1,'2023-09-17 18:02:24','2023-09-19 16:19:21',NULL),(47,3,287,14,1,'2023-09-17 18:02:24','2023-09-19 16:19:21',NULL),(48,3,287,15,1,'2023-09-17 18:02:24','2023-09-19 16:19:21',NULL),(49,5,292,11,3,'2023-09-17 18:02:24','2023-09-25 21:50:12',NULL),(50,5,292,13,2,'2023-09-17 18:02:24','2023-09-25 21:50:12',NULL),(51,5,292,14,2,'2023-09-17 18:02:24','2023-09-25 21:50:12',NULL),(52,5,292,15,2,'2023-09-17 18:02:24','2023-09-25 21:50:12',NULL),(53,3,290,10,3,'2023-09-17 18:02:24','2023-09-17 18:02:24',NULL),(54,3,292,3,1,'2023-09-19 15:27:45','2023-09-19 15:27:45',NULL),(55,3,292,4,1,'2023-09-19 15:27:45','2023-09-19 15:27:45',NULL),(56,3,292,5,1,'2023-09-19 15:27:45','2023-09-19 15:27:45',NULL),(57,5,292,4,2,'2023-09-19 15:27:45','2023-09-19 15:27:45',NULL),(58,5,292,5,2,'2023-09-19 15:27:45','2023-09-19 15:27:45',NULL),(59,9,291,16,3,'2024-01-27 14:01:05','2024-01-27 14:01:05',NULL),(60,3,292,16,3,'2024-01-27 14:01:05','2024-01-27 14:01:05',NULL),(61,3,286,16,3,'2024-01-27 14:01:05','2024-01-27 14:01:05',NULL),(62,3,287,16,3,'2024-01-27 14:01:05','2024-01-27 14:01:05',NULL),(63,7,292,4,3,'2024-02-03 22:57:40','2024-02-03 22:57:40',NULL);

--
-- Table structure for table `operation_types`
--

CREATE TABLE `operation_types` (
  `id` int NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `operation` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '操作名',
  `operation_ja` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '操作名（日本語）',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `operation_types`
--

INSERT INTO `operation_types` VALUES (1,'view','閲覧','2023-07-20 08:44:34','2023-07-20 08:44:34',NULL),(2,'edit','登録・編集','2023-07-20 08:44:34','2023-07-20 08:44:34',NULL),(3,'delete','削除','2023-07-20 08:44:34','2023-07-20 08:44:34',NULL),(4,'data_create','データ作成・編集','2023-09-17 08:59:10','2023-09-17 08:59:10',NULL);

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `user_id` int NOT NULL COMMENT 'ユーザーID',
  `credit_brand_name` enum('VISA','MASTER','JCB','AMEX','DINERS') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `order_type` enum('REPAIR_REQUEST','PRODUCT') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `total_price` int NOT NULL COMMENT '合計金額',
  `payment_price` int NOT NULL COMMENT '支払い金額',
  `tracking_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'トラッキングID',
  `payment_status` enum('UNFINISHED','COMPLETE','ERROR','CANCEL') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新日時',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=76 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `orders`
--

INSERT INTO `orders` VALUES (31,1,'MASTER','REPAIR_REQUEST',22605,22605,'00003154688653','COMPLETE',NULL,'2023-07-06 22:42:00','2023-07-06 22:51:10'),(32,1,NULL,'REPAIR_REQUEST',22605,22605,NULL,'UNFINISHED',NULL,'2023-07-06 23:09:02','2023-07-06 23:09:02'),(33,31,'VISA','REPAIR_REQUEST',22605,22605,'00003154692168','COMPLETE',NULL,'2023-07-07 07:38:12','2023-07-07 07:41:06'),(34,31,NULL,'REPAIR_REQUEST',22605,22605,NULL,'UNFINISHED',NULL,'2023-07-07 07:47:23','2023-07-07 07:47:23'),(35,31,'VISA','REPAIR_REQUEST',22605,22605,'00003154692338','COMPLETE',NULL,'2023-07-07 08:13:33','2023-07-07 08:13:37'),(36,31,'VISA','REPAIR_REQUEST',5500,5500,'00003154735678','COMPLETE',NULL,'2023-07-11 12:38:44','2023-07-11 12:38:52'),(37,31,'VISA','REPAIR_REQUEST',25905,25905,'00003154754820','COMPLETE',NULL,'2023-07-13 00:12:06','2023-07-13 00:12:15'),(38,31,'VISA','REPAIR_REQUEST',22605,22605,'00003154754864','COMPLETE',NULL,'2023-07-13 00:17:45','2023-07-13 00:18:13'),(39,31,'VISA','REPAIR_REQUEST',27500,27500,'00003154757965','COMPLETE',NULL,'2023-07-13 08:07:14','2023-07-13 08:07:25'),(40,31,'VISA','REPAIR_REQUEST',22605,22605,'00003154758001','COMPLETE',NULL,'2023-07-13 08:09:51','2023-07-13 08:09:54'),(41,31,NULL,'REPAIR_REQUEST',22605,22605,NULL,'UNFINISHED',NULL,'2023-07-13 08:59:32','2023-07-13 08:59:32'),(42,31,NULL,'REPAIR_REQUEST',22605,22605,NULL,'UNFINISHED',NULL,'2023-07-13 09:00:40','2023-07-13 09:00:40'),(43,31,'VISA','REPAIR_REQUEST',22605,22605,'00003154769761','COMPLETE',NULL,'2023-07-13 15:30:03','2023-07-13 15:30:12'),(44,31,'VISA','REPAIR_REQUEST',22605,22605,'00003154771066','COMPLETE',NULL,'2023-07-13 16:42:00','2023-07-13 16:42:53'),(45,31,'VISA','REPAIR_REQUEST',22605,22605,'00003154771082','COMPLETE',NULL,'2023-07-13 16:44:49','2023-07-13 16:44:54'),(46,31,'VISA','REPAIR_REQUEST',22605,22605,'00003154772064','COMPLETE',NULL,'2023-07-13 18:14:24','2023-07-13 18:14:30'),(47,31,'VISA','REPAIR_REQUEST',22605,22605,'00003154775633','COMPLETE',NULL,'2023-07-13 23:04:49','2023-07-13 23:04:53'),(48,31,'VISA','REPAIR_REQUEST',5500,5500,'00003154969470','COMPLETE',NULL,'2023-07-14 22:50:04','2023-07-14 22:50:10'),(49,31,NULL,'REPAIR_REQUEST',22605,22605,NULL,'UNFINISHED',NULL,'2023-07-21 22:52:22','2023-07-21 22:52:22'),(50,34,NULL,'REPAIR_REQUEST',22605,22605,NULL,'UNFINISHED',NULL,'2023-07-21 22:55:06','2023-07-21 22:55:06'),(51,31,NULL,'REPAIR_REQUEST',22605,22605,NULL,'UNFINISHED',NULL,'2023-07-24 09:46:02','2023-07-24 09:46:02'),(52,44,NULL,'REPAIR_REQUEST',25905,25905,NULL,'UNFINISHED',NULL,'2023-08-18 21:43:53','2023-08-18 21:43:53'),(53,42,NULL,'REPAIR_REQUEST',27500,27500,NULL,'UNFINISHED',NULL,'2023-08-18 21:50:12','2023-08-18 21:50:12'),(54,31,'MASTER','REPAIR_REQUEST',22605,22605,'00003155798316','COMPLETE',NULL,'2023-08-27 09:16:48','2023-08-27 09:16:57'),(55,44,'MASTER','REPAIR_REQUEST',25905,25905,'00003155798320','COMPLETE',NULL,'2023-08-27 09:21:45','2023-08-27 09:21:51'),(56,31,'MASTER','REPAIR_REQUEST',25905,25905,'00003155987607','COMPLETE',NULL,'2023-09-12 08:40:41','2023-09-12 08:40:46'),(57,31,NULL,'REPAIR_REQUEST',18425,18425,NULL,'UNFINISHED',NULL,'2023-10-29 11:43:25','2023-10-29 11:43:25'),(58,31,'MASTER','REPAIR_REQUEST',25905,25905,'00003156572297','COMPLETE',NULL,'2023-10-29 12:01:52','2023-10-29 12:01:57'),(59,31,'MASTER','REPAIR_REQUEST',22605,22605,'00003156572985','COMPLETE',NULL,'2023-10-29 15:50:18','2023-10-29 15:50:22'),(60,31,'MASTER','REPAIR_REQUEST',22605,22605,'00003156953109','COMPLETE',NULL,'2023-12-20 14:08:22','2023-12-20 14:08:29'),(61,31,NULL,'REPAIR_REQUEST',22605,22605,NULL,'UNFINISHED',NULL,'2024-01-17 22:42:56','2024-01-17 22:42:56'),(62,31,NULL,'REPAIR_REQUEST',22605,22605,NULL,'UNFINISHED',NULL,'2024-02-25 20:09:32','2024-02-25 20:09:32'),(63,31,NULL,'REPAIR_REQUEST',3000,3000,NULL,'UNFINISHED',NULL,'2024-04-11 19:14:59','2024-04-11 19:14:59'),(64,31,NULL,'REPAIR_REQUEST',3000,3000,NULL,'UNFINISHED',NULL,'2024-04-11 19:28:12','2024-04-11 19:28:12'),(65,31,'MASTER','REPAIR_REQUEST',3000,3000,'00003158181006','COMPLETE',NULL,'2024-04-11 19:37:35','2024-04-11 19:37:47'),(66,31,'VISA','REPAIR_REQUEST',3000,3000,'00003158181135','COMPLETE',NULL,'2024-04-11 20:01:19','2024-04-11 20:11:25'),(67,31,'VISA','REPAIR_REQUEST',5500,5500,'00003158181154','COMPLETE',NULL,'2024-04-11 20:18:43','2024-04-11 20:18:51'),(68,31,NULL,'REPAIR_REQUEST',3000,3000,NULL,'UNFINISHED',NULL,'2024-04-11 20:23:35','2024-04-11 20:23:35'),(69,31,'VISA','REPAIR_REQUEST',3000,3000,'00003158181168','COMPLETE',NULL,'2024-04-11 20:25:58','2024-04-11 20:26:03'),(70,31,NULL,'REPAIR_REQUEST',3000,3000,NULL,'UNFINISHED',NULL,'2024-04-11 20:54:27','2024-04-11 20:54:27'),(71,31,NULL,'REPAIR_REQUEST',3000,3000,NULL,'UNFINISHED',NULL,'2024-04-11 20:54:44','2024-04-11 20:54:44'),(72,31,NULL,'REPAIR_REQUEST',19800,19800,NULL,'UNFINISHED',NULL,'2024-04-15 10:53:51','2024-04-15 10:53:51'),(73,31,'VISA','REPAIR_REQUEST',19800,19800,'00003158213906','COMPLETE',NULL,'2024-04-15 10:55:56','2024-04-15 10:56:02'),(74,31,'VISA','REPAIR_REQUEST',19800,19800,'00003158214194','COMPLETE',NULL,'2024-04-15 11:09:13','2024-04-15 11:09:20'),(75,31,'VISA','REPAIR_REQUEST',3300,3300,'00003158226986','COMPLETE',NULL,'2024-04-16 14:24:35','2024-04-16 14:24:47');

--
-- Table structure for table `osada_holidays`
--

CREATE TABLE `osada_holidays` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '名称',
  `holiday_date` datetime DEFAULT NULL COMMENT '休日日付',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `osada_holidays`
--

INSERT INTO `osada_holidays` VALUES (1,'夏季休暇','2023-08-09 00:00:00','2023-07-04 18:01:55','2023-07-04 18:01:55',NULL),(2,'夏季休暇','2023-08-10 00:00:00','2023-07-04 18:01:55','2023-07-04 18:01:55',NULL),(3,'夏季休暇','2023-08-11 00:00:00','2023-07-04 18:01:55','2023-07-04 18:01:55',NULL),(4,'夏季休暇','2023-08-12 00:00:00','2023-07-04 18:01:55','2023-07-04 18:01:55',NULL),(5,'夏季休暇','2023-08-13 00:00:00','2023-07-04 18:01:55','2023-07-04 18:01:55',NULL),(6,'夏季休暇','2023-08-14 00:00:00','2023-07-04 18:01:55','2023-07-04 18:01:55',NULL),(7,'夏季休暇','2023-08-15 00:00:00','2023-07-04 18:01:55','2023-07-04 18:01:55',NULL),(8,'夏季休暇','2023-08-16 00:00:00','2023-07-04 18:01:55','2023-07-04 18:01:55',NULL);

--
-- Table structure for table `own_osada_consumables`
--

CREATE TABLE `own_osada_consumables` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT '医院保有機器消耗品ID',
  `own_osada_equipment_id` int unsigned NOT NULL COMMENT '医院保有OSADA製機器ID',
  `consumable_id` int unsigned NOT NULL COMMENT '消耗品ID',
  `replacement_interval_month` tinyint unsigned NOT NULL COMMENT '交換間隔(月)',
  `last_replaced_at` datetime DEFAULT NULL COMMENT '前回交換日時',
  `next_replacement_at` datetime NOT NULL COMMENT '次回交換予定日時',
  `is_applying_purchase` tinyint NOT NULL DEFAULT '0' COMMENT '購入依頼中フラグ',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`),
  KEY `own_osada_consumables_own_osada_equipment_id_foreign` (`own_osada_equipment_id`),
  KEY `own_osada_consumables_consumable_id_foreign` (`consumable_id`),
  CONSTRAINT `own_osada_consumables_consumable_id_foreign` FOREIGN KEY (`consumable_id`) REFERENCES `consumables` (`id`),
  CONSTRAINT `own_osada_consumables_own_osada_equipment_id_foreign` FOREIGN KEY (`own_osada_equipment_id`) REFERENCES `own_osada_equipments` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `own_osada_consumables`
--


--
-- Table structure for table `own_osada_equipments`
--

CREATE TABLE `own_osada_equipments` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `clinic_id` int unsigned NOT NULL COMMENT '医院ID',
  `equipment_type_id` int unsigned NOT NULL COMMENT '形式ID',
  `alias` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '医院別名称',
  `serial_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '製造番号',
  `image_file_id` bigint unsigned DEFAULT NULL COMMENT '画像ファイルID',
  `bought_at` datetime DEFAULT NULL COMMENT '購入日時',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`),
  KEY `own_osada_equipments_clinic_id_foreign` (`clinic_id`),
  KEY `own_osada_equipments_equipment_type_id_foreign` (`equipment_type_id`),
  KEY `own_osada_equipments_image_file_id_foreign` (`image_file_id`),
  CONSTRAINT `own_osada_equipments_clinic_id_foreign` FOREIGN KEY (`clinic_id`) REFERENCES `clinics` (`id`),
  CONSTRAINT `own_osada_equipments_equipment_type_id_foreign` FOREIGN KEY (`equipment_type_id`) REFERENCES `equipment_types` (`id`),
  CONSTRAINT `own_osada_equipments_image_file_id_foreign` FOREIGN KEY (`image_file_id`) REFERENCES `files` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=89 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `own_osada_equipments`
--

INSERT INTO `own_osada_equipments` VALUES (1,12,24,NULL,'3RNCD9AC4R7J',NULL,NULL,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(2,3,37,NULL,'QYADCSUTCODZ',NULL,NULL,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(3,18,176,NULL,'BIEAPGXM8MFNL',NULL,NULL,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(4,11,183,NULL,'2RJDDWQPZF4Q',NULL,NULL,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(5,25,83,NULL,'XWSIGWVGYL887',NULL,NULL,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(6,5,98,NULL,'GYK4LINQZD9C',NULL,NULL,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(7,1,55,NULL,'ZO0ZB507208G',NULL,NULL,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(8,28,7,NULL,'A3CEAU3VVNNAZ',NULL,NULL,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(9,30,139,NULL,'157TUJFDP27K',NULL,NULL,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(10,20,148,NULL,'554CSI7VVOXYE',NULL,NULL,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(11,17,120,NULL,'VQ5REZSHA93W',NULL,NULL,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(12,6,233,NULL,'JOYI2YSXCCMQ',NULL,NULL,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(13,19,198,NULL,'46V4GOV3LJ96G',NULL,NULL,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(14,7,155,NULL,'1HJ3C7Z3DWNS',NULL,NULL,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(15,23,161,NULL,'6HPINOZS8DI67',NULL,NULL,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(16,28,208,NULL,'L5CHS7KZ1J1Y5',NULL,NULL,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(17,13,52,NULL,'LML0J80XB3MQ',NULL,NULL,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(18,26,20,NULL,'A5Q0AJJ8BMW0',NULL,NULL,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(19,8,239,NULL,'HKJCRNOPMI38',NULL,NULL,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(20,1,138,NULL,'D5SZHXTEMTE2L',NULL,NULL,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(22,26,6,NULL,NULL,NULL,NULL,'2023-07-02 20:15:04','2023-07-02 20:15:04',NULL),(23,26,129,NULL,NULL,NULL,NULL,'2023-07-02 20:17:42','2023-07-02 20:17:42',NULL),(24,26,129,NULL,NULL,NULL,NULL,'2023-07-02 20:31:30','2023-07-02 20:31:30',NULL),(25,26,63,NULL,'1234567',NULL,NULL,'2023-07-02 20:38:34','2023-07-03 13:06:21',NULL),(26,26,137,NULL,NULL,NULL,NULL,'2023-07-02 20:49:42','2023-07-02 20:49:42',NULL),(27,31,5,NULL,NULL,NULL,NULL,'2023-07-04 11:50:22','2023-07-04 11:50:22',NULL),(29,31,37,'テストG1M',NULL,NULL,NULL,'2023-07-07 09:37:07','2024-06-02 13:06:12',NULL),(30,31,37,NULL,NULL,NULL,NULL,'2023-07-07 16:30:57','2023-07-07 16:30:57',NULL),(31,31,16,NULL,NULL,NULL,NULL,'2023-07-07 16:50:23','2023-07-07 16:50:23',NULL),(32,31,37,NULL,NULL,NULL,NULL,'2023-07-07 16:50:41','2023-07-07 16:50:41',NULL),(33,26,123,NULL,NULL,NULL,NULL,'2023-07-08 00:27:33','2023-07-08 00:27:33',NULL),(34,34,129,NULL,NULL,NULL,NULL,'2023-07-08 00:52:38','2023-07-08 00:52:38',NULL),(35,34,216,NULL,NULL,NULL,NULL,'2023-07-08 00:58:16','2023-07-08 00:58:16',NULL),(36,31,37,NULL,NULL,NULL,NULL,'2023-07-11 19:59:16','2023-07-11 19:59:16',NULL),(37,31,130,NULL,NULL,NULL,NULL,'2023-07-12 07:36:06','2023-07-12 07:36:06',NULL),(38,31,156,NULL,NULL,NULL,NULL,'2023-07-13 08:55:59','2023-07-13 08:55:59',NULL),(39,31,11,NULL,NULL,NULL,NULL,'2023-07-13 15:57:46','2023-07-13 15:57:46',NULL),(40,31,13,NULL,NULL,NULL,NULL,'2023-07-13 16:43:58','2023-07-13 16:43:58',NULL),(41,31,129,NULL,NULL,NULL,NULL,'2023-07-13 18:11:42','2023-07-13 18:11:42',NULL),(42,31,138,NULL,NULL,NULL,NULL,'2023-07-13 23:02:55','2023-07-13 23:02:55',NULL),(43,31,98,NULL,NULL,NULL,NULL,'2023-07-14 22:48:14','2023-07-14 22:48:14',NULL),(44,31,3,NULL,NULL,NULL,NULL,'2023-07-17 23:30:42','2023-07-17 23:30:42',NULL),(45,31,3,NULL,NULL,NULL,NULL,'2023-07-20 07:54:00','2023-07-20 07:54:00',NULL),(46,31,3,NULL,NULL,NULL,NULL,'2023-07-20 13:54:26','2023-07-20 13:54:26',NULL),(47,31,28,NULL,NULL,NULL,NULL,'2023-07-20 13:55:11','2023-07-20 13:55:11',NULL),(48,31,32,NULL,NULL,NULL,NULL,'2023-07-20 18:14:45','2023-07-20 18:14:45',NULL),(49,31,26,NULL,NULL,NULL,NULL,'2023-07-20 19:03:02','2023-07-20 19:03:02',NULL),(50,31,264,NULL,NULL,NULL,NULL,'2023-07-21 22:34:04','2023-07-21 22:34:04',NULL),(51,31,123,NULL,NULL,NULL,NULL,'2023-07-24 20:49:42','2023-07-24 20:49:42',NULL),(52,31,26,NULL,NULL,NULL,NULL,'2023-08-18 21:10:24','2023-08-18 21:10:24',NULL),(53,44,26,NULL,NULL,NULL,NULL,'2023-08-18 21:35:02','2023-08-18 21:35:02',NULL),(54,42,31,NULL,NULL,NULL,NULL,'2023-08-18 21:48:07','2023-08-18 21:48:07',NULL),(55,34,96,NULL,NULL,NULL,NULL,'2023-08-24 09:29:53','2023-08-24 09:29:53',NULL),(56,31,133,NULL,NULL,NULL,NULL,'2023-08-24 16:33:54','2023-08-24 16:33:54',NULL),(57,34,96,NULL,NULL,NULL,NULL,'2023-08-25 15:37:16','2023-08-25 15:37:16',NULL),(58,31,140,NULL,NULL,NULL,NULL,'2023-08-29 15:40:24','2023-08-29 15:40:24',NULL),(59,34,47,NULL,NULL,NULL,NULL,'2023-09-03 10:28:01','2023-09-03 10:28:01',NULL),(60,34,129,NULL,NULL,NULL,NULL,'2023-09-03 10:34:47','2023-09-03 10:34:47',NULL),(61,31,37,NULL,NULL,NULL,NULL,'2023-09-20 21:33:24','2023-09-20 21:33:24',NULL),(62,31,37,NULL,NULL,NULL,NULL,'2023-09-21 10:47:37','2023-09-21 10:47:37',NULL),(63,31,98,NULL,NULL,NULL,NULL,'2023-09-29 22:20:22','2023-09-29 22:20:22',NULL),(64,31,26,NULL,NULL,NULL,NULL,'2023-10-15 21:38:01','2023-10-15 21:38:01',NULL),(65,45,32,NULL,NULL,NULL,NULL,'2023-10-21 08:07:55','2023-10-21 08:07:55',NULL),(66,45,26,NULL,NULL,NULL,NULL,'2023-10-22 16:42:22','2023-10-22 16:42:22',NULL),(67,45,71,NULL,NULL,NULL,NULL,'2023-10-22 17:24:06','2023-10-22 17:24:06',NULL),(68,45,270,NULL,NULL,NULL,NULL,'2023-10-22 17:28:38','2023-10-22 17:28:38',NULL),(69,45,275,NULL,NULL,NULL,NULL,'2023-10-22 19:54:28','2023-10-22 19:54:28',NULL),(70,45,242,NULL,NULL,NULL,NULL,'2023-10-26 08:41:54','2023-10-26 08:41:54',NULL),(72,31,47,NULL,NULL,NULL,NULL,'2023-11-10 21:19:58','2023-11-10 21:19:58',NULL),(73,31,17,NULL,NULL,NULL,NULL,'2023-11-24 11:48:15','2023-11-24 11:48:15',NULL),(74,31,13,NULL,NULL,NULL,NULL,'2023-12-20 14:01:59','2023-12-20 14:01:59',NULL),(75,31,14,NULL,NULL,NULL,NULL,'2023-12-20 14:04:18','2023-12-20 14:04:18',NULL),(77,31,47,NULL,NULL,NULL,NULL,'2024-03-21 21:15:35','2024-03-21 21:15:35',NULL),(78,31,37,NULL,NULL,NULL,NULL,'2024-04-10 00:14:12','2024-04-10 00:14:12',NULL),(79,31,26,NULL,NULL,NULL,NULL,'2024-04-11 12:03:30','2024-04-11 12:03:30',NULL),(80,31,26,NULL,NULL,NULL,NULL,'2024-04-11 19:51:10','2024-04-11 19:51:10',NULL),(81,31,26,NULL,NULL,NULL,NULL,'2024-04-11 20:49:12','2024-04-11 20:49:12',NULL),(82,31,26,NULL,NULL,NULL,NULL,'2024-04-11 22:30:05','2024-04-11 22:30:05',NULL),(83,31,26,NULL,NULL,NULL,NULL,'2024-04-13 09:17:51','2024-04-13 09:17:51',NULL),(84,31,26,NULL,NULL,NULL,NULL,'2024-04-13 14:53:32','2024-04-13 14:53:32',NULL),(85,31,37,'G1Mテスト医院1','G1M123456',NULL,NULL,'2024-06-02 13:27:00','2024-06-02 21:20:36',NULL),(86,31,37,NULL,'123456789',NULL,NULL,'2024-06-03 09:19:55','2024-06-03 09:19:55',NULL),(87,34,66,NULL,NULL,NULL,NULL,'2024-06-12 14:15:12','2024-06-12 14:15:12',NULL),(88,31,284,NULL,'12341234',NULL,NULL,'2024-07-06 20:38:15','2024-07-06 20:38:15',NULL);

--
-- Table structure for table `password_reset_tokens`
--

CREATE TABLE `password_reset_tokens` (
  `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `password_reset_tokens`
--

INSERT INTO `password_reset_tokens` VALUES ('abeshima@itbc.co.jp','$2y$10$3g.u6hOtyNj5QfzjmaB.7OLbDknKbio0MRrd3KziCKHpZCz4hqAyq','2023-07-14 06:51:06');

--
-- Table structure for table `payment_methods`
--

CREATE TABLE `payment_methods` (
  `id` smallint unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `method` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '決済方法名',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `payment_methods`
--

INSERT INTO `payment_methods` VALUES (1,'クレジットカード','2024-01-16 22:39:35','2024-01-16 22:39:35',NULL),(2,'請求書','2024-01-16 22:39:35','2024-01-16 22:39:35',NULL);

--
-- Table structure for table `personal_access_tokens`
--

CREATE TABLE `personal_access_tokens` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `tokenable_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `tokenable_id` bigint unsigned NOT NULL,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `abilities` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `last_used_at` timestamp NULL DEFAULT NULL,
  `expires_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
  KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `personal_access_tokens`
--


--
-- Table structure for table `positions`
--

CREATE TABLE `positions` (
  `id` int NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '役職名',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `positions`
--

INSERT INTO `positions` VALUES (1,'ゲスト','2023-07-02 12:40:50','2023-08-19 16:56:37',NULL),(2,'低権限ユーザー','2023-07-02 12:40:50','2023-08-19 16:56:37',NULL),(3,'一般社員','2023-07-02 12:40:50','2023-08-19 16:56:37',NULL),(5,'高権限ユーザー','2023-09-19 15:27:45','2023-09-19 15:27:45',NULL),(7,'管理職','2023-08-19 16:56:37','2023-08-19 16:56:37',NULL),(9,'システム管理者','2023-08-19 16:56:37','2023-08-19 16:56:37',NULL);

--
-- Table structure for table `prefectures`
--

CREATE TABLE `prefectures` (
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '都道府県名',
  `name_en` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '都道府県名(英語)',
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '都道府県コード',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `prefectures`
--

INSERT INTO `prefectures` VALUES ('北海道','Hokkaido Prefecture','01','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('青森県','Aomori Prefecture','02','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('岩手県','Iwate Prefecture','03','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('宮城県','Miyagi Prefecture','04','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('秋田県','Akita Prefecture','05','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('山形県','Yamagata Prefecture','06','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('福島県','Fukushima Prefecture','07','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('茨城県','Ibaraki Prefecture','08','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('栃木県','Tochigi Prefecture','09','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('群馬県','Gunma Prefecture','10','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('埼玉県','Saitama Prefecture','11','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('千葉県','Chiba Prefecture','12','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('東京都','Tokyo Metropolis','13','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('神奈川県','Kanagawa Prefecture','14','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('新潟県','Niigata Prefecture','15','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('富山県','Toyama Prefecture','16','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('石川県','Ishikawa Prefecture','17','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('福井県','Fukui Prefecture','18','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('山梨県','Yamanashi Prefecture','19','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('長野県','Nagano Prefecture','20','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('岐阜県','Gifu Prefecture','21','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('静岡県','Shizuoka Prefecture','22','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('愛知県','Aichi Prefecture','23','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('三重県','Mie Prefecture','24','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('滋賀県','Shiga Prefecture','25','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('京都府','Kyoto Prefecture','26','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('大阪府','Osaka Prefecture','27','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('兵庫県','Hyogo Prefecture','28','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('奈良県','Nara Prefecture','29','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('和歌山県','Wakayama Prefecture','30','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('鳥取県','Tottori Prefecture','31','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('島根県','Shimane Prefecture','32','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('岡山県','Okayama Prefecture','33','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('広島県','Hiroshima Prefecture','34','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('山口県','Yamaguchi Prefecture','35','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('徳島県','Tokushima Prefecture','36','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('香川県','Kagawa Prefecture','37','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('愛媛県','Ehime Prefecture','38','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('高知県','Kochi Prefecture','39','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('福岡県','Fukuoka Prefecture','40','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('佐賀県','Saga Prefecture','41','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('長崎県','Nagasaki Prefecture','42','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('熊本県','Kumamoto Prefecture','43','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('大分県','Oita Prefecture','44','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('宮崎県','Miyazaki Prefecture','45','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('鹿児島県','Kagoshima Prefecture','46','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL),('沖縄県','Okinawa Prefecture','47','2023-07-02 12:40:49','2023-10-14 14:34:31',NULL);

--
-- Table structure for table `rental_item_according_to_types`
--

CREATE TABLE `rental_item_according_to_types` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `equipment_type_id` int unsigned NOT NULL COMMENT '形式ID',
  `rental_equip_type_id` int unsigned NOT NULL COMMENT '貸用品形式ID',
  `is_domestic_dentist` tinyint NOT NULL DEFAULT '0' COMMENT '国内歯科向け',
  `is_veterinarian` tinyint NOT NULL DEFAULT '0' COMMENT '獣医科向け',
  `is_other_medical` tinyint NOT NULL DEFAULT '0' COMMENT 'その他医科向け',
  `is_abroad_dentist` tinyint NOT NULL DEFAULT '0' COMMENT '海外歯科向け',
  `is_portable` tinyint NOT NULL DEFAULT '0' COMMENT '訪問歯科向け',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`),
  KEY `rental_item_according_to_types_equipment_type_id_foreign` (`equipment_type_id`),
  KEY `rental_item_according_to_types_rental_equip_type_id_foreign` (`rental_equip_type_id`),
  CONSTRAINT `rental_item_according_to_types_equipment_type_id_foreign` FOREIGN KEY (`equipment_type_id`) REFERENCES `equipment_types` (`id`),
  CONSTRAINT `rental_item_according_to_types_rental_equip_type_id_foreign` FOREIGN KEY (`rental_equip_type_id`) REFERENCES `equipment_types` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=125 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rental_item_according_to_types`
--

INSERT INTO `rental_item_according_to_types` VALUES (1,26,26,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(2,27,27,1,0,0,0,1,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(3,28,28,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(4,34,34,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(5,37,37,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(6,38,38,1,0,0,0,1,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(7,39,39,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(8,40,40,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(9,42,42,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(10,44,44,1,1,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(11,47,47,1,0,0,0,0,'2023-07-07 22:05:57','2023-11-02 23:28:51',NULL),(12,49,49,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(13,51,51,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(14,51,53,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(15,51,236,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(16,53,51,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(17,53,53,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(18,53,236,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(19,54,54,1,1,1,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(20,57,57,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(21,58,34,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(22,36,36,0,1,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(23,46,46,0,0,1,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(24,46,237,0,1,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(25,238,238,0,1,1,0,0,'2023-07-07 22:05:57','2023-10-06 11:41:42',NULL),(26,50,239,0,1,1,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(27,55,55,0,1,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(28,56,56,0,0,1,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(29,57,240,0,1,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(30,59,59,0,1,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(31,97,97,0,1,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(32,98,98,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(33,99,99,1,0,0,0,1,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(34,100,100,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(35,101,101,1,0,0,0,1,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(36,102,100,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(37,103,98,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(38,86,86,0,1,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(39,96,96,0,1,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(40,112,112,0,1,1,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(41,113,113,0,1,1,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(42,114,114,0,1,1,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(43,115,115,0,1,1,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(44,116,116,0,1,1,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(45,123,123,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(46,123,126,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(47,124,124,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(48,126,126,0,0,1,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(49,126,241,0,0,1,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(50,127,127,0,1,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(51,132,132,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(52,133,133,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(53,134,134,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(54,135,135,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(55,136,136,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(56,140,140,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(57,143,143,0,0,1,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(58,148,148,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(59,149,149,0,1,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(60,242,242,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(61,152,152,0,1,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(62,154,154,0,0,1,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(63,155,156,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(64,156,156,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(65,157,157,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(66,159,159,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(67,161,161,0,1,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(68,166,166,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(69,167,167,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(70,167,168,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(71,168,167,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(72,168,168,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(73,169,169,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(74,170,170,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(75,173,243,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(76,173,173,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(77,173,174,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(78,174,243,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(79,174,173,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(80,174,174,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(81,176,176,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(82,177,124,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(83,179,176,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(84,180,176,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(85,184,184,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(86,185,184,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(87,192,192,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(88,193,193,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(89,194,194,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(90,195,195,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(91,196,196,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(92,197,197,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(93,208,208,0,1,1,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(94,209,244,0,1,1,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(95,210,244,0,1,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(96,211,244,0,1,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(97,217,217,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(98,218,218,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(99,218,217,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(100,219,217,1,0,0,0,0,'2023-07-07 22:05:57','2023-10-17 11:52:22',NULL),(101,219,219,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(102,220,219,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(103,220,220,1,1,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(104,220,218,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(105,220,217,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(106,221,221,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(107,147,148,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(108,235,235,1,0,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(109,70,70,0,1,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(110,151,151,0,1,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(111,153,153,0,1,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(112,160,160,0,1,0,0,0,'2023-07-07 22:05:57','2023-07-07 22:05:57',NULL),(113,238,249,0,1,0,0,0,'2023-10-06 11:43:42','2023-10-17 11:52:17',NULL),(114,47,238,0,1,1,0,0,'2023-10-17 11:51:52','2023-10-17 11:51:52',NULL),(115,47,249,0,1,0,0,0,'2023-10-17 11:51:57','2023-11-02 23:31:12',NULL),(116,249,249,0,1,0,0,0,'2023-10-17 11:52:03','2023-10-17 11:52:03',NULL),(117,250,250,1,0,0,0,0,'2023-10-17 11:52:10','2023-10-17 11:52:10',NULL),(118,250,217,1,0,0,0,0,'2023-10-17 11:52:10','2023-10-17 11:52:10',NULL),(119,250,218,1,0,0,0,0,'2023-10-17 11:52:10','2023-10-17 11:52:10',NULL),(120,250,219,1,0,0,0,0,'2023-10-17 11:52:10','2023-10-17 11:52:10',NULL),(121,47,46,0,0,0,0,1,'2023-11-02 23:38:44','2023-11-02 23:38:44',NULL),(122,47,45,0,0,0,0,1,'2023-11-02 23:39:46','2023-11-02 23:39:46',NULL),(123,47,48,0,0,0,0,1,'2023-11-02 23:40:26','2023-11-02 23:40:26',NULL),(124,67,67,1,0,0,0,1,'2024-02-01 14:23:08','2024-02-01 14:23:08',NULL);

--
-- Table structure for table `rental_items`
--

CREATE TABLE `rental_items` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `equipment_type_id` int unsigned NOT NULL COMMENT '形式ID',
  `management_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '管理番号',
  `current_status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'ステータス',
  `specification` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '仕様：ポンコツ品など',
  `is_domestic_dentist` tinyint NOT NULL DEFAULT '0' COMMENT '国内歯科向け',
  `is_abroad_dentist` tinyint NOT NULL DEFAULT '0' COMMENT '海外歯科向け',
  `is_veterinary` tinyint NOT NULL DEFAULT '0' COMMENT '獣医科向け',
  `is_other_medical` tinyint NOT NULL DEFAULT '0' COMMENT 'その他医科向け',
  `is_others` tinyint NOT NULL DEFAULT '0' COMMENT 'その他向け',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `created_by` int DEFAULT NULL COMMENT '作成者',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新日時',
  `updated_by` int DEFAULT NULL COMMENT '更新者',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  `deleted_by` int DEFAULT NULL COMMENT '削除者',
  PRIMARY KEY (`id`),
  KEY `rental_items_equipment_type_id_foreign` (`equipment_type_id`),
  KEY `rental_items_created_by_foreign` (`created_by`),
  KEY `rental_items_updated_by_foreign` (`updated_by`),
  KEY `rental_items_deleted_by_foreign` (`deleted_by`),
  CONSTRAINT `rental_items_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `employees` (`id`),
  CONSTRAINT `rental_items_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `employees` (`id`),
  CONSTRAINT `rental_items_equipment_type_id_foreign` FOREIGN KEY (`equipment_type_id`) REFERENCES `equipment_types` (`id`),
  CONSTRAINT `rental_items_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `employees` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=460 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rental_items`
--

INSERT INTO `rental_items` VALUES (1,26,'000286','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-24 20:19:42',1,NULL,NULL),(2,26,'000348','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2024-07-07 14:09:28',1,NULL,NULL),(3,26,'000378','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2024-04-11 12:05:34',1,NULL,NULL),(4,26,'010067','repairing',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-24 20:19:42',1,NULL,NULL),(5,26,'010246','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2024-04-11 19:53:04',1,NULL,NULL),(6,26,'030103','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2024-07-07 14:09:27',NULL,NULL,NULL),(7,26,'030475','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-24 20:19:42',1,NULL,NULL),(8,26,'040025','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2024-04-16 13:19:12',NULL,NULL,NULL),(9,26,'040283','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2024-04-13 16:03:25',1,NULL,NULL),(10,26,'040980','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(11,26,'041480','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(12,26,'041724','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(13,26,'051032','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(14,28,'010494','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(15,28,'040094','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(16,40,'120301','not_in_use','モータシース破損',1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(17,40,'160598','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(18,40,'ST3037','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(19,40,'ST3038','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(20,40,'ST3039','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(21,40,'ST3040','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(22,40,'ST3041','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(23,40,'ST3042','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(24,40,'ST3043','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(25,40,'ST3044','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(26,40,'ST3045','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(27,40,'ST3046','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(28,40,'ST3047','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(29,40,'ST3048','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(30,40,'ST3049','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-09-12 08:53:10',1,NULL,NULL),(31,37,'070775','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(32,37,'080069','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2024-03-21 20:54:09',1,NULL,NULL),(33,37,'090989','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2024-03-21 20:54:09',1,NULL,NULL),(34,37,'090675','prepared',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-09-21 10:47:37',1,NULL,NULL),(35,37,'100590','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2024-04-11 22:43:44',1,NULL,NULL),(36,37,'100847','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(37,37,'180205','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(38,37,'081687','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(39,37,'150097','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(40,37,'ST3020','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(41,37,'ST3021','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(42,37,'ST3022','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-10-15 14:35:04',1,NULL,NULL),(43,37,'ST3023','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(44,37,'ST3024','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(45,37,'ST3025','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(46,37,'ST3026','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(47,37,'ST3027','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(48,37,'ST3028','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(49,39,'160029','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(50,39,'170028','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(51,42,'130078','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(52,42,'170015','not_in_use','故障中？',1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(53,42,'ST3052','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-09-12 08:44:41',1,NULL,NULL),(54,58,'020009','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2024-04-09 15:17:09',NULL,NULL,NULL),(55,34,'020512','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2024-04-09 15:17:09',NULL,NULL,NULL),(56,34,'020263','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:14:43',1,NULL,NULL),(57,34,'ST3050','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(58,34,'ST3051','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(59,47,'030014','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:14:43',NULL,NULL,NULL),(60,47,'050245','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2024-04-09 15:17:10',1,NULL,NULL),(61,47,'170025','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2024-03-21 20:57:18',1,NULL,NULL),(62,44,'001715','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:14:43',NULL,NULL,NULL),(63,44,'990378','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-09-12 08:53:10',1,NULL,NULL),(64,49,'010016','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:14:43',NULL,NULL,NULL),(65,49,'990544','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:14:43',NULL,NULL,NULL),(66,49,'990546','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(67,49,'A000005','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(68,236,'20457','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:14:43',NULL,NULL,NULL),(69,236,'030318','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(70,236,'31282','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(71,236,'71475','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:14:43',NULL,NULL,NULL),(72,236,'040021','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(73,51,'80169','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(74,53,'140953','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(75,53,'170764','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(76,53,'141448','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(77,53,'140393','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:14:43',NULL,NULL,NULL),(78,57,'ST935','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:14:43',NULL,NULL,NULL),(79,100,'120006','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(80,100,'120002','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(81,123,'ST-9952','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:14:43',1,NULL,NULL),(82,123,'ST-9954','not_in_use','LD不良',1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(83,126,'ST31','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:14:43',NULL,NULL,NULL),(84,124,'ST101','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:14:43',1,NULL,NULL),(85,132,'160002','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(86,135,'ST6911','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(87,135,'ST6903','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(88,135,'ST6905','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(89,135,'ST6907','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(90,135,'ST6908','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2024-04-09 15:17:09',NULL,NULL,NULL),(91,135,'ST9999','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(92,247,'ST320014','repairing',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2024-07-07 14:40:03',NULL,NULL,NULL),(93,247,'ST320015','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(94,134,'ST370002','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:52',1,NULL,NULL),(95,136,'ST070024','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(96,136,'ST090035','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(97,136,'ST100026','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:52',1,NULL,NULL),(98,140,'ST5436','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-09-12 08:53:10',1,NULL,NULL),(99,140,'ST0486','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-09-12 08:53:30',1,NULL,NULL),(100,140,'ST0461','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(101,140,'ST0040','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-09-12 08:46:02',1,NULL,NULL),(102,140,'120228','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(103,140,'ST155','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(104,148,'ST4758','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(105,242,'ST0062','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(106,242,'ST901','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(107,156,'ST0589','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:14:43',NULL,NULL,NULL),(108,156,'ST0500','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:14:43',NULL,NULL,NULL),(109,156,'ST7304','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(110,156,'ST7313','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(111,159,'ST0577','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(112,157,'ST7502','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(113,170,'EEN120002','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(114,170,'EEN140006','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(115,168,'TH001','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(116,168,'TH002','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(117,168,'TH035','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-09-12 08:53:46',1,NULL,NULL),(118,168,'TH003','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(119,169,'B22B054','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(120,167,'St320567','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(121,167,'ST-5055','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(122,167,'ST5356','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:14:42',1,NULL,NULL),(123,167,'TH007','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(124,167,'ST806','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(125,167,'TH005','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(126,167,'ST5341','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(127,167,'ST5361','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(128,167,'ST807','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(129,167,'ST5353','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(130,167,'ST819','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-09-12 08:45:38',1,NULL,NULL),(131,167,'TH009','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(132,167,'ST5327','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(133,167,'TH030','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(134,167,'TH006','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(135,167,'ST5439','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(136,167,'ST034','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(137,167,'TH033','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-09-12 08:53:19',1,NULL,NULL),(138,167,'TH021','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(139,167,'ST801','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(140,167,'TH024','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(141,167,'ST5388','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(142,167,'TH015','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(143,167,'TH031','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(144,167,'ST813','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(145,167,'ST020','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(146,166,'TH7021','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(147,166,'ST442157','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(148,166,'ST432071','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-09-12 08:53:46',1,NULL,NULL),(149,243,'ST-151','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(150,243,'ST-152','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:52',1,NULL,NULL),(151,243,'ST-155','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(152,243,'ST-156','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(153,174,'ＳＴ-205','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:14:43',NULL,NULL,NULL),(154,174,'ST-206','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(155,174,'ST-215','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(156,174,'ST-217','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(157,176,'ST-011','not_in_use','所在不明',1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:52',1,NULL,NULL),(158,176,'ST-111','not_in_use','所在不明',1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(159,176,'ST-112','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:14:42',NULL,NULL,NULL),(160,176,'ST-113','not_in_use','所在不明',1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(161,176,'ST-7136','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2024-04-09 15:17:09',NULL,NULL,NULL),(162,176,'ST-1999','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(163,177,'ST-001','not_in_use','所在不明',1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(164,177,'ST-1014','not_in_use','所在不明',1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(165,177,'ST-1016','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(166,177,'ST002','not_in_use','所在不明',1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(167,177,'W801135','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(168,184,'0905042','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-09-12 08:53:30',1,NULL,NULL),(169,184,'805958','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(170,184,'1203311','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(171,184,'1208353','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(172,184,'1110278','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(173,196,'ST147','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(174,196,'ST158','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(175,196,'ST160','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(176,196,'ST175','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(177,197,'ST159','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(178,215,'ST-7460','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2024-04-09 15:17:09',NULL,NULL,NULL),(179,215,'ST-7461','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(180,215,'ST-7467','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:12:09',1,NULL,NULL),(181,215,'ST-211018','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(182,215,'ST-0446','not_in_use','故障中',1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(183,215,'ST-7474','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(184,215,'ST23001','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:12:09',1,NULL,NULL),(185,235,'ST2518','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:14:42',1,NULL,NULL),(186,235,'ST2511','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(187,235,'ST2514','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(188,235,'ST2617','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(189,217,'ST-0565-1','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(190,218,'ST-7806-1','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2024-04-09 15:17:09',NULL,NULL,NULL),(191,217,'ST-7814-1','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(192,217,'ST-7808-1','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(193,217,'ST-7809-1','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(194,217,'ST-7810-1','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(195,217,'ST-7811-1','not_in_use','動作不良',1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(196,217,'ST-7813','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:14:43',NULL,NULL,NULL),(197,217,'ST-7815-1','not_in_use','動作不良',1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(198,217,'ST-7816','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(199,217,'ST-7818-1','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(200,217,'ST-0494-1','not_in_use','ﾀｰﾋﾞﾝ仕様',1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(201,217,'ST-7812','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:14:43',NULL,NULL,NULL),(202,217,'ST-7817','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(203,217,'ST-7817-1','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:14:43',NULL,NULL,NULL),(204,217,'','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(205,219,'P380445-2','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(206,219,'ST3055','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-09-12 08:45:38',1,NULL,NULL),(207,219,'','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(208,218,'ST-0539','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:53',1,NULL,NULL),(209,218,'ST-7806-1','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(210,218,'ST-7806-2','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(211,218,'ST-7807','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(212,218,'ST-7808-2','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(213,218,'ST-7812-2','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:14:43',NULL,NULL,NULL),(214,218,'ST-7813-2','not_in_use','動作不良',1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(215,218,'ST-7821','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(216,218,'ST-7801','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(217,218,'ST-7823','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(218,218,'ST-7801-2','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(219,250,'ST-3804','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(220,250,'ST-3055','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(221,221,'EX-5467','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(222,100,'','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(223,100,'','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(224,100,'','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(225,100,'','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(226,100,'','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(227,100,'','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(228,100,'','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(229,100,'','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(230,100,'','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(231,100,'','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(232,158,'','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-09-12 08:53:30',1,NULL,NULL),(233,158,'','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(234,158,'','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(235,158,'','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(236,215,'','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(237,215,'','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-09-12 08:45:18',1,NULL,NULL),(238,100,'1205','available',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-09-12 08:53:46',1,NULL,NULL),(239,156,'ST0605','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:14:43',NULL,NULL,NULL),(240,156,'ST0605','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(241,168,'ST820','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(242,167,'ST820','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(243,243,'ST-153','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(244,243,'ST-153','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(245,174,'ST-212','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2024-04-09 15:17:09',NULL,NULL,NULL),(246,173,'ST214','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-12-11 21:14:43',NULL,NULL,NULL),(247,174,'ST-212','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(248,174,'ST-214','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2024-04-09 15:17:09',NULL,NULL,NULL),(249,177,'ST131','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2024-04-09 15:17:09',NULL,NULL,NULL),(250,196,'ST131','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(251,218,'ST-7804','not_in_use','基板不良',1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2024-04-09 15:17:09',NULL,NULL,NULL),(252,218,'ST-7814','rent',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2024-04-09 15:17:09',NULL,NULL,NULL),(253,218,'ST-7804','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(254,218,'ST-7814','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(255,218,'ST-7810','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2024-04-09 15:17:09',NULL,NULL,NULL),(256,218,'ST-7810','not_in_use',NULL,1,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(257,220,'DM7824','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(258,152,'DM7751','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(259,152,'DM7753','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(260,152,'DM7754','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(261,152,'DM7755','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(262,152,'DM7756','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(263,251,'ME3.2','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(264,161,'ME7319','rent',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(265,161,'DM7401','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(266,161,'DM7402','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(267,161,'DM7403','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(268,161,'DM7404','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(269,127,'DM4061','rent',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(270,244,'AT1012280203','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(271,208,'DM9001','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(272,70,'150097','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(273,240,'180013','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(274,54,'71','not_in_use',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(275,55,'82','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(276,116,'10013','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(277,116,'90002','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(278,116,'4','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(279,114,'4','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(280,114,'5','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(281,114,'10003','rent',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(282,113,'4','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(283,113,'10004','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(284,115,'5','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(285,115,'10003','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(286,115,'10016','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(287,115,'60005','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(288,115,'130006','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(289,115,'140002','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(290,115,'140003','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(291,44,'S014782','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(292,44,'20185','rent',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(293,44,'972027','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(294,44,'991162','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(295,44,'S021106','rent',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(296,238,'120151','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(297,238,'120306','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(298,238,'130166','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(299,238,'130198','rent',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(300,238,'140088','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(301,238,'140186','rent',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(302,238,'210072','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(303,238,'210073','rent',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(304,238,'210101','rent',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(305,46,'305','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(306,50,'60053','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(307,36,'130005','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(308,112,'130012','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(309,112,'170011','rent',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(310,86,'170543','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(311,86,'170566','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(312,86,'170573','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(313,86,'190215','rent',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(314,86,'190224','rent',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(315,96,'160006','rent',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2024-04-11 22:43:44',NULL,NULL,NULL),(316,96,'160013','rent',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(317,96,'180033','rent',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(318,96,'190018','rent',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-08-02 15:07:01',NULL,NULL,NULL),(319,96,'190020','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(320,96,'190048','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(321,96,'200021','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(322,96,'200022','rent',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(323,59,'359','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(324,59,'960041','available',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(325,154,'DM7269','available',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(326,154,'DM7270','rent',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(327,154,'DM7274','available',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(328,126,'DM9934','available',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(329,241,'DM9930','available',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(330,241,'DM9931','rent',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(331,114,'130006','available',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(332,116,'130009','available',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(333,115,'130007','available',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(334,115,'130008','available',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(335,113,'130007','available',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(336,46,'180035','available',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(337,54,'130009','rent',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(338,54,'130013','available',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(339,56,'000308','available',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(340,238,'130157','available',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(341,238,'190392','rent',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(342,238,'180125','rent',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(343,143,'ME5240','rent',NULL,0,0,0,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(344,220,'ME7825','not_in_use',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(345,253,'ME3003','not_in_use',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(346,153,'ME7757','not_in_use',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(347,153,'ME7758','not_in_use',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(348,153,'ME7759','not_in_use',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(349,160,'ME7405','not_in_use',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(350,160,'ME7406','not_in_use',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(351,54,'230013','not_in_use',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(352,54,'230014','not_in_use',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(353,249,'230127','not_in_use',NULL,0,0,1,0,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(354,112,'230005','not_in_use',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(355,55,'230001','not_in_use',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(356,57,'230003','not_in_use',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(357,50,'230031','not_in_use',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(358,50,'230032','not_in_use',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(359,238,'230125','not_in_use',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(360,238,'230126','not_in_use',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(361,50,'','not_in_use',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(362,70,'150097','not_in_use',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(363,86,'170543','not_in_use',NULL,0,0,0,1,0,'2023-07-20 09:09:43',NULL,'2023-07-20 09:09:43',NULL,NULL,NULL),(364,26,'testtest','rent',NULL,1,0,0,0,0,'2023-07-24 20:23:14',1,'2023-07-24 20:23:37',1,NULL,NULL),(365,42,'testtest2','not_in_use',NULL,0,1,0,1,0,'2023-07-24 20:24:29',1,'2023-07-24 20:24:29',NULL,NULL,NULL),(366,238,'testSH28S','available',NULL,1,0,0,0,0,'2023-10-15 14:16:34',1,'2023-10-15 14:16:34',NULL,NULL,NULL),(367,176,'ST-0111','rent',NULL,0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-11 21:34:51',NULL,NULL,NULL),(368,135,'ST030124','not_in_use',NULL,0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(369,135,'ST060233','not_in_use',NULL,0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(370,136,'ST070055','not_in_use','処分',0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(371,243,'ST-154','not_in_use','動作不良',0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(372,173,'ST-302','not_in_use','基板不良',0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(373,173,'ST-3003','not_in_use','動作不良',0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(374,173,'ST-3010','not_in_use','動作不良',0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(375,173,'ST-3005','not_in_use','巻き取り部のみ',0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(376,173,'ST-3001','not_in_use','巻き取り部のみ',0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(377,228,'141181','available',NULL,0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-11 21:34:51',NULL,NULL,NULL),(378,221,'EX-7844','not_in_use','修理中',0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(379,155,'ST0354','not_in_use','水取口',0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(380,156,'ST0532','not_in_use','廃棄',0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(381,157,'ST7445','not_in_use','修理中',0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(382,58,'00099','rent',NULL,0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-11 21:34:51',NULL,NULL,NULL),(383,58,'220009','available',NULL,0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-11 21:34:51',NULL,NULL,NULL),(384,108,'091358','not_in_use',NULL,0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(385,108,'171090','not_in_use',NULL,0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(386,85,'171321','not_in_use',NULL,0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(387,85,'171343','not_in_use',NULL,0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(388,85,'171362','not_in_use',NULL,0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(389,85,'171364','not_in_use',NULL,0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(390,85,'171457','not_in_use',NULL,0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(391,40,'130194','available',NULL,0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-11 21:34:51',NULL,NULL,NULL),(392,40,'140231','rent',NULL,0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(393,40,'140589','rent',NULL,0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-11 21:34:51',NULL,NULL,NULL),(394,40,'160462','not_in_use',NULL,0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(395,40,'140726','not_in_use',NULL,0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(396,40,'140363','rent',NULL,0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-11 21:34:51',NULL,NULL,NULL),(397,40,'210252','rent',NULL,0,0,0,0,0,'2023-12-11 21:34:51',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(398,215,'ST-3059','not_in_use',NULL,0,0,0,0,0,'2023-12-22 20:48:52',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(399,215,'ST-3060','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:52',NULL,'2024-04-09 15:17:09',NULL,NULL,NULL),(400,215,'ST-250348','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:52',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(401,215,'ＳＴ－7475','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:52',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(402,215,'ＳＴ－7478','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:52',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(403,170,'EEN140002','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:52',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(404,169,'TOHO018','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:52',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(405,176,'ST-2013','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:52',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(406,176,'ST2014','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:52',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(407,176,'ST7138','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:52',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(408,177,'ST1135','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:52',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(409,228,'180783','available',NULL,0,0,0,0,0,'2023-12-22 20:48:52',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(410,228,'150477','available',NULL,0,0,0,0,0,'2023-12-22 20:48:52',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(411,228,'160909','not_in_use',NULL,0,0,0,0,0,'2023-12-22 20:48:52',NULL,'2023-12-22 20:48:52',NULL,NULL,NULL),(412,173,'ST-3857','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(413,174,'DM3906','not_in_use',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(414,217,'ST7804-1','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(415,217,'ST-308-1','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(416,219,'ST-3055-1','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(417,219,'ST-3056-1','not_in_use',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(418,217,'ST-0565','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(419,221,'ST5471','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(420,158,'ST7521','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(421,158,'ST7522','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(422,158,'ST7501','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(423,58,'000099','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(424,58,'020013','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2024-04-09 15:17:10',NULL,NULL,NULL),(425,58,'070129','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2024-04-09 15:17:10',NULL,NULL,NULL),(426,58,'3050','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2024-04-09 15:17:10',NULL,NULL,NULL),(427,58,'3051','not_in_use',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2024-04-09 15:17:10',NULL,NULL,NULL),(428,58,'3069','not_in_use',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2024-04-09 15:17:10',NULL,NULL,NULL),(429,58,'3070','available',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2024-04-09 15:17:10',NULL,NULL,NULL),(430,58,'3071','available',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2024-04-09 15:17:10',NULL,NULL,NULL),(431,42,'3052','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(432,42,'3072','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(433,108,'112052','not_in_use',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(434,108,'140148','available',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2024-04-09 15:17:10',NULL,NULL,NULL),(435,108,'ST082538','not_in_use',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(436,108,'ST101577','available',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2024-04-09 15:17:10',NULL,NULL,NULL),(437,47,'160069','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(438,49,'番号不明','not_in_use',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(439,236,'020457','available',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(440,236,'071475','available',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(441,85,'191120','not_in_use','展示品',0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(442,40,'3037','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(443,40,'3038','rent',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(444,40,'3039','not_in_use',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(445,40,'3040','not_in_use',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(446,40,'3041','not_in_use',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(447,40,'3042','available',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(448,40,'3043','available',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(449,40,'3044','available',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(450,40,'3045','available',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(451,40,'3046','available',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(452,40,'3047','available',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(453,40,'3048','available',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(454,40,'3049','available',NULL,0,0,0,0,0,'2023-12-22 20:48:53',NULL,'2023-12-22 20:48:53',NULL,NULL,NULL),(455,67,'CS18','available',NULL,1,0,0,0,0,'2024-02-01 14:22:01',NULL,'2024-02-01 14:33:06',NULL,NULL,NULL),(456,169,'ST4158','rent',NULL,0,0,0,0,0,'2024-04-09 15:17:09',NULL,'2024-04-09 15:17:09',NULL,NULL,NULL),(457,34,'150416','rent',NULL,0,0,0,0,0,'2024-04-09 15:17:10',NULL,'2024-04-09 15:17:10',NULL,NULL,NULL),(458,58,'150428','rent',NULL,0,0,0,0,0,'2024-04-09 15:17:10',NULL,'2024-04-09 15:17:10',NULL,NULL,NULL),(459,108,'ST130771','rent',NULL,0,0,0,0,0,'2024-04-09 15:17:10',NULL,'2024-04-09 15:17:10',NULL,NULL,NULL);

--
-- Table structure for table `repair_inquiry_status`
--

CREATE TABLE `repair_inquiry_status` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `repair_request_id` bigint unsigned NOT NULL COMMENT '修理依頼ID',
  `repair_message_root_id` bigint unsigned NOT NULL COMMENT 'お問い合わせメッセージルートID',
  `completed_at` datetime DEFAULT NULL COMMENT 'お問い合わせ対応完了日時',
  `completed_employee_id` int DEFAULT NULL COMMENT 'お問い合わせ対応完了営業側社員ID',
  `completed_employee_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'お問い合わせ対応完了営業側社員名',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`),
  KEY `repair_inquiry_status_completed_employee_id_foreign` (`completed_employee_id`),
  KEY `repair_inquiry_status_repair_request_id_index` (`repair_request_id`),
  KEY `repair_inquiry_status_repair_message_root_id_index` (`repair_message_root_id`),
  CONSTRAINT `repair_inquiry_status_completed_employee_id_foreign` FOREIGN KEY (`completed_employee_id`) REFERENCES `employees` (`id`),
  CONSTRAINT `repair_inquiry_status_repair_message_root_id_foreign` FOREIGN KEY (`repair_message_root_id`) REFERENCES `repair_messages` (`id`),
  CONSTRAINT `repair_inquiry_status_repair_request_id_foreign` FOREIGN KEY (`repair_request_id`) REFERENCES `repair_requests` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `repair_inquiry_status`
--

INSERT INTO `repair_inquiry_status` VALUES (1,17,2,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(2,7,3,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(3,28,5,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(4,23,7,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(5,2,8,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(6,13,9,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(7,4,10,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(8,13,12,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(9,19,13,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(10,23,14,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(11,27,16,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(12,4,18,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(13,27,19,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(14,21,20,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(15,12,23,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(16,5,24,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(17,21,26,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(18,24,28,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(19,28,30,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(20,36,33,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(21,39,39,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(22,36,42,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(23,36,43,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(24,36,44,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(25,36,45,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(26,72,51,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(27,79,60,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(28,58,65,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(29,38,68,NULL,NULL,NULL,'2023-11-11 14:37:03','2023-11-11 14:37:03',NULL),(33,36,73,NULL,NULL,NULL,'2023-12-01 18:50:46','2023-12-01 18:50:46',NULL),(34,36,74,NULL,NULL,NULL,'2023-12-02 01:05:16','2023-12-02 01:05:16',NULL),(35,36,76,NULL,NULL,NULL,'2023-12-04 13:14:08','2023-12-04 13:14:08',NULL),(36,36,78,NULL,NULL,NULL,'2023-12-05 21:51:50','2023-12-05 21:51:50',NULL),(37,49,80,NULL,NULL,NULL,'2023-12-09 13:21:34','2023-12-09 13:21:34',NULL);

--
-- Table structure for table `repair_messages`
--

CREATE TABLE `repair_messages` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `repair_request_id` bigint unsigned NOT NULL COMMENT '修理依頼ID',
  `clinic_staff_id` int unsigned DEFAULT NULL COMMENT '医院従業員ID',
  `sales_employee_id` int DEFAULT NULL COMMENT '営業側社員ID',
  `reply_to_message_id` bigint unsigned DEFAULT NULL COMMENT '返答先お問い合わせメッセージID',
  `comment` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '営業側社員ID',
  `read_at` datetime DEFAULT NULL COMMENT '閲覧日時',
  `read_employee_id` int unsigned DEFAULT NULL COMMENT '閲覧営業側社員ID',
  `read_employee_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '閲覧営業側社員名',
  `read_clinic_staff_id` int unsigned DEFAULT NULL COMMENT '閲覧医院従業員ID',
  `read_clinic_staff_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '閲覧医院従業員名',
  `type` tinyint NOT NULL DEFAULT '1' COMMENT '種別',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`),
  KEY `repair_messages_repair_request_id_foreign` (`repair_request_id`),
  KEY `repair_messages_clinic_staff_id_foreign` (`clinic_staff_id`),
  KEY `repair_messages_sales_employee_id_foreign` (`sales_employee_id`),
  KEY `repair_messages_reply_to_message_id_foreign` (`reply_to_message_id`),
  CONSTRAINT `repair_messages_clinic_staff_id_foreign` FOREIGN KEY (`clinic_staff_id`) REFERENCES `clinic_staffs` (`id`),
  CONSTRAINT `repair_messages_repair_request_id_foreign` FOREIGN KEY (`repair_request_id`) REFERENCES `repair_requests` (`id`),
  CONSTRAINT `repair_messages_reply_to_message_id_foreign` FOREIGN KEY (`reply_to_message_id`) REFERENCES `repair_messages` (`id`),
  CONSTRAINT `repair_messages_sales_employee_id_foreign` FOREIGN KEY (`sales_employee_id`) REFERENCES `employees` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=83 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `repair_messages`
--

INSERT INTO `repair_messages` VALUES (1,28,NULL,9,NULL,'Rerum occaecati perferendis nam ut ea.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-07-02 12:40:53','2024-03-06 11:09:38',NULL),(2,17,8,NULL,NULL,'Quasi eos illum qui nesciunt reiciendis.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-07-02 12:40:53','2023-11-11 14:37:03',NULL),(3,7,7,NULL,NULL,'Sunt quis natus eum consectetur ab.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-07-02 12:40:53','2023-11-11 14:37:03',NULL),(4,1,NULL,1,NULL,'Iusto occaecati voluptas quidem explicabo.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-07-02 12:40:53','2024-03-06 11:09:38',NULL),(5,28,24,NULL,NULL,'Itaque similique reprehenderit repudiandae omnis.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-07-02 12:40:53','2023-11-11 14:37:03',NULL),(6,9,NULL,4,NULL,'Deserunt sit voluptatem rerum magni totam est.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-07-02 12:40:53','2024-03-06 11:09:38',NULL),(7,23,13,NULL,NULL,'Sed ea est et est sint magnam.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-07-02 12:40:53','2023-11-11 14:37:03',NULL),(8,2,11,NULL,NULL,'Dolor perspiciatis quibusdam cum perspiciatis distinctio commodi.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-07-02 12:40:53','2023-11-11 14:37:03',NULL),(9,13,7,NULL,NULL,'Dolores aperiam nihil qui.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-07-02 12:40:53','2023-11-11 14:37:03',NULL),(10,4,1,NULL,NULL,'Molestiae quia quo quae non illo dolorem.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-07-02 12:40:53','2023-11-11 14:37:03',NULL),(11,28,NULL,5,NULL,'Veritatis ipsum dolorum voluptas ut corporis nemo.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-07-02 12:40:53','2024-03-06 11:09:38',NULL),(12,13,20,NULL,NULL,'Facere rerum sunt est iste quo.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-07-02 12:40:53','2023-11-11 14:37:03',NULL),(13,19,8,NULL,NULL,'Sit voluptatem omnis quod qui blanditiis aliquid.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-07-02 12:40:53','2023-11-11 14:37:03',NULL),(14,23,8,NULL,NULL,'Qui nesciunt et soluta quis.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-07-02 12:40:53','2023-11-11 14:37:03',NULL),(15,25,NULL,3,NULL,'Aperiam illo omnis et quod earum.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-07-02 12:40:53','2024-03-06 11:09:38',NULL),(16,27,20,NULL,NULL,'Eius sunt ut cum quis.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-07-02 12:40:53','2023-11-11 14:37:03',NULL),(17,14,NULL,11,NULL,'Provident est natus quis laborum.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-07-02 12:40:53','2024-03-06 11:09:38',NULL),(18,4,1,NULL,NULL,'Aut dolorem ut ea similique perspiciatis.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-07-02 12:40:53','2023-11-11 14:37:03',NULL),(19,27,20,NULL,NULL,'Sed dolor dolorem ut inventore et saepe facilis.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-07-02 12:40:53','2023-11-11 14:37:03',NULL),(20,21,24,NULL,NULL,'Deleniti reiciendis est dolores.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-07-02 12:40:53','2023-11-11 14:37:03',NULL),(21,4,NULL,11,NULL,'Doloribus dolore recusandae nesciunt nesciunt eos dolor quibusdam.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-07-02 12:40:53','2024-03-06 11:09:38',NULL),(22,7,NULL,1,NULL,'Vitae molestiae odio voluptatum voluptatem beatae dignissimos facilis.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-07-02 12:40:53','2024-03-06 11:09:38',NULL),(23,12,13,NULL,NULL,'Ipsam sapiente reiciendis minus aut id.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-07-02 12:40:53','2023-11-11 14:37:03',NULL),(24,5,6,NULL,NULL,'Quia adipisci similique quia optio rerum vitae.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-07-02 12:40:53','2023-11-11 14:37:03',NULL),(25,21,NULL,5,NULL,'Earum qui sit dolor.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-07-02 12:40:53','2024-03-06 11:09:38',NULL),(26,21,22,NULL,NULL,'Nobis aliquid sit quia.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-07-02 12:40:53','2023-11-11 14:37:03',NULL),(27,27,NULL,7,NULL,'Corrupti omnis sit totam sit.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-07-02 12:40:53','2024-03-06 11:09:38',NULL),(28,24,7,NULL,NULL,'Omnis provident cum ut nesciunt.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-07-02 12:40:53','2023-11-11 14:37:03',NULL),(29,20,NULL,9,NULL,'Provident dicta eius earum debitis animi.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-07-02 12:40:53','2024-03-06 11:09:38',NULL),(30,28,24,NULL,NULL,'Dolor quaerat voluptatem sapiente et.','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-07-02 12:40:53','2023-11-11 14:37:03',NULL),(31,14,NULL,1,NULL,'貸用品を発送しました。\r\nご確認ください。','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-07-06 16:18:22','2024-03-06 11:09:38',NULL),(32,36,NULL,1,NULL,'サービスセンターからの連絡です\r\nサービスセンターからの連絡です','2024-02-25 20:03:44',NULL,NULL,46,'阿部島 マネジャ',2,'2023-07-07 08:44:13','2024-03-06 11:09:38',NULL),(33,36,31,NULL,NULL,'お問い合わせです\r\nお問い合わせです','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-07-07 16:20:33','2023-11-11 14:37:03',NULL),(34,36,NULL,1,33,'返信です、\r\n返信です','2024-02-25 20:18:59',NULL,NULL,47,'阿部島 一般',1,'2023-07-07 16:21:38','2024-02-25 20:18:59',NULL),(35,39,NULL,1,NULL,'あいうえお','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-07-07 16:44:40','2024-03-06 11:09:38',NULL),(36,40,NULL,1,NULL,'あいうえお\r\nあいうえお','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-07-07 16:52:38','2024-03-06 11:09:38',NULL),(37,41,NULL,1,NULL,'いえーい\r\nいえーい','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-07-07 16:53:02','2024-03-06 11:09:38',NULL),(38,42,NULL,1,NULL,'テストです\r\nテストです','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-07-11 08:39:41','2024-03-06 11:09:38',NULL),(39,39,31,NULL,NULL,'お問い合わせです\r\nです','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-07-13 09:05:19','2023-11-11 14:37:03',NULL),(40,39,NULL,1,39,'回答です\r\n回答です','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-07-13 09:06:03','2023-11-11 14:37:03',NULL),(41,36,NULL,1,NULL,'２番目のテストです\r\nテストです','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-08-09 22:01:56','2024-03-06 11:09:38',NULL),(42,36,31,NULL,NULL,'お問い合わせです\r\nお問い合わせです','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-10-05 21:08:54','2023-11-11 14:37:03',NULL),(43,36,31,NULL,NULL,'お問い合わせです\r\nお問い合わせです','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-10-05 21:28:56','2023-11-11 14:37:03',NULL),(44,36,31,NULL,NULL,'あいうえお\r\nかきくけこ','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-10-05 21:29:11','2023-11-11 14:37:03',NULL),(45,36,31,NULL,NULL,'ああああ\r\nいいいい','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-10-10 08:39:26','2023-11-11 14:37:03',NULL),(46,72,NULL,1,NULL,'テストメッセージ\r\nテストです','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-10-15 14:36:25','2024-03-06 11:09:38',NULL),(47,72,NULL,1,NULL,'テストメッセージ\r\nテストです','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-10-15 14:49:51','2024-03-06 11:09:38',NULL),(49,72,NULL,1,47,'あいうえお\r\nかきくけこ','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-10-15 14:56:38','2024-03-06 11:09:38',NULL),(50,72,NULL,1,NULL,'テストテストテスト\r\n\r\nテストです、','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-10-15 15:15:44','2024-03-06 11:09:38',NULL),(51,72,31,NULL,NULL,'あいうえお\r\nかきくけこ','2024-03-08 23:41:41',1,'阿部島誉幸',NULL,NULL,1,'2023-10-15 21:56:05','2024-03-08 23:41:41',NULL),(52,72,NULL,1,51,'あかさたな\r\nはまやらわ','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-10-15 22:01:42','2023-11-11 14:37:03',NULL),(53,36,31,NULL,34,'確認です\r\n確認です','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-10-18 15:36:30','2023-11-11 14:37:03',NULL),(54,78,NULL,1,NULL,'お知らせお知らせ\r\n送信送信','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-10-22 21:30:42','2024-03-06 11:09:38',NULL),(55,78,NULL,1,NULL,'お知らせお知らせ','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-10-23 23:30:08','2024-03-06 11:09:38',NULL),(56,78,NULL,1,NULL,'あああああ','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-10-23 23:30:38','2024-03-06 11:09:38',NULL),(57,79,NULL,1,NULL,'あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやいゆえよらりるれろわいうえをん','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-10-26 09:14:49','2024-03-06 11:09:38',NULL),(58,79,NULL,1,NULL,'あいうえお\r\nかきくけこ\r\nさしすせそ','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-10-26 09:30:52','2024-03-06 11:09:38',NULL),(59,79,NULL,1,NULL,'qwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnm','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-10-26 09:44:18','2024-03-06 11:09:38',NULL),(60,79,45,NULL,NULL,'あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやいゆえよらりるれろわいうえをん\r\nqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnm\r\nあいうえお\r\nかきくけこ\r\nさしすせそ','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-10-26 13:36:01','2023-11-11 14:37:03',NULL),(61,79,NULL,1,60,'あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやいゆえよらりるれろわいうえをん qwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnm あいうえお かきくけこ さしすせそ','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-10-26 13:36:48','2023-11-11 14:37:03',NULL),(62,79,45,NULL,61,'あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやいゆえよらりるれろわいうえをん qwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnm \r\nあいうえお かきくけこ さしすせそ','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-10-26 13:37:23','2023-11-11 14:37:03',NULL),(63,79,NULL,1,62,'あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやいゆえよらりるれろわいうえをん\r\n\r\nqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnm \r\n\r\nあいうえお かきくけこ さしすせそ','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-10-26 13:38:10','2023-11-11 14:37:03',NULL),(64,58,NULL,1,NULL,'あいうえお\r\nかきくけこ','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-10-29 16:36:35','2024-03-06 11:09:38',NULL),(65,58,31,NULL,NULL,'お問い合わせ\r\nお問い合わせ\r\nです','2024-02-25 20:16:05',1,'阿部島誉幸',NULL,NULL,1,'2023-10-29 16:37:51','2024-02-25 20:16:05',NULL),(66,58,NULL,1,65,'あいうえお\r\nかきくけこ','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-10-29 16:38:09','2023-11-11 14:37:03',NULL),(67,66,NULL,1,NULL,'あいうえお\r\nかきくけこ','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,2,'2023-11-03 21:18:18','2024-03-06 11:09:38',NULL),(68,38,31,NULL,NULL,'あいうえお\r\nかきくけこ','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-11-03 21:19:24','2023-11-11 14:37:03',NULL),(69,38,NULL,1,68,'さしすせそ\r\nたちつてと','2023-11-11 14:37:03',NULL,NULL,NULL,NULL,1,'2023-11-03 21:20:48','2023-11-11 14:37:03',NULL),(73,36,31,NULL,NULL,'あああ','2023-12-04 10:05:35',1,'阿部島誉幸',NULL,NULL,1,'2023-12-01 18:50:46','2023-12-04 10:05:35',NULL),(74,36,31,NULL,NULL,'あああ','2023-12-04 10:05:31',1,'阿部島誉幸',NULL,NULL,1,'2023-12-02 01:05:16','2023-12-04 10:05:31',NULL),(75,36,31,NULL,NULL,'aa','2024-02-25 20:19:55',1,'阿部島誉幸',NULL,NULL,1,'2023-12-04 12:28:32','2024-02-25 20:19:55',NULL),(76,36,31,NULL,NULL,'ｂｂｂ','2023-12-05 21:30:34',1,'阿部島誉幸',NULL,NULL,1,'2023-12-04 13:14:08','2023-12-05 21:30:34',NULL),(77,36,NULL,1,76,'返信返信','2023-12-06 09:09:29',NULL,NULL,31,'グランダー　次郎',1,'2023-12-04 14:22:56','2023-12-06 09:09:29',NULL),(78,36,31,NULL,NULL,'aaaa','2023-12-06 09:10:03',1,'阿部島誉幸',NULL,NULL,1,'2023-12-05 21:51:50','2023-12-06 09:10:03',NULL),(79,82,NULL,1,NULL,'あああああ',NULL,NULL,NULL,NULL,NULL,2,'2023-12-09 13:20:08','2024-03-06 11:09:38',NULL),(80,49,31,NULL,NULL,'あかさたな',NULL,NULL,NULL,NULL,NULL,1,'2023-12-09 13:21:34','2023-12-09 13:21:34',NULL),(81,36,47,NULL,75,'あいうえお','2024-02-25 20:19:55',1,'阿部島誉幸',NULL,NULL,1,'2024-02-25 20:05:41','2024-02-25 20:19:55',NULL),(82,36,NULL,1,81,'読みました。','2024-03-22 10:40:08',NULL,NULL,31,'グランダー 次郎',1,'2024-02-25 20:20:03','2024-03-22 10:40:08',NULL);

--
-- Table structure for table `repair_progress`
--

CREATE TABLE `repair_progress` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `repair_request_id` bigint unsigned NOT NULL COMMENT '修理依頼ID',
  `employee_id` int DEFAULT NULL COMMENT '作成営業ID',
  `clinic_staff_id` int DEFAULT NULL COMMENT '作成医院スタッフID',
  `progress_type` int unsigned NOT NULL COMMENT '進捗タイプ',
  `status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '進捗状況',
  `is_canceled` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'キャンセルフラグ',
  `is_on_site_repair` tinyint(1) NOT NULL DEFAULT '0' COMMENT '現場修理フラグ',
  `is_skipped_progress` tinyint(1) NOT NULL DEFAULT '0' COMMENT '進捗スキップフラグ',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新日時',
  `updated_by` int DEFAULT NULL COMMENT '更新者ID',
  `finished_at` datetime DEFAULT NULL COMMENT '終了日時',
  `finished_by` int DEFAULT NULL COMMENT '終了者ID',
  PRIMARY KEY (`id`),
  KEY `repair_progress_employee_id_foreign` (`employee_id`),
  KEY `repair_progress_updated_by_foreign` (`updated_by`),
  KEY `repair_progress_finished_by_foreign` (`finished_by`),
  CONSTRAINT `repair_progress_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`),
  CONSTRAINT `repair_progress_finished_by_foreign` FOREIGN KEY (`finished_by`) REFERENCES `employees` (`id`),
  CONSTRAINT `repair_progress_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `employees` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=216 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `repair_progress`
--

INSERT INTO `repair_progress` VALUES (1,34,1,NULL,0,'closed',0,0,0,'2023-07-03 10:17:49','2023-07-03 10:17:49',NULL,'2023-07-03 10:17:49',1),(2,36,1,NULL,0,'closed',0,0,0,'2023-07-04 12:29:20','2023-07-04 12:29:20',NULL,'2023-07-04 12:29:20',1),(3,36,1,NULL,1,'closed',0,0,0,'2023-07-05 14:29:33','2023-07-05 14:29:33',NULL,'2023-07-05 14:29:33',NULL),(4,35,1,NULL,0,'closed',0,0,0,'2023-07-06 09:59:38','2023-07-06 09:59:38',NULL,'2023-07-06 09:59:38',NULL),(5,35,1,NULL,1,'closed',0,0,0,'2023-07-06 09:59:41','2023-07-06 09:59:41',NULL,'2023-07-06 09:59:41',NULL),(6,31,NULL,NULL,99,'closed',1,0,0,'2023-07-06 13:27:46','2023-07-06 13:27:46',NULL,'2023-07-06 13:27:46',NULL),(9,36,1,NULL,3,'closed',0,0,0,'2023-07-08 02:32:38','2023-07-08 02:32:38',NULL,'2023-07-08 02:32:38',1),(10,38,1,NULL,0,'closed',0,0,0,'2023-07-07 09:48:49','2023-07-07 09:48:49',NULL,'2023-07-07 09:48:49',NULL),(11,38,1,NULL,1,'closed',0,0,0,'2023-07-07 09:48:52','2023-07-07 09:48:52',NULL,'2023-07-07 09:48:52',NULL),(12,42,1,NULL,0,'closed',0,0,0,'2023-07-08 23:35:58','2023-07-08 23:35:58',NULL,'2023-07-08 23:35:58',NULL),(13,41,1,NULL,0,'closed',0,0,0,'2023-07-09 16:04:04','2023-07-09 16:04:04',NULL,'2023-07-09 16:04:04',NULL),(14,42,1,NULL,1,'closed',0,0,0,'2023-07-10 09:54:12','2023-07-10 09:54:12',NULL,'2023-07-10 09:54:12',NULL),(15,41,1,NULL,1,'closed',0,0,0,'2023-07-11 12:24:47','2023-07-11 12:24:47',NULL,'2023-07-11 12:24:47',NULL),(16,41,1,NULL,2,'open',0,0,0,'2023-07-11 12:25:26','2023-07-11 12:25:26',NULL,NULL,NULL),(17,41,NULL,NULL,99,'closed',1,0,0,'2023-07-11 12:29:12','2023-07-11 12:29:12',NULL,'2023-07-11 12:29:12',NULL),(18,40,1,NULL,0,'closed',0,0,0,'2023-07-11 12:38:10','2023-07-11 12:38:10',NULL,'2023-07-11 12:38:10',NULL),(19,40,1,NULL,1,'closed',0,0,0,'2023-07-11 12:38:14','2023-07-11 12:38:14',NULL,'2023-07-11 12:38:14',NULL),(20,40,NULL,NULL,99,'closed',1,0,0,'2023-07-11 12:38:52','2023-07-11 12:38:52',NULL,'2023-07-11 12:38:52',NULL),(21,45,1,NULL,0,'closed',0,0,0,'2023-07-11 20:16:49','2023-07-11 20:16:49',NULL,'2023-07-11 20:16:49',NULL),(22,39,1,NULL,0,'closed',0,0,0,'2023-07-12 10:53:09','2023-07-12 10:53:09',NULL,'2023-07-12 10:53:09',NULL),(23,39,1,NULL,1,'closed',0,0,0,'2023-07-12 10:53:50','2023-07-12 10:53:50',NULL,'2023-07-12 10:53:50',NULL),(24,39,NULL,NULL,3,'open',0,0,0,'2023-07-13 00:12:15','2023-07-13 00:12:15',NULL,NULL,NULL),(25,45,1,NULL,1,'closed',0,0,0,'2023-07-13 00:17:16','2023-07-13 00:17:16',NULL,'2023-07-13 00:17:16',NULL),(26,45,1,NULL,3,'closed',0,0,0,'2023-07-13 09:56:41','2023-07-13 09:56:41',NULL,'2023-07-13 09:56:41',1),(27,38,1,NULL,3,'closed',0,0,0,'2023-10-28 16:54:51','2023-10-28 16:54:51',NULL,'2023-10-28 16:54:51',1),(28,46,1,NULL,0,'closed',0,0,0,'2023-07-13 08:08:27','2023-07-13 08:08:27',NULL,'2023-07-13 08:08:27',NULL),(29,46,1,NULL,1,'closed',0,0,0,'2023-07-13 08:08:33','2023-07-13 08:08:33',NULL,'2023-07-13 08:08:33',NULL),(30,46,NULL,NULL,3,'open',0,0,0,'2023-07-13 08:09:54','2023-07-13 08:09:54',NULL,NULL,NULL),(31,47,1,NULL,0,'closed',0,0,0,'2023-07-13 08:57:33','2023-07-13 08:57:33',NULL,'2023-07-13 08:57:33',NULL),(32,47,1,NULL,1,'closed',0,0,0,'2023-07-13 08:57:37','2023-07-13 08:57:37',NULL,'2023-07-13 08:57:37',NULL),(33,47,NULL,NULL,3,'open',0,0,0,'2023-07-13 15:30:12','2023-07-13 15:30:12',NULL,NULL,NULL),(34,48,1,NULL,0,'closed',0,0,0,'2023-07-13 16:03:38','2023-07-13 16:03:38',NULL,'2023-07-13 16:03:38',NULL),(35,48,1,NULL,1,'closed',0,0,0,'2023-07-13 16:03:41','2023-07-13 16:03:41',NULL,'2023-07-13 16:03:41',NULL),(36,48,NULL,NULL,3,'open',0,0,0,'2023-07-13 16:42:53','2023-07-13 16:42:53',NULL,NULL,NULL),(37,49,1,NULL,0,'closed',0,0,0,'2023-07-13 16:44:14','2023-07-13 16:44:14',NULL,'2023-07-13 16:44:14',NULL),(38,49,1,NULL,1,'closed',0,0,0,'2023-07-13 16:44:17','2023-07-13 16:44:17',NULL,'2023-07-13 16:44:17',NULL),(39,49,NULL,NULL,3,'open',0,0,0,'2023-07-13 16:44:54','2023-07-13 16:44:54',NULL,NULL,NULL),(40,50,1,NULL,0,'closed',0,0,0,'2023-07-13 18:12:10','2023-07-13 18:12:10',NULL,'2023-07-13 18:12:10',NULL),(41,50,1,NULL,1,'closed',0,0,0,'2023-07-13 18:12:13','2023-07-13 18:12:13',NULL,'2023-07-13 18:12:13',NULL),(42,50,NULL,NULL,3,'open',0,0,0,'2023-07-13 18:14:30','2023-07-13 18:14:30',NULL,NULL,NULL),(43,51,1,NULL,0,'closed',0,0,0,'2023-07-13 23:03:26','2023-07-13 23:03:26',NULL,'2023-07-13 23:03:26',NULL),(44,51,1,NULL,1,'closed',0,0,0,'2023-07-13 23:03:30','2023-07-13 23:03:30',NULL,'2023-07-13 23:03:30',NULL),(45,51,NULL,NULL,3,'open',0,0,0,'2023-07-13 23:04:53','2023-07-13 23:04:53',NULL,NULL,NULL),(46,52,1,NULL,0,'closed',0,0,0,'2023-07-14 22:49:15','2023-07-14 22:49:15',NULL,'2023-07-14 22:49:15',NULL),(47,52,1,NULL,1,'closed',0,0,0,'2023-07-14 22:49:19','2023-07-14 22:49:19',NULL,'2023-07-14 22:49:19',NULL),(48,52,NULL,NULL,99,'closed',1,0,0,'2023-07-14 22:50:10','2023-07-14 22:50:10',NULL,'2023-07-14 22:50:10',NULL),(49,53,NULL,NULL,99,'closed',1,0,0,'2023-07-17 23:31:34','2023-07-17 23:31:34',NULL,'2023-07-17 23:31:34',NULL),(50,54,1,NULL,0,'closed',0,0,0,'2023-07-20 07:56:05','2023-07-20 07:56:05',NULL,'2023-07-20 07:56:05',NULL),(51,54,1,NULL,1,'closed',0,0,0,'2023-07-20 07:56:17','2023-07-20 07:56:17',NULL,'2023-07-20 07:56:17',NULL),(52,55,NULL,31,99,'closed',1,0,0,'2023-07-20 13:54:44','2023-07-20 13:54:44',NULL,'2023-07-20 13:54:44',NULL),(53,56,1,NULL,0,'closed',0,0,0,'2023-07-20 13:55:25','2023-07-20 13:55:25',NULL,'2023-07-20 13:55:25',NULL),(54,56,1,NULL,1,'closed',0,0,0,'2023-07-20 13:55:28','2023-07-20 13:55:28',NULL,'2023-07-20 13:55:28',NULL),(55,56,NULL,31,3,'closed',1,0,0,'2023-07-20 13:55:52','2023-07-20 13:55:52',NULL,'2023-07-20 13:55:52',NULL),(56,58,1,NULL,0,'closed',0,0,0,'2023-07-20 19:04:00','2023-07-20 19:04:00',NULL,'2023-07-20 19:04:00',NULL),(57,58,1,NULL,1,'closed',0,0,0,'2023-07-20 19:04:04','2023-07-20 19:04:04',NULL,'2023-07-20 19:04:04',NULL),(58,59,1,NULL,0,'closed',0,0,0,'2023-07-21 22:46:56','2023-07-21 22:46:56',NULL,'2023-07-21 22:46:56',NULL),(59,59,1,NULL,1,'closed',0,0,0,'2023-07-21 22:47:00','2023-07-21 22:47:00',NULL,'2023-07-21 22:47:00',NULL),(60,43,1,NULL,0,'closed',0,0,0,'2023-07-21 22:53:54','2023-07-21 22:53:54',NULL,'2023-07-21 22:53:54',NULL),(61,43,1,NULL,1,'closed',0,0,0,'2023-07-21 22:53:58','2023-07-21 22:53:58',NULL,'2023-07-21 22:53:58',NULL),(62,57,1,NULL,0,'closed',0,0,0,'2023-07-22 11:31:56','2023-07-22 11:31:56',NULL,'2023-07-22 11:31:56',NULL),(63,57,1,NULL,1,'closed',0,0,0,'2023-07-22 11:32:28','2023-07-22 11:32:28',NULL,'2023-07-22 11:32:28',NULL),(64,57,1,NULL,2,'open',0,0,0,'2023-07-24 09:53:45','2023-07-24 09:53:45',NULL,NULL,NULL),(65,60,1,NULL,0,'closed',0,0,0,'2023-07-25 19:29:37','2023-07-25 19:29:37',NULL,'2023-07-25 19:29:37',NULL),(66,62,1,NULL,0,'closed',0,0,0,'2023-08-18 21:36:41','2023-08-18 21:36:41',NULL,'2023-08-18 21:36:41',NULL),(67,62,1,NULL,1,'closed',0,0,0,'2023-08-18 21:41:31','2023-08-18 21:41:31',NULL,'2023-08-18 21:41:31',NULL),(68,63,1,NULL,0,'closed',0,0,0,'2023-08-18 21:49:02','2023-08-18 21:49:02',NULL,'2023-08-18 21:49:02',NULL),(69,63,1,NULL,1,'closed',0,0,0,'2023-08-18 21:49:06','2023-08-18 21:49:06',NULL,'2023-08-18 21:49:06',NULL),(70,64,1,NULL,0,'closed',0,0,0,'2023-08-24 09:30:20','2023-08-24 09:30:20',NULL,'2023-08-24 09:30:20',NULL),(71,64,1,NULL,1,'closed',0,0,0,'2023-08-24 09:30:23','2023-08-24 09:30:23',NULL,'2023-08-24 09:30:23',NULL),(72,66,1,NULL,0,'closed',0,0,0,'2023-08-26 16:10:21','2023-08-26 16:10:21',NULL,'2023-08-26 16:10:21',NULL),(73,65,1,NULL,0,'closed',0,0,0,'2023-08-26 16:10:29','2023-08-26 16:10:29',NULL,'2023-08-26 16:10:29',NULL),(74,62,1,NULL,2,'open',0,0,0,'2023-08-27 09:13:06','2023-08-27 09:13:06',NULL,NULL,NULL),(75,57,NULL,31,3,'open',0,0,0,'2023-08-27 09:16:57','2023-08-27 09:16:57',NULL,NULL,NULL),(76,62,1,NULL,3,'closed',0,0,0,'2023-08-27 09:22:11','2023-08-27 09:22:11',NULL,'2023-08-27 09:22:11',1),(77,54,1,NULL,2,'open',0,0,0,'2023-08-27 10:30:51','2023-08-27 10:30:51',NULL,NULL,NULL),(78,68,1,NULL,0,'closed',0,0,0,'2023-09-03 10:28:28','2023-09-03 10:28:28',NULL,'2023-09-03 10:28:28',NULL),(79,69,1,NULL,0,'closed',0,0,0,'2023-09-03 10:35:03','2023-09-03 10:35:03',NULL,'2023-09-03 10:35:03',NULL),(80,65,1,NULL,1,'closed',0,0,0,'2023-09-12 08:23:29','2023-09-12 08:23:29',NULL,'2023-09-12 08:23:29',NULL),(81,65,1,NULL,2,'open',0,0,0,'2023-09-12 08:36:04','2023-09-12 08:36:04',NULL,NULL,NULL),(82,65,1,NULL,3,'closed',0,0,0,'2023-09-12 08:57:07','2023-09-12 08:57:07',NULL,'2023-09-12 08:57:07',1),(83,42,1,NULL,2,'open',0,0,0,'2023-09-23 10:47:40','2023-09-23 10:47:40',NULL,NULL,NULL),(84,32,1,NULL,0,'closed',0,0,0,'2023-09-23 20:54:31','2023-09-23 20:54:31',NULL,'2023-09-23 20:54:31',NULL),(85,70,1,NULL,0,'closed',0,0,0,'2023-10-15 14:35:23','2023-10-15 14:35:23',NULL,'2023-10-15 14:35:23',NULL),(86,32,1,NULL,1,'closed',0,0,0,'2023-10-15 15:31:52','2023-10-15 15:31:52',NULL,'2023-10-15 15:31:52',NULL),(87,63,1,NULL,4,'open',0,0,1,'2023-10-15 16:14:06','2023-10-15 16:14:06',NULL,NULL,NULL),(88,35,1,NULL,4,'closed',0,0,0,'2023-10-20 08:58:42','2023-10-20 08:58:42',NULL,'2023-10-20 08:58:42',1),(89,74,1,NULL,0,'closed',0,0,0,'2023-10-21 08:12:07','2023-10-21 08:12:07',NULL,'2023-10-21 08:12:07',NULL),(90,74,1,NULL,1,'closed',0,0,0,'2023-10-21 08:12:57','2023-10-21 08:12:57',NULL,'2023-10-21 08:12:57',NULL),(91,75,1,NULL,0,'closed',0,0,0,'2023-10-22 16:42:53','2023-10-22 16:42:53',NULL,'2023-10-22 16:42:53',NULL),(92,75,1,NULL,1,'closed',0,0,0,'2023-10-22 16:42:58','2023-10-22 16:42:58',NULL,'2023-10-22 16:42:58',NULL),(93,75,1,NULL,4,'open',0,0,1,'2023-10-22 17:20:46','2023-10-22 17:20:46',NULL,NULL,NULL),(94,76,1,NULL,0,'closed',0,0,0,'2023-10-22 17:25:35','2023-10-22 17:25:35',NULL,'2023-10-22 17:25:35',NULL),(95,76,1,NULL,1,'closed',0,0,0,'2023-10-22 17:25:39','2023-10-22 17:25:39',NULL,'2023-10-22 17:25:39',NULL),(96,76,1,NULL,4,'open',0,0,1,'2023-10-22 17:26:45','2023-10-22 17:26:45',NULL,NULL,NULL),(97,77,1,NULL,0,'closed',0,0,0,'2023-10-22 17:29:01','2023-10-22 17:29:01',NULL,'2023-10-22 17:29:01',NULL),(98,77,1,NULL,1,'closed',0,0,0,'2023-10-22 17:29:16','2023-10-22 17:29:16',NULL,'2023-10-22 17:29:16',NULL),(99,77,1,NULL,4,'open',0,0,1,'2023-10-22 17:50:07','2023-10-22 17:50:07',NULL,NULL,NULL),(100,78,1,NULL,0,'closed',0,0,0,'2023-10-22 19:57:15','2023-10-22 19:57:15',NULL,'2023-10-22 19:57:15',NULL),(101,78,1,NULL,1,'closed',0,0,0,'2023-10-22 19:57:21','2023-10-22 19:57:21',NULL,'2023-10-22 19:57:21',NULL),(102,78,1,NULL,4,'open',0,0,1,'2023-10-22 19:59:15','2023-10-22 19:59:15',NULL,NULL,NULL),(103,74,1,NULL,4,'open',0,0,1,'2023-10-26 08:44:15','2023-10-26 08:44:15',NULL,NULL,NULL),(104,79,1,NULL,0,'closed',0,0,0,'2023-10-26 09:03:55','2023-10-26 09:03:55',NULL,'2023-10-26 09:03:55',NULL),(105,79,1,NULL,1,'closed',0,0,0,'2023-10-26 09:04:06','2023-10-26 09:04:06',NULL,'2023-10-26 09:04:06',NULL),(106,79,1,NULL,4,'open',0,0,1,'2023-10-26 09:04:13','2023-10-26 09:04:13',NULL,NULL,NULL),(107,61,1,NULL,0,'closed',0,0,0,'2023-10-29 11:08:53','2023-10-29 11:08:53',NULL,'2023-10-29 11:08:53',NULL),(108,60,1,NULL,1,'closed',0,0,0,'2023-10-29 11:41:35','2023-10-29 11:41:35',NULL,'2023-10-29 11:41:35',NULL),(109,60,1,NULL,3,'closed',0,0,0,'2023-10-29 13:08:11','2023-10-29 13:08:11',NULL,'2023-10-29 13:08:11',1),(110,54,1,NULL,3,'closed',0,0,0,'2023-10-29 15:56:35','2023-10-29 15:56:35',NULL,'2023-10-29 15:56:35',1),(111,59,1,NULL,2,'open',0,0,0,'2023-11-08 23:33:21','2023-11-08 23:33:21',NULL,NULL,NULL),(112,82,1,NULL,0,'closed',0,0,0,'2023-11-24 11:48:59','2023-11-24 11:48:59',NULL,'2023-11-24 11:48:59',NULL),(113,82,1,NULL,1,'closed',0,0,0,'2023-11-24 11:49:05','2023-11-24 11:49:05',NULL,'2023-11-24 11:49:05',NULL),(114,83,1,NULL,0,'closed',0,0,0,'2023-12-20 14:02:20','2023-12-20 14:02:20',NULL,'2023-12-20 14:02:20',NULL),(115,83,1,NULL,1,'closed',0,0,0,'2023-12-20 14:02:25','2023-12-20 14:02:25',NULL,'2023-12-20 14:02:25',NULL),(116,83,1,NULL,4,'open',0,0,1,'2023-12-20 14:03:21','2023-12-20 14:03:21',NULL,NULL,NULL),(117,84,1,NULL,0,'closed',0,0,0,'2023-12-20 14:04:31','2023-12-20 14:04:31',NULL,'2023-12-20 14:04:31',NULL),(118,84,1,NULL,1,'closed',0,0,0,'2023-12-20 14:04:34','2023-12-20 14:04:34',NULL,'2023-12-20 14:04:34',NULL),(119,84,1,NULL,2,'open',0,0,0,'2023-12-20 14:06:45','2023-12-20 14:06:45',NULL,NULL,NULL),(120,84,1,NULL,3,'closed',0,0,0,'2023-12-20 14:08:56','2023-12-20 14:08:56',NULL,'2023-12-20 14:08:56',1),(121,59,NULL,31,3,'closed',1,0,0,'2024-02-08 14:08:50','2024-02-08 14:08:50',NULL,'2024-02-08 14:08:50',NULL),(122,58,1,NULL,2,'open',0,0,0,'2024-02-25 20:09:12','2024-02-25 20:09:12',NULL,NULL,NULL),(123,36,NULL,NULL,3,'open',0,0,0,'2023-07-07 08:13:37','2023-07-07 08:13:37',NULL,NULL,NULL),(124,45,NULL,NULL,3,'open',0,0,0,'2023-07-13 00:18:13','2023-07-13 00:18:13',NULL,NULL,NULL),(125,38,NULL,NULL,3,'open',0,0,0,'2023-07-13 08:07:25','2023-07-13 08:07:25',NULL,NULL,NULL),(126,62,NULL,44,3,'open',0,0,0,'2023-08-27 09:21:51','2023-08-27 09:21:51',NULL,NULL,NULL),(127,65,NULL,31,3,'open',0,0,0,'2023-09-12 08:40:46','2023-09-12 08:40:46',NULL,NULL,NULL),(128,35,1,NULL,4,'open',0,0,1,'2023-10-20 08:57:17','2023-10-20 08:57:17',NULL,NULL,NULL),(129,60,NULL,31,3,'open',0,0,0,'2023-10-29 12:01:57','2023-10-29 12:01:57',NULL,NULL,NULL),(130,54,NULL,31,3,'open',0,0,0,'2023-10-29 15:50:22','2023-10-29 15:50:22',NULL,NULL,NULL),(131,84,NULL,31,3,'open',0,0,0,'2023-12-20 14:08:29','2023-12-20 14:08:29',NULL,NULL,NULL),(132,36,NULL,NULL,4,'open',0,0,0,'2023-07-21 18:24:36','2023-07-21 18:24:36',NULL,NULL,NULL),(133,45,NULL,NULL,4,'open',0,0,0,'2023-09-08 21:55:26','2023-09-08 21:55:26',NULL,NULL,NULL),(134,56,NULL,NULL,4,'open',0,0,0,'2023-09-08 21:55:26','2023-09-08 21:55:26',NULL,NULL,NULL),(135,60,NULL,NULL,4,'open',0,0,0,'2023-10-29 13:08:11','2023-10-29 13:08:11',NULL,NULL,NULL),(136,60,1,NULL,4,'closed',0,0,0,'2023-10-29 13:08:11','2023-10-29 13:08:11',NULL,'2023-10-29 13:08:11',NULL),(137,65,NULL,NULL,4,'open',0,0,0,'2023-09-12 17:50:38','2023-09-12 17:50:38',NULL,NULL,NULL),(138,1,1,NULL,4,'closed',0,1,0,'2023-09-12 08:42:03','2023-09-12 08:42:03',NULL,'2023-09-12 08:42:03',NULL),(139,2,1,NULL,4,'closed',0,1,0,'2023-09-12 08:53:00','2023-09-12 08:53:00',NULL,'2023-09-12 08:53:00',NULL),(140,3,1,NULL,4,'closed',0,1,0,'2023-09-12 08:42:19','2023-09-12 08:42:19',NULL,'2023-09-12 08:42:19',NULL),(141,4,1,NULL,4,'closed',0,1,0,'2023-09-12 08:42:38','2023-09-12 08:42:38',NULL,'2023-09-12 08:42:38',NULL),(142,5,1,NULL,4,'closed',0,1,0,'2023-09-12 08:42:52','2023-09-12 08:42:52',NULL,'2023-09-12 08:42:52',NULL),(143,6,1,NULL,4,'closed',0,1,0,'2023-09-12 08:43:03','2023-09-12 08:43:03',NULL,'2023-09-12 08:43:03',NULL),(144,7,1,NULL,4,'closed',0,1,0,'2023-09-12 08:43:13','2023-09-12 08:43:13',NULL,'2023-09-12 08:43:13',NULL),(145,8,1,NULL,4,'closed',0,1,0,'2023-09-12 08:53:10','2023-09-12 08:53:10',NULL,'2023-09-12 08:53:10',NULL),(146,9,1,NULL,4,'closed',0,1,0,'2023-09-12 08:52:53','2023-09-12 08:52:53',NULL,'2023-09-12 08:52:53',NULL),(147,10,1,NULL,4,'closed',0,1,0,'2023-09-12 08:43:55','2023-09-12 08:43:55',NULL,'2023-09-12 08:43:55',NULL),(148,11,1,NULL,4,'closed',0,1,0,'2023-09-12 08:53:19','2023-09-12 08:53:19',NULL,'2023-09-12 08:53:19',NULL),(149,12,1,NULL,4,'closed',0,1,0,'2023-09-12 08:46:32','2023-09-12 08:46:32',NULL,'2023-09-12 08:46:32',NULL),(150,13,1,NULL,4,'closed',0,1,0,'2023-09-12 08:43:45','2023-09-12 08:43:45',NULL,'2023-09-12 08:43:45',NULL),(151,14,1,NULL,4,'closed',0,1,0,'2023-09-12 08:43:36','2023-09-12 08:43:36',NULL,'2023-09-12 08:43:36',NULL),(152,15,1,NULL,4,'closed',0,1,0,'2023-09-12 08:53:30','2023-09-12 08:53:30',NULL,'2023-09-12 08:53:30',NULL),(153,16,1,NULL,4,'closed',0,1,0,'2023-09-12 08:53:35','2023-09-12 08:53:35',NULL,'2023-09-12 08:53:35',NULL),(154,17,1,NULL,4,'closed',0,1,0,'2023-09-12 08:44:12','2023-09-12 08:44:12',NULL,'2023-09-12 08:44:12',NULL),(155,18,1,NULL,4,'closed',0,1,0,'2023-09-12 08:53:52','2023-09-12 08:53:52',NULL,'2023-09-12 08:53:52',NULL),(156,19,1,NULL,4,'closed',0,1,0,'2023-09-12 08:53:46','2023-09-12 08:53:46',NULL,'2023-09-12 08:53:46',NULL),(157,20,1,NULL,4,'closed',0,1,0,'2023-09-12 08:44:25','2023-09-12 08:44:25',NULL,'2023-09-12 08:44:25',NULL),(158,21,1,NULL,4,'closed',0,1,0,'2023-09-12 08:46:41','2023-09-12 08:46:41',NULL,'2023-09-12 08:46:41',NULL),(159,22,1,NULL,4,'closed',0,1,0,'2023-09-12 08:44:53','2023-09-12 08:44:53',NULL,'2023-09-12 08:44:53',NULL),(160,23,1,NULL,4,'closed',0,1,0,'2023-09-12 08:44:41','2023-09-12 08:44:41',NULL,'2023-09-12 08:44:41',NULL),(161,24,1,NULL,4,'closed',0,1,0,'2023-09-12 08:45:49','2023-09-12 08:45:49',NULL,'2023-09-12 08:45:49',NULL),(162,25,1,NULL,4,'closed',0,1,0,'2023-09-12 08:46:24','2023-09-12 08:46:24',NULL,'2023-09-12 08:46:24',NULL),(163,26,1,NULL,4,'closed',0,1,0,'2023-09-12 08:45:18','2023-09-12 08:45:18',NULL,'2023-09-12 08:45:18',NULL),(164,27,1,NULL,4,'closed',0,1,0,'2023-09-12 08:45:29','2023-09-12 08:45:29',NULL,'2023-09-12 08:45:29',NULL),(165,28,1,NULL,4,'closed',0,1,0,'2023-09-12 08:46:02','2023-09-12 08:46:02',NULL,'2023-09-12 08:46:02',NULL),(166,29,1,NULL,4,'closed',0,1,0,'2023-09-12 08:53:59','2023-09-12 08:53:59',NULL,'2023-09-12 08:53:59',NULL),(167,30,1,NULL,4,'closed',0,1,0,'2023-09-12 08:45:38','2023-09-12 08:45:38',NULL,'2023-09-12 08:45:38',NULL),(168,34,1,NULL,4,'closed',0,1,0,'2023-10-29 16:35:59','2023-10-29 16:35:59',NULL,'2023-10-29 16:35:59',NULL),(169,72,1,NULL,4,'closed',0,1,0,'2023-10-15 15:17:45','2023-10-15 15:17:45',NULL,'2023-10-15 15:17:45',NULL),(172,85,1,NULL,0,'closed',0,0,0,'2024-03-21 21:19:53','2024-03-21 21:19:53',NULL,'2024-03-21 21:19:53',NULL),(173,85,1,NULL,1,'closed',0,0,0,'2024-03-21 21:20:41','2024-03-21 21:20:41',NULL,'2024-03-21 21:20:41',NULL),(174,86,1,NULL,0,'closed',0,0,0,'2024-04-10 01:09:07','2024-04-10 01:09:07',NULL,'2024-04-10 01:09:07',NULL),(175,86,1,NULL,1,'closed',0,0,0,'2024-04-10 03:01:40','2024-04-10 03:01:40',NULL,'2024-04-10 03:01:40',NULL),(176,86,1,NULL,2,'open',0,0,0,'2024-04-11 08:38:03','2024-04-11 08:38:03',NULL,NULL,NULL),(177,86,1,NULL,3,'open',0,0,0,'2024-04-11 09:34:17','2024-04-11 09:34:17',NULL,NULL,NULL),(178,87,1,NULL,0,'closed',0,0,0,'2024-04-11 12:05:19','2024-04-11 12:05:19',NULL,'2024-04-11 12:05:19',NULL),(179,87,1,NULL,1,'closed',0,0,0,'2024-04-11 12:07:18','2024-04-11 12:07:18',NULL,'2024-04-11 12:07:18',NULL),(180,87,NULL,31,3,'closed',1,0,0,'2024-04-11 19:37:47','2024-04-11 19:37:47',NULL,'2024-04-11 19:37:47',NULL),(181,86,NULL,31,3,'closed',1,0,0,'2024-04-11 19:38:34','2024-04-11 19:38:34',NULL,'2024-04-11 19:38:34',NULL),(182,88,1,NULL,0,'closed',0,0,0,'2024-04-11 19:52:49','2024-04-11 19:52:49',NULL,'2024-04-11 19:52:49',NULL),(183,88,1,NULL,1,'closed',0,0,0,'2024-04-11 19:53:07','2024-04-11 19:53:07',NULL,'2024-04-11 19:53:07',NULL),(184,88,NULL,31,3,'closed',1,0,0,'2024-04-11 20:11:25','2024-04-11 20:11:25',NULL,'2024-04-11 20:11:25',NULL),(185,73,1,NULL,0,'closed',0,0,0,'2024-04-11 20:17:01','2024-04-11 20:17:01',NULL,'2024-04-11 20:17:01',NULL),(186,73,1,NULL,1,'closed',0,0,0,'2024-04-11 20:17:04','2024-04-11 20:17:04',NULL,'2024-04-11 20:17:04',NULL),(187,73,1,NULL,2,'open',0,0,0,'2024-04-11 20:18:25','2024-04-11 20:18:25',NULL,NULL,NULL),(188,73,NULL,31,3,'closed',1,0,0,'2024-04-11 20:18:51','2024-04-11 20:18:51',NULL,'2024-04-11 20:18:51',NULL),(189,85,NULL,31,3,'closed',1,0,0,'2024-04-11 20:26:03','2024-04-11 20:26:03',NULL,'2024-04-11 20:26:03',NULL),(190,89,1,NULL,0,'closed',0,0,0,'2024-04-11 20:49:43','2024-04-11 20:49:43',NULL,'2024-04-11 20:49:43',NULL),(191,89,1,NULL,1,'closed',0,0,0,'2024-04-11 20:49:52','2024-04-11 20:49:52',NULL,'2024-04-11 20:49:52',NULL),(192,90,1,NULL,0,'closed',0,0,0,'2024-04-11 22:30:19','2024-04-11 22:30:19',NULL,'2024-04-11 22:30:19',NULL),(193,92,1,NULL,0,'closed',0,0,0,'2024-04-13 16:02:37','2024-04-13 16:02:37',NULL,'2024-04-13 16:02:37',NULL),(194,92,1,NULL,1,'closed',0,0,0,'2024-04-13 16:04:50','2024-04-13 16:04:50',NULL,'2024-04-13 16:04:50',NULL),(195,92,1,NULL,2,'open',0,0,0,'2024-04-13 16:05:00','2024-04-13 16:05:00',NULL,NULL,NULL),(196,92,1,NULL,1,'closed',0,0,0,'2024-04-13 16:40:48','2024-04-13 16:40:48',NULL,'2024-04-13 16:40:48',NULL),(197,92,1,NULL,2,'open',0,0,0,'2024-04-13 16:40:55','2024-04-13 16:40:55',NULL,NULL,NULL),(198,92,NULL,31,3,'open',0,0,0,'2024-04-15 10:56:02','2024-04-15 10:56:02',NULL,NULL,NULL),(199,92,1,NULL,3,'closed',0,0,0,'2024-04-15 11:18:16','2024-04-15 11:18:16',NULL,'2024-04-15 11:18:16',NULL),(200,92,1,NULL,3,'closed',0,0,0,'2024-04-15 19:31:59','2024-04-15 19:31:59',NULL,'2024-04-15 19:31:59',NULL),(201,92,1,NULL,3,'closed',0,0,0,'2024-04-15 19:33:47','2024-04-15 19:33:47',NULL,'2024-04-15 19:33:47',NULL),(202,92,1,NULL,4,'closed',0,0,0,'2024-04-15 19:33:47','2024-04-15 19:33:47',NULL,'2024-04-15 19:33:47',NULL),(203,92,1,NULL,4,'closed',0,0,0,'2024-04-15 21:40:01','2024-04-15 21:40:01',NULL,'2024-04-15 21:40:01',NULL),(204,91,1,NULL,0,'closed',0,0,0,'2024-04-16 13:19:07','2024-04-16 13:19:07',NULL,'2024-04-16 13:19:07',NULL),(205,91,1,NULL,1,'closed',0,0,0,'2024-04-16 13:19:17','2024-04-16 13:19:17',NULL,'2024-04-16 13:19:17',NULL),(206,91,NULL,31,3,'closed',1,0,0,'2024-04-16 14:24:47','2024-04-16 14:24:47',NULL,'2024-04-16 14:24:47',NULL),(207,93,1,NULL,0,'closed',0,0,0,'2024-05-10 11:50:48','2024-05-10 11:50:48',NULL,'2024-05-10 11:50:48',NULL),(208,96,1,NULL,0,'closed',0,0,0,'2024-06-02 13:27:46','2024-06-02 13:27:46',NULL,'2024-06-02 13:27:46',NULL),(209,96,1,NULL,5,'closed',0,1,0,'2024-06-02 13:35:21','2024-06-02 13:35:21',NULL,'2024-06-02 13:35:21',NULL),(210,96,1,NULL,1,'closed',0,0,0,'2024-06-02 13:36:05','2024-06-02 13:36:05',NULL,'2024-06-02 13:36:05',NULL),(211,96,1,NULL,2,'open',0,0,0,'2024-06-02 13:43:20','2024-06-02 13:43:20',NULL,NULL,NULL),(212,96,1,NULL,3,'open',0,0,0,'2024-06-02 13:45:22','2024-06-02 13:45:22',NULL,NULL,NULL),(213,97,1,NULL,0,'closed',0,0,0,'2024-06-03 09:31:25','2024-06-03 09:31:25',NULL,'2024-06-03 09:31:25',NULL),(214,97,1,NULL,5,'closed',0,1,0,'2024-06-03 15:39:17','2024-06-03 15:39:17',NULL,'2024-06-03 15:39:17',NULL),(215,97,1,NULL,1,'closed',0,0,0,'2024-06-03 15:39:54','2024-06-03 15:39:54',NULL,'2024-06-03 15:39:54',NULL);

--
-- Table structure for table `repair_rental_items`
--

CREATE TABLE `repair_rental_items` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `repair_request_id` bigint unsigned NOT NULL COMMENT '修理依頼ID',
  `rental_item_id` int unsigned DEFAULT NULL COMMENT '貸用品ID',
  `employee_id` int DEFAULT NULL COMMENT '社員ID',
  `delivery_worked_at` datetime DEFAULT NULL COMMENT '貸用品出荷作業日時',
  `rental_at` datetime DEFAULT NULL COMMENT '貸与日時',
  `returned_at` datetime DEFAULT NULL COMMENT '返却日時',
  `rental_deadline_at` datetime DEFAULT NULL COMMENT '返却期限日時',
  `canceled_at` datetime DEFAULT NULL COMMENT 'キャンセル日',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`),
  KEY `repair_rental_items_repair_request_id_foreign` (`repair_request_id`),
  KEY `repair_rental_items_rental_item_id_foreign` (`rental_item_id`),
  KEY `repair_rental_items_employee_id_foreign` (`employee_id`),
  CONSTRAINT `repair_rental_items_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`),
  CONSTRAINT `repair_rental_items_rental_item_id_foreign` FOREIGN KEY (`rental_item_id`) REFERENCES `rental_items` (`id`),
  CONSTRAINT `repair_rental_items_repair_request_id_foreign` FOREIGN KEY (`repair_request_id`) REFERENCES `repair_requests` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=50 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `repair_rental_items`
--

INSERT INTO `repair_rental_items` VALUES (1,19,148,1,NULL,'2014-04-07 02:57:09',NULL,'2019-02-03 15:41:17','2023-09-12 08:53:46','2023-07-02 12:40:52','2023-09-12 08:53:46',NULL),(2,23,53,1,NULL,'1990-06-02 23:22:46','2015-08-15 02:02:15','2022-06-05 14:28:46','2023-09-12 08:44:41','2023-07-02 12:40:52','2023-09-12 08:44:41',NULL),(3,28,101,1,NULL,'1979-06-20 19:49:15','2014-05-15 19:12:51','2008-09-13 18:40:47','2023-09-12 08:46:02','2023-07-02 12:40:52','2023-09-12 08:46:02',NULL),(4,23,3,1,NULL,'2010-07-31 05:33:50',NULL,'2018-02-24 02:24:08','2023-09-12 08:44:41','2023-07-02 12:40:52','2023-09-12 08:44:41',NULL),(5,8,30,1,NULL,'2019-12-14 04:51:35',NULL,'2022-04-04 12:02:40','2023-09-12 08:53:10','2023-07-02 12:40:52','2023-09-12 08:53:10',NULL),(6,19,238,1,NULL,'2023-07-17 00:00:00',NULL,'2008-01-25 22:59:33','2023-09-12 08:53:46','2023-07-02 12:40:52','2023-09-12 08:53:46',NULL),(7,23,157,1,NULL,'2018-01-04 03:31:34','2022-01-08 16:29:45','2019-02-04 23:31:11','2023-09-12 08:44:41','2023-07-02 12:40:52','2023-09-12 08:44:41',NULL),(8,8,63,1,NULL,'1992-07-16 00:56:55','2020-05-27 11:27:17','2012-08-01 20:03:51','2023-09-12 08:53:10','2023-07-02 12:40:52','2023-09-12 08:53:10',NULL),(9,8,98,1,NULL,'2002-07-12 07:06:26',NULL,'2004-11-03 05:38:50','2023-09-12 08:53:10','2023-07-02 12:40:52','2023-09-12 08:53:10',NULL),(10,26,150,1,NULL,'1981-07-18 12:30:46','1989-12-26 10:54:53','2000-07-30 00:48:03','2023-09-12 08:45:18','2023-07-02 12:40:52','2023-09-12 08:45:18',NULL),(11,15,99,1,NULL,'1997-04-21 06:58:40',NULL,'2003-11-17 05:29:27','2023-09-12 08:53:30','2023-07-02 12:40:52','2023-09-12 08:53:30',NULL),(12,30,206,1,NULL,'1977-06-24 22:17:37',NULL,'2016-05-24 03:14:23','2023-09-12 08:45:38','2023-07-02 12:40:52','2023-09-12 08:45:38',NULL),(13,2,97,1,NULL,'1981-10-04 21:54:57',NULL,'2007-04-03 13:12:02','2023-09-12 08:53:00','2023-07-02 12:40:52','2023-09-12 08:53:00',NULL),(14,11,42,1,NULL,'1982-12-31 16:11:35','2023-05-23 10:00:00','1994-06-30 02:02:18','2023-09-12 08:53:19','2023-07-02 12:40:52','2023-09-12 08:53:19',NULL),(15,23,56,1,NULL,'2000-09-14 16:07:30',NULL,'2016-03-16 04:53:07','2023-09-12 08:44:41','2023-07-02 12:40:52','2023-09-12 08:44:41',NULL),(16,19,94,1,NULL,'2019-12-09 00:55:25',NULL,'2023-06-28 23:19:26','2023-09-12 08:53:46','2023-07-02 12:40:52','2023-09-12 08:53:46',NULL),(17,19,84,1,NULL,'2002-01-15 19:02:19',NULL,'2015-10-19 11:46:53','2023-09-12 08:53:46','2023-07-02 12:40:52','2023-09-12 08:53:46',NULL),(18,11,137,1,NULL,'1994-05-13 19:28:23',NULL,'1995-04-30 02:40:13','2023-09-12 08:53:19','2023-07-02 12:40:52','2023-09-12 08:53:19',NULL),(19,8,122,1,NULL,'1981-09-03 12:56:39',NULL,'1998-04-11 05:49:04','2023-09-12 08:53:10','2023-07-02 12:40:52','2023-09-12 08:53:10',NULL),(20,19,117,1,NULL,'2015-12-09 02:48:02','2021-01-05 17:18:36','2020-10-30 18:26:57','2023-09-12 08:53:46','2023-07-02 12:40:52','2023-09-12 08:53:46',NULL),(21,15,168,1,NULL,'1982-04-02 07:19:49',NULL,'2020-04-21 00:30:47','2023-09-12 08:53:30','2023-07-02 12:40:52','2023-09-12 08:53:30',NULL),(22,11,208,1,NULL,'1973-06-01 11:40:06',NULL,'2018-04-11 00:12:19','2023-09-12 08:53:19','2023-07-02 12:40:52','2023-09-12 08:53:19',NULL),(23,30,56,1,NULL,'2011-05-14 16:43:48','2021-05-28 14:18:16','2015-11-25 16:22:27','2023-09-12 08:45:38','2023-07-02 12:40:52','2023-09-12 08:45:38',NULL),(24,26,237,1,NULL,'1997-04-25 20:44:17',NULL,'2000-05-26 16:27:14','2023-09-12 08:45:18','2023-07-02 12:40:52','2023-09-12 08:45:18',NULL),(25,14,180,1,NULL,'2001-01-01 03:20:14',NULL,'2013-11-20 20:29:37','2023-09-12 08:43:36','2023-07-02 12:40:52','2023-09-12 08:43:36',NULL),(26,8,5,1,NULL,'2023-03-03 12:14:51',NULL,'2023-03-05 00:23:07','2023-09-12 08:53:10','2023-07-02 12:40:52','2023-09-12 08:53:10',NULL),(27,8,184,1,NULL,'1984-02-13 16:32:03',NULL,'1986-03-10 22:26:58','2023-09-12 08:53:10','2023-07-02 12:40:52','2023-09-12 08:53:10',NULL),(28,15,232,1,NULL,'1984-03-14 09:45:39',NULL,'1987-11-23 05:55:21','2023-09-12 08:53:30','2023-07-02 12:40:52','2023-09-12 08:53:30',NULL),(29,10,185,1,NULL,'1982-02-16 00:56:12',NULL,'2004-04-30 17:54:52','2023-09-12 08:43:55','2023-07-02 12:40:52','2023-09-12 08:43:55',NULL),(30,30,130,1,NULL,'1992-05-18 13:20:26',NULL,'2013-06-25 23:59:25','2023-09-12 08:45:38','2023-07-02 12:40:52','2023-09-12 08:45:38',NULL),(31,42,NULL,1,'2023-07-24 20:47:18',NULL,'2023-07-24 20:00:00','2023-10-09 00:37:33',NULL,'2023-07-09 00:37:33','2023-07-31 10:31:27',NULL),(33,60,81,NULL,'2023-10-28 15:10:00','2023-10-28 15:00:00','2023-10-31 15:10:00','2023-11-18 12:08:00',NULL,'2023-07-24 20:49:42','2023-10-29 13:07:25',NULL),(34,61,2,1,'2024-04-22 12:04:00','2024-04-22 12:00:00','2024-04-11 20:10:33','2024-07-22 00:00:00',NULL,'2023-08-18 21:10:24','2024-04-11 22:43:44',NULL),(35,62,6,NULL,'2023-08-23 12:08:00',NULL,'2023-08-30 12:08:00',NULL,NULL,'2023-08-18 21:35:02','2023-08-27 09:53:35',NULL),(36,65,92,NULL,'2023-09-19 15:09:00','2023-09-19 15:00:00','2024-06-11 00:06:00','2023-12-19 00:00:00',NULL,'2023-08-24 16:33:54','2024-07-07 14:40:03',NULL),(37,66,315,NULL,'2024-04-17 12:04:00','2024-04-17 12:00:00',NULL,'2024-07-17 00:00:00',NULL,'2023-08-25 15:37:16','2024-04-11 22:43:44',NULL),(38,67,99,NULL,NULL,NULL,NULL,NULL,NULL,'2023-08-29 15:40:24','2023-08-29 15:40:24',NULL),(39,70,35,1,'2024-04-22 12:04:00','2024-04-22 12:00:00',NULL,'2024-07-22 00:00:00',NULL,'2023-09-20 21:33:24','2024-04-11 22:43:44',NULL),(40,71,34,NULL,NULL,NULL,NULL,NULL,NULL,'2023-09-21 10:47:37','2023-09-21 10:47:37',NULL),(42,81,59,NULL,NULL,NULL,NULL,NULL,NULL,'2023-11-10 21:19:58','2023-11-10 21:19:58',NULL),(43,85,60,1,'2024-03-21 21:20:37','2024-03-21 21:20:37',NULL,'2024-06-21 21:20:37',NULL,'2024-03-21 21:15:35','2024-03-21 21:20:37',NULL),(44,87,3,1,'2024-04-11 12:05:34','2024-04-11 12:05:34',NULL,'2024-07-11 12:05:34',NULL,'2024-04-11 12:03:30','2024-04-11 12:05:34',NULL),(45,88,5,1,'2024-04-11 19:53:04','2024-04-11 19:53:04',NULL,'2024-07-11 19:53:04',NULL,'2024-04-11 19:51:10','2024-04-11 19:53:04',NULL),(46,89,2,1,'2024-07-22 12:07:00','2024-07-22 12:00:00',NULL,'2024-10-22 00:00:00',NULL,'2024-04-11 20:49:12','2024-07-07 14:09:28',NULL),(47,90,6,NULL,'2024-07-22 12:07:00','2024-07-22 12:00:00',NULL,'2024-10-22 00:00:00',NULL,'2024-04-11 22:30:05','2024-07-07 14:09:27',NULL),(48,91,8,1,'2024-04-16 13:19:12','2024-04-16 13:19:12',NULL,'2024-07-16 13:19:12',NULL,'2024-04-13 09:17:51','2024-04-16 13:19:12',NULL),(49,92,9,1,'2024-04-13 16:03:25','2024-04-13 16:03:25','2024-04-22 12:00:00','2024-07-13 16:03:25',NULL,'2024-04-13 14:53:32','2024-04-15 19:45:31',NULL);

--
-- Table structure for table `repair_request_accessories`
--

CREATE TABLE `repair_request_accessories` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `repair_request_id` bigint unsigned NOT NULL COMMENT '修理依頼ID',
  `sfa_product_id` bigint unsigned NOT NULL COMMENT 'SFA商品ID',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`),
  KEY `repair_request_accessories_repair_request_id_foreign` (`repair_request_id`),
  KEY `repair_request_accessories_sfa_product_id_foreign` (`sfa_product_id`),
  CONSTRAINT `repair_request_accessories_repair_request_id_foreign` FOREIGN KEY (`repair_request_id`) REFERENCES `repair_requests` (`id`),
  CONSTRAINT `repair_request_accessories_sfa_product_id_foreign` FOREIGN KEY (`sfa_product_id`) REFERENCES `sfa_products` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `repair_request_accessories`
--


--
-- Table structure for table `repair_request_failures`
--

CREATE TABLE `repair_request_failures` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `repair_request_id` bigint unsigned NOT NULL COMMENT '修理依頼ID',
  `failure_id` int unsigned NOT NULL COMMENT '故障症状ID',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`),
  KEY `repair_request_failures_repair_request_id_foreign` (`repair_request_id`),
  KEY `repair_request_failures_failure_id_foreign` (`failure_id`),
  CONSTRAINT `repair_request_failures_failure_id_foreign` FOREIGN KEY (`failure_id`) REFERENCES `failures` (`id`),
  CONSTRAINT `repair_request_failures_repair_request_id_foreign` FOREIGN KEY (`repair_request_id`) REFERENCES `repair_requests` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=98 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `repair_request_failures`
--

INSERT INTO `repair_request_failures` VALUES (1,29,355,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(2,12,329,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(3,8,111,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(4,16,208,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(5,20,86,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(6,5,243,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(7,2,219,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(8,14,256,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(9,18,129,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(10,16,205,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(11,22,83,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(12,20,253,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(13,30,270,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(14,22,115,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(15,10,201,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(16,14,213,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(17,1,9,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(18,10,87,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(19,6,350,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(20,4,109,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(21,27,76,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(22,9,210,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(23,2,151,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(24,16,248,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(25,17,119,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(26,15,73,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(27,20,274,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(28,22,275,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(29,26,124,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(30,21,3,'2023-07-02 12:40:52','2023-07-02 12:40:52',NULL),(31,31,73,'2023-07-02 20:15:04','2023-07-02 20:15:04',NULL),(32,32,9999,'2023-07-02 20:17:42','2023-07-02 20:17:42',NULL),(33,33,9999,'2023-07-02 20:31:30','2023-07-02 20:31:30',NULL),(34,34,139,'2023-07-02 20:38:34','2023-07-02 20:38:34',NULL),(35,35,9999,'2023-07-02 20:49:42','2023-07-02 20:49:42',NULL),(36,36,70,'2023-07-04 11:50:22','2023-07-04 11:50:22',NULL),(38,38,97,'2023-07-07 09:37:07','2023-07-07 09:37:07',NULL),(39,39,97,'2023-07-07 16:30:57','2023-07-07 16:30:57',NULL),(40,40,16,'2023-07-07 16:50:23','2023-07-07 16:50:23',NULL),(41,41,98,'2023-07-07 16:50:41','2023-07-07 16:50:41',NULL),(42,42,225,'2023-07-08 00:27:33','2023-07-08 00:27:33',NULL),(43,43,9999,'2023-07-08 00:52:38','2023-07-08 00:52:38',NULL),(44,44,235,'2023-07-08 00:58:16','2023-07-08 00:58:16',NULL),(45,45,97,'2023-07-11 19:59:16','2023-07-11 19:59:16',NULL),(46,46,233,'2023-07-12 07:36:06','2023-07-12 07:36:06',NULL),(47,47,242,'2023-07-13 08:55:59','2023-07-13 08:55:59',NULL),(48,48,3,'2023-07-13 15:57:46','2023-07-13 15:57:46',NULL),(49,49,9,'2023-07-13 16:43:58','2023-07-13 16:43:58',NULL),(50,50,9999,'2023-07-13 18:11:42','2023-07-13 18:11:42',NULL),(51,51,9999,'2023-07-13 23:02:55','2023-07-13 23:02:55',NULL),(52,52,175,'2023-07-14 22:48:14','2023-07-14 22:48:14',NULL),(53,53,64,'2023-07-17 23:30:42','2023-07-17 23:30:42',NULL),(54,54,64,'2023-07-20 07:54:00','2023-07-20 07:54:00',NULL),(55,55,64,'2023-07-20 13:54:26','2023-07-20 13:54:26',NULL),(56,56,90,'2023-07-20 13:55:11','2023-07-20 13:55:11',NULL),(57,57,114,'2023-07-20 18:14:45','2023-07-20 18:14:45',NULL),(58,58,86,'2023-07-20 19:03:02','2023-07-20 19:03:02',NULL),(59,59,9999,'2023-07-21 22:34:04','2023-07-21 22:34:04',NULL),(60,60,225,'2023-07-24 20:49:42','2023-07-24 20:49:42',NULL),(61,61,86,'2023-08-18 21:10:24','2023-08-18 21:10:24',NULL),(62,62,87,'2023-08-18 21:35:02','2023-08-18 21:35:02',NULL),(63,63,9999,'2023-08-18 21:48:07','2023-08-18 21:48:07',NULL),(64,64,383,'2023-08-24 09:29:53','2023-08-24 09:29:53',NULL),(65,65,9999,'2023-08-24 16:33:54','2023-08-24 16:33:54',NULL),(66,66,383,'2023-08-25 15:37:16','2023-08-25 15:37:16',NULL),(67,67,236,'2023-08-29 15:40:24','2023-08-29 15:40:24',NULL),(68,68,122,'2023-09-03 10:28:01','2023-09-03 10:28:01',NULL),(69,69,9999,'2023-09-03 10:34:47','2023-09-03 10:34:47',NULL),(70,70,97,'2023-09-20 21:33:24','2023-09-20 21:33:24',NULL),(71,71,98,'2023-09-21 10:47:37','2023-09-21 10:47:37',NULL),(72,72,176,'2023-09-29 22:20:22','2023-09-29 22:20:22',NULL),(73,73,86,'2023-10-15 21:38:01','2023-10-15 21:38:01',NULL),(74,74,114,'2023-10-21 08:07:55','2023-10-21 08:07:55',NULL),(75,75,86,'2023-10-22 16:42:22','2023-10-22 16:42:22',NULL),(76,76,151,'2023-10-22 17:24:06','2023-10-22 17:24:06',NULL),(77,77,9999,'2023-10-22 17:28:38','2023-10-22 17:28:38',NULL),(78,78,9999,'2023-10-22 19:54:28','2023-10-22 19:54:28',NULL),(79,79,9999,'2023-10-26 08:41:55','2023-10-26 08:41:55',NULL),(80,81,122,'2023-11-10 21:19:58','2023-11-10 21:19:58',NULL),(81,82,19,'2023-11-24 11:48:15','2023-11-24 11:48:15',NULL),(82,83,8,'2023-12-20 14:01:59','2023-12-20 14:01:59',NULL),(83,84,11,'2023-12-20 14:04:18','2023-12-20 14:04:18',NULL),(84,85,122,'2024-03-21 21:15:35','2024-03-21 21:15:35',NULL),(85,86,97,'2024-04-10 00:14:12','2024-04-10 00:14:12',NULL),(86,87,86,'2024-04-11 12:03:30','2024-04-11 12:03:30',NULL),(87,88,86,'2024-04-11 19:51:10','2024-04-11 19:51:10',NULL),(88,89,86,'2024-04-11 20:49:12','2024-04-11 20:49:12',NULL),(89,90,86,'2024-04-11 22:30:05','2024-04-11 22:30:05',NULL),(90,91,86,'2024-04-13 09:17:51','2024-04-13 09:17:51',NULL),(91,92,86,'2024-04-13 14:53:32','2024-04-13 14:53:32',NULL),(92,93,97,'2024-05-10 11:37:27','2024-05-10 11:37:27',NULL),(93,94,97,'2024-05-10 12:10:01','2024-05-10 12:10:01',NULL),(94,95,86,'2024-05-10 12:42:12','2024-05-10 12:42:12',NULL),(95,96,98,'2024-06-02 13:27:00','2024-06-02 13:27:00',NULL),(96,97,97,'2024-06-03 09:19:55','2024-06-03 09:19:55',NULL),(97,98,130,'2024-06-12 14:15:12','2024-06-12 14:15:12',NULL);

--
-- Table structure for table `repair_request_files`
--

CREATE TABLE `repair_request_files` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `repair_request_id` bigint unsigned NOT NULL COMMENT '修理依頼ID',
  `file_id` bigint unsigned DEFAULT NULL COMMENT 'ファイルID',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`),
  KEY `repair_request_files_repair_request_id_foreign` (`repair_request_id`),
  KEY `repair_request_files_file_id_foreign` (`file_id`),
  CONSTRAINT `repair_request_files_file_id_foreign` FOREIGN KEY (`file_id`) REFERENCES `files` (`id`),
  CONSTRAINT `repair_request_files_repair_request_id_foreign` FOREIGN KEY (`repair_request_id`) REFERENCES `repair_requests` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `repair_request_files`
--

INSERT INTO `repair_request_files` VALUES (1,45,76,'2023-07-11 19:59:16','2023-07-11 19:59:16',NULL),(2,45,77,'2023-07-11 19:59:16','2023-07-11 19:59:16',NULL),(3,46,78,'2023-07-12 07:36:06','2023-07-12 07:36:06',NULL);

--
-- Table structure for table `repair_request_logs`
--

CREATE TABLE `repair_request_logs` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `repair_request_id` bigint unsigned NOT NULL COMMENT '修理依頼ID',
  `update_user_id` int NOT NULL COMMENT '更新者',
  `is_admin` tinyint NOT NULL DEFAULT '1' COMMENT '更新者種別',
  `user_id` int unsigned NOT NULL COMMENT '依頼者ID',
  `repair_request_num` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '修理依頼番号',
  `own_osada_equipment_id` int unsigned DEFAULT NULL COMMENT '自社保有機器ID',
  `failure_remarks` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'その他症状',
  `rental_request_flag` tinyint(1) NOT NULL DEFAULT '0' COMMENT '貸用品の有無',
  `dropoff_type` int DEFAULT NULL COMMENT '修理品の預けタイミング',
  `pickup_at` datetime DEFAULT NULL COMMENT '回収日時',
  `pickup_worked_at` datetime DEFAULT NULL COMMENT '回収作業日時',
  `returned_at` datetime DEFAULT NULL COMMENT '返却日時',
  `is_on_site_repair` tinyint NOT NULL DEFAULT '0' COMMENT '現場修理フラグ',
  `approval_limit` int NOT NULL DEFAULT '0' COMMENT '決済承認上限',
  `repair_completed_at` datetime DEFAULT NULL COMMENT '修理完了日',
  `repair_completed_by` int DEFAULT NULL COMMENT '修理完了更新者ID',
  `delivery_method_id` int unsigned NOT NULL COMMENT '配送手続き方法',
  `payment_method_type` int unsigned NOT NULL DEFAULT '0' COMMENT '決済方法タイプ',
  `payment_method_id` smallint unsigned NOT NULL DEFAULT '1' COMMENT '決済方法ID',
  `sfa_agency_id` bigint unsigned DEFAULT NULL COMMENT '選択代行店ID',
  `payment_at` datetime DEFAULT NULL COMMENT '支払日',
  `payment_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '支払い決済ID',
  `payment_deadline_at` datetime DEFAULT NULL COMMENT '支払い期限',
  `current_status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '修理依頼状況',
  `canceled_at` datetime DEFAULT NULL COMMENT 'キャンセル日',
  `return_requested` tinyint(1) NOT NULL DEFAULT '0' COMMENT '交換部品返却希望有無',
  `repair_part_file_id` bigint unsigned DEFAULT NULL COMMENT '修理箇所ファイルID',
  `repair_item_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '修理品所在',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`),
  KEY `repair_request_logs_repair_request_id_foreign` (`repair_request_id`),
  KEY `repair_request_logs_user_id_foreign` (`user_id`),
  KEY `repair_request_logs_delivery_method_id_foreign` (`delivery_method_id`),
  KEY `repair_request_logs_repair_part_file_id_foreign` (`repair_part_file_id`),
  KEY `repair_request_logs_repair_completed_by_foreign` (`repair_completed_by`),
  KEY `repair_request_logs_payment_method_id_foreign` (`payment_method_id`),
  KEY `repair_request_logs_sfa_agency_id_foreign` (`sfa_agency_id`),
  CONSTRAINT `repair_request_logs_delivery_method_id_foreign` FOREIGN KEY (`delivery_method_id`) REFERENCES `delivery_methods` (`id`),
  CONSTRAINT `repair_request_logs_payment_method_id_foreign` FOREIGN KEY (`payment_method_id`) REFERENCES `payment_methods` (`id`),
  CONSTRAINT `repair_request_logs_repair_completed_by_foreign` FOREIGN KEY (`repair_completed_by`) REFERENCES `employees` (`id`),
  CONSTRAINT `repair_request_logs_repair_part_file_id_foreign` FOREIGN KEY (`repair_part_file_id`) REFERENCES `files` (`id`),
  CONSTRAINT `repair_request_logs_repair_request_id_foreign` FOREIGN KEY (`repair_request_id`) REFERENCES `repair_requests` (`id`),
  CONSTRAINT `repair_request_logs_sfa_agency_id_foreign` FOREIGN KEY (`sfa_agency_id`) REFERENCES `sfa_agencies` (`id`),
  CONSTRAINT `repair_request_logs_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `clinic_staffs` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=300 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `repair_request_logs`
--


--
-- Table structure for table `repair_request_on_site_switch_memos`
--

CREATE TABLE `repair_request_on_site_switch_memos` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `repair_request_id` bigint unsigned NOT NULL COMMENT '修理依頼ID',
  `employee_id` int NOT NULL COMMENT '社員ID',
  `current_status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '修理依頼状況',
  `memo` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '社内メモ',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`),
  KEY `repair_request_on_site_switch_memos_repair_request_id_foreign` (`repair_request_id`),
  KEY `repair_request_on_site_switch_memos_employee_id_foreign` (`employee_id`),
  CONSTRAINT `repair_request_on_site_switch_memos_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`),
  CONSTRAINT `repair_request_on_site_switch_memos_repair_request_id_foreign` FOREIGN KEY (`repair_request_id`) REFERENCES `repair_requests` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `repair_request_on_site_switch_memos`
--

INSERT INTO `repair_request_on_site_switch_memos` VALUES (1,96,1,'in-storage','テストです。','2024-06-02 13:36:05','2024-06-02 13:36:05',NULL),(2,97,1,'in-storage','申し送り事項','2024-06-03 15:39:54','2024-06-03 15:39:54',NULL);

--
-- Table structure for table `repair_requests`
--

CREATE TABLE `repair_requests` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `user_id` int unsigned NOT NULL COMMENT '依頼者ID',
  `repair_request_num` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '修理依頼番号',
  `own_osada_equipment_id` int unsigned DEFAULT NULL COMMENT '自社保有機器ID',
  `failure_remarks` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'その他症状',
  `rental_request_flag` tinyint(1) NOT NULL DEFAULT '0' COMMENT '貸用品の有無',
  `dropoff_type` int DEFAULT NULL COMMENT '修理品の預けタイミング',
  `kayoibako_shipped_at` datetime DEFAULT NULL COMMENT '通い箱出荷日',
  `kayoibako_pickup_at` datetime DEFAULT NULL COMMENT '通い箱回収日',
  `pickup_at` datetime DEFAULT NULL COMMENT '回収日時',
  `pickup_worked_at` datetime DEFAULT NULL COMMENT '回収作業日時',
  `returned_at` datetime DEFAULT NULL COMMENT '返却日時',
  `is_on_site_repair` tinyint NOT NULL DEFAULT '0' COMMENT '現場修理フラグ',
  `approval_limit` int NOT NULL DEFAULT '0' COMMENT '決済承認上限',
  `is_skipped_progress` tinyint DEFAULT '0' COMMENT '進捗スキップフラグ',
  `is_change_permitted_before_repair_completed_at` tinyint(1) NOT NULL DEFAULT '0' COMMENT '基準納期前変更可否',
  `repair_completed_at` datetime DEFAULT NULL COMMENT '修理完了日',
  `repair_completed_by` int DEFAULT NULL COMMENT '修理完了更新者ID',
  `delivery_method_id` int unsigned NOT NULL COMMENT '配送手続き方法',
  `payment_method_type` int unsigned NOT NULL DEFAULT '0' COMMENT '決済方法タイプ',
  `payment_method_id` smallint unsigned NOT NULL DEFAULT '1' COMMENT '決済方法ID',
  `sfa_agency_id` bigint unsigned DEFAULT NULL COMMENT '選択代行店ID',
  `payment_at` datetime DEFAULT NULL COMMENT '支払日',
  `payment_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '支払い決済ID',
  `payment_deadline_at` datetime DEFAULT NULL COMMENT '支払い期限',
  `current_status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '修理依頼状況',
  `canceled_at` datetime DEFAULT NULL COMMENT 'キャンセル日',
  `return_requested` tinyint(1) NOT NULL DEFAULT '0' COMMENT '交換部品返却希望有無',
  `repair_part_file_id` bigint unsigned DEFAULT NULL COMMENT '修理箇所ファイルID',
  `repair_item_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '修理品所在',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '作成日時',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新日時',
  `deleted_at` datetime DEFAULT NULL COMMENT '削除日時',
  PRIMARY KEY (`id`),
  KEY `repair_requests_user_id_foreign` (`user_id`),
  KEY `repair_requests_delivery_method_id_foreign` (`delivery_method_id`),
  KEY `repair_requests_repair_part_file_id_foreign` (`repair_part_file_id`),
  KEY `repair_requests_repair_completed_by_foreign` (`repair_completed_by`),
  KEY `repair_requests_payment_method_id_foreign` (`payment_method_id`),
  KEY `repair_requests_sfa_agency_id_foreign` (`sfa_agency_id`),
  CONSTRAINT `repair_requests_delivery_method_id_foreign` FOREIGN KEY (`delivery_method_id`) REFERENCES `delivery_methods` (`id`),
  CONSTRAINT `repair_requests_payment_method_id_foreign` FOREIGN KEY (`payment_method_id`) REFERENCES `payment_methods` (`id`),
  CONSTRAINT `repair_requests_repair_completed_by_foreign` FOREIGN KEY (`repair_completed_by`) REFERENCES `employees` (`id`),
  CONSTRAINT `repair_requests_repair_part_file_id_foreign` FOREIGN KEY (`repair_part_file_id`) REFERENCES `files` (`id`),
  CONSTRAINT `repair_requests_sfa_agency_id_foreign` FOREIGN KEY (`sfa_agency_id`) REFERENCES `sfa_agencies` (`id`),
  CONSTRAINT `repair_requests_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `clinic_staffs` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=99 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `repair_requests`
--

INSERT INTO `repair_requests` VALUES (1,12,'O-686974619',4,NULL,0,4,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2023-09-12 08:42:03',1,1,0,1,NULL,NULL,NULL,NULL,'closed',NULL,0,10,NULL,'2023-07-02 12:40:52','2023-09-12 08:42:03',NULL),(2,24,'T-188336994',15,'Vel id qui dicta et.',1,4,NULL,NULL,'2023-06-04 00:00:15',NULL,NULL,1,0,0,0,'2023-09-12 08:53:00',1,2,0,1,NULL,NULL,NULL,NULL,'closed',NULL,1,7,NULL,'2023-07-02 12:40:52','2023-09-12 08:53:00',NULL),(3,2,'I-282675487',15,'Ab qui iusto placeat ipsa.',0,3,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2023-09-12 08:42:19',1,1,0,1,NULL,NULL,NULL,NULL,'closed',NULL,1,30,NULL,'2023-07-02 12:40:52','2023-09-12 08:42:19',NULL),(4,8,'K-308208639',6,NULL,0,4,NULL,NULL,'2022-11-11 14:18:08',NULL,NULL,1,0,0,0,'2023-09-12 08:42:38',1,1,0,1,NULL,NULL,NULL,NULL,'closed',NULL,1,16,NULL,'2023-07-02 12:40:52','2023-09-12 08:42:38',NULL),(5,22,'Y-720909299',9,'Sapiente quia et odit quo.',0,2,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2023-09-12 08:42:52',1,1,0,1,NULL,NULL,NULL,NULL,'closed',NULL,1,20,NULL,'2023-07-02 12:40:52','2023-09-12 08:42:52',NULL),(6,11,'T-519920154',4,'Inventore qui ullam ipsam.',0,2,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2023-09-12 08:43:03',1,1,0,1,NULL,NULL,NULL,NULL,'closed',NULL,1,30,NULL,'2023-07-02 12:40:52','2023-09-12 08:43:03',NULL),(7,6,'J-163715833',9,NULL,0,1,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2023-09-12 08:43:13',1,1,0,1,NULL,NULL,NULL,NULL,'closed',NULL,0,41,NULL,'2023-07-02 12:40:52','2023-09-12 08:43:13',NULL),(8,8,'B-088631951',6,'Possimus et velit nihil.',1,2,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2023-09-12 08:53:10',1,1,0,1,NULL,NULL,NULL,NULL,'closed',NULL,0,6,NULL,'2023-07-02 12:40:52','2023-09-12 08:53:10',NULL),(9,13,'Q-345279750',12,NULL,1,2,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2023-09-12 08:52:53',1,2,0,1,NULL,NULL,NULL,NULL,'closed',NULL,0,23,NULL,'2023-07-02 12:40:52','2023-09-12 08:52:53',NULL),(10,12,'D-177472154',4,'Sit quibusdam dolorum in et.',1,2,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2023-09-12 08:43:55',1,1,0,1,NULL,NULL,NULL,NULL,'closed',NULL,1,17,NULL,'2023-07-02 12:40:52','2023-09-12 08:43:55',NULL),(11,13,'Y-697130055',12,NULL,1,2,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2023-09-12 08:53:19',1,1,0,1,NULL,NULL,NULL,NULL,'closed',NULL,1,45,NULL,'2023-07-02 12:40:52','2023-09-12 08:53:19',NULL),(12,12,'G-324937718',4,NULL,0,2,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2023-09-12 08:46:32',1,2,0,1,NULL,NULL,NULL,NULL,'closed',NULL,0,45,NULL,'2023-07-02 12:40:52','2023-09-12 08:46:32',NULL),(13,7,'C-899611468',4,NULL,0,2,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2023-09-12 08:43:45',1,2,0,1,NULL,NULL,NULL,NULL,'closed',NULL,1,5,NULL,'2023-07-02 12:40:52','2023-09-12 08:43:45',NULL),(14,1,'B-253330982',18,NULL,1,4,NULL,NULL,'2022-08-18 18:01:37',NULL,NULL,1,0,0,0,'2023-09-12 08:43:36',1,2,0,1,NULL,NULL,NULL,NULL,'closed',NULL,0,48,NULL,'2023-07-02 12:40:52','2023-09-12 08:43:36',NULL),(15,8,'D-127432502',6,NULL,1,3,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2023-09-12 08:53:30',1,2,0,1,NULL,NULL,NULL,NULL,'closed',NULL,0,1,NULL,'2023-07-02 12:40:52','2023-09-12 08:53:30',NULL),(16,20,'Q-408106291',9,'Rerum nobis quia officia.',0,4,NULL,NULL,'2023-06-04 04:23:30',NULL,NULL,1,0,0,0,'2023-09-12 08:53:35',1,1,0,1,NULL,NULL,NULL,NULL,'closed',NULL,1,27,NULL,'2023-07-02 12:40:52','2023-09-12 08:53:35',NULL),(17,24,'I-591824000',15,NULL,0,1,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2023-09-12 08:44:12',1,1,0,1,NULL,NULL,NULL,NULL,'closed',NULL,0,33,NULL,'2023-07-02 12:40:52','2023-09-12 08:44:12',NULL),(18,13,'U-066883932',12,'Qui in aut molestias.',0,2,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2023-09-12 08:53:52',1,1,0,1,NULL,NULL,NULL,NULL,'closed',NULL,1,9,NULL,'2023-07-02 12:40:52','2023-09-12 08:53:52',NULL),(19,20,'B-858245012',9,NULL,1,4,NULL,NULL,'2023-01-13 13:21:19',NULL,NULL,1,0,0,0,'2023-09-12 08:53:46',1,2,0,1,NULL,NULL,NULL,NULL,'closed',NULL,1,27,NULL,'2023-07-02 12:40:52','2023-09-12 08:53:46',NULL),(20,24,'S-241142430',15,NULL,0,2,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2023-09-12 08:44:25',1,2,0,1,NULL,NULL,NULL,NULL,'closed',NULL,0,50,NULL,'2023-07-02 12:40:52','2023-09-12 08:44:25',NULL),(21,22,'M-015990683',9,'Et voluptas explicabo sed.',0,1,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2023-09-12 08:46:41',1,1,0,1,NULL,NULL,NULL,NULL,'closed',NULL,0,33,NULL,'2023-07-02 12:40:52','2023-09-12 08:46:41',NULL),(22,20,'M-498327556',9,NULL,0,1,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2023-09-12 08:44:53',1,1,0,1,NULL,NULL,NULL,NULL,'closed',NULL,1,18,NULL,'2023-07-02 12:40:52','2023-09-12 08:44:53',NULL),(23,22,'W-846242830',9,NULL,1,4,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2023-09-12 08:44:41',1,2,0,1,NULL,NULL,NULL,NULL,'closed',NULL,1,17,NULL,'2023-07-02 12:40:52','2023-09-12 08:44:41',NULL),(24,3,'Y-675068831',6,NULL,0,1,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2023-09-12 08:45:49',1,1,0,1,NULL,NULL,NULL,NULL,'closed',NULL,1,53,NULL,'2023-07-02 12:40:52','2023-09-12 08:45:49',NULL),(25,7,'N-934491147',4,'Est earum et et cumque.',0,2,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2023-09-12 08:46:24',1,1,0,1,NULL,NULL,NULL,NULL,'closed',NULL,0,29,NULL,'2023-07-02 12:40:52','2023-09-12 08:46:24',NULL),(26,22,'W-042435742',9,'Atque ut culpa et fugiat.',1,2,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2023-09-12 08:45:18',1,2,0,1,NULL,NULL,NULL,NULL,'closed',NULL,0,5,NULL,'2023-07-02 12:40:52','2023-09-12 08:45:18',NULL),(27,27,'I-340873742',19,NULL,0,1,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2023-09-12 08:45:29',1,2,0,1,NULL,NULL,NULL,NULL,'closed',NULL,0,2,NULL,'2023-07-02 12:40:52','2023-09-12 08:45:29',NULL),(28,8,'Y-084511860',6,NULL,1,4,NULL,NULL,'2023-03-21 06:18:06',NULL,NULL,1,0,0,0,'2023-09-12 08:46:02',1,2,0,1,NULL,NULL,NULL,NULL,'closed',NULL,1,12,NULL,'2023-07-02 12:40:52','2023-09-12 08:46:02',NULL),(29,24,'T-244254673',15,'Vero illum nisi distinctio.',0,4,NULL,NULL,'2023-05-19 23:36:48',NULL,NULL,1,0,0,0,'2023-09-12 08:53:59',1,2,0,1,NULL,NULL,NULL,NULL,'closed',NULL,1,53,NULL,'2023-07-02 12:40:52','2023-09-12 08:53:59',NULL),(30,24,'Z-349312516',15,'Est et dolorum aut nesciunt.',1,2,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2023-09-12 08:45:38',1,1,0,1,NULL,NULL,NULL,NULL,'closed',NULL,0,42,NULL,'2023-07-02 12:40:52','2023-09-12 08:45:38',NULL),(31,1,'26-2307020820',22,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,'canceled','2023-07-06 13:27:46',0,NULL,NULL,'2023-07-02 20:15:04','2023-07-06 13:27:46',NULL),(32,1,'26-2307020820',23,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,NULL,'2023-11-02 00:00:00','in-storage',NULL,0,NULL,NULL,'2023-07-02 20:17:42','2023-10-19 08:43:42',NULL),(33,1,'26-2307020820',24,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,'open',NULL,0,NULL,NULL,'2023-07-02 20:31:30','2023-07-02 20:31:30',NULL),(34,1,'26-2307020820',25,NULL,0,NULL,NULL,NULL,NULL,'2023-07-09 14:20:15',NULL,1,0,0,0,'2023-10-29 16:35:59',1,1,0,1,NULL,NULL,NULL,NULL,'closed',NULL,0,NULL,NULL,'2023-07-02 20:38:34','2023-10-29 16:35:59',NULL),(35,1,'26-2307020820',26,NULL,0,NULL,NULL,NULL,NULL,'2023-07-09 14:20:15',NULL,0,0,1,0,'2023-10-20 08:58:42',1,1,0,1,NULL,NULL,'32','2023-07-20 00:00:00','closed',NULL,0,NULL,NULL,'2023-07-02 20:49:42','2023-10-20 08:58:42',NULL),(36,31,'31-2307041111',27,NULL,0,NULL,NULL,NULL,NULL,'2023-07-09 22:10:33','2023-07-21 18:07:36',0,0,0,0,NULL,NULL,1,0,1,NULL,'2023-07-07 08:13:37','35','2023-07-20 00:00:00','return',NULL,0,NULL,NULL,'2023-07-04 11:50:22','2024-07-07 14:12:34',NULL),(38,31,'31-2307070909',29,'',0,NULL,NULL,NULL,NULL,'2023-07-12 21:01:27',NULL,0,0,0,0,'2023-10-28 16:54:51',1,1,0,1,NULL,'2023-07-13 08:07:25','39','2023-07-26 00:00:00','return',NULL,0,NULL,NULL,'2023-07-07 09:37:07','2023-10-28 17:00:11',NULL),(39,31,'31-2307070416',30,'',1,NULL,NULL,NULL,NULL,'2023-07-12 19:19:59',NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,'2023-07-13 00:12:15','37','2023-07-26 00:00:00','in-progress',NULL,0,NULL,NULL,'2023-07-07 16:30:57','2023-07-13 00:12:15',NULL),(40,31,'31-2307070416',31,'',0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,'2023-07-11 12:38:52','36','2023-07-25 00:00:00','canceled','2023-07-11 12:38:52',0,NULL,NULL,'2023-07-07 16:50:23','2023-07-11 12:38:52',NULL),(41,31,'31-2307070416',32,'',1,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,NULL,'2023-07-25 00:00:00','canceled','2023-07-11 12:29:12',0,NULL,NULL,'2023-07-07 16:50:41','2023-07-11 12:29:12',NULL),(42,1,'8-26-20230708002733',33,'',1,NULL,NULL,NULL,NULL,'2023-07-21 18:25:35',NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,NULL,'2023-07-24 00:00:00','estimated',NULL,0,NULL,NULL,'2023-07-08 00:27:33','2023-09-23 10:47:40',NULL),(43,34,'9-34-20230708005238',34,'',0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,'50','2023-08-04 00:00:00','in-storage',NULL,0,NULL,NULL,'2023-07-08 00:52:38','2023-07-21 22:55:06',NULL),(44,34,'2-34-20230708005816',35,'',0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,'open',NULL,0,NULL,NULL,'2023-07-08 00:58:16','2023-07-08 00:58:16',NULL),(45,31,'1-31-20230711195916',36,'',0,NULL,NULL,NULL,NULL,'2023-07-12 23:33:23','2023-08-02 14:08:36',0,0,0,0,NULL,NULL,1,0,1,NULL,'2023-07-13 00:18:13','38','2023-07-27 00:00:00','return',NULL,0,NULL,NULL,'2023-07-11 19:59:16','2024-07-07 14:39:58',NULL),(46,31,'1-31-20230712073606',37,'',0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,'2023-07-13 08:09:54','40','2023-07-27 00:00:00','in-progress',NULL,0,NULL,NULL,'2023-07-12 07:36:06','2023-07-13 08:09:54',NULL),(47,31,'1-31-20230713085559',38,'',0,NULL,NULL,NULL,NULL,'2023-07-13 11:02:59',NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,'2023-07-13 15:30:12','43','2023-07-27 00:00:00','in-progress',NULL,0,NULL,NULL,'2023-07-13 08:55:59','2023-07-13 15:30:12',NULL),(48,31,'1-31-20230713155746',39,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,'2023-07-13 16:42:53','44','2023-07-27 00:00:00','in-progress',NULL,0,NULL,NULL,'2023-07-13 15:57:46','2023-07-13 16:42:53',NULL),(49,31,'1-31-20230713164358',40,'',0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,'2023-07-13 16:44:54','45','2023-07-27 00:00:00','in-progress',NULL,0,NULL,NULL,'2023-07-13 16:43:58','2023-07-13 16:44:54',NULL),(50,31,'1-31-20230713181142',41,'',0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,'2023-07-13 18:14:30','46','2023-07-27 00:00:00','in-progress',NULL,0,NULL,NULL,'2023-07-13 18:11:42','2023-07-13 18:14:30',NULL),(51,31,'1-31-20230713230255',42,'',0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,'2023-07-13 23:04:53','47','2023-07-27 00:00:00','in-progress',NULL,0,NULL,NULL,'2023-07-13 23:02:55','2023-07-13 23:04:53',NULL),(52,31,'1-31-20230714224814',43,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,'2023-07-14 22:50:10','48','2023-07-28 00:00:00','canceled','2023-07-14 22:50:10',0,NULL,NULL,'2023-07-14 22:48:14','2023-07-14 22:50:10',NULL),(53,31,'1-31-20230717233042',44,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,'canceled','2023-07-17 23:31:34',0,NULL,NULL,'2023-07-17 23:30:42','2023-07-17 23:31:34',NULL),(54,31,'1-31-20230720075400',45,NULL,0,NULL,NULL,NULL,NULL,'2023-07-21 18:25:35',NULL,0,0,0,0,'2023-11-13 00:00:00',1,1,0,1,NULL,'2023-10-29 15:50:22','59','2023-08-03 00:00:00','return',NULL,0,NULL,NULL,'2023-07-20 07:54:00','2023-12-03 12:03:07',NULL),(55,31,'1-31-20230720135425',46,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,'canceled','2023-07-20 13:54:44',0,NULL,NULL,'2023-07-20 13:54:26','2023-07-20 13:54:44',NULL),(56,31,'1-31-20230720135511',47,NULL,0,NULL,NULL,NULL,NULL,'2023-07-20 13:56:28','2023-08-02 14:08:36',0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,'return','2023-07-20 13:55:52',0,NULL,NULL,'2023-07-20 13:55:11','2024-07-07 14:39:58',NULL),(57,31,'1-31-20230720181445',48,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,'2023-08-27 09:16:57','54','2023-08-05 00:00:00','in-progress',NULL,0,NULL,NULL,'2023-07-20 18:14:45','2023-08-27 09:16:57',NULL),(58,31,'1-31-20230720190302',49,NULL,0,NULL,NULL,NULL,NULL,'2023-09-01 12:09:00',NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,NULL,'2024-07-25 00:00:00','estimated',NULL,0,NULL,NULL,'2023-07-20 19:03:02','2024-07-09 20:45:40',NULL),(59,31,'1-31-20230721223404',50,'aa',0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,'49','2023-08-04 00:00:00','done','2024-02-08 14:08:50',0,NULL,NULL,'2023-07-21 22:34:04','2024-02-08 14:08:50',NULL),(60,31,'1-31-20230724204942',51,NULL,1,NULL,'2023-09-08 12:09:00',NULL,NULL,'2023-08-22 15:08:00','2023-10-28 00:00:00',0,0,0,0,'2023-10-29 13:08:11',1,1,0,1,NULL,'2023-09-28 12:01:57','58','2023-11-12 00:00:00','closed',NULL,0,NULL,NULL,'2023-07-24 20:49:42','2023-10-29 13:08:11',NULL),(61,31,'1-31-20230818211024',52,'aa',1,NULL,NULL,NULL,NULL,'2024-07-22 12:07:00',NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,'checked',NULL,0,NULL,NULL,'2023-08-18 21:10:24','2024-07-07 14:12:23',NULL),(62,44,'1-44-20230818213502',53,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,'2023-08-27 09:21:51','55','2023-09-01 00:00:00','done',NULL,0,NULL,NULL,'2023-08-18 21:35:02','2023-08-27 09:22:11',NULL),(63,42,'2-42-20230818214807',54,'aaa',0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,0,NULL,NULL,1,0,1,NULL,NULL,'53','2023-09-01 00:00:00','return',NULL,0,NULL,NULL,'2023-08-18 21:48:07','2023-10-15 16:14:06',NULL),(64,34,'2-34-20230824092953',55,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,NULL,'2023-09-07 00:00:00','in-storage',NULL,0,NULL,NULL,'2023-08-24 09:29:53','2023-08-24 09:31:47',NULL),(65,31,'1-31-20230824163354',56,'a',1,NULL,'2023-09-19 15:09:00','2023-09-22 12:09:00',NULL,'2023-09-22 12:09:00','2023-09-19 15:09:00',0,0,0,0,NULL,NULL,1,0,1,NULL,'2023-09-12 08:40:46','56','2023-09-26 00:00:00','return',NULL,0,NULL,NULL,'2023-08-24 16:33:54','2024-04-11 22:44:01',NULL),(66,34,'2-34-20230825153716',57,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,'checked',NULL,0,NULL,NULL,'2023-08-25 15:37:16','2023-08-26 16:10:21',NULL),(67,31,'1-31-20230829154024',58,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,'open',NULL,0,NULL,NULL,'2023-08-29 15:40:24','2023-08-29 15:40:24',NULL),(68,34,'2-34-20230903102801',59,NULL,0,NULL,NULL,NULL,NULL,'2024-07-10 12:07:00',NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,'checked',NULL,0,NULL,NULL,'2023-09-03 10:28:01','2024-07-07 14:39:50',NULL),(69,34,'2-34-20230903103447',60,'a',0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,'checked',NULL,0,NULL,NULL,'2023-09-03 10:34:47','2023-09-03 10:36:12',NULL),(70,31,'1-31-20230920213324',61,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,'checked',NULL,0,NULL,NULL,'2023-09-20 21:33:24','2023-10-15 14:35:23',NULL),(71,31,'1-31-20230921104737',62,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,'open',NULL,0,NULL,NULL,'2023-09-21 10:47:37','2023-09-21 10:47:37',NULL),(72,31,'1-31-20230929222022',63,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2023-10-15 15:17:45',1,1,0,1,NULL,NULL,NULL,NULL,'closed',NULL,0,NULL,NULL,'2023-09-29 22:20:22','2023-10-15 15:17:45',NULL),(73,31,'1-31-20231015213801',64,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,'2024-04-11 20:18:51','67','2024-04-26 00:00:00','done','2024-04-11 20:18:51',0,NULL,NULL,'2023-10-15 21:38:01','2024-04-11 20:18:51',NULL),(74,45,'5-45-20231021080755',65,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,0,NULL,NULL,1,0,1,NULL,NULL,NULL,'2023-11-08 00:00:00','return',NULL,0,NULL,NULL,'2023-10-21 08:07:55','2023-10-26 08:44:15',NULL),(75,45,'5-45-20231022164222',66,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,0,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,'return',NULL,0,NULL,NULL,'2023-10-22 16:42:22','2023-10-22 17:20:46',NULL),(76,45,'5-45-20231022172406',67,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,0,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,'return',NULL,0,NULL,NULL,'2023-10-22 17:24:06','2023-10-22 17:26:45',NULL),(77,45,'5-45-20231022172838',68,'ああ',0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,0,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,'return',NULL,0,NULL,NULL,'2023-10-22 17:28:38','2023-10-22 17:50:07',NULL),(78,45,'5-45-20231022195428',69,'aaa',0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,0,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,'return',NULL,0,NULL,NULL,'2023-10-22 19:54:28','2023-10-22 19:59:15',NULL),(79,45,'5-45-20231026084155',70,'z',0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,1,0,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,'return',NULL,0,NULL,NULL,'2023-10-26 08:41:55','2023-10-26 09:04:13',NULL),(81,31,'1-31-20231110211958',72,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,'open',NULL,0,NULL,NULL,'2023-11-10 21:19:58','2023-11-10 21:19:58',NULL),(82,31,'1-31-20231124114815',73,NULL,0,NULL,NULL,NULL,NULL,'2024-07-22 12:07:00',NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,'in-storage',NULL,0,NULL,NULL,'2023-11-24 11:48:15','2024-07-07 14:39:50',NULL),(83,31,'1-31-20231220140159',74,NULL,0,NULL,NULL,NULL,NULL,'2023-12-26 15:12:00',NULL,0,0,1,0,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,'return',NULL,0,NULL,NULL,'2023-12-20 14:01:59','2023-12-20 14:03:21',NULL),(84,31,'1-31-20231220140418',75,NULL,0,NULL,NULL,NULL,NULL,'2023-12-20 14:04:39',NULL,0,0,0,0,'2024-12-20 00:00:00',1,1,0,1,NULL,'2023-12-20 14:08:29','60','2024-01-03 00:00:00','done',NULL,0,NULL,NULL,'2023-12-20 14:04:18','2023-12-20 14:15:13',NULL),(85,31,'1-31-20240321211535',77,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,'2024-04-11 20:26:03','69','2024-04-05 00:00:00','done','2024-04-11 20:26:03',0,NULL,NULL,'2024-03-21 21:15:35','2024-04-11 20:26:03',NULL),(86,31,'1-31-20240410001412',78,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,50000,0,0,NULL,NULL,1,0,1,NULL,NULL,NULL,'2024-04-25 00:00:00','done','2024-04-11 19:38:34',0,NULL,NULL,'2024-04-10 00:14:12','2024-04-11 19:38:34',NULL),(87,31,'1-31-20240411120330',79,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,'2024-04-11 19:37:47','65',NULL,'done','2024-04-11 19:37:47',0,NULL,NULL,'2024-04-11 12:03:30','2024-04-11 19:37:47',NULL),(88,31,'1-31-20240411195110',80,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,'2024-04-11 20:11:25','66',NULL,'done','2024-04-11 20:11:25',0,NULL,NULL,'2024-04-11 19:51:10','2024-04-11 20:11:25',NULL),(89,31,'1-31-20240411204912',81,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,NULL,'2024-06-05 00:00:00','in-storage',NULL,0,NULL,NULL,'2024-04-11 20:49:12','2024-05-22 15:56:48',NULL),(90,31,'1-31-20240411223005',82,NULL,1,NULL,NULL,NULL,NULL,'2024-05-11 22:05:53',NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,'checked',NULL,0,NULL,NULL,'2024-04-11 22:30:05','2024-04-11 22:43:53',NULL),(91,31,'1-31-20240413091751',83,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,2,1,'2024-04-16 14:24:47','75',NULL,'done','2024-04-16 14:24:47',0,NULL,NULL,'2024-04-13 09:17:51','2024-04-16 14:24:47',NULL),(92,31,'1-31-20240413145332',84,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,1,0,0,0,'2024-04-15 21:40:01',1,1,0,2,1,NULL,'74','2024-04-30 00:00:00','closed',NULL,0,NULL,NULL,'2024-04-13 14:53:32','2024-04-15 21:40:01',NULL),(93,31,'1-31-20240510113727',32,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,2,1,NULL,NULL,NULL,'checked',NULL,0,NULL,NULL,'2024-05-10 11:37:27','2024-05-10 11:50:48',NULL),(94,31,'1-31-20240510121001',78,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,1,NULL,NULL,1,0,2,1,NULL,NULL,NULL,'open',NULL,0,NULL,NULL,'2024-05-10 12:10:01','2024-05-23 15:36:25',NULL),(95,31,'1-31-20240510124212',64,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,2,1,NULL,NULL,NULL,'open',NULL,0,NULL,NULL,'2024-05-10 12:42:12','2024-05-10 12:42:12',NULL),(96,31,'1-31-20240602132700',85,NULL,0,NULL,NULL,NULL,NULL,'2024-06-02 13:43:04',NULL,0,50000,0,0,NULL,NULL,1,0,2,1,NULL,NULL,'2024-06-14 00:00:00','in-progress',NULL,0,NULL,'osada_office','2024-06-02 13:27:00','2024-06-02 13:45:22',NULL),(97,31,'1-31-20240603091955',86,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,50000,0,0,NULL,NULL,1,0,2,1,NULL,NULL,NULL,'in-storage',NULL,0,NULL,'in_house_transportation','2024-06-03 09:19:55','2024-06-03 15:39:54',NULL),(98,34,'2-34-20240612141512',87,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,'open',NULL,0,NULL,NULL,'2024-06-12 14:15:12','2024-06-12 14:15:12',NULL);

--
