# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models
import django_extensions.db.fields
import mtp.apps.broker_models_hooks.models


class Migration(migrations.Migration):

    dependencies = [
        ('sync', '0003_add_index_on_update_synchornized'),
        ('broker_models_hooks_testapp', '0002_modelwithbrokerhookm2mrelatedmixin_modelwithm2m'),
    ]

    operations = [
        migrations.CreateModel(
            name='SyncableModelWithBrokerHook',
            fields=[
                ('id', django_extensions.db.fields.UUIDField(blank=True, editable=False, serialize=False, primary_key=True)),
                ('is_deleted', models.BooleanField(default=False)),
                ('update_locally', models.BooleanField(default=False)),
                ('first_update', models.ForeignKey(to='sync.Update', blank=True, null=True, related_name='broker_models_hooks_testapp_syncablemodelwithbrokerhook_by_first')),
                ('last_update', models.ForeignKey(to='sync.Update', blank=True, null=True, related_name='broker_models_hooks_testapp_syncablemodelwithbrokerhook_by_last')),
            ],
            options={
                'abstract': False,
            },
            bases=(mtp.apps.broker_models_hooks.models.BrokerHookMixin, models.Model),
        ),
    ]
