2024-07-30 11:37:08 +00:00
|
|
|
# Generated by Django 5.0.6 on 2024-07-29 15:37
|
2024-06-12 07:32:49 +00:00
|
|
|
|
|
|
|
import django.db.models.deletion
|
|
|
|
from django.conf import settings
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
2024-07-30 11:37:08 +00:00
|
|
|
("lot", "0001_initial"),
|
2024-06-12 07:32:49 +00:00
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2024-07-30 11:37:08 +00:00
|
|
|
name="LotAnnotation",
|
2024-06-12 07:32:49 +00:00
|
|
|
fields=[
|
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
2024-07-30 11:37:08 +00:00
|
|
|
("created", models.DateTimeField(auto_now_add=True)),
|
|
|
|
(
|
|
|
|
"type",
|
|
|
|
models.SmallIntegerField(
|
|
|
|
choices=[(0, "System"), (1, "User"), (2, "Document")]
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("key", models.CharField(max_length=256)),
|
|
|
|
("value", models.CharField(max_length=256)),
|
|
|
|
(
|
|
|
|
"lot",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE, to="lot.lot"
|
|
|
|
),
|
|
|
|
),
|
2024-06-12 07:32:49 +00:00
|
|
|
(
|
|
|
|
"owner",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
to=settings.AUTH_USER_MODEL,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
]
|