修改数据库结构 重新存储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:32
*/
-- ----------------------------
-- Table structure for ai_chat_records
-- ----------------------------
DROP TABLE IF EXISTS "public"."ai_chat_records";
CREATE TABLE "public"."ai_chat_records" (
"id" uuid NOT NULL,
"user_id" uuid NOT NULL,
"message" text COLLATE "pg_catalog"."default" NOT NULL,
"message_type" varchar(20) COLLATE "pg_catalog"."default" NOT NULL,
"sent_at" timestamp(6) NOT NULL,
"from" varchar(20) COLLATE "pg_catalog"."default" NOT NULL,
"emotion" varchar(50) COLLATE "pg_catalog"."default"
)
;
-- ----------------------------
-- Records of ai_chat_records
-- ----------------------------
-- ----------------------------
-- Primary Key structure for table ai_chat_records
-- ----------------------------
ALTER TABLE "public"."ai_chat_records" ADD CONSTRAINT "ai_chat_records_pkey" PRIMARY KEY ("id");