text: # Generated by Django 2.0.1 on 2018-01-23 20:39
  
  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 = [
          ('courses', '0001_initial'),
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='CourseComments',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('comment', models.CharField(max_length=200, verbose_name='comment')),
                  ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='add_time')),
                  ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='courses.Course', verbose_name='course')),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='user')),
              ],
              options={
                  'verbose_name': 'course_comment',
                  'verbose_name_plural': 'course_comment',
              },
          ),
          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='user_name')),
                  ('mobile', models.CharField(max_length=11, verbose_name='phone')),
                  ('course_name', models.CharField(max_length=50, verbose_name='course_name')),
                  ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='add_time')),
              ],
              options={
                  'verbose_name': 'user_ask',
                  'verbose_name_plural': 'user_ask',
              },
          ),
          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='add_time')),
                  ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='courses.Course', verbose_name='course')),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='user')),
              ],
              options={
                  'verbose_name': 'user_course',
                  'verbose_name_plural': 'user_course',
              },
          ),
          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='fav_id')),
                  ('fav_type', models.IntegerField(choices=[(1, 'course'), (2, 'org'), (3, 'teacher')], default=1, verbose_name='fav_type')),
                  ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='add_time')),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='user')),
              ],
              options={
                  'verbose_name': 'user_fav',
                  'verbose_name_plural': 'user_fav',
              },
          ),
          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='accept_user')),
                  ('message', models.CharField(max_length=500, verbose_name='message_content')),
                  ('has_read', models.BooleanField(default=False, verbose_name='has_read')),
                  ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='add_time')),
              ],
              options={
                  'verbose_name': 'user_message',
                  'verbose_name_plural': 'user_message',
              },
          ),
      ]
  