# Generated by Django 4.2.2 on 2023-11-12 20:20

import baseapp.models
import ckeditor.fields
import colorfield.fields
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='country_state',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('district', models.CharField(help_text='Enter District', max_length=75, verbose_name='District')),
                ('state_code', models.CharField(default='TN', help_text='enter state code eg., TN', max_length=25, verbose_name='State Code')),
                ('state_name', models.CharField(default='Tamil Nadu', help_text='enter State name', max_length=25, verbose_name='State')),
                ('date_modified', models.DateTimeField(default=django.utils.timezone.now)),
                ('date_created', models.DateTimeField(auto_now_add=True, null=True)),
            ],
            options={
                'verbose_name': 'Country State',
                'verbose_name_plural': 'Country States',
            },
        ),
        migrations.CreateModel(
            name='District_State',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('District', models.CharField(help_text='Enter District Name', max_length=125, null=True, verbose_name='District Name')),
                ('State', models.CharField(default='Tamil Nadu', help_text='Enter State Name', max_length=125, null=True, verbose_name='State Name')),
                ('date_modified', models.DateTimeField(default=django.utils.timezone.now)),
                ('date_created', models.DateTimeField(auto_now_add=True, null=True)),
            ],
            options={
                'verbose_name': 'District & State',
                'verbose_name_plural': 'District & State',
            },
        ),
        migrations.CreateModel(
            name='employee',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('profile_pic', models.ImageField(blank=True, help_text='You can take a photo and upload here or you can use camera to upload photo in profile page', null=True, upload_to='static\\employee\\profile', validators=[baseapp.models.validate_file_extension], verbose_name='Profile Pic')),
                ('Title', models.CharField(choices=[('Mr', 'Mr'), ('Mrs', 'Mrs'), ('Miss', 'Miss'), ('Ms', 'Ms'), ('Dr', 'Dr')], max_length=50, verbose_name='Title')),
                ('employee_name', models.CharField(help_text='Name of the employee', max_length=50, null=True, verbose_name='Employee Name')),
                ('last_name', models.CharField(blank=True, help_text='Employee initial', max_length=75, null=True, verbose_name='Last Name/Initial')),
                ('DoB', models.DateField(default=django.utils.timezone.now, help_text='Enter your date of birth', null=True, verbose_name='DoB')),
                ('proof_number', models.CharField(blank=True, help_text='Enter your ID Proof Number for patient (Optional)', max_length=75, null=True, verbose_name='ID Proof Number')),
                ('Address1', models.CharField(help_text='Enter your house or flat number', max_length=250, null=True, verbose_name='House/Flat number')),
                ('locality', models.CharField(blank=True, help_text='Area of living', max_length=50, null=True, verbose_name='Locality/Sector')),
                ('city', models.CharField(help_text='Enter your location (city or village name)', max_length=50, null=True, verbose_name='City/Village')),
                ('Pincode', models.IntegerField(help_text='Enter your pincode', null=True, validators=[baseapp.models.validate_zipcode], verbose_name='Pincode')),
                ('education_qualification', models.CharField(help_text='Enter your qualification', max_length=75, null=True, verbose_name='Educational Qualification')),
                ('email', models.EmailField(blank=True, help_text='Enter your email id', max_length=254, null=True, verbose_name='Email')),
                ('phone_number', models.BigIntegerField(blank=True, help_text='Enter your primary phone number', null=True, validators=[baseapp.models.validate_mobilenum], verbose_name='Phone Number')),
                ('alt_phone_number', models.BigIntegerField(blank=True, help_text='Enter your alternative phone number', null=True, validators=[baseapp.models.validate_mobilenum], verbose_name='Alternative Phone Number')),
                ('str_username', models.CharField(help_text='User Name used for employee login (it will be automatically created by application)', max_length=50, verbose_name='User Name')),
                ('temp_password', models.CharField(blank=True, help_text='Enter Temproary password for reset or Newly Created Users', max_length=50, null=True, verbose_name='Temproary password')),
                ('date_modified', models.DateTimeField(default=django.utils.timezone.now)),
                ('date_created', models.DateTimeField(auto_now_add=True, null=True)),
                ('fk_dist', models.ForeignKey(blank=True, help_text='Enter Your district ', null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='baseapp.district_state', verbose_name='District')),
            ],
        ),
        migrations.CreateModel(
            name='gender',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('gender_name', models.CharField(help_text='Enter a gender', max_length=75, null=True, verbose_name='Gender')),
                ('date_modified', models.DateTimeField(default=django.utils.timezone.now)),
                ('date_created', models.DateTimeField(auto_now_add=True, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='ID_type',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, help_text='Eg Aadhaar card,PAN card etc...', max_length=50, null=True, verbose_name='Proof Name')),
                ('shrt_txt', models.CharField(blank=True, help_text='Enter a short description', max_length=125, null=True, verbose_name='Short Description')),
                ('field_type', models.CharField(blank=True, choices=[('Alphabet', 'Alphabet'), ('Numeric', 'Numeric'), ('Alphanumeric', 'Alphanumeric')], help_text='Eg Aadhaar card conatins only Numeric value', max_length=75, null=True, verbose_name='Proof type')),
                ('regex_validation', models.CharField(blank=True, help_text='Enter a regex validation', max_length=125, null=True, verbose_name='Regex Validation')),
                ('No_of_character', models.IntegerField(blank=True, help_text='Enter the number of chatacers for proof', null=True, verbose_name='Number of Characters')),
            ],
        ),
        migrations.CreateModel(
            name='Master_captcha',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('intext', models.CharField(blank=True, help_text='Captcha Character', max_length=15, null=True, unique=True, verbose_name='Captcha in Character field - for the background verification')),
                ('inimage', models.FileField(help_text='Captcha Image path will be shown here', upload_to='', verbose_name='Image of Captcha')),
                ('date_modified', models.DateTimeField(default=django.utils.timezone.now)),
                ('date_created', models.DateTimeField(auto_now_add=True, null=True)),
            ],
            options={
                'verbose_name': 'MDM Captcha',
                'verbose_name_plural': 'Master Captcha',
            },
        ),
        migrations.CreateModel(
            name='tags',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('tag_name', models.CharField(default='', help_text='Enter your tag name', max_length=75, verbose_name='Tag Name')),
                ('tag_description', models.TextField(default='', help_text='Enter a tag description', max_length=250, verbose_name='Tag Description')),
                ('tag_color', colorfield.fields.ColorField(default='', help_text='Select your tag colour', image_field=None, max_length=18, samples=None, verbose_name='Tag Color')),
                ('date_modified', models.DateTimeField(default=django.utils.timezone.now)),
                ('date_created', models.DateTimeField(auto_now_add=True, null=True)),
            ],
            options={
                'verbose_name': 'Tag',
                'verbose_name_plural': 'Tags',
            },
        ),
        migrations.CreateModel(
            name='User_Group',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(help_text='Name of the Group', max_length=25, verbose_name='Name of the Group')),
                ('short_notes', models.CharField(help_text='short description for Group', max_length=75, verbose_name='Short Notes')),
                ('description', models.TextField(blank=True, help_text='Enter Description for Group', max_length=200, null=True, verbose_name='Detailed notes')),
                ('date_modified', models.DateTimeField(default=django.utils.timezone.now)),
                ('date_created', models.DateTimeField(auto_now_add=True, null=True)),
            ],
            options={
                'verbose_name': 'User Group',
            },
        ),
        migrations.CreateModel(
            name='Zone_System',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('System', models.CharField(help_text='Enter Zone System', max_length=75, verbose_name='Zone System')),
                ('Description', models.CharField(help_text='Enter Description for System', max_length=125, verbose_name='System Description')),
                ('date_modified', models.DateTimeField(default=django.utils.timezone.now)),
                ('date_created', models.DateTimeField(auto_now_add=True, null=True)),
            ],
            options={
                'verbose_name': 'Zone System',
                'verbose_name_plural': 'Zone System',
            },
        ),
        migrations.CreateModel(
            name='Zone_Type',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('Ztype', models.CharField(help_text='Enter Zone Type', max_length=125, verbose_name='Zone Type')),
                ('date_modified', models.DateTimeField(default=django.utils.timezone.now)),
                ('date_created', models.DateTimeField(auto_now_add=True, null=True)),
            ],
            options={
                'verbose_name': 'Zone Type',
                'verbose_name_plural': 'Zone Type',
            },
        ),
        migrations.CreateModel(
            name='Zone',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('center', models.CharField(help_text='Enter the center', max_length=125, null=True, verbose_name='Center')),
                ('id_employee', models.IntegerField(blank=True, null=True)),
                ('date_modified', models.DateTimeField(default=django.utils.timezone.now)),
                ('date_created', models.DateTimeField(auto_now_add=True, null=True)),
                ('fk_District', models.ForeignKey(help_text='Select a District', on_delete=django.db.models.deletion.DO_NOTHING, related_name='%(class)s_fk_District', to='baseapp.district_state', verbose_name='District')),
                ('fk_System', models.ForeignKey(help_text='Select a System', on_delete=django.db.models.deletion.DO_NOTHING, related_name='%(class)s_fk_System', to='baseapp.zone_system', verbose_name='System')),
                ('fk_Type', models.ForeignKey(help_text='Select a Type', on_delete=django.db.models.deletion.DO_NOTHING, related_name='%(class)s_fk_Type', to='baseapp.zone_type', verbose_name='Type')),
            ],
            options={
                'verbose_name': 'Zone',
                'verbose_name_plural': 'Zone',
            },
        ),
        migrations.CreateModel(
            name='treatment',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('treatment_name', models.CharField(blank=True, help_text='Enter a Treatment Name', max_length=50, null=True, verbose_name='Treatment Name')),
                ('treatment_tamil_name', models.CharField(blank=True, help_text='சிகிச்சையின் பெயரை உள்ளிடவும்', max_length=50, null=True, verbose_name='சிகிச்சையின் பெயர்')),
                ('details', models.TextField(blank=True, help_text='Write about treatment in details', max_length=250, null=True, verbose_name='Treatment details')),
                ('date_modified', models.DateTimeField(default=django.utils.timezone.now)),
                ('date_created', models.DateTimeField(auto_now_add=True, null=True)),
                ('fk_employee', models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='baseapp.employee')),
                ('fk_system', models.ForeignKey(help_text='Enter the System', null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='baseapp.zone_system', verbose_name='System')),
            ],
            options={
                'verbose_name_plural': 'Treatments',
            },
        ),
        migrations.CreateModel(
            name='task',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('task_type', models.CharField(choices=[('Primary', 'Primary'), ('Success', 'Completed'), ('Warning', 'Important'), ('Info', 'Self-Assigned'), ('Danger', 'Urgent'), ('Dark', 'Missed')], help_text='Select a task type', max_length=50, null=True, verbose_name='Task type')),
                ('task_details', ckeditor.fields.RichTextField(blank=True, help_text='Enter the task in details', null=True, verbose_name='Task details')),
                ('date_modified', models.DateTimeField(default=django.utils.timezone.now)),
                ('date_created', models.DateTimeField(auto_now_add=True, null=True)),
                ('applyto_employee', models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='%(class)s_apply_to_employee', to='baseapp.employee', verbose_name='Apply to employee')),
                ('fk_employee', models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='%(class)s_fk_employee', to='baseapp.employee')),
            ],
            options={
                'verbose_name_plural': 'Tasks',
            },
        ),
        migrations.CreateModel(
            name='patient',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('profile_pic', models.ImageField(blank=True, help_text='You can take a photo and upload here or you can use camera to upload photo in profile page', null=True, upload_to='static\\patient\\profile', validators=[baseapp.models.validate_file_extension], verbose_name='Profile Pic')),
                ('Title', models.CharField(choices=[('Mr', 'Mr'), ('Mrs', 'Mrs'), ('Miss', 'Miss'), ('Ms', 'Ms'), ('Dr', 'Dr')], max_length=50, null=True, verbose_name='Title')),
                ('Patient_name', models.CharField(help_text='Enter the full name', max_length=70, null=True, verbose_name='Patient Name')),
                ('last_name', models.CharField(blank=True, help_text='Enter the last name ', max_length=75, null=True, verbose_name='Last Name/Initial')),
                ('DoB', models.DateField(default=django.utils.timezone.now, help_text='Enter date of birth', null=True, verbose_name='DoB')),
                ('Address1', models.CharField(blank=True, help_text='Enter house or flat number', max_length=50, null=True, verbose_name='House/Flat number')),
                ('locality', models.CharField(blank=True, help_text='Area of living ', max_length=50, null=True, verbose_name='Locality/Sector')),
                ('city', models.CharField(blank=True, help_text='Enter the location (city or village name)', max_length=50, null=True, verbose_name='City/Village')),
                ('Pincode', models.IntegerField(blank=True, help_text='Enter the pincode', null=True, validators=[baseapp.models.validate_zipcode], verbose_name='Pincode')),
                ('proof_number', models.CharField(blank=True, help_text='Enter your ID Proof Number for patient (Optional)', max_length=75, null=True, verbose_name='ID Proof Number')),
                ('email', models.EmailField(blank=True, help_text='Enter email id', max_length=254, null=True, verbose_name='Email')),
                ('phone_number', models.BigIntegerField(blank=True, help_text='Enter primary phone number', null=True, validators=[baseapp.models.validate_mobilenum], verbose_name='Phone Number')),
                ('alt_phone_number', models.BigIntegerField(blank=True, help_text='Enter alternative phone number', null=True, validators=[baseapp.models.validate_mobilenum], verbose_name='Alternative Phone Number')),
                ('date_modified', models.DateTimeField(default=django.utils.timezone.now)),
                ('date_created', models.DateTimeField(auto_now_add=True, null=True)),
                ('fk_dist', models.ForeignKey(blank=True, help_text='Enter Your district ', null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='baseapp.district_state', verbose_name='District')),
                ('fk_employee', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='baseapp.employee')),
                ('fk_gender', models.ForeignKey(help_text='Select gender', on_delete=django.db.models.deletion.DO_NOTHING, to='baseapp.gender', verbose_name='Gender')),
                ('fk_zone', models.ForeignKey(help_text='Select a zone', null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='baseapp.zone', verbose_name='Zone')),
                ('proof', models.ForeignKey(blank=True, help_text='Select a proof', null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='baseapp.id_type', verbose_name='Proof Name')),
            ],
        ),
        migrations.CreateModel(
            name='Master_GST',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('gst_shorttext', models.CharField(blank=True, help_text='GST Short description', max_length=15, null=True, verbose_name='GST Short description')),
                ('gst_longtext', models.CharField(blank=True, help_text='GST Long description', max_length=150, null=True, verbose_name='GST Long description')),
                ('gst_value', models.FloatField(blank=True, help_text='Total GST % ', null=True, verbose_name='Net GST %')),
                ('cgst_value', models.FloatField(blank=True, help_text='Central or Integrated GST %', null=True, verbose_name='CIGST %')),
                ('sgst_value', models.FloatField(blank=True, help_text='State GST %', null=True, verbose_name='SGST %')),
                ('date_modified', models.DateTimeField(default=django.utils.timezone.now)),
                ('date_created', models.DateTimeField(auto_now_add=True, null=True)),
                ('fk_employee', models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='baseapp.employee')),
            ],
            options={
                'verbose_name': 'MDM GST',
                'verbose_name_plural': 'Master GST',
            },
        ),
        migrations.AddField(
            model_name='employee',
            name='fk_gender',
            field=models.ForeignKey(help_text='Select a gender', on_delete=django.db.models.deletion.DO_NOTHING, to='baseapp.gender', verbose_name='Gender'),
        ),
        migrations.AddField(
            model_name='employee',
            name='fk_group',
            field=models.ForeignKey(help_text='Select a group', on_delete=django.db.models.deletion.DO_NOTHING, to='baseapp.user_group', verbose_name='User Group'),
        ),
        migrations.AddField(
            model_name='employee',
            name='fk_zone',
            field=models.ForeignKey(help_text='Select a zone', on_delete=django.db.models.deletion.DO_NOTHING, to='baseapp.zone'),
        ),
        migrations.AddField(
            model_name='employee',
            name='proof',
            field=models.ForeignKey(blank=True, help_text='Select a proof', null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='baseapp.id_type', verbose_name='Proof Name'),
        ),
        migrations.CreateModel(
            name='disease',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('disease_name', models.CharField(help_text='Enter the disease name', max_length=75, null=True, verbose_name='Disease Name')),
                ('disease_name_tamil', models.CharField(blank=True, help_text='நோயின் பெயரை உள்ளிடவும்', max_length=75, null=True, verbose_name='நோய் பெயர்')),
                ('english_version', models.CharField(help_text='Enter the disease name as per english version', max_length=75, null=True, verbose_name='Disease Name - English Version')),
                ('subsystem', models.CharField(help_text='Sub System details', max_length=75, null=True, verbose_name='Sub System')),
                ('date_modified', models.DateTimeField(default=django.utils.timezone.now)),
                ('date_created', models.DateTimeField(auto_now_add=True, null=True)),
                ('fk_employee', models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='baseapp.employee')),
                ('fk_system', models.ForeignKey(help_text='Enter the System', null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='baseapp.zone_system', verbose_name='System')),
            ],
            options={
                'verbose_name_plural': 'Disease',
            },
        ),
    ]
