35 lines
1.3 KiB
Python
35 lines
1.3 KiB
Python
# Generated by Django 3.2.4 on 2022-10-13 15:55
|
|
|
|
from django.db import migrations, models
|
|
import django.utils.timezone
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('Main', '0038_auto_20220516_1836'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='OutboxMessage',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('queue', models.TextField()),
|
|
('body', models.JSONField()),
|
|
('time_created', models.DateTimeField(default=django.utils.timezone.now)),
|
|
('time_sent', models.DateTimeField(default=None, null=True)),
|
|
('time_received', models.DateTimeField(default=None, null=True)),
|
|
('time_processed', models.DateTimeField(default=None, null=True)),
|
|
],
|
|
),
|
|
migrations.AddIndex(
|
|
model_name='outboxmessage',
|
|
index=models.Index(fields=['time_sent'], name='Main_outbox_time_se_4fc52a_idx'),
|
|
),
|
|
migrations.AddIndex(
|
|
model_name='outboxmessage',
|
|
index=models.Index(fields=['time_sent', 'time_processed'], name='Main_outbox_time_se_edcbac_idx'),
|
|
),
|
|
]
|