Impelmented inital memory system
This commit is contained in:
		| @ -27,6 +27,7 @@ model User { | ||||
|   id              Int       @id @default(autoincrement()) | ||||
|   userFqn         String    @unique | ||||
|   lastRespondedTo DateTime? | ||||
|   memory          UserMemory? | ||||
| } | ||||
|  | ||||
| model Reaction { | ||||
| @ -38,4 +39,37 @@ model Reaction { | ||||
|    | ||||
|   @@unique([statusId]) // Prevent multiple reactions to same status | ||||
|   @@map("reactions") | ||||
| } | ||||
|  | ||||
| model UserMemory { | ||||
|   id                      Int      @id @default(autoincrement()) | ||||
|   userFqn                String   @unique | ||||
|   personalityTraits       String   @default("[]") // JSON string of personality observations | ||||
|   runningGags            String   @default("[]") // JSON string of running jokes/gags | ||||
|   relationships          String   @default("[]") // JSON string of relationship dynamics with bot | ||||
|   interests              String   @default("[]") // JSON string of user interests | ||||
|   backstory              String   @default("[]") // JSON string of biographical elements | ||||
|   lastInteractionSummary String?  // Brief summary of last chat | ||||
|   interactionCount       Int      @default(0) | ||||
|   lastUpdated           DateTime @default(now()) @updatedAt | ||||
|   createdAt             DateTime @default(now()) | ||||
|    | ||||
|   // Relation to existing User model | ||||
|   user User @relation(fields: [userFqn], references: [userFqn]) | ||||
|    | ||||
|   @@map("user_memories") | ||||
| } | ||||
|  | ||||
| model InteractionLog { | ||||
|   id              Int      @id @default(autoincrement()) | ||||
|   userFqn         String | ||||
|   conversationSnapshot String // Key parts of the conversation | ||||
|   sentiment       String   // positive, negative, teasing, etc. | ||||
|   extractedTopics String   @default("[]") // JSON string of topics discussed | ||||
|   memorableQuotes String   @default("[]") // JSON string of funny/notable quotes | ||||
|   botEmotionalState String? // How the bot should "feel" about this interaction | ||||
|   createdAt       DateTime @default(now()) | ||||
|    | ||||
|   @@map("interaction_logs") | ||||
|   @@index([userFqn, createdAt]) | ||||
| } | ||||
		Reference in New Issue
	
	Block a user