from django.db import models


class Item(models.Model):
    """Example model — rename or replace with your own."""

    title = models.CharField(max_length=200)
    description = models.TextField(blank=True)
    is_active = models.BooleanField(default=True)
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)

    class Meta:
        ordering = ["-created_at"]
        verbose_name = "Item"
        verbose_name_plural = "Items"

    def __str__(self):
        return self.title
