Minor update.
[cas.git] / src / services / migrations / 0001_initial.py
1 # Generated by Django 2.1.7 on 2019-03-30 13:31
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     initial = True
11
12     dependencies = [
13         migrations.swappable_dependency(settings.AUTH_USER_MODEL),
14         ('auth', '0009_alter_user_last_name_max_length'),
15     ]
16
17     operations = [
18         migrations.CreateModel(
19             name='Hook',
20             fields=[
21                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
22                 ('email', models.CharField(max_length=255)),
23             ],
24         ),
25         migrations.CreateModel(
26             name='Service',
27             fields=[
28                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
29                 ('name', models.CharField(max_length=255)),
30                 ('url', models.URLField(blank=True)),
31                 ('key', models.CharField(blank=True, max_length=255)),
32                 ('uses_ssh', models.BooleanField(default=False)),
33                 ('groups', models.ManyToManyField(blank=True, to='auth.Group')),
34                 ('users', models.ManyToManyField(blank=True, to=settings.AUTH_USER_MODEL)),
35             ],
36             options={
37                 'ordering': ('name',),
38             },
39         ),
40         migrations.AddField(
41             model_name='hook',
42             name='service',
43             field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='services.Service'),
44         ),
45     ]