/*
 Navicat Premium Dump SQL

 Source Server         : 智能控制平台
 Source Server Type    : PostgreSQL
 Source Server Version : 150013 (150013)
 Source Host           : 10.10.10.9:5432
 Source Catalog        : ktor2
 Source Schema         : public

 Target Server Type    : PostgreSQL
 Target Server Version : 150013 (150013)
 File Encoding         : 65001

 Date: 22/08/2025 10:12:49
*/


-- ----------------------------
-- Table structure for sca_images
-- ----------------------------
DROP TABLE IF EXISTS "public"."sca_images";
CREATE TABLE "public"."sca_images" (
  "id" uuid NOT NULL,
  "upload_datetime" timestamp(6),
  "file_name" varchar(255) COLLATE "pg_catalog"."default",
  "resolution" varchar(255) COLLATE "pg_catalog"."default",
  "size" float8,
  "cocoon_count" int2,
  "max_confidence" float4,
  "min_confidence" float4,
  "average_confidence" float4,
  "other_info" json,
  "processing_time" timestamp(6) NOT NULL,
  "name" varchar(255) COLLATE "pg_catalog"."default",
  "image_pre" varchar(255) COLLATE "pg_catalog"."default",
  "image_after" varchar(255) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."sca_images"."upload_datetime" IS '图片上传时间';
COMMENT ON COLUMN "public"."sca_images"."file_name" IS '图片原始文件名';
COMMENT ON COLUMN "public"."sca_images"."resolution" IS '图片分辨率';
COMMENT ON COLUMN "public"."sca_images"."size" IS '图片大小';
COMMENT ON COLUMN "public"."sca_images"."cocoon_count" IS '识别到的蚕茧总数';
COMMENT ON COLUMN "public"."sca_images"."max_confidence" IS '最高置信度';
COMMENT ON COLUMN "public"."sca_images"."min_confidence" IS '最低置信度';
COMMENT ON COLUMN "public"."sca_images"."average_confidence" IS '平均置信度';
COMMENT ON COLUMN "public"."sca_images"."other_info" IS '识别到的蚕茧信息（使用json表示）';
COMMENT ON COLUMN "public"."sca_images"."processing_time" IS '分析耗时';
COMMENT ON COLUMN "public"."sca_images"."name" IS '任务名';
COMMENT ON COLUMN "public"."sca_images"."image_pre" IS '识别前OSS对象名';
COMMENT ON COLUMN "public"."sca_images"."image_after" IS '识别后OSS对象名';

-- ----------------------------
-- Records of sca_images
-- ----------------------------
INSERT INTO "public"."sca_images" VALUES ('5de4a6a1-c043-ed34-ab7c-0c9e9c6b2eb4', '2025-03-18 14:30:00', 'image_001.jpg', '1920x1080', 2.5, 15, 0.98, 0.75, 0.85, '{
  "正茧": 15,
  "普茧": 0,
  "黄斑": 0,
  "双宫": 0
}', '2025-03-18 14:31:05', '测试用例1', 'bfca3a998659ec179a76ac99666b529.jpg', '62d69fdcbd4ebebda63301ce0582564.jpg');

-- ----------------------------
-- Primary Key structure for table sca_images
-- ----------------------------
ALTER TABLE "public"."sca_images" ADD CONSTRAINT "sca_images_pkey" PRIMARY KEY ("id");
