# Generated by Django 5.2.8 on 2025-12-06 15:03

import django.core.validators
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name="CableSize",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("is_seed_data", models.BooleanField(default=False, editable=False)),
                ("is_user_data", models.BooleanField(default=False, editable=False)),
                ("is_deleted", models.BooleanField(default=False, editable=False)),
                ("awg_size", models.CharField(max_length=5)),
                ("material", models.CharField(max_length=2)),
                ("dia_in", models.FloatField()),
                ("dia_mm", models.FloatField()),
                ("area_kcmil", models.FloatField()),
                ("area_mm2", models.FloatField()),
                ("k_ohm_km", models.FloatField()),
                ("k_ohm_kft", models.FloatField()),
                ("amps_60c", models.PositiveIntegerField()),
                ("amps_75c", models.PositiveIntegerField()),
                ("amps_90c", models.PositiveIntegerField()),
                ("line_num", models.PositiveIntegerField()),
            ],
            options={
                "verbose_name": "Cable Size",
                "verbose_name_plural": "Cable Sizes",
            },
        ),
        migrations.CreateModel(
            name="CalculatorTemplate",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("is_seed_data", models.BooleanField(default=False, editable=False)),
                ("is_user_data", models.BooleanField(default=False, editable=False)),
                ("is_deleted", models.BooleanField(default=False, editable=False)),
                ("name", models.CharField(blank=True, max_length=100)),
                ("description", models.CharField(blank=True, max_length=255)),
                ("meters", models.PositiveIntegerField(blank=True, null=True)),
                (
                    "amps",
                    models.PositiveIntegerField(blank=True, default=40, null=True),
                ),
                (
                    "volts",
                    models.PositiveIntegerField(blank=True, default=220, null=True),
                ),
                ("material", models.CharField(blank=True, default="cu", max_length=2)),
                ("max_awg", models.CharField(blank=True, max_length=5)),
                (
                    "max_lines",
                    models.PositiveIntegerField(blank=True, default=1, null=True),
                ),
                (
                    "phases",
                    models.PositiveIntegerField(blank=True, default=2, null=True),
                ),
                ("temperature", models.PositiveIntegerField(blank=True, null=True)),
                ("conduit", models.CharField(blank=True, max_length=10)),
                (
                    "ground",
                    models.PositiveIntegerField(blank=True, default=1, null=True),
                ),
                (
                    "show_in_pages",
                    models.BooleanField(
                        blank=True, default=False, verbose_name="Show in public site"
                    ),
                ),
            ],
            options={
                "verbose_name": "Calculator Template",
                "verbose_name_plural": "Calculator Templates",
            },
        ),
        migrations.CreateModel(
            name="ConduitFill",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("is_seed_data", models.BooleanField(default=False, editable=False)),
                ("is_user_data", models.BooleanField(default=False, editable=False)),
                ("is_deleted", models.BooleanField(default=False, editable=False)),
                ("trade_size", models.CharField(max_length=10)),
                ("conduit", models.CharField(max_length=10)),
                ("awg_14", models.PositiveIntegerField(blank=True, null=True)),
                ("awg_12", models.PositiveIntegerField(blank=True, null=True)),
                ("awg_10", models.PositiveIntegerField(blank=True, null=True)),
                ("awg_8", models.PositiveIntegerField(blank=True, null=True)),
                ("awg_6", models.PositiveIntegerField(blank=True, null=True)),
                ("awg_4", models.PositiveIntegerField(blank=True, null=True)),
                ("awg_3", models.PositiveIntegerField(blank=True, null=True)),
                ("awg_2", models.PositiveIntegerField(blank=True, null=True)),
                ("awg_1", models.PositiveIntegerField(blank=True, null=True)),
                ("awg_0", models.PositiveIntegerField(blank=True, null=True)),
                ("awg_00", models.PositiveIntegerField(blank=True, null=True)),
                ("awg_000", models.PositiveIntegerField(blank=True, null=True)),
                ("awg_0000", models.PositiveIntegerField(blank=True, null=True)),
            ],
            options={
                "verbose_name": "Conduit Fill",
                "verbose_name_plural": "Conduit Fills",
            },
        ),
        migrations.CreateModel(
            name="PowerLead",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("is_seed_data", models.BooleanField(default=False, editable=False)),
                ("is_user_data", models.BooleanField(default=False, editable=False)),
                ("is_deleted", models.BooleanField(default=False, editable=False)),
                ("path", models.TextField(blank=True)),
                ("referer", models.TextField(blank=True)),
                ("user_agent", models.TextField(blank=True)),
                (
                    "ip_address",
                    models.CharField(
                        blank=True,
                        max_length=45,
                        validators=[django.core.validators.validate_ipv46_address],
                    ),
                ),
                ("created_on", models.DateTimeField(auto_now_add=True)),
                (
                    "status",
                    models.CharField(
                        choices=[
                            ("open", "Open"),
                            ("assigned", "Assigned"),
                            ("closed", "Closed"),
                        ],
                        default="open",
                        max_length=20,
                    ),
                ),
                ("values", models.JSONField()),
                ("malformed", models.BooleanField(default=False)),
            ],
            options={
                "verbose_name": "Power Lead",
                "verbose_name_plural": "Power Leads",
            },
        ),
    ]
