# Generated by Django 5.1.4 on 2026-07-18 13:15

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('tenants', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='AuctionListing',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('asset_type', models.CharField(choices=[('domain', 'Domain'), ('instagram', 'Instagram ID'), ('linkedin', 'LinkedIn ID'), ('soundcloud', 'SoundCloud ID'), ('youtube', 'YouTube ID')], default='domain', max_length=20)),
                ('name', models.CharField(help_text='e.g. persepolis.club or @brandname', max_length=200)),
                ('slug', models.SlugField(blank=True, max_length=250)),
                ('is_premium', models.BooleanField(default=False, help_text='Show Premium badge')),
                ('tagline', models.CharField(blank=True, help_text='One-liner below the name', max_length=200)),
                ('description', django_ckeditor_5.fields.CKEditor5Field(blank=True)),
                ('asking_price', models.DecimalField(blank=True, decimal_places=2, max_digits=12, null=True)),
                ('price_on_request', models.BooleanField(default=True)),
                ('status', models.CharField(choices=[('active', 'Active'), ('under_offer', 'Under Offer'), ('sold', 'Sold'), ('draft', 'Draft')], default='active', max_length=20)),
                ('generate_page', models.BooleanField(default=True, help_text='Generate a standalone HTML page')),
                ('page_generated_at', models.DateTimeField(blank=True, null=True)),
                ('page_path', models.CharField(blank=True, max_length=300)),
                ('meta_description', models.TextField(blank=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('tenant', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='auction_listings', to='tenants.tenant')),
            ],
            options={
                'verbose_name': 'Auction Listing',
                'verbose_name_plural': 'Auction Listings',
                'ordering': ['-is_premium', 'name'],
                'unique_together': {('tenant', 'slug')},
            },
        ),
    ]
