37 lines
1.5 KiB
Python
37 lines
1.5 KiB
Python
# Generated by Django 5.2.16 on 2026-07-20 23:57
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
('profiles', '0001_initial'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='DigestOutbox',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
('updated_at', models.DateTimeField(auto_now=True)),
|
|
('dedupe_key', models.CharField(max_length=200, unique=True)),
|
|
('scheduled_for', models.DateTimeField(db_index=True)),
|
|
('recipient', models.EmailField(blank=True, max_length=254)),
|
|
('subject', models.CharField(max_length=300)),
|
|
('payload', models.JSONField(default=dict)),
|
|
('status', models.CharField(choices=[('pending', 'Klaar'), ('sent', 'Verzonden'), ('failed', 'Mislukt'), ('skipped', 'Overgeslagen')], default='pending', max_length=16)),
|
|
('sent_at', models.DateTimeField(blank=True, null=True)),
|
|
('error_message', models.CharField(blank=True, max_length=1000)),
|
|
('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='digests', to='profiles.searchprofile')),
|
|
],
|
|
options={
|
|
'ordering': ['-scheduled_for'],
|
|
},
|
|
),
|
|
]
|