# Generated by Django 2.2.17 on 2020-12-17 06:26

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='BalanceOrder',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('service_order_id', models.CharField(max_length=255)),
                ('price', models.PositiveIntegerField()),
                ('quantity', models.PositiveSmallIntegerField(default=1)),
                ('currency', models.CharField(max_length=3)),
            ],
        ),
        migrations.CreateModel(
            name='Order',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('trust_payment_id', models.CharField(max_length=255)),
                ('metadata', models.TextField(blank=True)),
                ('payment_status', models.CharField(blank=True, max_length=255)),
                ('payment_status_code', models.CharField(blank=True, max_length=255)),
                ('payment_start_datetime', models.DateTimeField(null=True)),
                ('payment_timeout', models.SmallIntegerField(null=True)),
                ('user_ip', models.GenericIPAddressField()),
            ],
            options={
                'verbose_name': 'Заказ',
                'verbose_name_plural': 'Заказы',
            },
        ),
        migrations.CreateModel(
            name='Ticket',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('price', models.IntegerField()),
                ('currency', models.CharField(default='RUB', max_length=3)),
                ('name', models.CharField(max_length=255)),
                ('quantity', models.PositiveIntegerField(blank=True, null=True)),
                ('trust_return_path', models.CharField(blank=True, max_length=255)),
                ('trust_unsuccessful_return_path', models.CharField(blank=True, max_length=255)),
                ('is_can_pay_by_yandex_money', models.BooleanField(default=False)),
            ],
        ),
    ]
