Nav apraksta

0013_patientlog.py 1.4KB

1234567891011121314151617181920212223242526272829
  1. # Generated by Django 3.2.5 on 2021-07-18 07:29
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ('backend', '0012_patient_comment'),
  7. ]
  8. operations = [
  9. migrations.CreateModel(
  10. name='PatientLog',
  11. fields=[
  12. ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  13. ('notes', models.TextField(blank=True, null=True)),
  14. ('condition_level', models.CharField(choices=[('green', 'Green'), ('yellow', 'Yellow'), ('red', 'Red')], max_length=30, null=True)),
  15. ('status', models.CharField(choices=[('active', 'Active'), ('inactive', 'Inactive'), ('transfer', 'Transfer')], max_length=30, null=True)),
  16. ('created_at', models.DateTimeField(auto_now_add=True, null=True)),
  17. ('updated_at', models.DateTimeField(auto_now=True)),
  18. ('bed', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='backend.bed')),
  19. ('hospital', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='backend.hospital')),
  20. ('patient', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='backend.patient')),
  21. ],
  22. ),
  23. ]