117 lines
3.9 KiB
Python
117 lines
3.9 KiB
Python
# Generated by Django 5.2.19 on 2026-11-22 09:54
|
|
|
|
import django.db.models.deletion
|
|
import django.utils.timezone
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
("hosting", "0043_dns_parity"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name="hostingplan",
|
|
name="allow_external_mail_forwarding",
|
|
field=models.BooleanField(
|
|
default=False,
|
|
help_text=(
|
|
"Allow aliases to forward outside their mail domain."
|
|
),
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="hostingplan",
|
|
name="allow_mail_catchall",
|
|
field=models.BooleanField(
|
|
default=False,
|
|
help_text=(
|
|
"Allow a mailbox to receive otherwise unknown recipients."
|
|
),
|
|
),
|
|
),
|
|
migrations.CreateModel(
|
|
name="MailRoutingPublication",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.BigAutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
(
|
|
"requested_at",
|
|
models.DateTimeField(default=django.utils.timezone.now),
|
|
),
|
|
(
|
|
"last_dispatched_at",
|
|
models.DateTimeField(blank=True, null=True),
|
|
),
|
|
("started_at", models.DateTimeField(blank=True, null=True)),
|
|
("finished_at", models.DateTimeField(blank=True, null=True)),
|
|
("problem", models.TextField(blank=True)),
|
|
("manifest", models.JSONField()),
|
|
(
|
|
"applied_manifest",
|
|
models.JSONField(blank=True, default=dict),
|
|
),
|
|
(
|
|
"mail_domain",
|
|
models.OneToOneField(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="routing",
|
|
to="hosting.hostingmaildomain",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"abstract": False,
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="MailVacationPublication",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.BigAutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
(
|
|
"requested_at",
|
|
models.DateTimeField(default=django.utils.timezone.now),
|
|
),
|
|
(
|
|
"last_dispatched_at",
|
|
models.DateTimeField(blank=True, null=True),
|
|
),
|
|
("started_at", models.DateTimeField(blank=True, null=True)),
|
|
("finished_at", models.DateTimeField(blank=True, null=True)),
|
|
("problem", models.TextField(blank=True)),
|
|
("manifest", models.JSONField()),
|
|
(
|
|
"applied_manifest",
|
|
models.JSONField(blank=True, default=dict),
|
|
),
|
|
(
|
|
"mailbox",
|
|
models.OneToOneField(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="vacation",
|
|
to="hosting.hostingmailbox",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"abstract": False,
|
|
},
|
|
),
|
|
]
|