text: # -*- coding: utf-8 -*-
  # Generated by Django 1.10.5 on 2017-04-02 06:12
  from __future__ import unicode_literals
  
  import datetime
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
          ('courses', '0001_initial'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='CourseComments',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('comments', models.CharField(max_length=200, verbose_name='评论')),
                  ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')),
                  ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='courses.Course', verbose_name='课程')),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='用户')),
              ],
              options={
                  'verbose_name': '课程评论',
                  'verbose_name_plural': '课程评论',
              },
          ),
          migrations.CreateModel(
              name='UserAsk',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=20, verbose_name='姓名')),
                  ('mobile', models.CharField(max_length=11, verbose_name='手机')),
                  ('course_name', models.CharField(max_length=50, verbose_name='课程名')),
                  ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')),
              ],
              options={
                  'verbose_name': '用户咨询',
                  'verbose_name_plural': '用户咨询',
              },
          ),
          migrations.CreateModel(
              name='UserCourse',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')),
                  ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='courses.Course', verbose_name='课程')),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='用户')),
              ],
              options={
                  'verbose_name': '用户学习过的课程',
                  'verbose_name_plural': '用户学习过的课程',
              },
          ),
          migrations.CreateModel(
              name='UserFavorite',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('fav_id', models.IntegerField(default=0, verbose_name='收藏数据 Id')),
                  ('fav_type', models.IntegerField(choices=[(1, '课程'), (2, '课程机构'), (3, '讲师')], default=1, verbose_name='收藏类型')),
                  ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='用户')),
              ],
              options={
                  'verbose_name': '用户收藏',
                  'verbose_name_plural': '用户收藏',
              },
          ),
          migrations.CreateModel(
              name='UserMessage',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('user', models.IntegerField(default=0, verbose_name='接受用户')),
                  ('message', models.CharField(max_length=500, verbose_name='消息内容')),
                  ('has_read', models.BooleanField(default=False, verbose_name='是否已读')),
                  ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')),
              ],
              options={
                  'verbose_name': '用户消息',
                  'verbose_name_plural': '用户消息',
              },
          ),
      ]
  