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

34 lines
1.3 KiB
Python
Raw Permalink Normal View History

2017-02-11 10:23:03 +01:00
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-11 09:03
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-11 10:23:03 +01:00
class Migration(migrations.Migration):
dependencies = [
('billard', '0012_auto_20170211_1003'),
]
operations = [
migrations.CreateModel(
name='Accounting',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('time_from', models.DateTimeField(verbose_name='Beginn')),
('time_to', models.DateTimeField(blank=True, null=True, verbose_name='Ende')),
2018-02-11 10:56:44 +01:00
('prize',
models.DecimalField(blank=True, decimal_places=2, max_digits=5, null=True, verbose_name='Preis')),
2017-02-11 10:23:03 +01:00
('billed', models.BooleanField(default=False, verbose_name='Abgerechnet')),
2018-02-11 10:56:44 +01:00
('desk', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='billard.Desk',
verbose_name='Tisch')),
2017-02-11 10:23:03 +01:00
],
options={
'verbose_name_plural': 'Buchhaltungseinträge',
'verbose_name': 'Buchhaltungseintrag',
'ordering': ['-time_from'],
},
),
]