2021-12-29 07:53:36 +00:00
|
|
|
# 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"),
|
2021-12-29 07:53:36 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2022-02-10 00:00:30 +00:00
|
|
|
name="Height",
|
2021-12-29 07:53:36 +00:00
|
|
|
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",
|
|
|
|
),
|
|
|
|
),
|
2021-12-29 07:53:36 +00:00
|
|
|
],
|
|
|
|
options={
|
2022-02-10 00:00:30 +00:00
|
|
|
"verbose_name": "Height",
|
|
|
|
"verbose_name_plural": "Height",
|
|
|
|
"ordering": ["-date"],
|
|
|
|
"default_permissions": ("view", "add", "change", "delete"),
|
2021-12-29 07:53:36 +00:00
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2022-02-10 00:00:30 +00:00
|
|
|
name="HeadCircumference",
|
2021-12-29 07:53:36 +00:00
|
|
|
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",
|
|
|
|
),
|
|
|
|
),
|
2021-12-29 07:53:36 +00:00
|
|
|
],
|
|
|
|
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"),
|
2021-12-29 07:53:36 +00:00
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2022-02-10 00:00:30 +00:00
|
|
|
name="BMI",
|
2021-12-29 07:53:36 +00:00
|
|
|
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",
|
|
|
|
),
|
|
|
|
),
|
2021-12-29 07:53:36 +00:00
|
|
|
],
|
|
|
|
options={
|
2022-02-10 00:00:30 +00:00
|
|
|
"verbose_name": "BMI",
|
|
|
|
"verbose_name_plural": "BMI",
|
|
|
|
"ordering": ["-date"],
|
|
|
|
"default_permissions": ("view", "add", "change", "delete"),
|
2021-12-29 07:53:36 +00:00
|
|
|
},
|
|
|
|
),
|
|
|
|
]
|