Exesize
83 строки · 4.4 Кб
1# Generated by Django 4.0.4 on 2022-05-19 21:30
2
3import django.db.models.deletion4from django.db import migrations, models5
6
7class Migration(migrations.Migration):8
9initial = True10
11dependencies = [12]13
14operations = [15migrations.CreateModel(16name='Courses',17fields=[18('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),19('created_at', models.DateTimeField(auto_now_add=True, verbose_name='Создан')),20('updated_at', models.DateTimeField(auto_now=True, verbose_name='Обновлён')),21('deleted', models.BooleanField(default=False, verbose_name='Удалён')),22('name', models.CharField(max_length=256, verbose_name='Name')),23('description', models.TextField(blank=True, null=True, verbose_name='Описание')),24('description_as_markdown', models.BooleanField(default=False, verbose_name='As markdown')),25('cost', models.DecimalField(decimal_places=2, default=0, max_digits=8, verbose_name='Цена')),26('cover', models.CharField(default='no_image.svg', max_length=25, verbose_name='Обложка')),27],28options={29'abstract': False,30},31),32migrations.CreateModel(33name='News',34fields=[35('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),36('created_at', models.DateTimeField(auto_now_add=True, verbose_name='Создан')),37('updated_at', models.DateTimeField(auto_now=True, verbose_name='Обновлён')),38('deleted', models.BooleanField(default=False, verbose_name='Удалён')),39('title', models.CharField(max_length=256, verbose_name='Title')),40('preambule', models.CharField(max_length=1024, verbose_name='Вступление')),41('body', models.TextField(blank=True, null=True, verbose_name='Наполнение')),42('body_as_markdown', models.BooleanField(default=False, verbose_name='As markdown')),43],44options={45'verbose_name': 'новость',46'verbose_name_plural': 'новости',47'ordering': ('-created_at', '-updated_at'),48},49),50migrations.CreateModel(51name='Lesson',52fields=[53('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),54('created_at', models.DateTimeField(auto_now_add=True, verbose_name='Создан')),55('updated_at', models.DateTimeField(auto_now=True, verbose_name='Обновлён')),56('deleted', models.BooleanField(default=False, verbose_name='Удалён')),57('num', models.PositiveIntegerField(verbose_name='Lesson number')),58('title', models.CharField(max_length=256, verbose_name='Name')),59('description', models.TextField(blank=True, null=True, verbose_name='Описание')),60('description_as_markdown', models.BooleanField(default=False, verbose_name='As markdown')),61('course', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='mainapp.courses')),62],63options={64'ordering': ('course', 'num'),65},66),67migrations.CreateModel(68name='CourseTeachers',69fields=[70('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),71('created_at', models.DateTimeField(auto_now_add=True, verbose_name='Создан')),72('updated_at', models.DateTimeField(auto_now=True, verbose_name='Обновлён')),73('deleted', models.BooleanField(default=False, verbose_name='Удалён')),74('name_first', models.CharField(max_length=128, verbose_name='Имя')),75('name_second', models.CharField(max_length=128, verbose_name='Фамилия')),76('day_birth', models.DateField(verbose_name='Дата рождения')),77('course', models.ManyToManyField(to='mainapp.courses')),78],79options={80'abstract': False,81},82),83]84
85