# Generated by Django 4.2 on 2024-09-03 14:50 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Tipo', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('tipo', models.TextField(max_length=10)), ], ), migrations.CreateModel( name='Cuenta', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nombre', models.TextField(max_length=20)), ('saldo_inicial', models.DecimalField(decimal_places=2, max_digits=10)), ('saldo_actual', models.DecimalField(decimal_places=2, max_digits=10)), ('tipo', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='apuntes.tipo')), ], ), migrations.CreateModel( name='Apunte', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('fecha', models.DateField()), ('importe', models.DecimalField(decimal_places=2, max_digits=10)), ('cta_destino', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='destino', to='apuntes.cuenta')), ('cta_origen', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='origen', to='apuntes.cuenta')), ], ), ]