# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-11-16 12:57
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion
import pcart_import.models
import uuid


class Migration(migrations.Migration):

    dependencies = [
        ('pcart_import', '0011_auto_20171116_1424'),
    ]

    operations = [
        migrations.CreateModel(
            name='YMLPriceList',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('file', models.FileField(help_text='Price list file.', upload_to=pcart_import.models.generate_yml_price_list_filename, verbose_name='Price list')),
                ('status', models.CharField(choices=[('new', 'New'), ('processing', 'Processing'), ('success', 'Success'), ('with_errors', 'With errors')], default='new', max_length=70, verbose_name='Status')),
                ('added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
                ('changed', models.DateTimeField(auto_now=True, verbose_name='Changed')),
                ('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='price_lists', to='pcart_import.YMLImportProfile', verbose_name='Import profile')),
            ],
            options={
                'verbose_name_plural': 'YML Price lists',
                'ordering': ['added'],
                'verbose_name': 'YML Price list',
            },
        ),
    ]
