# Generated by Django 4.2.27 on 2026-04-09 10:06

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('myapp', '0011_leaverequest_announcement'),
    ]

    operations = [
        migrations.CreateModel(
            name='Payslip',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('empname', models.CharField(max_length=255, null=True)),
                ('empid', models.CharField(max_length=255, null=True)),
                ('emppan', models.CharField(max_length=255, null=True)),
                ('ctc', models.CharField(max_length=255, null=True)),
                ('grosssalary', models.CharField(max_length=255, null=True)),
                ('perdaysalary', models.CharField(max_length=255, null=True)),
                ('basicsalary', models.CharField(max_length=255, null=True)),
                ('hra', models.CharField(max_length=255, null=True)),
                ('conveyance', models.CharField(max_length=255, null=True)),
                ('otherallowance', models.CharField(max_length=255, null=True)),
                ('totaldays', models.CharField(max_length=255, null=True)),
                ('workingdays', models.CharField(max_length=255, null=True)),
                ('baiscnew', models.CharField(max_length=255, null=True)),
                ('hranew', models.CharField(max_length=255, null=True)),
                ('conveyancenew', models.CharField(max_length=255, null=True)),
                ('otherallowancenew', models.CharField(max_length=255, null=True)),
                ('grosspay', models.CharField(max_length=255, null=True)),
                ('variablepfgross', models.CharField(max_length=255, null=True)),
                ('esiless', models.CharField(max_length=255, null=True)),
                ('pfless', models.CharField(max_length=255, null=True)),
                ('bank', models.CharField(max_length=255, null=True)),
                ('uan', models.CharField(max_length=255, null=True)),
                ('lesspt', models.CharField(max_length=255, null=True)),
                ('pf', models.CharField(max_length=255, null=True)),
                ('esi', models.CharField(max_length=255, null=True)),
                ('advance', models.CharField(max_length=255, null=True)),
                ('netpay', models.CharField(max_length=255, null=True)),
                ('ot', models.CharField(max_length=255, null=True)),
                ('reimbursement', models.CharField(max_length=255, null=True)),
                ('incentive', models.CharField(max_length=255, null=True)),
                ('topay', models.CharField(max_length=255, null=True)),
                ('month', models.CharField(max_length=255, null=True)),
                ('status', models.SmallIntegerField(default=1)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'db_table': 'payslip',
            },
        ),
        migrations.RemoveField(
            model_name='loan',
            name='client',
        ),
        migrations.AddField(
            model_name='employee',
            name='advance',
            field=models.DecimalField(decimal_places=2, default=0.0, max_digits=10),
        ),
        migrations.AddField(
            model_name='employee',
            name='basic',
            field=models.DecimalField(decimal_places=2, default=0.0, max_digits=10),
        ),
        migrations.AddField(
            model_name='employee',
            name='conveyance',
            field=models.DecimalField(decimal_places=2, default=0.0, max_digits=10),
        ),
        migrations.AddField(
            model_name='employee',
            name='ctc',
            field=models.DecimalField(decimal_places=2, default=0.0, max_digits=10),
        ),
        migrations.AddField(
            model_name='employee',
            name='fixedPT',
            field=models.DecimalField(decimal_places=2, default=208.0, max_digits=10),
        ),
        migrations.AddField(
            model_name='employee',
            name='grossSalary',
            field=models.DecimalField(decimal_places=2, default=0.0, max_digits=10),
        ),
        migrations.AddField(
            model_name='employee',
            name='hra',
            field=models.DecimalField(decimal_places=2, default=0.0, max_digits=10),
        ),
        migrations.AddField(
            model_name='employee',
            name='incentive',
            field=models.DecimalField(decimal_places=2, default=0.0, max_digits=10),
        ),
        migrations.AddField(
            model_name='employee',
            name='ot',
            field=models.DecimalField(decimal_places=2, default=0.0, max_digits=10),
        ),
        migrations.AddField(
            model_name='employee',
            name='otherAllowance',
            field=models.DecimalField(decimal_places=2, default=0.0, max_digits=10),
        ),
        migrations.AddField(
            model_name='employee',
            name='pan',
            field=models.TextField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name='employee',
            name='pfLimit',
            field=models.DecimalField(decimal_places=2, default=1800.0, max_digits=10),
        ),
        migrations.AddField(
            model_name='employee',
            name='reimbursement',
            field=models.DecimalField(decimal_places=2, default=0.0, max_digits=10),
        ),
        migrations.DeleteModel(
            name='Collection',
        ),
        migrations.DeleteModel(
            name='Loan',
        ),
        migrations.AddField(
            model_name='payslip',
            name='employee',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='payslip_records', to='myapp.employee'),
        ),
    ]
