update data model
This commit is contained in:
31
billard/migrations/0003_client.py
Normal file
31
billard/migrations/0003_client.py
Normal file
@@ -0,0 +1,31 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.10.5 on 2017-02-01 12:48
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('billard', '0002_location'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Client',
|
||||
fields=[
|
||||
('id', models.UUIDField(editable=False, primary_key=True, serialize=False)),
|
||||
('desk1_enable', models.BooleanField()),
|
||||
('desk1_name', models.CharField(blank=True, max_length=32, null=True)),
|
||||
('desk1_prize_nt', models.DecimalField(blank=True, decimal_places=2, max_digits=4, null=True)),
|
||||
('desk1_prize_ht', models.DecimalField(blank=True, decimal_places=2, max_digits=4, null=True)),
|
||||
('desk2_enable', models.BooleanField()),
|
||||
('desk2_name', models.CharField(blank=True, max_length=32, null=True)),
|
||||
('desk2_prize_nt', models.DecimalField(blank=True, decimal_places=2, max_digits=4, null=True)),
|
||||
('desk2_prize_ht', models.DecimalField(blank=True, decimal_places=2, max_digits=4, null=True)),
|
||||
('location', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='billard.Location')),
|
||||
],
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user