# Generated by Django 4.2.24 on 2025-09-24 06:05 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Invoice', 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)), ('currency_code', models.CharField(default='USD', max_length=8)), ('total_amount', models.DecimalField(decimal_places=2, default=0, max_digits=14)), ('status', models.CharField(choices=[('draft', 'Draft'), ('issued', 'Issued'), ('paid', 'Paid'), ('void', 'Void')], db_index=True, default='draft', max_length=8)), ('issued_at', models.DateTimeField(blank=True, null=True)), ('due_at', models.DateTimeField(blank=True, null=True)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='InvoiceLine', 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)), ('description', models.CharField(max_length=255)), ('quantity', models.DecimalField(decimal_places=3, max_digits=12)), ('unit', models.CharField(choices=[('kg', 'Kilogram'), ('lb', 'Pound'), ('pcs', 'Pieces')], default='kg', max_length=8)), ('unit_price', models.DecimalField(decimal_places=2, max_digits=12)), ('line_total', models.DecimalField(decimal_places=2, max_digits=14)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Payment', 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)), ('amount', models.DecimalField(decimal_places=2, max_digits=14)), ('currency_code', models.CharField(default='USD', max_length=8)), ('received_at', models.DateTimeField(default=django.utils.timezone.now)), ('reference', models.CharField(blank=True, max_length=128)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Payout', 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)), ('amount', models.DecimalField(decimal_places=2, max_digits=14)), ('currency_code', models.CharField(default='USD', max_length=8)), ('paid_at', models.DateTimeField(default=django.utils.timezone.now)), ('reference', models.CharField(blank=True, max_length=128)), ], options={ 'abstract': False, }, ), ]