# Generated by Django 2.2.4 on 2019-08-05 17:00

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0011_update_proxy_permissions'),
        ('people', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Permission',
            fields=[
                ('permissions_id', models.AutoField(primary_key=True, serialize=False)),
                ('ranking', models.PositiveSmallIntegerField(default=0, verbose_name='Rank')),
                ('auth_group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='rankedpermissions', to='auth.Group', verbose_name='Django group')),
                ('researchgroup', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='rankedpermissions', to='people.Group', verbose_name='Research group')),
            ],
            options={
                'ordering': ['auth_group', 'researchgroup', 'ranking'],
            },
        ),
    ]
