update data model
This commit is contained in:
29
billard/migrations/0002_location.py
Normal file
29
billard/migrations/0002_location.py
Normal file
@@ -0,0 +1,29 @@
|
||||
# -*- 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)),
|
||||
],
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user