/*
 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");
