# Generated by Django 6.0.7 on 2026-08-05 07:55

import apps.projects.models
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('projects', '0034_backfill_project_numbers'),
    ]

    operations = [
        migrations.CreateModel(
            name='ExchangeRate',
            fields=[
                ('id', models.UUIDField(default=apps.projects.models.uuid7, editable=False, primary_key=True, serialize=False)),
                ('currency', models.CharField(max_length=10)),
                ('date', models.DateField()),
                ('rate', models.DecimalField(blank=True, decimal_places=6, max_digits=20, null=True)),
                ('checked_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'db_table': 'project_exchange_rates',
                'ordering': ['currency', '-date'],
                'indexes': [models.Index(fields=['currency', 'date'], name='project_exc_currenc_84d11f_idx')],
                'constraints': [models.UniqueConstraint(fields=('currency', 'date'), name='unique_fx_rate_per_currency_date')],
            },
        ),
    ]
