# Generated by Django 2.0.3 on 2018-04-04 07:59

import django.core.validators
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('coupons', '0001_initial'),
        ('orders', '0002_auto_20180328_0311'),
    ]

    operations = [
        migrations.CreateModel(
            name='OrderTransaction',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('merchant_order_id', models.CharField(blank=True, max_length=120, null=True)),
                ('transaction_id', models.CharField(blank=True, max_length=120, null=True)),
                ('amount', models.PositiveIntegerField(default=0)),
                ('transaction_status', models.CharField(blank=True, max_length=220, null=True)),
                ('type', models.CharField(blank=True, max_length=120)),
                ('created', models.DateTimeField(auto_now_add=True)),
            ],
            options={
                'ordering': ['-created'],
            },
        ),
        migrations.AddField(
            model_name='order',
            name='coupon',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='orders', to='coupons.Coupon'),
        ),
        migrations.AddField(
            model_name='order',
            name='discount',
            field=models.IntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(100)]),
        ),
        migrations.AddField(
            model_name='ordertransaction',
            name='order',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='orders.Order'),
        ),
    ]

47d7d89609c142d4984e347152d05e05d5c0023f
<mask token>

<mask token>


class Migration(migrations.Migration):
    <mask token>
    <mask token>

<mask token>


class Migration(migrations.Migration):
    dependencies = [('coupons', '0001_initial'), ('orders',
        '0002_auto_20180328_0311')]
    operations = [migrations.CreateModel(name='OrderTransaction', fields=[(
        'id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('merchant_order_id', models.
        CharField(blank=True, max_length=120, null=True)), (
        'transaction_id', models.CharField(blank=True, max_length=120, null
        =True)), ('amount', models.PositiveIntegerField(default=0)), (
        'transaction_status', models.CharField(blank=True, max_length=220,
        null=True)), ('type', models.CharField(blank=True, max_length=120)),
        ('created', models.DateTimeField(auto_now_add=True))], options={
        'ordering': ['-created']}), migrations.AddField(model_name='order',
        name='coupon', field=models.ForeignKey(blank=True, null=True,
        on_delete=django.db.models.deletion.PROTECT, related_name='orders',
        to='coupons.Coupon')), migrations.AddField(model_name='order', name
        ='discount', field=models.IntegerField(default=0, validators=[
        django.core.validators.MinValueValidator(0), django.core.validators
        .MaxValueValidator(100)])), migrations.AddField(model_name=
        'ordertransaction', name='order', field=models.ForeignKey(on_delete
        =django.db.models.deletion.CASCADE, to='orders.Order'))]

import django.core.validators
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
    dependencies = [('coupons', '0001_initial'), ('orders',
        '0002_auto_20180328_0311')]
    operations = [migrations.CreateModel(name='OrderTransaction', fields=[(
        'id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('merchant_order_id', models.
        CharField(blank=True, max_length=120, null=True)), (
        'transaction_id', models.CharField(blank=True, max_length=120, null
        =True)), ('amount', models.PositiveIntegerField(default=0)), (
        'transaction_status', models.CharField(blank=True, max_length=220,
        null=True)), ('type', models.CharField(blank=True, max_length=120)),
        ('created', models.DateTimeField(auto_now_add=True))], options={
        'ordering': ['-created']}), migrations.AddField(model_name='order',
        name='coupon', field=models.ForeignKey(blank=True, null=True,
        on_delete=django.db.models.deletion.PROTECT, related_name='orders',
        to='coupons.Coupon')), migrations.AddField(model_name='order', name
        ='discount', field=models.IntegerField(default=0, validators=[
        django.core.validators.MinValueValidator(0), django.core.validators
        .MaxValueValidator(100)])), migrations.AddField(model_name=
        'ordertransaction', name='order', field=models.ForeignKey(on_delete
        =django.db.models.deletion.CASCADE, to='orders.Order'))]

# Generated by Django 2.0.3 on 2018-04-04 07:59

import django.core.validators
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('coupons', '0001_initial'),
        ('orders', '0002_auto_20180328_0311'),
    ]

    operations = [
        migrations.CreateModel(
            name='OrderTransaction',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('merchant_order_id', models.CharField(blank=True, max_length=120, null=True)),
                ('transaction_id', models.CharField(blank=True, max_length=120, null=True)),
                ('amount', models.PositiveIntegerField(default=0)),
                ('transaction_status', models.CharField(blank=True, max_length=220, null=True)),
                ('type', models.CharField(blank=True, max_length=120)),
                ('created', models.DateTimeField(auto_now_add=True)),
            ],
            options={
                'ordering': ['-created'],
            },
        ),
        migrations.AddField(
            model_name='order',
            name='coupon',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='orders', to='coupons.Coupon'),
        ),
        migrations.AddField(
            model_name='order',
            name='discount',
            field=models.IntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(100)]),
        ),
        migrations.AddField(
            model_name='ordertransaction',
            name='order',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='orders.Order'),
        ),
    ]
