# -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-04 02:11
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Classes',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=32)),
            ],
        ),
        migrations.CreateModel(
            name='Course',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=32)),
                ('price', models.DecimalField(decimal_places=2, max_digits=7)),
                ('period', models.IntegerField()),
            ],
        ),
        migrations.CreateModel(
            name='Student',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=32)),
                ('sex', models.CharField(max_length=32)),
                ('classes', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app01.Classes')),
                ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app01.Course')),
            ],
        ),
        migrations.CreateModel(
            name='Teacher',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=32)),
                ('age', models.IntegerField()),
                ('sex', models.CharField(default='', max_length=12)),
                ('tel', models.CharField(default='', max_length=32)),
                ('salary', models.DecimalField(decimal_places=2, max_digits=7)),
                ('class_list', models.ManyToManyField(to='app01.Classes')),
                ('course_list', models.ManyToManyField(to='app01.Course')),
            ],
        ),
        migrations.CreateModel(
            name='User',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=32)),
                ('password', models.CharField(max_length=32)),
            ],
        ),
        migrations.CreateModel(
            name='UserType',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=32)),
            ],
        ),
        migrations.AddField(
            model_name='teacher',
            name='department',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app01.UserType'),
        ),
    ]

317f895781219ff8d6212f709499d3ff6088ce25
<mask token>

<mask token>


class Migration(migrations.Migration):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Migration(migrations.Migration):
    initial = True
    dependencies = []
    operations = [migrations.CreateModel(name='Classes', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('name', models.CharField(max_length=32
        ))]), migrations.CreateModel(name='Course', fields=[('id', models.
        AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('name', models.CharField(max_length=32)), (
        'price', models.DecimalField(decimal_places=2, max_digits=7)), (
        'period', models.IntegerField())]), migrations.CreateModel(name=
        'Student', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('name',
        models.CharField(max_length=32)), ('sex', models.CharField(
        max_length=32)), ('classes', models.ForeignKey(on_delete=django.db.
        models.deletion.CASCADE, to='app01.Classes')), ('course', models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=
        'app01.Course'))]), migrations.CreateModel(name='Teacher', fields=[
        ('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('name', models.CharField(
        max_length=32)), ('age', models.IntegerField()), ('sex', models.
        CharField(default='', max_length=12)), ('tel', models.CharField(
        default='', max_length=32)), ('salary', models.DecimalField(
        decimal_places=2, max_digits=7)), ('class_list', models.
        ManyToManyField(to='app01.Classes')), ('course_list', models.
        ManyToManyField(to='app01.Course'))]), migrations.CreateModel(name=
        'User', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('name',
        models.CharField(max_length=32)), ('password', models.CharField(
        max_length=32))]), migrations.CreateModel(name='UserType', fields=[
        ('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('name', models.CharField(
        max_length=32))]), migrations.AddField(model_name='teacher', name=
        'department', field=models.ForeignKey(on_delete=django.db.models.
        deletion.CASCADE, to='app01.UserType'))]

from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
    initial = True
    dependencies = []
    operations = [migrations.CreateModel(name='Classes', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('name', models.CharField(max_length=32
        ))]), migrations.CreateModel(name='Course', fields=[('id', models.
        AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('name', models.CharField(max_length=32)), (
        'price', models.DecimalField(decimal_places=2, max_digits=7)), (
        'period', models.IntegerField())]), migrations.CreateModel(name=
        'Student', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('name',
        models.CharField(max_length=32)), ('sex', models.CharField(
        max_length=32)), ('classes', models.ForeignKey(on_delete=django.db.
        models.deletion.CASCADE, to='app01.Classes')), ('course', models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=
        'app01.Course'))]), migrations.CreateModel(name='Teacher', fields=[
        ('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('name', models.CharField(
        max_length=32)), ('age', models.IntegerField()), ('sex', models.
        CharField(default='', max_length=12)), ('tel', models.CharField(
        default='', max_length=32)), ('salary', models.DecimalField(
        decimal_places=2, max_digits=7)), ('class_list', models.
        ManyToManyField(to='app01.Classes')), ('course_list', models.
        ManyToManyField(to='app01.Course'))]), migrations.CreateModel(name=
        'User', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('name',
        models.CharField(max_length=32)), ('password', models.CharField(
        max_length=32))]), migrations.CreateModel(name='UserType', fields=[
        ('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('name', models.CharField(
        max_length=32))]), migrations.AddField(model_name='teacher', name=
        'department', field=models.ForeignKey(on_delete=django.db.models.
        deletion.CASCADE, to='app01.UserType'))]

# -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-04 02:11
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Classes',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=32)),
            ],
        ),
        migrations.CreateModel(
            name='Course',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=32)),
                ('price', models.DecimalField(decimal_places=2, max_digits=7)),
                ('period', models.IntegerField()),
            ],
        ),
        migrations.CreateModel(
            name='Student',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=32)),
                ('sex', models.CharField(max_length=32)),
                ('classes', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app01.Classes')),
                ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app01.Course')),
            ],
        ),
        migrations.CreateModel(
            name='Teacher',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=32)),
                ('age', models.IntegerField()),
                ('sex', models.CharField(default='', max_length=12)),
                ('tel', models.CharField(default='', max_length=32)),
                ('salary', models.DecimalField(decimal_places=2, max_digits=7)),
                ('class_list', models.ManyToManyField(to='app01.Classes')),
                ('course_list', models.ManyToManyField(to='app01.Course')),
            ],
        ),
        migrations.CreateModel(
            name='User',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=32)),
                ('password', models.CharField(max_length=32)),
            ],
        ),
        migrations.CreateModel(
            name='UserType',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=32)),
            ],
        ),
        migrations.AddField(
            model_name='teacher',
            name='department',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app01.UserType'),
        ),
    ]
