更新SQL表结构2

This commit is contained in:
BBIT-Kai
2025-09-18 17:20:30 +08:00
parent de6a350da8
commit 91c32db90a
7 changed files with 115 additions and 180 deletions
+20 -8
View File
@@ -12,7 +12,7 @@
Target Server Version : 150013 (150013)
File Encoding : 65001
Date: 22/08/2025 10:13:11
Date: 18/09/2025 16:10:54
*/
@@ -21,7 +21,7 @@
-- ----------------------------
DROP TABLE IF EXISTS "public"."videos";
CREATE TABLE "public"."videos" (
"id" uuid NOT NULL,
"id" uuid NOT NULL DEFAULT gen_random_uuid(),
"name" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"object_name" varchar(255) COLLATE "pg_catalog"."default",
"start_datetime" timestamp(0) NOT NULL,
@@ -40,12 +40,24 @@ CREATE TABLE "public"."videos" (
"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);
COMMENT ON COLUMN "public"."videos"."id" IS '主键';
COMMENT ON COLUMN "public"."videos"."name" IS '任务名称';
COMMENT ON COLUMN "public"."videos"."object_name" IS 'oss中的对象名';
COMMENT ON COLUMN "public"."videos"."start_datetime" IS '视频日期开始时间';
COMMENT ON COLUMN "public"."videos"."file_name" IS '视频文件名';
COMMENT ON COLUMN "public"."videos"."duration" IS '视频时长';
COMMENT ON COLUMN "public"."videos"."size" IS '视频文件大小';
COMMENT ON COLUMN "public"."videos"."video_codec" IS '视频编码格式';
COMMENT ON COLUMN "public"."videos"."audio_codec" IS '音频编码格式';
COMMENT ON COLUMN "public"."videos"."overall_bit_rate" IS '总体比特率';
COMMENT ON COLUMN "public"."videos"."resolution" IS '视频分辨率';
COMMENT ON COLUMN "public"."videos"."a_time" IS '分析时间';
COMMENT ON COLUMN "public"."videos"."a_total_people" IS '分析结果:出现最大人数';
COMMENT ON COLUMN "public"."videos"."a_count_people" IS '分析结果:出现人次';
COMMENT ON COLUMN "public"."videos"."a_max_stay_time" IS '分析结果:单人最大停留时间';
COMMENT ON COLUMN "public"."videos"."a_max_action" IS '分析结果:最多出现的动作';
COMMENT ON COLUMN "public"."videos"."a_average_masked_ratio" IS '分析结果:口罩平均佩戴率';
COMMENT ON TABLE "public"."videos" IS '视频分析-动作识别任务';
-- ----------------------------
-- Primary Key structure for table videos