Add migrations files
This commit is contained in:
parent
a7c794ed79
commit
ed67c61a9c
|
@ -0,0 +1,32 @@
|
||||||
|
# Generated by Django 4.2 on 2023-07-11 11:16
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
("followup", "0055_alter_injury_body_side"),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.CreateModel(
|
||||||
|
name="InjuryType",
|
||||||
|
fields=[
|
||||||
|
(
|
||||||
|
"id",
|
||||||
|
models.BigAutoField(
|
||||||
|
auto_created=True,
|
||||||
|
primary_key=True,
|
||||||
|
serialize=False,
|
||||||
|
verbose_name="ID",
|
||||||
|
),
|
||||||
|
),
|
||||||
|
("label", models.CharField(max_length=100)),
|
||||||
|
],
|
||||||
|
options={
|
||||||
|
"verbose_name": "Injury Type",
|
||||||
|
"verbose_name_plural": "Injury Types",
|
||||||
|
},
|
||||||
|
),
|
||||||
|
]
|
|
@ -0,0 +1,27 @@
|
||||||
|
# Generated by Django 4.2 on 2023-07-11 11:24
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import django.db.models.deletion
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
("followup", "0058_injurytype"),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name="injury",
|
||||||
|
name="injury_type",
|
||||||
|
field=models.ForeignKey(
|
||||||
|
blank=True,
|
||||||
|
default=None,
|
||||||
|
null=True,
|
||||||
|
on_delete=django.db.models.deletion.SET_NULL,
|
||||||
|
related_name="injuries",
|
||||||
|
to="followup.injurytype",
|
||||||
|
verbose_name="Type",
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
|
@ -0,0 +1,53 @@
|
||||||
|
# Generated by Django 4.2 on 2023-10-11 11:19
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import django.db.models.deletion
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
("followup", "0059_injury_injury_type"),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="injury",
|
||||||
|
name="injury_type",
|
||||||
|
field=models.SmallIntegerField(
|
||||||
|
choices=[
|
||||||
|
(0, "Abrasion"),
|
||||||
|
(1, "Dental Injury"),
|
||||||
|
(2, "Dislocation / Subluxation"),
|
||||||
|
(3, "Fracture"),
|
||||||
|
(4, "Haematoma / Contusion / Bruise"),
|
||||||
|
(5, "Head Concussion"),
|
||||||
|
(6, "Laceration"),
|
||||||
|
(7, "Lesion of Meniscus or Cartilage"),
|
||||||
|
(8, "Muscle Rupture /Strain / Tear / Cramps"),
|
||||||
|
(9, "Nerve Injury"),
|
||||||
|
(10, "Other Bone Injury"),
|
||||||
|
(11, "Sprain / Ligament Injury"),
|
||||||
|
(12, "Tendon Injury / Rupture / Tendinosis / Bursitis"),
|
||||||
|
],
|
||||||
|
default=1,
|
||||||
|
verbose_name="Injury type",
|
||||||
|
),
|
||||||
|
preserve_default=False,
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="injury",
|
||||||
|
name="location",
|
||||||
|
field=models.ForeignKey(
|
||||||
|
default=1,
|
||||||
|
on_delete=django.db.models.deletion.CASCADE,
|
||||||
|
related_name="injuries",
|
||||||
|
to="followup.injurylocation",
|
||||||
|
verbose_name="Location",
|
||||||
|
),
|
||||||
|
preserve_default=False,
|
||||||
|
),
|
||||||
|
migrations.DeleteModel(
|
||||||
|
name="InjuryType",
|
||||||
|
),
|
||||||
|
]
|
|
@ -0,0 +1,9 @@
|
||||||
|
/** @type {import('tailwindcss').Config} */
|
||||||
|
module.exports = {
|
||||||
|
content: [],
|
||||||
|
theme: {
|
||||||
|
extend: {},
|
||||||
|
},
|
||||||
|
plugins: [],
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue