You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.3 KiB
31 lines
1.3 KiB
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.9.7 on 2016-08-18 14:18
|
|
from __future__ import unicode_literals
|
|
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import django.utils.timezone
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
('wallets', '0005_auto_20160809_1727'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Transaction',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('complete', models.BooleanField(default=False, editable=False)),
|
|
('created_at', models.DateTimeField(default=django.utils.timezone.now, editable=False)),
|
|
('voids_at', models.DateTimeField()),
|
|
('sum', models.DecimalField(decimal_places=0, max_digits=20)),
|
|
('type', models.CharField(choices=[('add', 'Пополнение'), ('reservation', 'Резервирование')], max_length=20)),
|
|
('customer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='customer_transactions', to=settings.AUTH_USER_MODEL)),
|
|
],
|
|
),
|
|
]
|
|
|