text: # Generated by Django 2.2 on 2019-11-23 14:06
  
  import datetime
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('courses', '0002_course_learn_times'),
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
          ('operation', '0001_initial'),
      ]
  
      operations = [
          migrations.RenameModel(
              old_name='CourseSectionSign',
              new_name='UserCourseSectionSign',
          ),
          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='用户id')),
              ],
              options={
                  'verbose_name': '用户课程',
                  'verbose_name_plural': '用户课程',
              },
          ),
      ]
  