class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='UserInfo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('portrait', models.ImageField(blank=True, upload_to=Users.models.upload_file_name)), ('last_comment_datetime', models.DateTimeField(auto_now=True)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'UserInfo', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Friend', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('current_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='owner', to=settings.AUTH_USER_MODEL)), ('users', models.ManyToManyField(default=Users.models.defaultUser, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='FriendsList', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('owner', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(default='default.png', upload_to='profile_pics')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('Users', '0003_auto_20200730_2344'), ] operations = [ migrations.AlterField( model_name='profile', name='profile_pic', field=models.ImageField(blank=True, upload_to=Users.models.upload_to), ), ]
class Migration(migrations.Migration): dependencies = [ ('Users', '0007_auto_20200731_1817'), ] operations = [ migrations.AlterField( model_name='profile', name='profile_pic', field=models.ImageField(blank=True, default='profile_pic/None/no_image.jpg', upload_to=Users.models.upload_to), ), ]
class Migration(migrations.Migration): dependencies = [ ('Users', '0001_initial'), ] operations = [ migrations.AddField( model_name='profile', name='follower', field=models.IntegerField(default=0), ), migrations.AddField( model_name='profile', name='following', field=models.IntegerField(default=0), ), migrations.AlterField( model_name='profile', name='profile_pic', field=models.ImageField(blank=True, upload_to=Users.models.upload_to), ), ]