# Generated by Django 5.1.5 on 2025-03-10 11:38

import uuid

import django_extensions.db.fields
from django.db import migrations, models


class Migration(migrations.Migration):
    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name="Balance",
            fields=[
                (
                    "uuid",
                    models.UUIDField(
                        default=uuid.uuid4,
                        editable=False,
                        help_text="unique id is used to surely identify any database object",
                        primary_key=True,
                        serialize=False,
                        verbose_name="unique id",
                    ),
                ),
                (
                    "is_active",
                    models.BooleanField(
                        default=True,
                        help_text="if set to false, this object can't be seen by users without needed permission",
                        verbose_name="is active",
                    ),
                ),
                (
                    "created",
                    django_extensions.db.fields.CreationDateTimeField(
                        auto_now_add=True,
                        help_text="when the object first appeared on the database",
                        verbose_name="created",
                    ),
                ),
                (
                    "modified",
                    django_extensions.db.fields.ModificationDateTimeField(
                        auto_now=True, help_text="when the object was last modified", verbose_name="modified"
                    ),
                ),
                ("amount", models.FloatField(default=0)),
            ],
            options={
                "verbose_name": "balance",
                "verbose_name_plural": "balances",
            },
        ),
        migrations.CreateModel(
            name="Transaction",
            fields=[
                (
                    "uuid",
                    models.UUIDField(
                        default=uuid.uuid4,
                        editable=False,
                        help_text="unique id is used to surely identify any database object",
                        primary_key=True,
                        serialize=False,
                        verbose_name="unique id",
                    ),
                ),
                (
                    "is_active",
                    models.BooleanField(
                        default=True,
                        help_text="if set to false, this object can't be seen by users without needed permission",
                        verbose_name="is active",
                    ),
                ),
                (
                    "created",
                    django_extensions.db.fields.CreationDateTimeField(
                        auto_now_add=True,
                        help_text="when the object first appeared on the database",
                        verbose_name="created",
                    ),
                ),
                (
                    "modified",
                    django_extensions.db.fields.ModificationDateTimeField(
                        auto_now=True, help_text="when the object was last modified", verbose_name="modified"
                    ),
                ),
                ("amount", models.FloatField()),
                ("currency", models.CharField(max_length=3)),
                ("payment_method", models.CharField(max_length=20)),
                ("process", models.JSONField(default=dict, verbose_name="processing details")),
            ],
            options={
                "verbose_name": "transaction",
                "verbose_name_plural": "transactions",
            },
        ),
    ]
