initial migration of the shorturls app

pull/1/head
Calum Andrew Morrell 2025-11-06 12:29:42 +00:00
parent 4cd9c50fec
commit 20c857bb81
1 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,34 @@
# Generated by Django 5.2.7 on 2025-11-06 12:17
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="ShortURL",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("created", models.DateTimeField(auto_now_add=True)),
("followed", models.PositiveIntegerField(default=0)),
("long_url", models.TextField()),
("short_url", models.CharField(blank=True, max_length=20, unique=True)),
],
options={
"ordering": ["created"],
},
),
]