a4a8a8486c47fd7ab35d9e83a22d343c05353d8a
[wolnelektury.git] / src / api / migrations / 0001_initial.py
1 from django.db import models, migrations
2 import django.db.models.deletion
3
4
5 class Migration(migrations.Migration):
6
7     dependencies = [
8         ('contenttypes', '0001_initial'),
9     ]
10
11     operations = [
12         migrations.CreateModel(
13             name='Deleted',
14             fields=[
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')),
22             ],
23             options={
24             },
25             bases=(models.Model,),
26         ),
27         migrations.AlterUniqueTogether(
28             name='deleted',
29             unique_together=set([('content_type', 'object_id')]),
30         ),
31     ]