|
|
@@ -0,0 +1,37 @@
|
|
|
+# Generated by Django 3.0.8 on 2020-07-23 13:58
|
|
|
+
|
|
|
+from django.conf import settings
|
|
|
+from django.db import migrations, models
|
|
|
+import django.db.models.deletion
|
|
|
+
|
|
|
+
|
|
|
+class Migration(migrations.Migration):
|
|
|
+
|
|
|
+ initial = True
|
|
|
+
|
|
|
+ dependencies = [
|
|
|
+ ('patient', '0001_initial'),
|
|
|
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
|
+ ('indicatortype', '0002_auto_20200723_1641'),
|
|
|
+ ]
|
|
|
+
|
|
|
+ operations = [
|
|
|
+ migrations.CreateModel(
|
|
|
+ name='Indicator',
|
|
|
+ fields=[
|
|
|
+ ('id', models.AutoField(primary_key=True, serialize=False)),
|
|
|
+ ('value1', models.DecimalField(decimal_places=3, max_digits=8)),
|
|
|
+ ('value2', models.DecimalField(blank=True, decimal_places=3, max_digits=8, null=True)),
|
|
|
+ ('value_added', models.DateTimeField()),
|
|
|
+ ('last_modified', models.DateTimeField(auto_now=True)),
|
|
|
+ ('comments', models.CharField(blank=True, max_length=150, null=True)),
|
|
|
+ ('observing', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
|
|
+ ('patient', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='patient.Patient')),
|
|
|
+ ('type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='indicatortype.IndicatorType')),
|
|
|
+ ],
|
|
|
+ options={
|
|
|
+ 'verbose_name': 'Измерение',
|
|
|
+ 'verbose_name_plural': 'Измерения',
|
|
|
+ },
|
|
|
+ ),
|
|
|
+ ]
|