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

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


class Migration(migrations.Migration):

    dependencies = [
        ('expat_life', '0008_foreignerprofile_status'),
        ('service_partner_app', '0004_alter_servicepartnerprofile_country'),
    ]

    operations = [
        migrations.CreateModel(
            name='ServicePartnerInterest',
            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'), ('arranging', 'Arranging'), ('closed', 'Closed')], default='interested', max_length=20)),
                ('message', models.TextField(blank=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('foreigner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='service_partner_interests', to='expat_life.foreignerprofile')),
                ('partner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='service_partner_interests', to='service_partner_app.servicepartnerprofile')),
            ],
            options={
                'verbose_name': 'Service Partner Interest',
                'verbose_name_plural': 'Service Partner Interests',
                'ordering': ['-created_at'],
                'constraints': [models.UniqueConstraint(fields=('foreigner', 'partner'), name='unique_foreigner_service_partner_interest')],
            },
        ),
    ]
