# -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2017-03-16 10:19
from __future__ import unicode_literals

import datetime
from django.db import migrations, models
import django.utils.timezone
import model_utils.fields


class Migration(migrations.Migration):

    dependencies = [
        ('dir_data_sync', '0002_auto_20170309_1933'),
    ]

    operations = [
        migrations.CreateModel(
            name='SyncStatistics',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('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')),
                ('dir_org_id', models.CharField(db_index=True, help_text='\u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0432 \u0414\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438', max_length=16)),
                ('last_pull_status', models.CharField(choices=[('success', 'success'), ('failed', 'failed')], default='success', help_text='\u0427\u0435\u043c \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b\u0430\u0441\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f', max_length=100)),
                ('last_pull_duration', models.DurationField(default=datetime.timedelta(0), help_text='\u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u0438\u043b\u0430\u0441\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f')),
                ('successful_attempts', models.PositiveIntegerField(default=0)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.RemoveField(
            model_name='changeevent',
            name='last_pull_duration',
        ),
        migrations.RemoveField(
            model_name='changeevent',
            name='last_pull_status',
        ),
    ]
