class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Balance', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('expense', models.FloatField(default=0)), ('income', models.FloatField(default=0)), ('user', models.OneToOneField(default=1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Expense', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('subcategories', models.CharField(max_length=15)), ('source', models.CharField(max_length=15)), ('paid_to', models.CharField(max_length=50)), ('cost', models.IntegerField()), ('tax_details', models.FloatField()), ('date_created', models.DateField(default=django.utils.timezone.now)), ('bill', models.FileField(blank=True, null=True, upload_to='bills')), ('vat', models.CharField(blank=True, max_length=50, null=True)), ('ext_ref', models.CharField(blank=True, max_length=10, null=True)), ('description', models.CharField(blank=True, max_length=100, null=True)), ('is_recurrent', models.CharField(max_length=10)), ('rec_date', models.DateField(default=django.utils.timezone.now)), ('rec_year', models.IntegerField(blank=True, null=True)), ('rec_month', models.IntegerField(blank=True, null=True)), ('rec_day', models.IntegerField(blank=True, null=True)), ('option', models.CharField(max_length=15)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='UserDetails', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('company_name', models.CharField(max_length=100)), ('dob', models.DateField(null=True)), ('address', models.CharField(max_length=100)), ('hire_date', models.DateField(null=True)), ('phone_no', models.IntegerField()), ('photo', models.ImageField(null=True, upload_to='profile')), ('occupation', models.CharField(max_length=15)), ('yearly_package', models.PositiveIntegerField(null=True)), ('pf', models.PositiveIntegerField(default=5)), ('res_address', models.CharField(max_length=100)), ('user', models.OneToOneField(default=1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('Main', '0001_initial'), ] operations = [ migrations.CreateModel( name='Loan', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('loan_name', models.CharField(max_length=50)), ('loan_amount', models.PositiveIntegerField()), ('no_of_years', models.IntegerField(default=20)), ('date_of_payment', models.DateField(default=django.utils.timezone.now)), ('rate_of_interest', models.FloatField(default=10.0)), ('type', models.CharField(max_length=15)), ('is_calender', models.BooleanField(default=False)), ('user', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], bases=(models.Model, Main.models.Main), ), migrations.CreateModel( name='Premium', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('lic_name', models.CharField(max_length=50, null=True)), ('start_date', models.DateField(null=True)), ('end_date', models.DateField()), ('type', models.CharField(max_length=15)), ('premium_amount', models.PositiveIntegerField()), ('end_year', models.DateField()), ('is_calender', models.BooleanField(default=False)), ('user', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], bases=(models.Model, Main.models.Main), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=120)), ('image', models.ImageField(blank=True, height_field='height_field', null=True, upload_to=Main.models.upload_location, width_field='width_field')), ('height_field', models.IntegerField(default=0)), ('width_field', models.IntegerField(default=0)), ('content', models.TextField()), ('updated', models.DateTimeField(auto_now=True)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('user', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-timestamp', '-updated'], }, ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('Main', '0001_initial'), ] operations = [ migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(blank=True, null=True, upload_to=Main.models.upload_location)), ('bio', models.TextField(blank=True, null=True)), ('questions', models.IntegerField(default=0)), ('answers', models.IntegerField(default=0)), ('contact', models.TextField(blank=True, null=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.AlterField( model_name='question', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='Main.Profile'), ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('Main', '0010_auto_20161003_1436'), ] operations = [ migrations.CreateModel( name='LoanPremium', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('loan_premium_name', models.CharField(max_length=50, null=True)), ('loan_premium_amount', models.PositiveIntegerField(null=True)), ('start_date', models.DateField(null=True)), ('end_date', models.DateField(default=2004, null=True)), ('description', models.CharField(max_length=200, null=True)), ('no_of_years', models.IntegerField(default=20, null=True)), ('rate_of_interest', models.FloatField(default=10.0, null=True)), ('type_loan_premium', models.CharField(max_length=15, null=True)), ('type_duration', models.CharField(max_length=15, null=True)), ('is_calender', models.BooleanField(default=False)), ('user', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], bases=(models.Model, Main.models.Main), ), migrations.RemoveField( model_name='loan', name='user', ), migrations.RemoveField( model_name='premium', name='user', ), migrations.DeleteModel(name='Loan', ), migrations.DeleteModel(name='Premium', ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Actor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ActorId', models.CharField(blank=True, editable=False, max_length=50, unique=True, verbose_name='演员id')), ('ActorName', models.CharField(max_length=50, verbose_name='演员姓名')), ('ActorArea', models.CharField(blank=True, default='未知', max_length=50, verbose_name='演员地区')), ('ActorSex', models.SmallIntegerField(choices=[(1, '男'), (2, '女'), (3, '未知')], default=3, verbose_name='演员性别')), ], options={ 'verbose_name': '演员信息', 'verbose_name_plural': '演员信息', }, ), migrations.CreateModel( name='ActorConnection', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ActorId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Main.Actor', to_field='ActorId', verbose_name='演员id')), ], options={ 'verbose_name': '参演信息', 'verbose_name_plural': '参演信息', }, ), migrations.CreateModel( name='Agree', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('RecordId', models.CharField(blank=True, editable=False, max_length=100, unique=True, verbose_name='实体id')), ('TargetId', models.CharField(max_length=50, verbose_name='目标id')), ('RecordTime', models.DateTimeField(auto_now_add=True)), ('AgreeType', models.PositiveSmallIntegerField(choices=[(1, '评论'), (2, '标签')], verbose_name='点赞类型')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='EditRecord', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('RecordId', models.CharField(blank=True, editable=False, max_length=100, unique=True, verbose_name='实体id')), ('TargetId', models.CharField(max_length=50, verbose_name='目标id')), ('RecordTime', models.DateTimeField(auto_now_add=True)), ('EditType', models.PositiveSmallIntegerField(choices=[(1, '修改信息'), (2, '添加标签')], verbose_name='编辑类型')), ('EditContent', models.TextField(verbose_name='修改内容')), ], options={ 'verbose_name': '编辑记录', 'verbose_name_plural': '编辑记录', }, ), migrations.CreateModel( name='FavoriteRecord', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('RecordId', models.CharField(blank=True, editable=False, max_length=100, unique=True, verbose_name='实体id')), ('TargetId', models.CharField(max_length=50, verbose_name='目标id')), ('RecordTime', models.DateTimeField(auto_now_add=True)), ('FavoriteType', models.PositiveSmallIntegerField(choices=[(1, '电影')], default=1, verbose_name='收藏类型')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='IDCount', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Type', models.CharField(max_length=20, unique=True, verbose_name='id类型')), ('Count', models.PositiveIntegerField(default=0, editable=False, verbose_name='计数')), ], ), migrations.CreateModel( name='Movie', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('MovId', models.CharField(blank=True, editable=False, max_length=50, unique=True)), ('MovName', models.CharField(max_length=100, verbose_name='电影标题')), ('MovType', models.IntegerField(verbose_name='电影类型')), ('MovLength', models.IntegerField(default=0, verbose_name='电影时长')), ('MovImg', models.ImageField(default='static/cover/default_cover.bmp', upload_to=Main.models.cover_directory_path, verbose_name='电影封面')), ('MovOrigin', models.SmallIntegerField(default=16, verbose_name='电影产地')), ('MovCompany', models.CharField(default='未知', max_length=100, verbose_name='电影公司')), ('MovDirector', models.CharField(default='未知', max_length=100, verbose_name='电影导演')), ('MovDescription', models.TextField(default='无', verbose_name='电影描述')), ('MovDate', models.DateField(default=1, verbose_name='电影上映时间')), ('MovLanguage', models.CharField(default='未知', max_length=50, verbose_name='电影语言')), ('MovScore', models.FloatField(default=0.0, verbose_name='电影平均分')), ('MovScoreCount', models.IntegerField(default=0, verbose_name='评分人数')), ('MovImdbId', models.IntegerField(default=0, verbose_name='IMDB')), ('MovTmdbId', models.IntegerField(default=0, verbose_name='TMDB')), ], options={ 'verbose_name': '电影信息', 'verbose_name_plural': '电影信息', }, ), migrations.CreateModel( name='MovieTag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('MovTagId', models.CharField(blank=True, editable=False, max_length=20, unique=True)), ('MovTagCnt', models.CharField(max_length=20, unique=True, verbose_name='标签内容')), ], options={ 'verbose_name': '电影标签', 'verbose_name_plural': '电影标签', }, ), migrations.CreateModel( name='MovTagConnection', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('AgreeCount', models.PositiveIntegerField(default=0, editable=False, verbose_name='点赞数')), ('MovId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Main.Movie', to_field='MovId', verbose_name='电影id')), ('MovTagId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Main.MovieTag', to_field='MovTagId', verbose_name='标签id')), ], options={ 'verbose_name': '标签联系信息', 'verbose_name_plural': '标签联系信息', }, ), migrations.CreateModel( name='ReplyRecord', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('RecordId', models.CharField(blank=True, editable=False, max_length=100, unique=True, verbose_name='实体id')), ('TargetId', models.CharField(max_length=50, verbose_name='目标id')), ('RecordTime', models.DateTimeField(auto_now_add=True)), ('ReplyType', models.PositiveSmallIntegerField(choices=[(1, '电影'), (2, '评论')], verbose_name='回复类型')), ('ReplyGrade', models.SmallIntegerField(blank=True, null=True, verbose_name='评分')), ('ReplyContent', models.TextField(verbose_name='回复内容')), ('AgreeCount', models.PositiveIntegerField(default=0, editable=False, verbose_name='点赞数')), ], options={ 'verbose_name': '评论记录', 'verbose_name_plural': '评论记录', }, ), migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('UserId', models.CharField(blank=True, editable=False, max_length=30, unique=True, verbose_name='用户id')), ('UserPwd', models.CharField(max_length=20, verbose_name='密码')), ('UserName', models.CharField(max_length=30, unique=True, verbose_name='用户名')), ('UserLevel', models.SmallIntegerField(default=1, verbose_name='用户等级')), ('UserCurExp', models.SmallIntegerField(default=0, verbose_name='用户当前经验')), ('UserMaxExp', models.SmallIntegerField(default=1000, verbose_name='用户最大经验')), ('Email', models.EmailField(max_length=254)), ('HasView', models.BooleanField(default=False, verbose_name='是否有过浏览记录')), ], options={ 'verbose_name': '用户信息', 'verbose_name_plural': '用户信息', }, ), migrations.CreateModel( name='ViewRecord', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('RecordId', models.CharField(blank=True, editable=False, max_length=100, unique=True, verbose_name='实体id')), ('TargetId', models.CharField(max_length=50, verbose_name='目标id')), ('RecordTime', models.DateTimeField(auto_now_add=True)), ('UserId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Main.User', to_field='UserId', verbose_name='用户id')), ], options={ 'abstract': False, }, ), migrations.AddField( model_name='replyrecord', name='UserId', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='Main.User', to_field='UserId', verbose_name='用户id'), ), migrations.AddField( model_name='favoriterecord', name='UserId', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='Main.User', to_field='UserId', verbose_name='用户id'), ), migrations.AddField( model_name='editrecord', name='UserId', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='Main.User', to_field='UserId', verbose_name='用户id'), ), migrations.AddField( model_name='agree', name='UserId', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='Main.User', to_field='UserId', verbose_name='用户id'), ), migrations.AddField( model_name='actorconnection', name='MovId', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='Main.Movie', to_field='MovId', verbose_name='电影id'), ), migrations.AlterIndexTogether( name='viewrecord', index_together={('UserId', 'TargetId')}, ), migrations.AlterUniqueTogether( name='movtagconnection', unique_together={('MovTagId', 'MovId')}, ), migrations.AlterIndexTogether( name='movtagconnection', index_together={('MovTagId', 'MovId')}, ), migrations.AlterIndexTogether( name='favoriterecord', index_together={('UserId', 'TargetId')}, ), migrations.AlterIndexTogether( name='agree', index_together={('UserId', 'TargetId')}, ), migrations.AlterUniqueTogether( name='actorconnection', unique_together={('ActorId', 'MovId')}, ), migrations.AlterIndexTogether( name='actorconnection', index_together={('ActorId', 'MovId')}, ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('Main', '0001_initial'), ] operations = [ migrations.CreateModel( name='Answer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('text', models.CharField(max_length=256)), ('is_correct', models.BooleanField()), ], ), migrations.CreateModel( name='Attachment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('path', models.FileField( upload_to=Main.models.get_attachment_upload_path)), ], ), migrations.CreateModel( name='Attempt', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date', models.DateField()), ('score', models.IntegerField()), ], ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('text', models.CharField(max_length=1024)), ], ), migrations.CreateModel( name='Domain', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=64)), ], ), migrations.CreateModel( name='Group', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('year', models.IntegerField()), ('domain', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Main.Domain')), ], ), migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date', models.DateField()), ('title', models.CharField(max_length=64)), ('description', models.TextField()), ], ), migrations.CreateModel( name='Professor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ], ), migrations.CreateModel( name='ProfessorSubject', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('professor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Main.Professor')), ], ), migrations.CreateModel( name='Question', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('text', models.CharField(max_length=256)), ], ), migrations.CreateModel( name='Quiz', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='QuizQuestion', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('question', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Main.Question')), ('quiz', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Main.Quiz')), ], ), migrations.CreateModel( name='Student', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('score', models.IntegerField()), ], ), migrations.CreateModel( name='StudentGroup', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Main.Group')), ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Main.Student')), ], ), migrations.CreateModel( name='Subject', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=64)), ('type', models.CharField(max_length=64)), ], ), migrations.CreateModel( name='Teach', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Main.Group')), ('subject', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Main.Subject')), ], ), migrations.CreateModel( name='Vote', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('vote_type', models.BooleanField()), ('comment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Main.Comment')), ], ), migrations.AlterField( model_name='userprofile', name='user', field=models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='userProfile', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='vote', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='Main.UserProfile'), ), migrations.AddField( model_name='student', name='user', field=models.OneToOneField( default=None, on_delete=django.db.models.deletion.CASCADE, related_name='Student', to='Main.UserProfile'), ), migrations.AddField( model_name='professorsubject', name='subject', field=models.ForeignKey( default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, to='Main.Subject'), ), migrations.AddField( model_name='professor', name='user_id', field=models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='Professor', to='Main.UserProfile'), ), migrations.AddField( model_name='post', name='author', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='Main.UserProfile'), ), migrations.AddField( model_name='post', name='prof_subject', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='Main.ProfessorSubject'), ), migrations.AddField( model_name='group', name='leader', field=models.OneToOneField( null=True, on_delete=django.db.models.deletion.SET_NULL, to='Main.Student'), ), migrations.AddField( model_name='comment', name='post', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='Main.Post'), ), migrations.AddField( model_name='comment', name='user', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='Main.UserProfile'), ), migrations.AddField( model_name='attempt', name='quiz', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='Main.Quiz'), ), migrations.AddField( model_name='attempt', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='attachment', name='post', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='Main.Post'), ), migrations.AddField( model_name='answer', name='question', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='Main.Question'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Course', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50, null=True)), ('PreviewText', models.TextField(null=True)), ('PreviewFile', models.FileField(blank=True, null=True, upload_to=Main.models.upload_path)), ('date_created', models.DateField(auto_now=True)), ], ), migrations.CreateModel( name='Student', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, null=True)), ('profile_pic', models.ImageField(blank=True, null=True, upload_to='')), ], ), migrations.CreateModel( name='Teacher', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, null=True)), ('profile_pic', models.ImageField(blank=True, null=True, upload_to='')), ], ), migrations.CreateModel( name='Module', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50, null=True)), ('number', models.IntegerField(null=True)), ('File', models.FileField(blank=True, null=True, upload_to=Main.models.upload_path)), ('content', models.TextField(null=True)), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Main.Course')), ], ), migrations.AddField( model_name='course', name='teacher', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='Main.Teacher'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Blog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(default='', max_length=50, verbose_name='文章标题')), ('content', models.TextField(default='', verbose_name='文章内容')), ('is_secret', models.IntegerField(default=0, verbose_name='是否开放')), ('summary', models.CharField(default='', max_length=200, verbose_name='摘要')), ('create_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='创建时间')), ('update_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='更新时间')), ], ), migrations.CreateModel( name='BlogCategory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('blog', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Main.Blog', verbose_name='博客')), ], ), migrations.CreateModel( name='BlogTags', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('blog', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Main.Blog', verbose_name='博客')), ], ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(default='', max_length=50, verbose_name='类别名称')), ('count', models.IntegerField(default=1, verbose_name='类别下博客数目')), ], ), migrations.CreateModel( name='Image', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('img', models.ImageField(upload_to=Main.models.get_path)), ('blog', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Main.Blog', verbose_name='博客')), ], ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(default='', max_length=20, verbose_name='标签名称')), ('count', models.IntegerField(default=1, verbose_name='标签下博客数目')), ], ), migrations.AddField( model_name='blogtags', name='tag', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='Main.Tag', verbose_name='标签'), ), migrations.AddField( model_name='blogcategory', name='category', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='Main.Category', verbose_name='类别'), ), ]