# Generated by Django 5.0.8 on 2024-10-08 11:02

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


class Migration(migrations.Migration):

    dependencies = [
        ('links', '0005_alter_link_text'),
    ]

    operations = [
        migrations.CreateModel(
            name='LinkChangeLog',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('old_url', models.URLField(max_length=2000, verbose_name='Old URL')),
                ('new_url', models.URLField(max_length=2000, verbose_name='New URL')),
                ('changed_at', models.DateTimeField(auto_now_add=True, verbose_name='Changed at')),
                ('link', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='change_logs', to='links.link')),
            ],
            options={
                'ordering': ['-changed_at'],
            },
        ),
    ]
