# Generated by Django 5.2.11 on 2026-04-12 14:43

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


class Migration(migrations.Migration):

    dependencies = [
        ('expat_life', '0006_foreignerlead_gender'),
        ('rental_app', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='RentalInterest',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('status', models.CharField(choices=[('interested', 'Interested'), ('reviewing', 'Reviewing'), ('contacted', 'Contacted'), ('closed', 'Closed')], default='interested', max_length=20)),
                ('notes', models.TextField(blank=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('foreigner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='rental_interests', to='expat_life.foreignerprofile')),
                ('listing', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='interested_foreigners', to='rental_app.rentallisting')),
            ],
            options={
                'ordering': ['-created_at'],
                'unique_together': {('foreigner', 'listing')},
            },
        ),
    ]
