# Generated by Django 3.1.2 on 2020-11-23 19:07

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0012_alter_user_first_name_max_length'),
    ]

    operations = [
        migrations.CreateModel(
            name='User',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('password', models.CharField(max_length=128, verbose_name='password')),
                ('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')),
                ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')),
                ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')),
                ('email', models.EmailField(max_length=60, unique=True, verbose_name='User email')),
                ('role', models.CharField(max_length=5, verbose_name='User role')),
                ('date_created', models.DateTimeField(auto_now_add=True, verbose_name='Date joined')),
                ('last_login', models.DateTimeField(auto_now=True, verbose_name='Last login')),
                ('is_admin', models.BooleanField(default=False)),
                ('is_active', models.BooleanField(default=True)),
                ('is_staff', models.BooleanField(default=False)),
                ('is_superuser', models.BooleanField(default=False)),
                ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')),
                ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')),
            ],
            options={
                'verbose_name': 'user',
                'verbose_name_plural': 'users',
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Medication',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=60, unique=True, verbose_name='name')),
                ('price', models.FloatField()),
            ],
        ),
        migrations.CreateModel(
            name='Pharmacy',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=60, unique=True, verbose_name='name')),
                ('address', models.CharField(max_length=100, verbose_name='address')),
                ('contact', models.CharField(max_length=30, verbose_name='contact')),
                ('pharmacist', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='Pharmacist')),
            ],
        ),
        migrations.CreateModel(
            name='PrescriptonOrder',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('prescriptionText', models.TextField(blank=True, max_length=512, null=True, verbose_name='prescription text')),
                ('prescriptionImage', models.ImageField(blank=True, null=True, upload_to='prescriptions/')),
                ('status', models.IntegerField(verbose_name='order status')),
                ('pharmacy', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='pharmacyapi.pharmacy', verbose_name='prescription receiver')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='user')),
            ],
        ),
    ]

63af968b7e4b730ac37afd0f1fa146400b78c041
<mask token>

<mask token>


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

<mask token>


class Migration(migrations.Migration):
    initial = True
    dependencies = [('auth', '0012_alter_user_first_name_max_length')]
    operations = [migrations.CreateModel(name='User', fields=[('id', models
        .AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('password', models.CharField(max_length=128,
        verbose_name='password')), ('first_name', models.CharField(blank=
        True, max_length=150, verbose_name='first name')), ('last_name',
        models.CharField(blank=True, max_length=150, verbose_name=
        'last name')), ('date_joined', models.DateTimeField(default=django.
        utils.timezone.now, verbose_name='date joined')), ('email', models.
        EmailField(max_length=60, unique=True, verbose_name='User email')),
        ('role', models.CharField(max_length=5, verbose_name='User role')),
        ('date_created', models.DateTimeField(auto_now_add=True,
        verbose_name='Date joined')), ('last_login', models.DateTimeField(
        auto_now=True, verbose_name='Last login')), ('is_admin', models.
        BooleanField(default=False)), ('is_active', models.BooleanField(
        default=True)), ('is_staff', models.BooleanField(default=False)), (
        'is_superuser', models.BooleanField(default=False)), ('groups',
        models.ManyToManyField(blank=True, help_text=
        'The groups this user belongs to. A user will get all permissions granted to each of their groups.'
        , related_name='user_set', related_query_name='user', to=
        'auth.Group', verbose_name='groups')), ('user_permissions', models.
        ManyToManyField(blank=True, help_text=
        'Specific permissions for this user.', related_name='user_set',
        related_query_name='user', to='auth.Permission', verbose_name=
        'user permissions'))], options={'verbose_name': 'user',
        'verbose_name_plural': 'users', 'abstract': False}), migrations.
        CreateModel(name='Medication', fields=[('id', models.AutoField(
        auto_created=True, primary_key=True, serialize=False, verbose_name=
        'ID')), ('name', models.CharField(max_length=60, unique=True,
        verbose_name='name')), ('price', models.FloatField())]), migrations
        .CreateModel(name='Pharmacy', fields=[('id', models.AutoField(
        auto_created=True, primary_key=True, serialize=False, verbose_name=
        'ID')), ('name', models.CharField(max_length=60, unique=True,
        verbose_name='name')), ('address', models.CharField(max_length=100,
        verbose_name='address')), ('contact', models.CharField(max_length=
        30, verbose_name='contact')), ('pharmacist', models.OneToOneField(
        on_delete=django.db.models.deletion.CASCADE, to=settings.
        AUTH_USER_MODEL, verbose_name='Pharmacist'))]), migrations.
        CreateModel(name='PrescriptonOrder', fields=[('id', models.
        AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('prescriptionText', models.TextField(blank=
        True, max_length=512, null=True, verbose_name='prescription text')),
        ('prescriptionImage', models.ImageField(blank=True, null=True,
        upload_to='prescriptions/')), ('status', models.IntegerField(
        verbose_name='order status')), ('pharmacy', models.ForeignKey(
        on_delete=django.db.models.deletion.CASCADE, to=
        'pharmacyapi.pharmacy', verbose_name='prescription receiver')), (
        'user', models.ForeignKey(on_delete=django.db.models.deletion.
        CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='user'))])]

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone


class Migration(migrations.Migration):
    initial = True
    dependencies = [('auth', '0012_alter_user_first_name_max_length')]
    operations = [migrations.CreateModel(name='User', fields=[('id', models
        .AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('password', models.CharField(max_length=128,
        verbose_name='password')), ('first_name', models.CharField(blank=
        True, max_length=150, verbose_name='first name')), ('last_name',
        models.CharField(blank=True, max_length=150, verbose_name=
        'last name')), ('date_joined', models.DateTimeField(default=django.
        utils.timezone.now, verbose_name='date joined')), ('email', models.
        EmailField(max_length=60, unique=True, verbose_name='User email')),
        ('role', models.CharField(max_length=5, verbose_name='User role')),
        ('date_created', models.DateTimeField(auto_now_add=True,
        verbose_name='Date joined')), ('last_login', models.DateTimeField(
        auto_now=True, verbose_name='Last login')), ('is_admin', models.
        BooleanField(default=False)), ('is_active', models.BooleanField(
        default=True)), ('is_staff', models.BooleanField(default=False)), (
        'is_superuser', models.BooleanField(default=False)), ('groups',
        models.ManyToManyField(blank=True, help_text=
        'The groups this user belongs to. A user will get all permissions granted to each of their groups.'
        , related_name='user_set', related_query_name='user', to=
        'auth.Group', verbose_name='groups')), ('user_permissions', models.
        ManyToManyField(blank=True, help_text=
        'Specific permissions for this user.', related_name='user_set',
        related_query_name='user', to='auth.Permission', verbose_name=
        'user permissions'))], options={'verbose_name': 'user',
        'verbose_name_plural': 'users', 'abstract': False}), migrations.
        CreateModel(name='Medication', fields=[('id', models.AutoField(
        auto_created=True, primary_key=True, serialize=False, verbose_name=
        'ID')), ('name', models.CharField(max_length=60, unique=True,
        verbose_name='name')), ('price', models.FloatField())]), migrations
        .CreateModel(name='Pharmacy', fields=[('id', models.AutoField(
        auto_created=True, primary_key=True, serialize=False, verbose_name=
        'ID')), ('name', models.CharField(max_length=60, unique=True,
        verbose_name='name')), ('address', models.CharField(max_length=100,
        verbose_name='address')), ('contact', models.CharField(max_length=
        30, verbose_name='contact')), ('pharmacist', models.OneToOneField(
        on_delete=django.db.models.deletion.CASCADE, to=settings.
        AUTH_USER_MODEL, verbose_name='Pharmacist'))]), migrations.
        CreateModel(name='PrescriptonOrder', fields=[('id', models.
        AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('prescriptionText', models.TextField(blank=
        True, max_length=512, null=True, verbose_name='prescription text')),
        ('prescriptionImage', models.ImageField(blank=True, null=True,
        upload_to='prescriptions/')), ('status', models.IntegerField(
        verbose_name='order status')), ('pharmacy', models.ForeignKey(
        on_delete=django.db.models.deletion.CASCADE, to=
        'pharmacyapi.pharmacy', verbose_name='prescription receiver')), (
        'user', models.ForeignKey(on_delete=django.db.models.deletion.
        CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='user'))])]

# Generated by Django 3.1.2 on 2020-11-23 19:07

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0012_alter_user_first_name_max_length'),
    ]

    operations = [
        migrations.CreateModel(
            name='User',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('password', models.CharField(max_length=128, verbose_name='password')),
                ('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')),
                ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')),
                ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')),
                ('email', models.EmailField(max_length=60, unique=True, verbose_name='User email')),
                ('role', models.CharField(max_length=5, verbose_name='User role')),
                ('date_created', models.DateTimeField(auto_now_add=True, verbose_name='Date joined')),
                ('last_login', models.DateTimeField(auto_now=True, verbose_name='Last login')),
                ('is_admin', models.BooleanField(default=False)),
                ('is_active', models.BooleanField(default=True)),
                ('is_staff', models.BooleanField(default=False)),
                ('is_superuser', models.BooleanField(default=False)),
                ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')),
                ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')),
            ],
            options={
                'verbose_name': 'user',
                'verbose_name_plural': 'users',
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Medication',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=60, unique=True, verbose_name='name')),
                ('price', models.FloatField()),
            ],
        ),
        migrations.CreateModel(
            name='Pharmacy',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=60, unique=True, verbose_name='name')),
                ('address', models.CharField(max_length=100, verbose_name='address')),
                ('contact', models.CharField(max_length=30, verbose_name='contact')),
                ('pharmacist', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='Pharmacist')),
            ],
        ),
        migrations.CreateModel(
            name='PrescriptonOrder',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('prescriptionText', models.TextField(blank=True, max_length=512, null=True, verbose_name='prescription text')),
                ('prescriptionImage', models.ImageField(blank=True, null=True, upload_to='prescriptions/')),
                ('status', models.IntegerField(verbose_name='order status')),
                ('pharmacy', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='pharmacyapi.pharmacy', verbose_name='prescription receiver')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='user')),
            ],
        ),
    ]
