50 lines
1.4 KiB
Python
50 lines
1.4 KiB
Python
# Generated by Django 5.1.3 on 2024-11-19 20:26
|
|
|
|
import django.db.models.deletion
|
|
import uuid
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("parts", "0012_storage_verbose_name"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="PackageParameter",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.UUIDField(
|
|
default=uuid.uuid4,
|
|
editable=False,
|
|
primary_key=True,
|
|
serialize=False,
|
|
unique=True,
|
|
),
|
|
),
|
|
("value", models.FloatField(default=0)),
|
|
("text_value", models.TextField(blank=True)),
|
|
(
|
|
"package",
|
|
models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE, to="parts.package"
|
|
),
|
|
),
|
|
(
|
|
"parameter_type",
|
|
models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
to="parts.componentparametertype",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"ordering": ["id"],
|
|
"unique_together": {("package", "parameter_type")},
|
|
},
|
|
),
|
|
]
|