Initial commit
This commit is contained in:
51
hospitalmanagement/hospital/migrations/0001_initial.py
Normal file
51
hospitalmanagement/hospital/migrations/0001_initial.py
Normal file
@@ -0,0 +1,51 @@
|
||||
# Generated by Django 3.0.5 on 2020-05-15 04:45
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='TeacherExtra',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('salary', models.PositiveIntegerField()),
|
||||
('joindate', models.DateField(auto_now_add=True)),
|
||||
('mobile', models.CharField(max_length=40)),
|
||||
('status', models.BooleanField(default=False)),
|
||||
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Patient',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('address', models.CharField(max_length=40)),
|
||||
('mobile', models.CharField(max_length=40, null=True)),
|
||||
('symptoms', models.CharField(max_length=100, null=True)),
|
||||
('assignedDoctorId', models.PositiveIntegerField()),
|
||||
('status', models.BooleanField(default=False)),
|
||||
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Doctor',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('address', models.CharField(max_length=40)),
|
||||
('mobile', models.CharField(max_length=40, null=True)),
|
||||
('department', models.CharField(choices=[('Cardiologist', 'Cardiologist'), ('Dermatologists', 'Dermatologists'), ('Emergency Medicine Specialists', 'Emergency Medicine Specialists'), ('Allergists/Immunologists', 'Allergists/Immunologists'), ('Anesthesiologists', 'Anesthesiologists'), ('Colon and Rectal Surgeons', 'Colon and Rectal Surgeons')], default='Cardiologist', max_length=50)),
|
||||
('status', models.BooleanField(default=False)),
|
||||
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,16 @@
|
||||
# Generated by Django 3.0.5 on 2020-05-15 04:46
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hospital', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.DeleteModel(
|
||||
name='TeacherExtra',
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.0.5 on 2020-05-18 03:04
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hospital', '0002_delete_teacherextra'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='patient',
|
||||
name='admitDate',
|
||||
field=models.DateField(auto_now=True),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,33 @@
|
||||
# Generated by Django 3.0.5 on 2020-05-18 08:47
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hospital', '0003_patient_admitdate'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='PatientDischargeDetails',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('patientId', models.PositiveIntegerField()),
|
||||
('patientName', models.CharField(max_length=40)),
|
||||
('assignedDoctorName', models.CharField(max_length=40)),
|
||||
('address', models.CharField(max_length=40)),
|
||||
('mobile', models.CharField(max_length=40, null=True)),
|
||||
('symptoms', models.CharField(max_length=100, null=True)),
|
||||
('admitDate', models.DateField()),
|
||||
('releaseDate', models.DateField()),
|
||||
('daySpent', models.PositiveIntegerField()),
|
||||
('roomCharge', models.PositiveIntegerField()),
|
||||
('medicineCost', models.PositiveIntegerField()),
|
||||
('doctorFee', models.PositiveIntegerField()),
|
||||
('OtherCharge', models.PositiveIntegerField()),
|
||||
('total', models.PositiveIntegerField()),
|
||||
],
|
||||
),
|
||||
]
|
||||
23
hospitalmanagement/hospital/migrations/0005_appointment.py
Normal file
23
hospitalmanagement/hospital/migrations/0005_appointment.py
Normal file
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 3.0.5 on 2020-05-20 02:15
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hospital', '0004_patientdischargedetails'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Appointment',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('patientId', models.PositiveIntegerField()),
|
||||
('doctorId', models.PositiveIntegerField()),
|
||||
('appointmentDate', models.DateField(auto_now=True)),
|
||||
('description', models.TextField(max_length=500)),
|
||||
],
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.0.5 on 2020-05-20 03:22
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hospital', '0005_appointment'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='appointment',
|
||||
name='status',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,33 @@
|
||||
# Generated by Django 3.0.5 on 2020-05-20 04:53
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hospital', '0006_appointment_status'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='appointment',
|
||||
name='doctorName',
|
||||
field=models.CharField(max_length=40, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='appointment',
|
||||
name='patientName',
|
||||
field=models.CharField(max_length=40, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='patient',
|
||||
name='mobile',
|
||||
field=models.CharField(max_length=40),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='patient',
|
||||
name='symptoms',
|
||||
field=models.CharField(max_length=100),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.0.5 on 2020-05-20 05:21
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hospital', '0007_auto_20200520_1023'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='doctor',
|
||||
name='profile_pic',
|
||||
field=models.ImageField(null=True, upload_to='DoctorProfilePic/'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.0.5 on 2020-05-23 05:48
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hospital', '0008_doctor_profile_pic'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='doctor',
|
||||
name='profile_pic',
|
||||
field=models.ImageField(blank=True, null=True, upload_to=''),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.0.5 on 2020-05-23 05:52
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hospital', '0009_auto_20200523_1118'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='doctor',
|
||||
name='profile_pic',
|
||||
field=models.ImageField(blank=True, null=True, upload_to='static/DoctorProfilePic/'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.0.5 on 2020-05-23 07:55
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hospital', '0010_auto_20200523_1122'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='doctor',
|
||||
name='profile_pic',
|
||||
field=models.ImageField(blank=True, null=True, upload_to='DoctorProfilePic/'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.0.5 on 2020-05-23 08:06
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hospital', '0011_auto_20200523_1325'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='doctor',
|
||||
name='profile_pic',
|
||||
field=models.ImageField(blank=True, null=True, upload_to='profile_pic/DoctorProfilePic/'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.0.5 on 2020-05-23 09:54
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hospital', '0012_auto_20200523_1336'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='patient',
|
||||
name='profile_pic',
|
||||
field=models.ImageField(blank=True, null=True, upload_to='profile_pic/PatientProfilePic/'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.0.5 on 2020-05-26 09:25
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hospital', '0013_patient_profile_pic'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='patientdischargedetails',
|
||||
name='mobile',
|
||||
field=models.CharField(max_length=10, null=True),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 3.0.5 on 2020-05-26 09:31
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hospital', '0014_auto_20200526_1455'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='doctor',
|
||||
name='mobile',
|
||||
field=models.CharField(max_length=10, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='patient',
|
||||
name='mobile',
|
||||
field=models.CharField(max_length=10),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,28 @@
|
||||
# Generated by Django 3.0.5 on 2020-06-22 18:30
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hospital', '0015_auto_20200526_1501'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='doctor',
|
||||
name='mobile',
|
||||
field=models.CharField(max_length=20, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='patient',
|
||||
name='mobile',
|
||||
field=models.CharField(max_length=20),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='patientdischargedetails',
|
||||
name='mobile',
|
||||
field=models.CharField(max_length=20, null=True),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,34 @@
|
||||
# Generated by Django 3.0.5 on 2020-06-22 18:35
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hospital', '0016_auto_20200622_1830'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='appointment',
|
||||
name='doctorId',
|
||||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='hospital.Doctor'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='appointment',
|
||||
name='patientId',
|
||||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='hospital.Patient'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='patient',
|
||||
name='assignedDoctorId',
|
||||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='hospital.Doctor'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='patientdischargedetails',
|
||||
name='patientId',
|
||||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='hospital.Patient'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,33 @@
|
||||
# Generated by Django 3.0.5 on 2020-10-15 15:06
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hospital', '0017_auto_20200622_1835'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='appointment',
|
||||
name='doctorId',
|
||||
field=models.PositiveIntegerField(null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='appointment',
|
||||
name='patientId',
|
||||
field=models.PositiveIntegerField(null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='patient',
|
||||
name='assignedDoctorId',
|
||||
field=models.PositiveIntegerField(null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='patientdischargedetails',
|
||||
name='patientId',
|
||||
field=models.PositiveIntegerField(null=True),
|
||||
),
|
||||
]
|
||||
0
hospitalmanagement/hospital/migrations/__init__.py
Normal file
0
hospitalmanagement/hospital/migrations/__init__.py
Normal file
Reference in New Issue
Block a user