Coverage for distro_tracker/mail/migrations/0001_initial_v2.py: 100%
7 statements
« prev ^ index » next coverage.py v6.5.0, created at 2025-01-12 09:15 +0000
« prev ^ index » next coverage.py v6.5.0, created at 2025-01-12 09:15 +0000
1# Generated by Django 3.2.20 on 2023-08-19 16:25
3from django.db import migrations, models
4import django.db.models.deletion
7class Migration(migrations.Migration):
9 initial = True
11 replaces = [
12 ('mail', '0001_initial'),
13 ('mail', '0002_auto_20230731_2032'),
14 ]
16 dependencies = [
17 ('django_email_accounts', '0001_initial_v2'),
18 ]
20 operations = [
21 migrations.CreateModel(
22 name='CommandConfirmation',
23 fields=[
24 ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
25 ('confirmation_key', models.CharField(max_length=40, unique=True)),
26 ('date_created', models.DateTimeField(auto_now_add=True)),
27 ('commands', models.TextField()),
28 ],
29 options={
30 'abstract': False,
31 },
32 ),
33 migrations.CreateModel(
34 name='UserEmailBounceStats',
35 fields=[
36 ],
37 options={
38 'proxy': True,
39 'indexes': [],
40 'constraints': [],
41 },
42 bases=('django_email_accounts.useremail',),
43 ),
44 migrations.CreateModel(
45 name='BounceStats',
46 fields=[
47 ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
48 ('mails_sent', models.IntegerField(default=0)),
49 ('mails_bounced', models.IntegerField(default=0)),
50 ('date', models.DateField()),
51 ('user_email', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='mail.useremailbouncestats')),
52 ],
53 options={
54 'ordering': ['-date'],
55 'unique_together': {('user_email', 'date')},
56 },
57 ),
58 ]