# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-03-22 12:37
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('app', '0124_auto_20160322_1044'),
    ]

    operations = [
        migrations.CreateModel(
            name='TimeSlotChangeLog',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('record_type', models.CharField(choices=[('t', '调课'), ('s', '停课')], max_length=2)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
                ('new_timeslot', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='new', to='app.TimeSlot')),
                ('old_timeslot', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='old', to='app.TimeSlot')),
            ],
            options={
                'ordering': ['-created_at'],
            },
        ),
    ]
