evg-app-back/lessons/migrations/0001_initial.py

36 lines
1.4 KiB
Python
Raw Normal View History

2021-01-10 15:51:59 +03:00
# Generated by Django 3.1.5 on 2021-01-08 20:17
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('organisations', '0004_auto_20210108_2013'),
]
operations = [
migrations.CreateModel(
name='Subject',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=100)),
('organisation', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='organisations.organisation')),
('teachers_give', models.ManyToManyField(to='organisations.Teacher')),
],
),
migrations.CreateModel(
name='SubjectClassLocal',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=100)),
('group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='organisations.group')),
('subject', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='lessons.subject')),
('teachers', models.ManyToManyField(to='organisations.Teacher')),
],
),
]