text: # Generated by Django 3.1.1 on 2021-01-08 05:18
  
  import django.core.validators
  from django.db import migrations, models
  import django.utils.timezone
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('cart', '0006_auto_20210108_0239'),
      ]
  
      operations = [
          migrations.RemoveField(
              model_name='coupon',
              name='amount',
          ),
          migrations.AddField(
              model_name='coupon',
              name='active',
              field=models.BooleanField(default=True),
              preserve_default=False,
          ),
          migrations.AddField(
              model_name='coupon',
              name='discount',
              field=models.IntegerField(default=50, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(100)]),
              preserve_default=False,
          ),
          migrations.AddField(
              model_name='coupon',
              name='valid_from',
              field=models.DateTimeField(default=django.utils.timezone.now),
              preserve_default=False,
          ),
          migrations.AddField(
              model_name='coupon',
              name='valid_to',
              field=models.DateTimeField(default=django.utils.timezone.now),
              preserve_default=False,
          ),
          migrations.AlterField(
              model_name='coupon',
              name='code',
              field=models.CharField(max_length=50, unique=True),
          ),
      ]
  