# Generated by Django 3.1.2 on 2020-10-07 10:10

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


class Migration(migrations.Migration):

    dependencies = [
        ('contenttypes', '0002_remove_content_type_name'),
        ('app', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='MultipleDBGenericManyToManyModel',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
            ],
        ),
        migrations.AlterField(
            model_name='genericmanytomanymodelgenericmanytomanyrelation',
            name='generic_many_to_many_model',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='_related_objects', related_query_name='related_objects', to='app.genericmanytomanymodel'),
        ),
        migrations.AlterUniqueTogether(
            name='genericmanytomanymodelgenericmanytomanyrelation',
            unique_together={('generic_many_to_many_model', 'object_ct_id', 'object_id')},
        ),
        migrations.CreateModel(
            name='MultipleDBGenericManyToManyModelGenericManyToManyRelation',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created_at', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='created at')),
                ('changed_at', models.DateTimeField(auto_now=True, db_index=True, verbose_name='changed at')),
                ('object_ct_id', models.PositiveSmallIntegerField(db_index=True, verbose_name='content type of the related object')),
                ('object_id', models.TextField(db_index=True, verbose_name='ID of the related object')),
                ('multiple_db_generic_many_to_many_model', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='_related_objects', related_query_name='related_objects', to='app.multipledbgenericmanytomanymodel')),
            ],
            options={
                'db_tablespace': '',
                'unique_together': {('multiple_db_generic_many_to_many_model', 'object_ct_id', 'object_id')},
            },
        ),
    ]
