from django.db import models

# Create your models here.

class Coupons(models.Model):   
    id = models.BigAutoField(primary_key=True)
    title = models.CharField(max_length=255)
    code = models.CharField(max_length=255)
    coupon_type = models.IntegerField()
    value = models.CharField(max_length=255)
    max_value = models.CharField(max_length=255)
    count = models.CharField(max_length=255)    
    description = models.TextField()
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now_add=True)

    class Meta:
        managed = True
        db_table = 'coupons_coupons'
