/*
 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:11:41
*/


-- ----------------------------
-- Table structure for chat_records
-- ----------------------------
DROP TABLE IF EXISTS "public"."chat_records";
CREATE TABLE "public"."chat_records" (
  "id" int4 NOT NULL DEFAULT nextval('chat_records_id_seq'::regclass),
  "user_id" int4 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 chat_records
-- ----------------------------
INSERT INTO "public"."chat_records" VALUES (4, 1, 'hi', 'text', '2024-12-10 14:19:04.433006', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (5, 1, 'hi', 'text', '2024-12-10 14:20:28.068751', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (9, 1, 'hi', 'text', '2024-12-10 14:21:28.814157', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (10, 1, 'Hello! How can I assist you today?', 'text', '2024-12-10 14:21:56.268483', 'AI', 'normal');
INSERT INTO "public"."chat_records" VALUES (11, 1, 'haha', 'text', '2024-12-10 14:24:15.369111', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (12, 1, 'It looks like you might be trying to convey a positive vibe, but I''m not sure what''s funny! Would you like to share what''s on your mind? I''m all ears!', 'text', '2024-12-10 14:24:16.710076', 'AI', 'normal');
INSERT INTO "public"."chat_records" VALUES (13, 1, 'ohoh', 'text', '2024-12-10 14:24:21.108955', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (14, 1, 'It seems like you''re feeling excited about something! Would you like to share what''s got you so enthusiastic?', 'text', '2024-12-10 14:24:21.688398', 'AI', 'normal');
INSERT INTO "public"."chat_records" VALUES (15, 1, 'i need help', 'text', '2024-12-10 14:24:30.593255', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (16, 1, 'What''s going on? Do you have a specific problem or question you''d like help with? I''m here to listen and offer guidance.', 'text', '2024-12-10 14:24:31.206735', 'AI', 'normal');
INSERT INTO "public"."chat_records" VALUES (17, 1, 'can you draw a cat', 'text', '2024-12-10 14:24:40.431841', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (18, 1, 'I''m not capable of physically drawing images, but I can create a simple ASCII art cat for you:

 /_/\
( o.o )
 > ^ <
______

How do you like it?

Would you like me to try creating a more complex image using ASCII art?', 'text', '2024-12-10 14:24:41.437823', 'AI', 'normal');
INSERT INTO "public"."chat_records" VALUES (19, 1, 'hi', 'text', '2024-12-10 15:46:32.733993', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (20, 1, 'hi', 'text', '2024-12-10 15:48:17.629622', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (21, 1, 'hi', 'text', '2024-12-10 15:50:25.403429', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (22, 1, 'It sounds like we''re starting with a playful vibe! What''s on your mind? Want to chat about something in particular or just shoot the breeze?', 'text', '2024-12-10 15:50:26.696151', 'AI', 'normal');
INSERT INTO "public"."chat_records" VALUES (23, 1, 'my name is kai', 'text', '2024-12-10 15:50:37.89681', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (24, 1, 'It seems like we''re getting the party started! What''s on your mind? Want to chat about something in particular or just shoot the breeze?', 'text', '2024-12-10 15:50:38.654781', 'AI', 'normal');
INSERT INTO "public"."chat_records" VALUES (25, 1, 'hi', 'text', '2024-12-10 15:52:21.528397', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (26, 1, 'hi', 'text', '2024-12-10 15:58:02.174658', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (27, 1, '123', 'text', '2024-12-10 15:58:31.236287', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (28, 1, 'hi', 'text', '2024-12-10 15:59:41.092132', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (32, 1, 'hi', 'text', '2024-12-10 16:04:27.895187', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (33, 1, 'It seems like you''re trying to say something, but it''s a bit hard to decipher. Would you like to type out what''s on your mind or need assistance with anything? I''m here to help!', 'text', '2024-12-10 16:04:31.943038', 'AI', 'normal');
INSERT INTO "public"."chat_records" VALUES (34, 1, 'hi', 'text', '2024-12-10 16:15:37.578786', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (35, 1, 'hi,', 'text', '2024-12-10 16:18:02.406613', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (36, 1, 'hi', 'text', '2024-12-10 16:19:29.660508', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (37, 1, 'You''re saying "hi" three times in a row! How''s your day going so far?', 'text', '2024-12-10 16:19:30.573053', 'AI', 'normal');
INSERT INTO "public"."chat_records" VALUES (38, 1, 'my name is kai', 'text', '2024-12-10 16:19:39.19225', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (39, 1, 'It looks like you''re saying "Hi" three times in a row! I''m happy to chat with you, Kai. How''s your day going so far?', 'text', '2024-12-10 16:19:39.889584', 'AI', 'normal');
INSERT INTO "public"."chat_records" VALUES (40, 1, '1', 'text', '2024-12-10 16:25:49.24167', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (41, 1, '1', 'text', '2024-12-10 16:26:32.998032', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (42, 1, 'ni', 'text', '2024-12-10 16:26:58.663429', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (43, 1, 'It looks like you''re trying to communicate in Morse code, Kai!

If I decode it correctly, the message would be:

"H-E-L-L-O"

Am I right?', 'text', '2024-12-10 16:26:59.751114', 'AI', 'normal');
INSERT INTO "public"."chat_records" VALUES (44, 1, 'my name is kai', 'text', '2024-12-10 16:27:05.107474', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (45, 1, 'Nice to meet you, Kai! How''s your day going so far?', 'text', '2024-12-10 16:27:05.707862', 'AI', 'normal');
INSERT INTO "public"."chat_records" VALUES (46, 1, 'i am fine ', 'text', '2024-12-10 16:27:15.210821', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (47, 1, 'It''s nice to meet you, Kai. It sounds like everything is good with you right now. Is there anything on your mind that you''d like to talk about or any questions you have? I''m here to listen.', 'text', '2024-12-10 16:27:16.083285', 'AI', 'normal');
INSERT INTO "public"."chat_records" VALUES (48, 1, 'what is my name', 'text', '2024-12-10 16:27:24.049851', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (49, 1, 'Your name is Kai.', 'text', '2024-12-10 16:27:24.594105', 'AI', 'normal');
INSERT INTO "public"."chat_records" VALUES (50, 1, 'yeah i i am happy you remember me', 'text', '2024-12-10 16:31:06.337574', 'User', 'normal');
INSERT INTO "public"."chat_records" VALUES (51, 1, 'I''m glad to hear that I can recall our conversation, but I don''t actually have any information about your name or personal identity. This is the beginning of our conversation, and I''m starting from a blank slate. Would you like to share your name with me?', 'text', '2024-12-10 16:31:07.277692', 'AI', 'normal');

-- ----------------------------
-- Primary Key structure for table chat_records
-- ----------------------------
ALTER TABLE "public"."chat_records" ADD CONSTRAINT "chat_records_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Foreign Keys structure for table chat_records
-- ----------------------------
ALTER TABLE "public"."chat_records" ADD CONSTRAINT "chat_records_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."users" ("id") ON DELETE CASCADE ON UPDATE NO ACTION;
