You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
973 B

# 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')},
},
),
]