数据库初始化SQL文件
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
Navicat Premium Dump SQL
|
||||
|
||||
Source Server : ai
|
||||
Source Server Type : PostgreSQL
|
||||
Source Server Version : 150012 (150012)
|
||||
Source Host : localhost:5432
|
||||
Source Catalog : ktor
|
||||
Source Schema : public
|
||||
|
||||
Target Server Type : PostgreSQL
|
||||
Target Server Version : 150012 (150012)
|
||||
File Encoding : 65001
|
||||
|
||||
Date: 07/05/2025 15:10:52
|
||||
*/
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for ai_profiles
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS "public"."ai_profiles";
|
||||
CREATE TABLE "public"."ai_profiles" (
|
||||
"id" int4 NOT NULL DEFAULT nextval('ai_profiles_id_seq'::regclass),
|
||||
"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
|
||||
-- ----------------------------
|
||||
INSERT INTO "public"."ai_profiles" VALUES (0, '璃', '/avatar/wall.png', '{"gender": "woman"}', 't', '2024-12-09 21:59:23', 't');
|
||||
INSERT INTO "public"."ai_profiles" VALUES (1, '泷', '/avatar/wall.png', '{"gender": "man"}', 't', '2024-12-09 21:59:23', 't');
|
||||
|
||||
-- ----------------------------
|
||||
-- Primary Key structure for table ai_profiles
|
||||
-- ----------------------------
|
||||
ALTER TABLE "public"."ai_profiles" ADD CONSTRAINT "ai_profiles_pkey" PRIMARY KEY ("id");
|
||||
Reference in New Issue
Block a user