carom-server/billard/migrations/0002_location.py

30 lines
1.1 KiB
Python
Raw Normal View History

2017-02-01 13:51:15 +01:00
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-01 12:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('billard', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Location',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('code', models.CharField(max_length=16, unique=True)),
('name', models.CharField(max_length=64, unique=True)),
('street', models.CharField(blank=True, max_length=64, null=True)),
('plz', models.CharField(blank=True, max_length=8, null=True)),
('city', models.CharField(blank=True, max_length=64, null=True)),
('phone', models.CharField(blank=True, max_length=64, null=True)),
('email', models.EmailField(blank=True, max_length=254, null=True)),
('url', models.URLField(blank=True, null=True)),
],
),
]