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

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='BraintreeLog',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('timestamp', models.DateTimeField(auto_now_add=True)),
                ('transid', models.CharField(max_length=100)),
                ('message', models.TextField()),
                ('error', models.BooleanField(default=False)),
                ('sent', models.BooleanField(default=False)),
            ],
        ),
        migrations.CreateModel(
            name='BraintreeTransaction',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('transid', models.CharField(unique=True, max_length=100)),
                ('authorizedat', models.DateTimeField()),
                ('settledat', models.DateTimeField(null=True, blank=True)),
                ('disbursedat', models.DateTimeField(null=True, blank=True)),
                ('amount', models.IntegerField()),
                ('disbursedamount', models.DecimalField(null=True, max_digits=20, decimal_places=2, blank=True)),
                ('method', models.CharField(max_length=100, null=True, blank=True)),
                ('accounting_object', models.CharField(max_length=30, null=True, blank=True)),
            ],
        ),
    ]