text: # Generated by Django 3.1.6 on 2021-02-15 07:19
  
  import django.core.validators
  from django.db import migrations, models
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = []
  
      operations = [
          migrations.CreateModel(
              name="Coupon",
              fields=[
                  (
                      "id",
                      models.AutoField(
                          auto_created=True,
                          primary_key=True,
                          serialize=False,
                          verbose_name="ID",
                      ),
                  ),
                  ("code", models.CharField(max_length=50, unique=True)),
                  ("valid_from", models.DateTimeField()),
                  ("valid_to", models.DateTimeField()),
                  (
                      "discount",
                      models.IntegerField(
                          validators=[
                              django.core.validators.MinValueValidator(0),
                              django.core.validators.MaxValueValidator(100),
                          ]
                      ),
                  ),
                  ("active", models.BooleanField()),
              ],
          ),
      ]
  