summaryrefslogtreecommitdiff
path: root/postgresqleu/paypal/migrations/0001_initial.py
blob: 4dc61a584b5ec22ea94f37c1d40fb29099f06552 (plain)
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
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models
import datetime


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='ErrorLog',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('timestamp', models.DateTimeField()),
                ('message', models.TextField()),
                ('sent', models.BooleanField()),
            ],
        ),
        migrations.CreateModel(
            name='SourceAccount',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('accountname', models.CharField(max_length=16)),
                ('lastsync', models.DateTimeField(default=datetime.datetime(2009, 1, 1, 0, 0))),
            ],
        ),
        migrations.CreateModel(
            name='TransactionInfo',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('paypaltransid', models.CharField(unique=True, max_length=20)),
                ('timestamp', models.DateTimeField()),
                ('sender', models.CharField(max_length=200)),
                ('sendername', models.CharField(max_length=200)),
                ('amount', models.DecimalField(max_digits=10, decimal_places=2)),
                ('fee', models.DecimalField(null=True, max_digits=10, decimal_places=2, blank=True)),
                ('transtext', models.CharField(max_length=1000)),
                ('matched', models.BooleanField()),
                ('matchinfo', models.CharField(max_length=1000, null=True, blank=True)),
                ('sourceaccount', models.ForeignKey(to='paypal.SourceAccount', on_delete=models.CASCADE)),
            ],
        ),
    ]