furmeet-bot/webproj/bot/migrations/0027_groupplanneddispatch_groupplannedmessage.py

58 lines
2.9 KiB
Python

# Generated by Django 3.1 on 2020-08-27 22:36
import ckeditor.fields
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import uuid
class Migration(migrations.Migration):
dependencies = [
('bot', '0026_grouppreferences_planned_message_timezone'),
]
operations = [
migrations.CreateModel(
name='GroupPlannedMessage',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created', models.DateTimeField(auto_now_add=True)),
('modified', models.DateTimeField(auto_now=True)),
('uuid', models.UUIDField(default=uuid.uuid4, editable=False)),
('tags', models.TextField(blank=True, default='')),
('message', ckeditor.fields.RichTextField(blank=True, default='', max_length=4000)),
('group_preferences', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='planned_messages', to='bot.grouppreferences')),
],
options={
'ordering': ['group_preferences', 'tags', 'message'],
},
),
migrations.CreateModel(
name='GroupPlannedDispatch',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created', models.DateTimeField(auto_now_add=True)),
('modified', models.DateTimeField(auto_now=True)),
('uuid', models.UUIDField(default=uuid.uuid4, editable=False)),
('tags', models.TextField(blank=True, default='')),
('day_sunday', models.BooleanField(blank=True, default=False)),
('day_monday', models.BooleanField(blank=True, default=False)),
('day_tueday', models.BooleanField(blank=True, default=False)),
('day_wednesday', models.BooleanField(blank=True, default=False)),
('day_thursday', models.BooleanField(blank=True, default=False)),
('day_friday', models.BooleanField(blank=True, default=False)),
('day_saturday', models.BooleanField(blank=True, default=False)),
('time_start', models.TimeField(default='00:00:00')),
('time_end', models.TimeField(default='23:59:59')),
('time_repeat', models.TimeField(default='00:30:00')),
('time_last_dispatch', models.DateTimeField(default=django.utils.timezone.now)),
('group_preferences', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='planned_message_dispatches', to='bot.grouppreferences')),
],
options={
'ordering': ['group_preferences', 'time_start', 'time_end', 'tags'],
},
),
]