/*
 Navicat Premium Dump SQL

 Source Server         : ai
 Source Server Type    : PostgreSQL
 Source Server Version : 150012 (150012)
 Source Host           : localhost:5432
 Source Catalog        : ktor
 Source Schema         : public

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

 Date: 07/05/2025 15:12:19
*/


-- ----------------------------
-- Table structure for video
-- ----------------------------
DROP TABLE IF EXISTS "public"."video";
CREATE TABLE "public"."video" (
  "id" int4 NOT NULL,
  "v_name" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "v_object_name" varchar(255) COLLATE "pg_catalog"."default",
  "v_start_datetime" timestamp(0) NOT NULL,
  "v_file_name" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "v_duration" float4 NOT NULL,
  "v_size" float4 NOT NULL,
  "v_video_codec" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "v_audio_codec" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "v_overall_bit_rate" int4 NOT NULL,
  "v_resolution" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "v_a_time" timestamp(0) NOT NULL,
  "v_a_total_people" int4 NOT NULL,
  "v_a_count_people" int4 NOT NULL,
  "v_a_max_stay_time" float4 NOT NULL,
  "v_a_max_action" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "v_a_average_masked_ratio" float4 NOT NULL
)
;

-- ----------------------------
-- Records of video
-- ----------------------------
INSERT INTO "public"."video" VALUES (1, '完整喂桑视频测试', '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"."video" VALUES (0, '完整消毒视频测试', '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);
INSERT INTO "public"."video" VALUES (2, '8月16日视频测试', 'a17f669d-2852-4cbe-9196-be1cf6289034', '2024-08-16 23:03:19', '51454b0d95ec9599a3df1fe98d20bd28.mp4', 464, 33.09, 'AVC', 'AAC LC', 598182, '960x544', '2024-10-22 13:43:26', 4, 102, 202.07, 'feed', 0.52);

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