28 lines
1.1 KiB
Python
28 lines
1.1 KiB
Python
from django.db import migrations, models
|
|
import uuid
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
initial = True
|
|
|
|
dependencies = []
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="SensorDevice",
|
|
fields=[
|
|
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
|
|
("sensor_uuid", models.UUIDField(default=uuid.uuid4, editable=False, unique=True)),
|
|
("device_identifier", models.CharField(max_length=255, unique=True)),
|
|
("device_name", models.CharField(blank=True, max_length=255)),
|
|
("handshake_token", models.CharField(blank=True, max_length=255)),
|
|
("metadata", models.JSONField(blank=True, default=dict)),
|
|
("translation_config", 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={"ordering": ["-created_at"]},
|
|
),
|
|
]
|