# Generated by Django 5.2.7 on 2026-01-28 01:33 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Department', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('code', models.CharField(max_length=10, unique=True)), ('description', models.TextField(blank=True)), ], ), migrations.CreateModel( name='ProcurementProposal', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('proposal_number', models.CharField(max_length=50, unique=True)), ('title', models.CharField(max_length=255)), ('description', models.TextField()), ('estimated_cost', models.DecimalField(decimal_places=2, max_digits=15)), ('status', models.CharField(choices=[('draft', 'Draft'), ('submitted', 'Submitted'), ('under_review', 'Under Review'), ('approved', 'Approved'), ('rejected', 'Rejected')], default='draft', max_length=20)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('department', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.department')), ], ), migrations.CreateModel( name='Document', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('doc_type', models.CharField(choices=[('M7', 'Form M-7 (Proposal)'), ('M16', 'Form M-16 (Payment)'), ('S16', 'Form S-16 (Invoice)')], max_length=10)), ('file_path', models.CharField(blank=True, max_length=255)), ('metadata', models.JSONField(default=dict)), ('created_at', models.DateTimeField(auto_now_add=True)), ('proposal', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='documents', to='core.procurementproposal')), ], ), ]