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

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


class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='MarketplaceService',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=150)),
                ('slug', models.SlugField(blank=True, max_length=180)),
                ('category', models.CharField(choices=[('it', 'IT & Infrastructure'), ('marketing', 'Marketing'), ('creative', 'Creative'), ('development', 'Development'), ('ai', 'AI'), ('communications', 'Communications')], default='marketing', max_length=30)),
                ('short_description', models.TextField(help_text='Shown on service card')),
                ('full_description', models.TextField(blank=True)),
                ('icon_class', models.CharField(blank=True, help_text='FontAwesome class', max_length=100)),
                ('icon_image', models.ImageField(blank=True, null=True, upload_to='marketplace/icons/')),
                ('starting_price', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('price_label', models.CharField(blank=True, help_text='e.g. "from £299"', max_length=50)),
                ('order', models.PositiveIntegerField(default=1)),
                ('is_active', models.BooleanField(default=True)),
                ('is_featured', models.BooleanField(default=False)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('tenant', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='marketplace_services', to='tenants.tenant')),
            ],
            options={
                'verbose_name': 'Marketplace Service',
                'verbose_name_plural': 'Marketplace Services',
                'ordering': ['order'],
                'unique_together': {('tenant', 'slug')},
            },
        ),
    ]
