/*
 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: 18/09/2025 16:10:25
*/


-- ----------------------------
-- Table structure for sca_images
-- ----------------------------
DROP TABLE IF EXISTS "public"."sca_images";
CREATE TABLE "public"."sca_images" (
  "id" uuid NOT NULL DEFAULT gen_random_uuid(),
  "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"."id" IS '主键';
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对象名';
COMMENT ON TABLE "public"."sca_images" IS '图像分析-蚕茧质量检测分析任务';

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