carom-server/billard/migrations/0004_accounting.py

30 lines
1021 B
Python
Raw Permalink Normal View History

2017-02-01 20:25:33 +01:00
# -*- coding: utf-8 -*-
2017-02-04 11:18:35 +01:00
# Generated by Django 1.10.5 on 2017-02-04 10:17
2017-02-01 20:25:33 +01:00
from __future__ import unicode_literals
import django.db.models.deletion
2018-02-11 10:56:44 +01:00
from django.db import migrations, models
2017-02-01 20:25:33 +01:00
class Migration(migrations.Migration):
dependencies = [
('billard', '0003_client'),
]
operations = [
migrations.CreateModel(
name='Accounting',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('desk_no', models.IntegerField()),
('time_from', models.DateTimeField()),
('time_to', models.DateTimeField(blank=True, null=True)),
('prize', models.DecimalField(blank=True, decimal_places=2, max_digits=5, null=True)),
('client', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='billard.Client')),
],
2017-02-04 06:51:09 +01:00
options={
'ordering': ['-time_from'],
},
2017-02-01 20:25:33 +01:00
),
]