from django.db import models
from django.utils.translation import gettext_lazy as _


class Testimonial(models.Model):
    name = models.CharField(_("Name"), max_length=200)
    message = models.TextField(_("Message"), blank=True, null=True, max_length=400)
    image = models.ImageField(_('image'), default='default/user.png', upload_to='testimonial')
    profile = models.CharField(_("Profile"), max_length=200, default='Student')
    status = models.BooleanField(_('Status'), default=True)
    created_at = models.DateTimeField(_('created_at'), auto_now_add=True)

    def __str__(self):
        return self.name

    class Meta:
        db_table = 'testimonials'
        verbose_name_plural = 'Testimonials'
