<filename>devices/parser/migrations/0004_auto_20210215_1216.py<gh_stars>1-10
# Generated by Django 3.1.3 on 2021-02-15 12:16

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("parser", "0003_auto_20210215_0846"),
    ]

    operations = [
        migrations.CreateModel(
            name="RawMessage",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("created_at", models.DateTimeField(auto_now_add=True)),
                ("updated_at", models.DateTimeField(auto_now=True)),
                ("data", models.TextField(blank=True, verbose_name="Raw data")),
                (
                    "status",
                    models.CharField(
                        blank=True,
                        choices=[
                            ("nw-data-error", "Invalid sensor network data"),
                            ("device-id-not-found", "Device ID not found"),
                            ("parser-not-found", "Parser not found"),
                            ("parser-error", "Parsing of hex payload failed"),
                        ],
                        max_length=100,
                    ),
                ),
                ("devid", models.CharField(max_length=40)),
            ],
        ),
        migrations.AlterField(
            model_name="sensortype",
            name="parser",
            field=models.CharField(
                blank=True,
                choices=[("sensornode", "sensornode"), ("ultrasonic", "ultrasonic")],
                max_length=100,
                verbose_name="Parser",
            ),
        ),
    ]

<filename>devices/parser/migrations/0004_auto_20210215_1216.py<gh_stars>1-10
# Generated by Django 3.1.3 on 2021-02-15 12:16

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("parser", "0003_auto_20210215_0846"),
    ]

    operations = [
        migrations.CreateModel(
            name="RawMessage",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("created_at", models.DateTimeField(auto_now_add=True)),
                ("updated_at", models.DateTimeField(auto_now=True)),
                ("data", models.TextField(blank=True, verbose_name="Raw data")),
                (
                    "status",
                    models.CharField(
                        blank=True,
                        choices=[
                            ("nw-data-error", "Invalid sensor network data"),
                            ("device-id-not-found", "Device ID not found"),
                            ("parser-not-found", "Parser not found"),
                            ("parser-error", "Parsing of hex payload failed"),
                        ],
                        max_length=100,
                    ),
                ),
                ("devid", models.CharField(max_length=40)),
            ],
        ),
        migrations.AlterField(
            model_name="sensortype",
            name="parser",
            field=models.CharField(
                blank=True,
                choices=[("sensornode", "sensornode"), ("ultrasonic", "ultrasonic")],
                max_length=100,
                verbose_name="Parser",
            ),
        ),
    ]

# Generated by Django 3.1.3 on 2021-02-15 12:16