28 lines
1.2 KiB
Python
28 lines
1.2 KiB
Python
# Generated by Django 4.1 on 2022-08-17 19:05
|
|
|
|
from django.db import migrations, models
|
|
import uuid
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Transaction',
|
|
fields=[
|
|
('uuid', models.UUIDField(db_index=True, default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)),
|
|
('amount', models.IntegerField(verbose_name='amount')),
|
|
('delay', models.IntegerField(blank=True, default=0)),
|
|
('state', models.IntegerField(choices=[(1, 'created'), (2, 'delayed'), (3, 'pending'), (4, 'incomplete'), (5, 'success'), (6, 'failed'), (7, 'expected_failure')], default=1)),
|
|
('create', models.DateTimeField(auto_now=True, null=True, verbose_name='create')),
|
|
('last_update', models.DateTimeField(auto_now=True, null=True, verbose_name='last update')),
|
|
('application_client_id', models.CharField(db_index=True, max_length=100, null=True)),
|
|
('detail_id', models.IntegerField(blank=True, null=True)),
|
|
],
|
|
),
|
|
]
|