Verified Commit ed165670 authored by David Haynes's avatar David Haynes 🙆
Browse files

.gitignore migrations

- oops that slipped in
parent 911a2a00
Pipeline #1375 passed with stage
in 1 minute and 4 seconds
...@@ -13,5 +13,5 @@ whats_open/secret_key.py ...@@ -13,5 +13,5 @@ whats_open/secret_key.py
whats_open/assets/ whats_open/assets/
static/admin/ static/admin/
data data
whats_open/website/migrations whats-open/api/migrations
.vscode .vscode
\ No newline at end of file
# -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-29 19:53
from __future__ import unicode_literals
import autoslug.fields
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import model_utils.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
('name', models.CharField(max_length=100)),
],
options={
'verbose_name': 'category',
'verbose_name_plural': 'categories',
'ordering': ['name'],
},
),
migrations.CreateModel(
name='Facility',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
('name', models.CharField(max_length=100)),
('slug', autoslug.fields.AutoSlugField(editable=False, populate_from='name', unique=True)),
('facility_category', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='facilities', to='api.Category')),
],
options={
'verbose_name': 'facility',
'verbose_name_plural': 'facilities',
'ordering': ['name'],
},
),
migrations.CreateModel(
name='Location',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
('building', models.CharField(max_length=100)),
('address', models.CharField(max_length=100)),
('on_campus', models.BooleanField(default=True)),
],
options={
'verbose_name': 'location',
'verbose_name_plural': 'locations',
},
),
migrations.CreateModel(
name='OpenTime',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
('start_day', models.IntegerField(choices=[(0, 'Monday'), (1, 'Tuesday'), (2, 'Wednesday'), (3, 'Thursday'), (4, 'Friday'), (5, 'Saturday'), (6, 'Sunday')], default=0)),
('start_time', models.TimeField()),
('end_day', models.IntegerField(choices=[(0, 'Monday'), (1, 'Tuesday'), (2, 'Wednesday'), (3, 'Thursday'), (4, 'Friday'), (5, 'Saturday'), (6, 'Sunday')], default=0)),
('end_time', models.TimeField()),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='Schedule',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
('name', models.CharField(max_length=100)),
('valid_start', models.DateField(blank=True, help_text='Date that this schedule goes\n into effect', null=True, verbose_name='Start Date')),
('valid_end', models.DateField(blank=True, help_text='Last day that this schedule is\n in effect', null=True, verbose_name='End Date')),
],
options={
'ordering': ['name'],
},
),
migrations.AddField(
model_name='opentime',
name='schedule',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='open_times', to='api.Schedule'),
),
migrations.AddField(
model_name='facility',
name='facility_location',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='facilities', to='api.Location'),
),
migrations.AddField(
model_name='facility',
name='main_schedule',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='facility_main', to='api.Schedule'),
),
migrations.AddField(
model_name='facility',
name='owners',
field=models.ManyToManyField(to=settings.AUTH_USER_MODEL),
),
migrations.AddField(
model_name='facility',
name='special_schedules',
field=models.ManyToManyField(blank=True, help_text='This schedule will\n come into effect\n only for its\n specified duration.\n ', related_name='facility_special', to='api.Schedule'),
),
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment