Initial commit (Clean history)

This commit is contained in:
anhduy-tech
2025-12-30 11:27:14 +07:00
commit ef48c93de0
19255 changed files with 3248867 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
# Generated by Django 5.1.7 on 2025-06-07 01:06
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0120_delete_credit_limit'),
]
operations = [
migrations.CreateModel(
name='Credit_Limit',
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)),
('limit', models.BigIntegerField()),
('outstanding', models.BigIntegerField(null=True)),
('remaining', models.BigIntegerField(null=True)),
('valid_from', models.DateField()),
('valid_to', models.DateField()),
('create_time', models.DateTimeField(auto_now_add=True, null=True)),
('update_time', models.DateTimeField(null=True)),
('application', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='app.application')),
('customer', models.OneToOneField(null=True, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='app.customer')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='app.user')),
],
options={
'db_table': 'credit_limit',
},
),
]