31 lines
946 B
Python
31 lines
946 B
Python
|
# Generated by Django 3.1.3 on 2022-01-14 08:36
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import uuid
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='ServerMessage',
|
||
|
fields=[
|
||
|
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||
|
('subject', models.CharField(max_length=500)),
|
||
|
('body', models.TextField()),
|
||
|
('is_active', models.BooleanField(default=True)),
|
||
|
('publish_on', models.DateTimeField()),
|
||
|
('unpublish_on', models.DateTimeField()),
|
||
|
('importance', models.CharField(choices=[('default', 'Default'), ('info', 'Info'), ('warning', 'Warning')], max_length=100)),
|
||
|
],
|
||
|
options={
|
||
|
'abstract': False,
|
||
|
},
|
||
|
),
|
||
|
]
|