34 lines
1.5 KiB
Python
34 lines
1.5 KiB
Python
# Generated by Django 5.2.6 on 2025-10-13 12:55
|
|
|
|
import django.db.models.deletion
|
|
import uuid
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('mailbox_manager', '0025_alter_mailbox_secondary_email'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Alias',
|
|
fields=[
|
|
('id', models.UUIDField(default=uuid.uuid4, editable=False, help_text='primary key for the record as UUID', primary_key=True, serialize=False, verbose_name='id')),
|
|
('created_at', models.DateTimeField(auto_now_add=True, help_text='date and time at which a record was created', verbose_name='created at')),
|
|
('updated_at', models.DateTimeField(auto_now=True, help_text='date and time at which a record was last updated', verbose_name='updated at')),
|
|
('local_part', models.CharField(max_length=100)),
|
|
('destination', models.EmailField(max_length=254, verbose_name='destination address')),
|
|
('domain', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='aliases', to='mailbox_manager.maildomain')),
|
|
],
|
|
options={
|
|
'verbose_name': 'Alias',
|
|
'verbose_name_plural': 'Aliases',
|
|
'db_table': 'people_aliases',
|
|
'ordering': ['-created_at'],
|
|
'unique_together': {('local_part', 'destination')},
|
|
},
|
|
),
|
|
]
|