更新数据库表结构
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
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: 18/09/2025 16:10:18
|
||||
*/
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for ai_reports_tables
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS "public"."ai_reports_tables";
|
||||
CREATE TABLE "public"."ai_reports_tables" (
|
||||
"id" uuid NOT NULL DEFAULT gen_random_uuid(),
|
||||
"name" varchar(255) COLLATE "pg_catalog"."default",
|
||||
"description" text COLLATE "pg_catalog"."default",
|
||||
"is_active" bool DEFAULT true,
|
||||
"create_by" uuid,
|
||||
"create_at" timestamptz(6) DEFAULT now()
|
||||
)
|
||||
;
|
||||
COMMENT ON COLUMN "public"."ai_reports_tables"."id" IS '主键';
|
||||
COMMENT ON COLUMN "public"."ai_reports_tables"."name" IS '数据库表名';
|
||||
COMMENT ON COLUMN "public"."ai_reports_tables"."description" IS '数据库描述';
|
||||
COMMENT ON COLUMN "public"."ai_reports_tables"."is_active" IS '是否可用';
|
||||
COMMENT ON COLUMN "public"."ai_reports_tables"."create_by" IS '外键,创建人,用户id';
|
||||
COMMENT ON COLUMN "public"."ai_reports_tables"."create_at" IS '创建时间';
|
||||
COMMENT ON TABLE "public"."ai_reports_tables" IS 'AI报表-数据源-数据库表';
|
||||
|
||||
-- ----------------------------
|
||||
-- Primary Key structure for table ai_reports_tables
|
||||
-- ----------------------------
|
||||
ALTER TABLE "public"."ai_reports_tables" ADD CONSTRAINT "ai_reports_tables_pkey" PRIMARY KEY ("id");
|
||||
Reference in New Issue
Block a user