from django.db import models

class ChatHistory(models.Model):
    user_message = models.TextField()
    ai_reply = models.TextField()
    timestamp = models.DateTimeField(auto_now_add=True)

    def __str__(self):
        return f"User: {self.user_message[:50]} | AI: {self.ai_reply[:50]}"
