/*
 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:13:11
*/


-- ----------------------------
-- Table structure for videos
-- ----------------------------
DROP TABLE IF EXISTS "public"."videos";
CREATE TABLE "public"."videos" (
  "id" uuid NOT NULL,
  "name" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "object_name" varchar(255) COLLATE "pg_catalog"."default",
  "start_datetime" timestamp(0) NOT NULL,
  "file_name" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "duration" float4 NOT NULL,
  "size" float4 NOT NULL,
  "video_codec" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "audio_codec" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "overall_bit_rate" int4 NOT NULL,
  "resolution" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "a_time" timestamp(0) NOT NULL,
  "a_total_people" int4 NOT NULL,
  "a_count_people" int4 NOT NULL,
  "a_max_stay_time" float4 NOT NULL,
  "a_max_action" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "a_average_masked_ratio" float4 NOT NULL
)
;

-- ----------------------------
-- Records of videos
-- ----------------------------
INSERT INTO "public"."videos" VALUES ('cccd78df-eb31-c502-3b45-a00460d43c7d', '完整喂桑视频测试', 'aff72221-f9d2-4e08-b20a-6cbcb32d8461', '2024-07-18 05:35:47', 'cult_sample_feed_full.mp4', 300, 47.75, 'AVC', 'AAC LC', 1335101, '2304x1296', '2024-10-18 10:21:03', 5, 60, 86, 'feed', 0.33);
INSERT INTO "public"."videos" VALUES ('1a16b6ce-a901-b8c5-607b-eebd33b0544e', '完整消毒视频测试', 'd9c73260-25dd-49d9-8fe1-5b796173e4e6', '2024-07-12 20:54:55', 'cult_sample_disinfection_full.mp4', 300, 36.4, 'AVC', 'AAC LC', 1017703, '2304x1296', '2024-10-18 10:19:05', 4, 49, 112.27, 'disinfection', 0.33);

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