# Generated by Django 3.1.5 on 2021-01-07 21:23 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.CreateModel( name='Group', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20)), ], ), migrations.CreateModel( name='Organisation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.TextField()), ], ), migrations.CreateModel( name='Role', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ], ), 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)), ('org', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='organisations.organisation')), ], ), migrations.CreateModel( name='Teacher', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=150)), ('surname', models.CharField(blank=True, max_length=150)), ('midname', models.CharField(blank=True, max_length=150)), ('groups', models.ManyToManyField(to='organisations.Group')), ('org', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='organisations.organisation')), ('profile', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='users.profile')), ('subject_area', models.ManyToManyField(to='organisations.Subject')), ], ), migrations.AddField( model_name='group', name='org', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='organisations.organisation'), ), migrations.CreateModel( name='Child', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=150)), ('surname', models.CharField(blank=True, max_length=150)), ('midname', models.CharField(blank=True, max_length=150)), ('groups', models.ManyToManyField(to='organisations.Group')), ('org', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='organisations.organisation')), ('profile', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='users.profile')), ], ), ]