修改数据库结构 重新存储SQL初始化文件

This commit is contained in:
BBIT-Kai
2025-08-22 10:14:11 +08:00
parent f79a82bb87
commit c431679395
12 changed files with 314 additions and 422 deletions
+41
View File
@@ -0,0 +1,41 @@
/*
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: 22/08/2025 10:12:42
*/
-- ----------------------------
-- Table structure for ai_profiles
-- ----------------------------
DROP TABLE IF EXISTS "public"."ai_profiles";
CREATE TABLE "public"."ai_profiles" (
"id" uuid NOT NULL,
"name" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
"avatar_url" varchar(255) COLLATE "pg_catalog"."default",
"ai_personality" json NOT NULL,
"memory_enabled" bool NOT NULL DEFAULT true,
"creation_date" timestamp(6) NOT NULL,
"is_active" bool NOT NULL DEFAULT true
)
;
-- ----------------------------
-- Records of ai_profiles
-- ----------------------------
-- ----------------------------
-- Primary Key structure for table ai_profiles
-- ----------------------------
ALTER TABLE "public"."ai_profiles" ADD CONSTRAINT "ai_profiles_pkey" PRIMARY KEY ("id");