Lab as a Service 2.0
[laas.git] / src / notifier / migrations / 0001_initial.py
1 # Generated by Django 2.1 on 2018-09-14 14:48
2
3 from django.db import migrations, models
4 import django.db.models.deletion
5 import fernet_fields.fields
6
7
8 class Migration(migrations.Migration):
9
10     initial = True
11
12     dependencies = [
13         ('account', '0001_initial'),
14         ('booking', '0001_initial'),
15     ]
16
17     operations = [
18         migrations.CreateModel(
19             name='LabMessage',
20             fields=[
21                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
22                 ('msg', models.TextField()),
23                 ('lab', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='account.Lab')),
24             ],
25         ),
26         migrations.CreateModel(
27             name='MetaBooking',
28             fields=[
29                 ('id', models.AutoField(primary_key=True, serialize=False)),
30                 ('ending_notified', models.BooleanField(default=False)),
31                 ('ended_notified', models.BooleanField(default=False)),
32                 ('created_notified', models.BooleanField(default=False)),
33                 ('booking', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='metabooking', to='booking.Booking')),
34             ],
35         ),
36         migrations.CreateModel(
37             name='Notifier',
38             fields=[
39                 ('id', models.AutoField(primary_key=True, serialize=False)),
40                 ('title', models.CharField(max_length=240)),
41                 ('content', fernet_fields.fields.EncryptedTextField()),
42                 ('sender', models.CharField(default='unknown', max_length=240)),
43                 ('message_type', models.CharField(choices=[('email', 'Email'), ('webnotification', 'Web Notification')], default='email', max_length=240)),
44                 ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='account.UserProfile')),
45             ],
46         ),
47     ]