Merge "Allows for manual addition of bookings"
[pharos-tools.git] / dashboard / src / notifier / migrations / 0001_initial.py
1 # -*- coding: utf-8 -*-
2 # Generated by Django 1.10 on 2017-12-14 21:41
3 from __future__ import unicode_literals
4
5 from django.db import migrations, models
6 import django.db.models.deletion
7 import fernet_fields.fields
8
9
10 class Migration(migrations.Migration):
11
12     initial = True
13
14     dependencies = [
15         ('account', '0002_userprofile_email_addr'),
16         ('dashboard', '0002_auto_20170505_0815'),
17     ]
18
19     operations = [
20         migrations.CreateModel(
21             name='Notifier',
22             fields=[
23                 ('id', models.AutoField(primary_key=True, serialize=False)),
24                 ('title', models.CharField(max_length=240)),
25                 ('content', fernet_fields.fields.EncryptedTextField()),
26                 ('sender', models.CharField(default='unknown', max_length=240)),
27                 ('message_type', models.CharField(choices=[('email', 'Email'), ('webnotification', 'Web Notification')], default='email', max_length=240)),
28                 ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='account.UserProfile')),
29             ],
30         ),
31     ]