kumify/msgio/migrations/0001_initial.py

71 lines
3.1 KiB
Python
Raw Normal View History

# Generated by Django 5.0.6 on 2024-05-17 11:30
import django.db.models.deletion
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='GatewayUser',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('gateway', models.CharField(max_length=64)),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.CreateModel(
name='GatewayUserSetting',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('key', models.CharField(max_length=64)),
('value', models.CharField(max_length=256)),
('gatewayuser', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='msgio.gatewayuser')),
],
),
migrations.CreateModel(
name='Notification',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('content', models.TextField()),
('app', models.CharField(blank=True, max_length=64, null=True)),
('data', models.CharField(blank=True, max_length=128, null=True)),
('recipient', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.CreateModel(
name='NotificationDailySchedule',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('time', models.TimeField()),
('last_sent', models.DateField(blank=True, null=True)),
('notification', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='msgio.notification')),
],
),
migrations.CreateModel(
name='NotificationDatetimeSchedule',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('datetime', models.DateTimeField()),
('sent', models.BooleanField(default=False)),
('notification', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='msgio.notification')),
],
),
migrations.CreateModel(
name='NotificationDispatcher',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('dispatcher', models.CharField(max_length=64)),
('notification', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='msgio.notification')),
],
),
]