# Generated by Django 4.2.14 on 2025-03-04 12:04

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


class Migration(migrations.Migration):

    dependencies = [
        ('base', '0013_money'),
    ]

    operations = [
        migrations.CreateModel(
            name='MonetaryComponent',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('type', models.CharField(choices=[('base', 'base'), ('surcharge', 'surcharge'), ('discount', 'discount'), ('tax', 'tax'), ('informational', 'informational')], max_length=255, null=True)),
                ('factor', models.DecimalField(decimal_places=2, max_digits=1000, null=True)),
                ('amount', models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='monetory_component_amount', to='base.money')),
                ('code', models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='monetory_component_code', to='base.codeableconcept')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
