# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-12-10 12:42
from __future__ import unicode_literals

from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Message',
            fields=[
                ('title', models.SlugField(primary_key=True, serialize=False, verbose_name='title')),
                ('content', models.TextField(blank=True, max_length=65536, null=True, verbose_name='content')),
                ('level', models.SmallIntegerField(choices=[(40, 'error'), (25, 'success'), (10, 'debug'), (20, 'info'), (30, 'warning')], default=20, verbose_name='level')),
                ('template_name', models.CharField(blank=True, max_length=255, null=True, verbose_name='template name')),
                ('read_by', models.ManyToManyField(blank=True, help_text='Users who read this message', to=settings.AUTH_USER_MODEL, verbose_name='read by')),
            ],
            options={
                'verbose_name_plural': 'messages',
                'verbose_name': 'message',
            },
        ),
    ]
