Bladeren bron

feat: 提交sql脚本文件

WANGKANG 1 jaar geleden
bovenliggende
commit
f3e745dff5
2 gewijzigde bestanden met toevoegingen van 90 en 0 verwijderingen
  1. 71 0
      script/sql/postgresql/video2image.sql
  2. 19 0
      script/sql/postgresql/video2imageMenu(postgresql).sql

+ 71 - 0
script/sql/postgresql/video2image.sql

@@ -0,0 +1,71 @@
+/*
+ Navicat Premium Data Transfer
+
+ Source Server         : PostgreSql
+ Source Server Type    : PostgreSQL
+ Source Server Version : 160004
+ Source Host           : localhost:5432
+ Source Catalog        : taais
+ Source Schema         : public
+
+ Target Server Type    : PostgreSQL
+ Target Server Version : 160004
+ File Encoding         : 65001
+
+ Date: 16/08/2024 21:14:02
+*/
+
+
+-- ----------------------------
+-- Table structure for video2image
+-- ----------------------------
+DROP TABLE IF EXISTS "public"."video2image";
+CREATE TABLE "public"."video2image" (
+  "id" "pg_catalog"."int8" NOT NULL,
+  "name" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
+  "status" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
+  "out_path" "pg_catalog"."text" COLLATE "pg_catalog"."default",
+  "start_time" "pg_catalog"."timestamp",
+  "end_time" "pg_catalog"."timestamp",
+  "cost_second" "pg_catalog"."int8",
+  "log" "pg_catalog"."text" COLLATE "pg_catalog"."default",
+  "create_by" "pg_catalog"."int8",
+  "create_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
+  "update_by" "pg_catalog"."int8",
+  "update_time" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
+  "remarks" "pg_catalog"."varchar" COLLATE "pg_catalog"."default",
+  "del_flag" "pg_catalog"."int2" NOT NULL DEFAULT '0'::smallint,
+  "path" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" NOT NULL,
+  "fps" "pg_catalog"."int8" NOT NULL DEFAULT 1,
+  "tenant_id" "pg_catalog"."int8",
+  "version" "pg_catalog"."int4"
+)
+;
+COMMENT ON COLUMN "public"."video2image"."id" IS '主键ID';
+COMMENT ON COLUMN "public"."video2image"."name" IS '视频名称';
+COMMENT ON COLUMN "public"."video2image"."status" IS '任务状态';
+COMMENT ON COLUMN "public"."video2image"."out_path" IS '切割好的图片的保存路径';
+COMMENT ON COLUMN "public"."video2image"."start_time" IS '开始时间';
+COMMENT ON COLUMN "public"."video2image"."end_time" IS '结束时间';
+COMMENT ON COLUMN "public"."video2image"."cost_second" IS '耗时';
+COMMENT ON COLUMN "public"."video2image"."log" IS '日志';
+COMMENT ON COLUMN "public"."video2image"."create_by" IS '创建人';
+COMMENT ON COLUMN "public"."video2image"."create_time" IS '创建时间';
+COMMENT ON COLUMN "public"."video2image"."update_by" IS '更新人';
+COMMENT ON COLUMN "public"."video2image"."update_time" IS '更新时间';
+COMMENT ON COLUMN "public"."video2image"."remarks" IS '备注';
+COMMENT ON COLUMN "public"."video2image"."del_flag" IS '逻辑删除标志(0代表存在 1代表删除)';
+COMMENT ON COLUMN "public"."video2image"."path" IS '视频本身保存路径';
+COMMENT ON COLUMN "public"."video2image"."fps" IS '切割帧率,默认1';
+COMMENT ON COLUMN "public"."video2image"."tenant_id" IS '租户编码';
+COMMENT ON COLUMN "public"."video2image"."version" IS '乐观锁';
+COMMENT ON TABLE "public"."video2image" IS '视频转图片表';
+
+-- ----------------------------
+-- Records of video2image
+-- ----------------------------
+
+-- ----------------------------
+-- Primary Key structure for table video2image
+-- ----------------------------
+ALTER TABLE "public"."video2image" ADD CONSTRAINT "video2image_pkey" PRIMARY KEY ("id");

+ 19 - 0
script/sql/postgresql/video2imageMenu(postgresql).sql

@@ -0,0 +1,19 @@
+-- 菜单 SQL
+insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
+values(2024081614402000, '视频转图片', 3, '1', 'video2image', 'demo/video2image/index', 1, 0, 'C', '0', '0', 'demo:video2image:list', '', 1, now(), 1, null, '视频转图片菜单');
+
+-- 按钮 SQL
+insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
+values(2024081614402001, '视频转图片查询', 2024081614402000, '1',  '', '', 1, 0, 'F', '0', '0', 'demo:video2image:query',        '', 1, now(), 1, null, '');
+
+insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
+values(2024081614402002, '视频转图片新增', 2024081614402000, '2',  '', '', 1, 0, 'F', '0', '0', 'demo:video2image:add',          '', 1, now(), 1, null, '');
+
+insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
+values(2024081614402003, '视频转图片修改', 2024081614402000, '3',  '', '', 1, 0, 'F', '0', '0', 'demo:video2image:edit',         '', 1, now(), 1, null, '');
+
+insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
+values(2024081614402004, '视频转图片删除', 2024081614402000, '4',  '', '', 1, 0, 'F', '0', '0', 'demo:video2image:remove',       '', 1, now(), 1, null, '');
+
+insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
+values(2024081614402005, '视频转图片导出', 2024081614402000, '5',  '', '', 1, 0, 'F', '0', '0', 'demo:video2image:export',       '', 1, now(), 1, null, '');