# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-11-24 14:10
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    dependencies = [
        ('pcart_catalog', '0074_auto_20171030_1946'),
        ('pcart_import', '0019_auto_20171124_1333'),
    ]

    operations = [
        migrations.CreateModel(
            name='YMLImportHistory',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('success', models.BooleanField(default=True, verbose_name='Success')),
                ('message', models.TextField(blank=True, default='', verbose_name='Message')),
                ('added', models.DateTimeField(auto_now_add=True, verbose_name='Added')),
                ('price_list', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='history', to='pcart_import.YMLPriceList', verbose_name='Price list')),
                ('product', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='yml_import_history', to='pcart_catalog.Product', verbose_name='Product')),
            ],
            options={
                'ordering': ['-added'],
                'verbose_name_plural': 'YML Import history',
                'verbose_name': 'YML Import history',
            },
        ),
        migrations.AlterModelOptions(
            name='xlsimporthistory',
            options={'ordering': ['-added'], 'verbose_name': 'XLS Import history', 'verbose_name_plural': 'XLS Import history'},
        ),
    ]
