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

33 lines
1.3 KiB
Python
Raw Normal View History

2017-02-01 13:51:15 +01:00
# -*- coding: utf-8 -*-
2017-02-04 06:51:09 +01:00
# Generated by Django 1.10.5 on 2017-02-04 05:47
2017-02-01 13:51:15 +01:00
from __future__ import unicode_literals
2017-02-04 06:51:09 +01:00
from django.conf import settings
2017-02-01 13:51:15 +01:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
2017-02-04 06:51:09 +01:00
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
2017-02-01 13:51:15 +01:00
('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)),
2017-02-04 06:51:09 +01:00
('users', models.ManyToManyField(related_name='locations', to=settings.AUTH_USER_MODEL)),
2017-02-01 13:51:15 +01:00
],
),
]