1 from django.db import models, migrations
2 import django.db.models.deletion
5 class Migration(migrations.Migration):
8 ('contenttypes', '0001_initial'),
12 migrations.CreateModel(
15 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
16 ('object_id', models.IntegerField()),
17 ('slug', models.SlugField(max_length=120, verbose_name='Slug', blank=True)),
18 ('category', models.CharField(db_index=True, max_length=64, null=True, blank=True)),
19 ('created_at', models.DateTimeField(editable=False, db_index=True)),
20 ('deleted_at', models.DateTimeField(auto_now_add=True, db_index=True)),
21 ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
25 bases=(models.Model,),
27 migrations.AlterUniqueTogether(
29 unique_together=set([('content_type', 'object_id')]),