initial migration of the shorturls app
parent
4cd9c50fec
commit
20c857bb81
|
|
@ -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"],
|
||||
},
|
||||
),
|
||||
]
|
||||
Loading…
Reference in New Issue