mirror of
https://github.com/evgen-app/evg-app-back.git
synced 2024-11-28 03:33:44 +03:00
36 lines
1.4 KiB
Python
36 lines
1.4 KiB
Python
|
# 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')),
|
||
|
],
|
||
|
),
|
||
|
]
|