carom-server/billard/migrations/0007_desk.py

35 lines
1.5 KiB
Python
Raw Normal View History

# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-10 18:30
from __future__ import unicode_literals
import django.db.models.deletion
2018-02-11 10:56:44 +01:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('billard', '0006_auto_20170206_2031'),
]
operations = [
migrations.CreateModel(
name='Desk',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('desk_no', models.IntegerField(verbose_name='Tischnummer')),
('name', models.CharField(blank=True, max_length=32, null=True, verbose_name='Tischbezeichnung')),
('enabled', models.BooleanField(verbose_name='Tisch aktiv')),
2018-02-11 10:56:44 +01:00
('prize', models.DecimalField(blank=True, decimal_places=2, max_digits=5, null=True,
verbose_name='Normelpreis')),
('prize_hh', models.DecimalField(blank=True, decimal_places=2, max_digits=5, null=True,
verbose_name='Preis Happy Hour')),
('client', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='billard.Client',
verbose_name='Client')),
],
options={
'verbose_name_plural': 'Tische',
'verbose_name': 'Tisch',
},
),
]