from django.db import models

class BotSettings(models.Model):
    system_prompt = models.TextField(default="You are a helpful assistant.")
    is_active = models.BooleanField(default=True)
    verify_token = models.CharField(max_length=255, default="my_secure_token_123")

    def __str__(self):
        return f"Bot Settings (Active: {self.is_active})"

class Message(models.Model):
    sender_number = models.CharField(max_length=50)
    message_in = models.TextField()
    message_out = models.TextField(null=True, blank=True)
    timestamp = models.DateTimeField(auto_now_add=True)

    def __str__(self):
        return f"From {self.sender_number} at {self.timestamp}"