# Generated by Django 5.1.5 on 2025-02-04 13:26

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('room', '0006_alter_room_last_electricity_reading'),
        ('tenant', '0005_tenantrent_food_due'),
    ]

    operations = [
        migrations.CreateModel(
            name='PaymentLog',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('amount', models.FloatField(help_text='The amount of the payment.', validators=[django.core.validators.MinValueValidator(0)])),
                ('status', models.CharField(choices=[('pending', 'Pending'), ('paid', 'Paid')], default='pending', help_text='The status of the payment (Pending/Paid).', max_length=10)),
                ('remark', models.CharField(help_text='A remark or description of the payment.', max_length=400)),
                ('created_at', models.DateTimeField(auto_now_add=True, help_text='Timestamp of creation.')),
                ('updated_at', models.DateTimeField(auto_now=True, help_text='Timestamp of last update.')),
                ('room', models.ForeignKey(help_text='The room associated with this payment.', on_delete=django.db.models.deletion.DO_NOTHING, related_name='payment_logs', to='room.room')),
                ('tenant', models.ForeignKey(help_text='The tenant associated with this payment.', on_delete=django.db.models.deletion.CASCADE, related_name='payment_logs', to='tenant.tenant')),
            ],
        ),
    ]
