mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
47 lines
1.5 KiB
Python
47 lines
1.5 KiB
Python
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
#
|
|
# Generated by Django 2.2.6 on 2020-01-29 03:17
|
|
#
|
|
"""
|
|
Django migration for adding the notification model.
|
|
"""
|
|
|
|
from django.db import migrations, models
|
|
|
|
from plinth.models import JSONField
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('plinth', '0004_userprofile'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='StoredNotification',
|
|
fields=[
|
|
('id',
|
|
models.CharField(max_length=128, primary_key=True,
|
|
serialize=False)),
|
|
('app_id',
|
|
models.CharField(default=None, max_length=128, null=True)),
|
|
('severity', models.CharField(max_length=32)),
|
|
('title', models.CharField(max_length=256)),
|
|
('message', models.TextField(default=None, null=True)),
|
|
('actions', JSONField(default=list)),
|
|
('body_template',
|
|
models.CharField(max_length=128, null=True, default=None)),
|
|
('data', JSONField(default=dict)),
|
|
('created_time', models.DateTimeField(auto_now_add=True)),
|
|
('last_update_time', models.DateTimeField(auto_now=True)),
|
|
('user',
|
|
models.CharField(max_length=128, default=None, null=True)),
|
|
('group',
|
|
models.CharField(max_length=128, default=None, null=True)),
|
|
('dismissed', models.BooleanField(default=False)),
|
|
],
|
|
),
|
|
]
|