# Generated by Django 4.2.15 on 2024-09-03 07:18

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("eveuniverse", "0010_alter_eveindustryactivityduration_eve_type_and_more"),
        ("metenox", "0007_holdingcorporation_is_active"),
    ]

    operations = [
        migrations.CreateModel(
            name="MetenoxStoredMoonMaterials",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("amount", models.IntegerField(default=0)),
                (
                    "metenox",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="stored_moon_materials",
                        to="metenox.metenox",
                    ),
                ),
                (
                    "product",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="+",
                        to="eveuniverse.evetype",
                    ),
                ),
            ],
        ),
        migrations.AddConstraint(
            model_name="metenoxstoredmoonmaterials",
            constraint=models.UniqueConstraint(
                fields=("metenox", "product"), name="functional_pk_metenoxstoredproduct"
            ),
        ),
    ]
