1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

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

 

from django.db import models, migrations 

 

 

class Migration(migrations.Migration): 

 

dependencies = [ 

('django_email_accounts', '0001_initial'), 

] 

 

operations = [ 

migrations.CreateModel( 

name='BounceStats', 

fields=[ 

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

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

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

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

], 

options={ 

'ordering': ['-date'], 

}, 

bases=(models.Model,), 

), 

migrations.CreateModel( 

name='CommandConfirmation', 

fields=[ 

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

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

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

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

], 

options={ 

'abstract': False, 

}, 

bases=(models.Model,), 

), 

migrations.CreateModel( 

name='UserEmailBounceStats', 

fields=[ 

], 

options={ 

'proxy': True, 

}, 

bases=('django_email_accounts.useremail',), 

), 

migrations.AddField( 

model_name='bouncestats', 

name='user_email', 

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

preserve_default=True, 

), 

migrations.AlterUniqueTogether( 

name='bouncestats', 

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

), 

]