# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-05-15 07:43
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('courses', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='CityDict',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=120, verbose_name='\u57ce\u5e02\u540d\u79f0')),
                ('desc', models.CharField(max_length=120, verbose_name='\u63cf\u8ff0')),
                ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='\u6dfb\u52a0\u65f6\u95f4')),
            ],
            options={
                'verbose_name': '\u57ce\u5e02',
                'verbose_name_plural': '\u57ce\u5e02',
            },
        ),
        migrations.CreateModel(
            name='CourseOrg',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100, verbose_name='\u673a\u6784\u540d')),
                ('image', models.ImageField(upload_to='organization/%Y/%m', verbose_name='\u8bfe\u7a0b\u56fe\u7247')),
                ('desc', models.CharField(max_length=100, verbose_name='\u8bfe\u7a0b\u63cf\u8ff0')),
                ('address', models.CharField(max_length=100, verbose_name='\u673a\u6784\u5730\u5740')),
                ('click_num', models.IntegerField(default=0, verbose_name='\u70b9\u51fb\u6570')),
                ('fav_num', models.IntegerField(default=0, verbose_name='\u6536\u85cf\u4eba\u6570')),
                ('city', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='organizations.CityDict', verbose_name='\u57ce\u5e02')),
                ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='courses.Course', verbose_name='\u8bfe\u7a0b')),
            ],
            options={
                'verbose_name': '\u673a\u6784',
                'verbose_name_plural': '\u673a\u6784',
            },
        ),
        migrations.CreateModel(
            name='Teacher',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=10, verbose_name='\u6559\u5e08\u540d')),
                ('work_year', models.IntegerField(default=0, verbose_name='\u5de5\u4f5c\u5e74\u9650')),
                ('work_position', models.CharField(max_length=50, verbose_name='\u516c\u53f8\u804c\u4f4d')),
                ('work_company', models.CharField(max_length=50, verbose_name='\u6240\u5728\u516c\u53f8')),
                ('point', models.CharField(max_length=100, verbose_name='\u6559\u5b66\u7279\u70b9')),
                ('age', models.IntegerField(default=18, verbose_name='\u5e74\u9f84')),
                ('fav_num', models.IntegerField(default=0, verbose_name='\u5173\u6ce8\u4eba\u6570')),
                ('click_num', models.IntegerField(default=0, verbose_name='\u70b9\u51fb\u6570')),
                ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='courses.Course', verbose_name='\u7cbe\u5f69\u8bfe\u7a0b')),
                ('org', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='organizations.CourseOrg', verbose_name='\u6240\u5728\u673a\u6784')),
            ],
            options={
                'verbose_name': '\u6559\u5e08',
                'verbose_name_plural': '\u6559\u5e08',
            },
        ),
    ]
