from django.db import models
from django.db.models.deletion import CASCADE
from django.db.models.fields import AutoField, CharField, DateField
from django_resized import ResizedImageField

# Create your models here.

class Categories(models.Model):
    name = models.CharField(max_length=255, blank=False, null=False)
    image = ResizedImageField(upload_to="categories", default="", blank=False, null=False, quality=100, force_format='WEBP')
    status_type = ((0, 'In Active'), (1, 'Active'))
    status = models.IntegerField(default = 0, choices=status_type)