Add AliasUsage
[cas.git] / src / accounts / migrations / 0002_servicegroup_serviceuser.py
1 # Generated by Django 2.1.7 on 2019-03-29 13:22
2
3 from django.conf import settings
4 from django.db import migrations, models
5 import django.db.models.deletion
6
7
8 class Migration(migrations.Migration):
9
10     dependencies = [
11         migrations.swappable_dependency(settings.AUTH_USER_MODEL),
12         ('auth', '0009_alter_user_last_name_max_length'),
13         ('accounts', '0001_initial'),
14     ]
15
16     operations = [
17         migrations.CreateModel(
18             name='ServiceGroup',
19             fields=[
20                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
21                 ('group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='auth.Group')),
22                 ('service', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='accounts.Service')),
23             ],
24         ),
25         migrations.CreateModel(
26             name='ServiceUser',
27             fields=[
28                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
29                 ('service', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='accounts.Service')),
30                 ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
31             ],
32         ),
33     ]