From 5e19b9fc66c985d8f822dffd0c4b3f040bc7d926 Mon Sep 17 00:00:00 2001 From: tian <156691306@qq.com> Date: Tue, 18 Feb 2025 14:09:49 +0800 Subject: [PATCH] create_ufutx_s2_visit_url --- 1739858978_create_ufutx_s2_visit_url.up.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 1739858978_create_ufutx_s2_visit_url.up.sql diff --git a/1739858978_create_ufutx_s2_visit_url.up.sql b/1739858978_create_ufutx_s2_visit_url.up.sql new file mode 100644 index 0000000..52a2dbe --- /dev/null +++ b/1739858978_create_ufutx_s2_visit_url.up.sql @@ -0,0 +1,14 @@ +CREATE TABLE `health`.`ufutx_s2_visit_url` ( + `id` INT NOT NULL AUTO_INCREMENT , + `url` VARCHAR(2048) NOT NULL COMMENT '访问url' , + `method` VARCHAR(64) NOT NULL DEFAULT 'get' COMMENT '小写的get/post...' , + `try_max` INT NOT NULL DEFAULT '3' COMMENT '最大尝试次数' , + `try_count` INT NOT NULL DEFAULT '0' COMMENT '已经尝试次数' , + `stop_code200` TINYINT NOT NULL DEFAULT '2' COMMENT '是否遇到200返回值即停止, 1=不停止, 2=停止' , + `last_response` TEXT NULL DEFAULT NULL COMMENT '最后一次的回包' , + `status` TINYINT NOT NULL DEFAULT '1' COMMENT '状态,1=待处理,2=已处理(code200停止的),3=已处理(尝试次数满的)' , + `intervel` INT UNSIGNED NOT NULL DEFAULT '1' COMMENT '尝试间隔, 单位:秒, 不能小于1' , + `created_at` TIMESTAMP NULL DEFAULT NULL , + `updated_at` TIMESTAMP NULL DEFAULT NULL , + PRIMARY KEY (`id`) +) ENGINE = InnoDB COMMENT = 'url访问备选表'; \ No newline at end of file