text: # Generated by Django 2.2.17 on 2020-12-31 09:44
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  import django.utils.timezone
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
          ('contenttypes', '0002_remove_content_type_name'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Vote',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('object_id', models.PositiveIntegerField()),
                  ('key', models.CharField(max_length=32)),
                  ('score', models.IntegerField()),
                  ('ip_address', models.GenericIPAddressField()),
                  ('cookie', models.CharField(blank=True, max_length=32, null=True)),
                  ('date_added', models.DateTimeField(default=django.utils.timezone.now, editable=False)),
                  ('date_changed', models.DateTimeField(default=django.utils.timezone.now, editable=False)),
                  ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='votes', to='contenttypes.ContentType')),
                  ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='votes', to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'unique_together': {('content_type', 'object_id', 'key', 'user', 'ip_address', 'cookie')},
              },
          ),
          migrations.CreateModel(
              name='SimilarUser',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('agrees', models.PositiveIntegerField(default=0)),
                  ('disagrees', models.PositiveIntegerField(default=0)),
                  ('exclude', models.BooleanField(default=False)),
                  ('from_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='similar_users', to=settings.AUTH_USER_MODEL)),
                  ('to_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='similar_users_from', to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'unique_together': {('from_user', 'to_user')},
              },
          ),
          migrations.CreateModel(
              name='Score',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('object_id', models.PositiveIntegerField()),
                  ('key', models.CharField(max_length=32)),
                  ('score', models.IntegerField()),
                  ('votes', models.PositiveIntegerField()),
                  ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
              ],
              options={
                  'unique_together': {('content_type', 'object_id', 'key')},
              },
          ),
          migrations.CreateModel(
              name='IgnoredObject',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('object_id', models.PositiveIntegerField()),
                  ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'unique_together': {('content_type', 'object_id')},
              },
          ),
      ]
  