<gh_stars>1-10
# Generated by Django 2.1.2 on 2018-10-09 16:22

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import model_utils.fields


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Payment',
            fields=[
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                ('is_removed', models.BooleanField(default=False)),
                ('paymentID', models.CharField(editable=False, max_length=50, primary_key=True, serialize=False, unique=True)),
                ('createTime', models.TextField()),
                ('orgLogo', models.URLField(max_length=250)),
                ('orgName', models.CharField(max_length=100)),
                ('transactionStatus', models.CharField(max_length=50)),
                ('amount', models.CharField(max_length=50)),
                ('currency', models.CharField(max_length=20)),
                ('intent', models.CharField(max_length=20)),
                ('merchantInvoiceNumber', models.CharField(max_length=30)),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='payments', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'db_table': 'payments',
                'ordering': ('-created',),
            },
        ),
        migrations.CreateModel(
            name='Transaction',
            fields=[
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                ('is_removed', models.BooleanField(default=False)),
                ('paymentID', models.CharField(max_length=50)),
                ('createTime', models.TextField()),
                ('updateTime', models.TextField()),
                ('trxID', models.CharField(editable=False, max_length=50, primary_key=True, serialize=False, unique=True)),
                ('transactionStatus', models.CharField(max_length=20)),
                ('amount', models.CharField(max_length=20)),
                ('currency', models.CharField(max_length=20)),
                ('intent', models.CharField(max_length=20)),
                ('merchantInvoiceNumber', models.CharField(max_length=30)),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='transactions', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'db_table': 'transactions',
                'ordering': ('-created',),
            },
        ),
    ]
