mirror of https://github.com/snachodog/mybuddy.git
Update initial migration.
This commit is contained in:
parent
48f8c11408
commit
0c03e93a72
|
@ -1,5 +1,5 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Generated by Django 1.11.4 on 2017-08-13 21:05
|
# Generated by Django 1.11.4 on 2017-08-16 19:50
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
|
@ -15,7 +15,7 @@ class Migration(migrations.Migration):
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='Baby',
|
name='Child',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
('first_name', models.CharField(max_length=255)),
|
('first_name', models.CharField(max_length=255)),
|
||||||
|
@ -23,9 +23,9 @@ class Migration(migrations.Migration):
|
||||||
('birth_date', models.DateField()),
|
('birth_date', models.DateField()),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
'verbose_name_plural': 'Babies',
|
'verbose_name_plural': 'Children',
|
||||||
'default_permissions': ('view', 'add', 'change', 'delete'),
|
|
||||||
'ordering': ['last_name', 'first_name'],
|
'ordering': ['last_name', 'first_name'],
|
||||||
|
'default_permissions': ('view', 'add', 'change', 'delete'),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
|
@ -36,7 +36,7 @@ class Migration(migrations.Migration):
|
||||||
('wet', models.BooleanField()),
|
('wet', models.BooleanField()),
|
||||||
('solid', models.BooleanField()),
|
('solid', models.BooleanField()),
|
||||||
('color', models.CharField(blank=True, choices=[('black', 'Black'), ('brown', 'Brown'), ('green', 'Green'), ('yellow', 'Yellow')], max_length=255)),
|
('color', models.CharField(blank=True, choices=[('black', 'Black'), ('brown', 'Brown'), ('green', 'Green'), ('yellow', 'Yellow')], max_length=255)),
|
||||||
('baby', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='diaper_change', to='core.Baby')),
|
('child', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='diaper_change', to='core.Child')),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
'default_permissions': ('view', 'add', 'change', 'delete'),
|
'default_permissions': ('view', 'add', 'change', 'delete'),
|
||||||
|
@ -51,7 +51,7 @@ class Migration(migrations.Migration):
|
||||||
('end', models.DateTimeField()),
|
('end', models.DateTimeField()),
|
||||||
('type', models.CharField(choices=[('breast milk', 'Breast milk'), ('formula', 'Formula')], max_length=255)),
|
('type', models.CharField(choices=[('breast milk', 'Breast milk'), ('formula', 'Formula')], max_length=255)),
|
||||||
('method', models.CharField(choices=[('bottle', 'Bottle'), ('left breast', 'Left breast'), ('right breast', 'Right breast')], max_length=255)),
|
('method', models.CharField(choices=[('bottle', 'Bottle'), ('left breast', 'Left breast'), ('right breast', 'Right breast')], max_length=255)),
|
||||||
('baby', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='feeding', to='core.Baby')),
|
('child', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='feeding', to='core.Child')),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
'default_permissions': ('view', 'add', 'change', 'delete'),
|
'default_permissions': ('view', 'add', 'change', 'delete'),
|
||||||
|
@ -64,7 +64,7 @@ class Migration(migrations.Migration):
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
('note', models.TextField()),
|
('note', models.TextField()),
|
||||||
('time', models.DateTimeField(auto_now=True)),
|
('time', models.DateTimeField(auto_now=True)),
|
||||||
('baby', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='note', to='core.Baby')),
|
('child', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='note', to='core.Child')),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
'default_permissions': ('view', 'add', 'change', 'delete'),
|
'default_permissions': ('view', 'add', 'change', 'delete'),
|
||||||
|
@ -77,12 +77,12 @@ class Migration(migrations.Migration):
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
('start', models.DateTimeField()),
|
('start', models.DateTimeField()),
|
||||||
('end', models.DateTimeField()),
|
('end', models.DateTimeField()),
|
||||||
('baby', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='sleep', to='core.Baby')),
|
('child', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='sleep', to='core.Child')),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
'verbose_name_plural': 'Sleep',
|
'verbose_name_plural': 'Sleep',
|
||||||
'default_permissions': ('view', 'add', 'change', 'delete'),
|
|
||||||
'ordering': ['-start'],
|
'ordering': ['-start'],
|
||||||
|
'default_permissions': ('view', 'add', 'change', 'delete'),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
|
@ -92,7 +92,7 @@ class Migration(migrations.Migration):
|
||||||
('start', models.DateTimeField()),
|
('start', models.DateTimeField()),
|
||||||
('end', models.DateTimeField()),
|
('end', models.DateTimeField()),
|
||||||
('milestone', models.CharField(blank=True, max_length=255)),
|
('milestone', models.CharField(blank=True, max_length=255)),
|
||||||
('baby', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='tummy_time', to='core.Baby')),
|
('child', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='tummy_time', to='core.Child')),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
'default_permissions': ('view', 'add', 'change', 'delete'),
|
'default_permissions': ('view', 'add', 'change', 'delete'),
|
||||||
|
|
Loading…
Reference in New Issue