# Generated by Django 6.0.1 on 2026-02-19 02:20

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


class Migration(migrations.Migration):

    dependencies = [
        ('contracts', '0009_alter_contract_unique_together_alter_contract_title'),
    ]

    operations = [
        migrations.CreateModel(
            name='OriginalContract',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('number', models.CharField(max_length=31, unique=True)),
            ],
        ),
        migrations.CreateModel(
            name='Paragraph',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('date', models.DateField(blank=True, null=True)),
                ('link', models.CharField(max_length=255, unique=True)),
                ('paragraph', models.TextField(blank=True, null=True)),
            ],
        ),
        migrations.AlterField(
            model_name='contract',
            name='award_date',
            field=models.DateField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name='contract',
            name='original_contract_number',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contracts.originalcontract'),
        ),
        migrations.AddField(
            model_name='originalcontract',
            name='para',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contracts.paragraph'),
        ),
    ]
