# Generated by Django 5.2.9 on 2025-12-14 19:56

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("odoo", "0003_initial"),
    ]

    operations = [
        migrations.CreateModel(
            name="OdooDeployment",
            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)),
                (
                    "config_path",
                    models.CharField(
                        help_text="Absolute path to the odoo configuration file.",
                        max_length=500,
                        unique=True,
                    ),
                ),
                ("addons_path", models.TextField(blank=True)),
                ("data_dir", models.CharField(blank=True, max_length=500)),
                ("db_host", models.CharField(blank=True, max_length=255)),
                ("db_port", models.PositiveIntegerField(blank=True, null=True)),
                ("db_user", models.CharField(blank=True, max_length=255)),
                ("db_password", models.CharField(blank=True, max_length=255)),
                ("db_name", models.CharField(blank=True, max_length=255)),
                ("db_filter", models.CharField(blank=True, max_length=255)),
                (
                    "admin_password",
                    models.CharField(
                        blank=True,
                        help_text="Database operations master password.",
                        max_length=255,
                    ),
                ),
                ("http_port", models.PositiveIntegerField(blank=True, null=True)),
                (
                    "longpolling_port",
                    models.PositiveIntegerField(blank=True, null=True),
                ),
                ("logfile", models.CharField(blank=True, max_length=500)),
                ("last_discovered", models.DateTimeField(blank=True, null=True)),
            ],
            options={
                "verbose_name": "Odoo Deployment",
                "verbose_name_plural": "Odoo Deployments",
                "db_table": "core_odoodeployment",
                "ordering": ("name", "config_path"),
            },
        ),
    ]
