# Generated by Django 5.1.7 on 2025-06-02 07:51 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0085_credit_limit_outstanding_credit_limit_remaining_and_more'), ] operations = [ migrations.CreateModel( name='Account', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('code', models.CharField(db_index=True, max_length=20, unique=True)), ('balance', models.BigIntegerField(null=True)), ('create_time', models.DateTimeField(auto_now_add=True, null=True)), ('update_time', models.DateTimeField(null=True)), ('type', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='app.account_type')), ], options={ 'db_table': 'account', }, ), migrations.CreateModel( name='Account_Entry', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('code', models.CharField(db_index=True, max_length=20, unique=True)), ('date', models.DateField()), ('amount', models.FloatField()), ('content', models.TextField()), ('balance_before', models.FloatField(null=True)), ('balance_after', models.FloatField()), ('create_time', models.DateTimeField(auto_now_add=True, null=True)), ('update_time', models.DateTimeField(null=True)), ('account', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='app.account')), ('approver', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='app.user')), ('inputer', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='app.user')), ('type', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='app.entry_type')), ], options={ 'db_table': 'account_entry', }, ), ]