feat(core): Update Meta AuditModel db_name to be suffixed _audithistory

ref: #772 #759
This commit is contained in:
2025-05-25 09:01:14 +09:30
parent 9425793190
commit 7a1e9e10a3

View File

@ -40,7 +40,7 @@ if apps.models_ready:
'__doc__': f'Auto-generated meta model for {name} Audit History.',
'Meta': type('Meta', (), {
'app_label': model._meta.app_label,
'db_table': model._meta.db_table + '_history',
'db_table': model._meta.db_table + '_audithistory',
'managed': True,
'verbose_name': model._meta.verbose_name + ' History',
'verbose_name_plural': model._meta.verbose_name + ' Histories',