# Generated by Django 3.0.3 on 2020-07-05 21:09

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='Doctor',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('field', models.CharField(max_length=200)),
                ('doc_reg_num', models.CharField(max_length=25)),
            ],
        ),
        migrations.CreateModel(
            name='Profile',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('first_name', models.CharField(max_length=30)),
                ('last_name', models.CharField(max_length=30)),
                ('dob', models.DateField()),
                ('sex', models.CharField(choices=[('Female', 'Female'), ('Male', 'Male'), ('Other', 'Other')], max_length=10)),
                ('is_nurse', models.BooleanField(default=False)),
                ('is_doctor', models.BooleanField(default=False)),
                ('is_patient', models.BooleanField(default=False)),
                ('profile_reference', models.CharField(max_length=30, unique=True)),
                ('user', models.OneToOneField(blank=True, null=True, 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=100)),
                ('phone_number', models.IntegerField(null=True)),
                ('ppsn', models.CharField(max_length=15, unique=True)),
                ('medical_card_num', models.CharField(max_length=15, null=True)),
                ('emergency_contact', models.CharField(max_length=25, null=True)),
                ('ec_phone_number', models.IntegerField(null=True)),
                ('ec_email_address', models.CharField(max_length=50, null=True)),
                ('doctor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='users.Doctor')),
                ('profile', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='users.Profile')),
            ],
        ),
        migrations.CreateModel(
            name='Nurse',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('ward', models.CharField(max_length=25)),
                ('profile', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='users.Profile')),
            ],
        ),
        migrations.AddField(
            model_name='doctor',
            name='profile',
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='users.Profile'),
        ),
    ]

1a536e7d0e764ca5a3b372eee49feb869b61e540
<mask token>

<mask token>


class Migration(migrations.Migration):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Migration(migrations.Migration):
    initial = True
    dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
    operations = [migrations.CreateModel(name='Doctor', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('field', models.CharField(max_length=
        200)), ('doc_reg_num', models.CharField(max_length=25))]),
        migrations.CreateModel(name='Profile', fields=[('id', models.
        AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('first_name', models.CharField(max_length=30)
        ), ('last_name', models.CharField(max_length=30)), ('dob', models.
        DateField()), ('sex', models.CharField(choices=[('Female', 'Female'
        ), ('Male', 'Male'), ('Other', 'Other')], max_length=10)), (
        'is_nurse', models.BooleanField(default=False)), ('is_doctor',
        models.BooleanField(default=False)), ('is_patient', models.
        BooleanField(default=False)), ('profile_reference', models.
        CharField(max_length=30, unique=True)), ('user', models.
        OneToOneField(blank=True, null=True, 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=100)), (
        'phone_number', models.IntegerField(null=True)), ('ppsn', models.
        CharField(max_length=15, unique=True)), ('medical_card_num', models
        .CharField(max_length=15, null=True)), ('emergency_contact', models
        .CharField(max_length=25, null=True)), ('ec_phone_number', models.
        IntegerField(null=True)), ('ec_email_address', models.CharField(
        max_length=50, null=True)), ('doctor', models.ForeignKey(on_delete=
        django.db.models.deletion.CASCADE, to='users.Doctor')), ('profile',
        models.OneToOneField(on_delete=django.db.models.deletion.CASCADE,
        to='users.Profile'))]), migrations.CreateModel(name='Nurse', fields
        =[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('ward', models.CharField(
        max_length=25)), ('profile', models.OneToOneField(on_delete=django.
        db.models.deletion.CASCADE, to='users.Profile'))]), migrations.
        AddField(model_name='doctor', name='profile', field=models.
        OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=
        'users.Profile'))]

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='Doctor', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('field', models.CharField(max_length=
        200)), ('doc_reg_num', models.CharField(max_length=25))]),
        migrations.CreateModel(name='Profile', fields=[('id', models.
        AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('first_name', models.CharField(max_length=30)
        ), ('last_name', models.CharField(max_length=30)), ('dob', models.
        DateField()), ('sex', models.CharField(choices=[('Female', 'Female'
        ), ('Male', 'Male'), ('Other', 'Other')], max_length=10)), (
        'is_nurse', models.BooleanField(default=False)), ('is_doctor',
        models.BooleanField(default=False)), ('is_patient', models.
        BooleanField(default=False)), ('profile_reference', models.
        CharField(max_length=30, unique=True)), ('user', models.
        OneToOneField(blank=True, null=True, 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=100)), (
        'phone_number', models.IntegerField(null=True)), ('ppsn', models.
        CharField(max_length=15, unique=True)), ('medical_card_num', models
        .CharField(max_length=15, null=True)), ('emergency_contact', models
        .CharField(max_length=25, null=True)), ('ec_phone_number', models.
        IntegerField(null=True)), ('ec_email_address', models.CharField(
        max_length=50, null=True)), ('doctor', models.ForeignKey(on_delete=
        django.db.models.deletion.CASCADE, to='users.Doctor')), ('profile',
        models.OneToOneField(on_delete=django.db.models.deletion.CASCADE,
        to='users.Profile'))]), migrations.CreateModel(name='Nurse', fields
        =[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('ward', models.CharField(
        max_length=25)), ('profile', models.OneToOneField(on_delete=django.
        db.models.deletion.CASCADE, to='users.Profile'))]), migrations.
        AddField(model_name='doctor', name='profile', field=models.
        OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=
        'users.Profile'))]

# Generated by Django 3.0.3 on 2020-07-05 21:09

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='Doctor',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('field', models.CharField(max_length=200)),
                ('doc_reg_num', models.CharField(max_length=25)),
            ],
        ),
        migrations.CreateModel(
            name='Profile',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('first_name', models.CharField(max_length=30)),
                ('last_name', models.CharField(max_length=30)),
                ('dob', models.DateField()),
                ('sex', models.CharField(choices=[('Female', 'Female'), ('Male', 'Male'), ('Other', 'Other')], max_length=10)),
                ('is_nurse', models.BooleanField(default=False)),
                ('is_doctor', models.BooleanField(default=False)),
                ('is_patient', models.BooleanField(default=False)),
                ('profile_reference', models.CharField(max_length=30, unique=True)),
                ('user', models.OneToOneField(blank=True, null=True, 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=100)),
                ('phone_number', models.IntegerField(null=True)),
                ('ppsn', models.CharField(max_length=15, unique=True)),
                ('medical_card_num', models.CharField(max_length=15, null=True)),
                ('emergency_contact', models.CharField(max_length=25, null=True)),
                ('ec_phone_number', models.IntegerField(null=True)),
                ('ec_email_address', models.CharField(max_length=50, null=True)),
                ('doctor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='users.Doctor')),
                ('profile', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='users.Profile')),
            ],
        ),
        migrations.CreateModel(
            name='Nurse',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('ward', models.CharField(max_length=25)),
                ('profile', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='users.Profile')),
            ],
        ),
        migrations.AddField(
            model_name='doctor',
            name='profile',
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='users.Profile'),
        ),
    ]
