Upgrades.
[cas.git] / src / emails / migrations / 0003_aliasusage.py
1 # Generated by Django 2.2 on 2019-04-05 21:03
2
3 from django.db import migrations, models
4 import django.db.models.deletion
5
6
7 class Migration(migrations.Migration):
8
9     dependencies = [
10         ('emails', '0002_alias_mode'),
11     ]
12
13     operations = [
14         migrations.CreateModel(
15             name='AliasUsage',
16             fields=[
17                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
18                 ('date', models.DateField(auto_now_add=True, verbose_name='date')),
19                 ('count', models.PositiveSmallIntegerField(verbose_name='count')),
20                 ('alias', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='alias', to='emails.Alias')),
21             ],
22             options={
23                 'verbose_name': 'alias usage',
24                 'verbose_name_plural': 'alias usage',
25                 'unique_together': {('alias', 'date')},
26             },
27         ),
28     ]