mybuddy/core/migrations/0018_bmi_headcircumference_...

122 lines
4.1 KiB
Python
Raw Normal View History

# Generated by Django 3.2.10 on 2021-12-29 05:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
2022-02-10 00:00:30 +00:00
("core", "0017_alter_child_last_name"),
]
operations = [
migrations.CreateModel(
2022-02-10 00:00:30 +00:00
name="Height",
fields=[
2022-02-10 00:00:30 +00:00
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("height", models.FloatField(verbose_name="Height")),
("date", models.DateField(verbose_name="Date")),
(
"notes",
models.TextField(blank=True, null=True, verbose_name="Notes"),
),
(
"child",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="height",
to="core.child",
verbose_name="Child",
),
),
],
options={
2022-02-10 00:00:30 +00:00
"verbose_name": "Height",
"verbose_name_plural": "Height",
"ordering": ["-date"],
"default_permissions": ("view", "add", "change", "delete"),
},
),
migrations.CreateModel(
2022-02-10 00:00:30 +00:00
name="HeadCircumference",
fields=[
2022-02-10 00:00:30 +00:00
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"head_circumference",
models.FloatField(verbose_name="Head Circumference"),
),
("date", models.DateField(verbose_name="Date")),
(
"notes",
models.TextField(blank=True, null=True, verbose_name="Notes"),
),
(
"child",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="head_circumference",
to="core.child",
verbose_name="Child",
),
),
],
options={
2022-02-10 00:00:30 +00:00
"verbose_name": "Head Circumference",
"verbose_name_plural": "Head Circumference",
"ordering": ["-date"],
"default_permissions": ("view", "add", "change", "delete"),
},
),
migrations.CreateModel(
2022-02-10 00:00:30 +00:00
name="BMI",
fields=[
2022-02-10 00:00:30 +00:00
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("bmi", models.FloatField(verbose_name="BMI")),
("date", models.DateField(verbose_name="Date")),
(
"notes",
models.TextField(blank=True, null=True, verbose_name="Notes"),
),
(
"child",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="bmi",
to="core.child",
verbose_name="Child",
),
),
],
options={
2022-02-10 00:00:30 +00:00
"verbose_name": "BMI",
"verbose_name_plural": "BMI",
"ordering": ["-date"],
"default_permissions": ("view", "add", "change", "delete"),
},
),
]