carom-server/billard/migrations/0001_initial.py

45 lines
1.4 KiB
Python
Raw Normal View History

2017-01-03 19:29:13 +01:00
# -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-03 18:28
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Client',
fields=[
('id', models.UUIDField(editable=False, primary_key=True, serialize=False)),
],
),
migrations.CreateModel(
name='Location',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=30, unique=True)),
],
),
migrations.CreateModel(
name='Table',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('number', models.IntegerField()),
('name', models.CharField(max_length=30)),
('client', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='billard.Client')),
],
),
migrations.AddField(
model_name='client',
name='location',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='billard.Location'),
),
]