33 lines
1.3 KiB
Python
33 lines
1.3 KiB
Python
# Generated by Django 5.2.12 on 2026-03-20 00:00
|
|
|
|
import uuid
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
initial = True
|
|
|
|
dependencies = []
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="SensorCatalog",
|
|
fields=[
|
|
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
|
|
("uuid", models.UUIDField(db_index=True, default=uuid.uuid4, editable=False, unique=True)),
|
|
("name", models.CharField(db_index=True, max_length=255, unique=True)),
|
|
("description", models.TextField(blank=True, default="")),
|
|
("customizable_fields", models.JSONField(blank=True, default=list)),
|
|
("returned_data_fields", models.JSONField(blank=True, default=list)),
|
|
("sample_payload", models.JSONField(blank=True, default=dict)),
|
|
("is_active", models.BooleanField(default=True)),
|
|
("created_at", models.DateTimeField(auto_now_add=True)),
|
|
("updated_at", models.DateTimeField(auto_now=True)),
|
|
],
|
|
options={
|
|
"db_table": "sensor_catalogs",
|
|
"ordering": ["name"],
|
|
},
|
|
),
|
|
]
|