1# -*- coding: utf-8 -*- 

2 

3from django.db import models, migrations 

4 

5 

6class Migration(migrations.Migration): 

7 

8 dependencies = [ 

9 ('django_email_accounts', '0001_initial'), 

10 ] 

11 

12 operations = [ 

13 migrations.CreateModel( 

14 name='BounceStats', 

15 fields=[ 

16 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), 

17 ('mails_sent', models.IntegerField(default=0)), 

18 ('mails_bounced', models.IntegerField(default=0)), 

19 ('date', models.DateField()), 

20 ], 

21 options={ 

22 'ordering': ['-date'], 

23 }, 

24 bases=(models.Model,), 

25 ), 

26 migrations.CreateModel( 

27 name='CommandConfirmation', 

28 fields=[ 

29 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), 

30 ('confirmation_key', models.CharField(unique=True, max_length=40)), 

31 ('date_created', models.DateTimeField(auto_now_add=True)), 

32 ('commands', models.TextField()), 

33 ], 

34 options={ 

35 'abstract': False, 

36 }, 

37 bases=(models.Model,), 

38 ), 

39 migrations.CreateModel( 

40 name='UserEmailBounceStats', 

41 fields=[ 

42 ], 

43 options={ 

44 'proxy': True, 

45 }, 

46 bases=('django_email_accounts.useremail',), 

47 ), 

48 migrations.AddField( 

49 model_name='bouncestats', 

50 name='user_email', 

51 field=models.ForeignKey(to='mail.UserEmailBounceStats', on_delete=models.CASCADE), 

52 preserve_default=True, 

53 ), 

54 migrations.AlterUniqueTogether( 

55 name='bouncestats', 

56 unique_together=set([('user_email', 'date')]), 

57 ), 

58 ]