# Generated by Django 6.0.4 on 2026-04-08 16:53 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('accounts', '0001_initial'), ] operations = [ migrations.CreateModel( name='EquipmentCategory', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=64, unique=True)), ('slug', models.SlugField(max_length=64, unique=True)), ('description', models.TextField(blank=True)), ], ), migrations.CreateModel( name='EquipmentItem', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=255)), ('public_id', models.CharField(max_length=64, unique=True)), ('description', models.TextField(blank=True)), ('details', models.JSONField(blank=True, default=dict)), ('location', models.CharField(blank=True, max_length=255)), ('price_per_day', models.DecimalField(decimal_places=2, max_digits=10)), ('is_active', models.BooleanField(default=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('category', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='items', to='equipment.equipmentcategory')), ('vendor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='equipment_items', to='accounts.vendorprofile')), ], options={ 'ordering': ('-created_at',), }, ), migrations.CreateModel( name='EquipmentImage', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(upload_to='equipment_images/')), ('alt_text', models.CharField(blank=True, max_length=255)), ('sort_order', models.PositiveIntegerField(default=0)), ('is_primary', models.BooleanField(default=False)), ('created_at', models.DateTimeField(auto_now_add=True)), ('item', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='images', to='equipment.equipmentitem')), ], options={ 'ordering': ('sort_order', 'id'), }, ), ]