# Generated by Django 6.0.7 on 2026-07-21 19:29

import django.db.models.deletion
import uuid
from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Goal',
            fields=[
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=255)),
                ('category', models.CharField(choices=[('home', 'Home / Land'), ('vehicle', 'Vehicle'), ('wedding', 'Wedding'), ('education', 'Education'), ('retirement', 'Retirement'), ('emergency_fund', 'Emergency Fund'), ('travel', 'Travel'), ('business', 'Business'), ('other', 'Other')], default='other', max_length=32)),
                ('target_amount', models.DecimalField(decimal_places=2, max_digits=14)),
                ('current_amount', models.DecimalField(decimal_places=2, default=0, max_digits=14)),
                ('monthly_contribution', models.DecimalField(decimal_places=2, default=0, max_digits=14)),
                ('target_date', models.DateField()),
                ('currency', models.CharField(default='KES', max_length=10)),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='goals', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'ordering': ['target_date', 'created_at'],
            },
        ),
    ]
