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