text: # Generated by Django 2.0.2 on 2018-05-02 14:37
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Profile',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('card_id', models.CharField(max_length=100, verbose_name='Kortnummer')),
                  ('image', models.ImageField(blank=True, upload_to='profile', verbose_name='Profilbilde')),
                  ('on_make', models.BooleanField(default=False, verbose_name='Innsjekkingsstatus')),
                  ('last_checkin', models.DateTimeField(auto_now=True, verbose_name='Sist sjekket inn')),
                  ('user', models.OneToOneField(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.CreateModel(
              name='RegisterProfile',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('card_id', models.CharField(max_length=100, verbose_name='Kortnummer')),
                  ('last_scan', models.DateTimeField()),
              ],
          ),
          migrations.CreateModel(
              name='Skill',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('title', models.CharField(max_length=100, unique=True, verbose_name='Ferdighet')),
                  ('image', models.ImageField(blank=True, upload_to='skills', verbose_name='Ferdighetbilde')),
              ],
          ),
          migrations.CreateModel(
              name='SuggestSkill',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('title', models.CharField(max_length=100, unique=True, verbose_name='Foreslått ferdighet')),
                  ('approved', models.BooleanField(default=False)),
                  ('image', models.ImageField(blank=True, upload_to='skills', verbose_name='Ferdighetbilde')),
                  ('creator', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='suggestions', to='checkin.Profile')),
                  ('voters', models.ManyToManyField(related_name='votes', to='checkin.Profile')),
              ],
              options={
                  'ordering': ('title',),
              },
          ),
          migrations.CreateModel(
              name='UserSkill',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('skill_level', models.IntegerField(choices=[(1, 'Nybegynner'), (2, 'Viderekommen'), (3, 'Ekspert')])),
                  ('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='checkin.Profile')),
                  ('skill', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='checkin.Skill')),
              ],
              options={
                  'ordering': ('skill__title',),
              },
          ),
      ]
  