45 lines
1.3 KiB
Python
45 lines
1.3 KiB
Python
|
# Generated by Django 5.0.6 on 2024-07-15 09:21
|
||
|
|
||
|
import django.db.models.deletion
|
||
|
from django.conf import settings
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
("snapshot", "0004_anotation"),
|
||
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name="Annotation",
|
||
|
fields=[
|
||
|
(
|
||
|
"id",
|
||
|
models.BigAutoField(
|
||
|
auto_created=True,
|
||
|
primary_key=True,
|
||
|
serialize=False,
|
||
|
verbose_name="ID",
|
||
|
),
|
||
|
),
|
||
|
("created", models.DateTimeField(auto_now_add=True)),
|
||
|
("uuid", models.UUIDField(unique=True)),
|
||
|
("key", models.CharField(max_length=256)),
|
||
|
("value", models.CharField(max_length=256)),
|
||
|
(
|
||
|
"owner",
|
||
|
models.ForeignKey(
|
||
|
on_delete=django.db.models.deletion.CASCADE,
|
||
|
to=settings.AUTH_USER_MODEL,
|
||
|
),
|
||
|
),
|
||
|
],
|
||
|
),
|
||
|
migrations.DeleteModel(
|
||
|
name="anotation",
|
||
|
),
|
||
|
]
|