# Generated by Django 4.0.5 on 2022-06-18 23:16 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('scopedsites', '0001_initial'), ] operations = [ migrations.CreateModel( name='ShortLink', fields=[ ('slug', models.CharField(max_length=6, primary_key=True, serialize=False, unique=True)), ('location', models.CharField(max_length=100, verbose_name='short link')), ('to', models.URLField(max_length=2500, verbose_name='redirect to')), ('click_count', models.IntegerField(default=0)), ('domain', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='links', to='scopedsites.domain')), ], options={ 'unique_together': {('domain', 'location')}, }, ), ]