30 lines
1.1 KiB
Python
30 lines
1.1 KiB
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('webpush', '0001_initial'),
|
|
('notifications', '0004_auto_20180316_1026'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='WebPushRecord',
|
|
fields=[
|
|
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
|
('creation_date', models.DateTimeField(auto_now_add=True)),
|
|
('status', models.CharField(default=b'NEW', max_length=4, blank=True, choices=[(b'NEW', b'Not-sent notification'), (b'SENT', b'Sent notification'), (b'ERR', b'Invalid notification')])),
|
|
('notification', models.ForeignKey(to='notifications.Notification')),
|
|
('subscription', models.ForeignKey(to='webpush.PushInformation')),
|
|
],
|
|
),
|
|
migrations.AlterUniqueTogether(
|
|
name='webpushrecord',
|
|
unique_together=set([('subscription', 'notification')]),
|
|
),
|
|
]
|