瀏覽代碼

Merge remote-tracking branch 'origin/develop_allen' into develop_allen

wanggaokun 1 年之前
父節點
當前提交
03c8af743d
共有 1 個文件被更改,包括 19 次插入10 次删除
  1. 19 10
      script/sql/postgresql/data(postgresql).sql

+ 19 - 10
script/sql/postgresql/data(postgresql).sql

@@ -80,21 +80,24 @@ INSERT INTO public.sys_menu (menu_id, menu_name, parent_id, order_num, path, com
 INSERT INTO public.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param, is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by, create_time, update_by, update_time, remark) VALUES (2, '数据管理', 0, 2, 'data', NULL, NULL, NULL, '1', '0', 'M', '0', '0', NULL, 'data', 0, 1, NULL, 1, NULL, '数据管理目录');
 
 -- 算法配置表
+DROP TABLE IF EXISTS public.algorithm_config;
+
 CREATE TABLE "public"."algorithm_config" (
  "id" "pg_catalog"."int8" NOT NULL,
  "subsystem" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" NOT NULL,
  "algorithm_name" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" NOT NULL,
  "algorithm_address" "pg_catalog"."varchar" COLLATE "pg_catalog"."default" NOT NULL,
  "parameter_config" "pg_catalog"."text" COLLATE "pg_catalog"."default",
- "created_by" "pg_catalog"."int8",
- "created_at" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
- "updated_by" "pg_catalog"."int8",
- "updated_at" "pg_catalog"."timestamp" DEFAULT CURRENT_TIMESTAMP,
+ "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" DEFAULT NULL::character varying,
  "tenant_id" "pg_catalog"."int8" DEFAULT 0,
+ version           integer                 DEFAULT 0,
+ del_flag      smallint               DEFAULT '0'::smallint         NOT NULL,
  CONSTRAINT "algorithm_config_pkey" PRIMARY KEY ("id")
-)
-;
+);
 
 ALTER TABLE "public"."algorithm_config"
     OWNER TO "postgres";
@@ -109,13 +112,19 @@ COMMENT ON COLUMN "public"."algorithm_config"."algorithm_address" IS '算法地
 
 COMMENT ON COLUMN "public"."algorithm_config"."parameter_config" IS '参数配置';
 
-COMMENT ON COLUMN "public"."algorithm_config"."created_by" IS '创建人';
+COMMENT ON COLUMN public.algorithm_config.version IS '乐观锁';
+
+COMMENT ON COLUMN public.mf_customer.tenant_id IS '租户编码';
+
+COMMENT ON COLUMN public.mf_customer.del_flag IS '逻辑删除标志(0代表存在 1代表删除)';
+
+COMMENT ON COLUMN "public"."algorithm_config"."create_by" IS '创建人';
 
-COMMENT ON COLUMN "public"."algorithm_config"."created_at" IS '创建时间';
+COMMENT ON COLUMN "public"."algorithm_config"."create_time" IS '创建时间';
 
-COMMENT ON COLUMN "public"."algorithm_config"."updated_by" IS '更新人';
+COMMENT ON COLUMN "public"."algorithm_config"."update_by" IS '更新人';
 
-COMMENT ON COLUMN "public"."algorithm_config"."updated_at" IS '更新时间';
+COMMENT ON COLUMN "public"."algorithm_config"."update_time" IS '更新时间';
 
 COMMENT ON COLUMN "public"."algorithm_config"."remarks" IS '备注';