refactor: reorganizar estructura del proyecto al estándar app/api_config
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good

- core/ → app/api_config/
- apps/backend_admin/ → app/backend_admin/
- apps/common/ → app/common/
- apps/promociones/ → app/promociones/
- manage.py → app/manage.py
- Añadir app/requirements.txt
- Actualizar todos los imports y referencias (DJANGO_SETTINGS_MODULE, ROOT_URLCONF, WSGI_APPLICATION, INSTALLED_APPS)
- Actualizar Dockerfile con nuevo WORKDIR

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
juanjo
2026-04-16 16:01:17 +02:00
parent 27ccce862d
commit 299428741b
28 changed files with 51 additions and 24 deletions

20
app/promociones/models.py Normal file
View File

@@ -0,0 +1,20 @@
from django.db import models
class Promocion(models.Model):
# Campos detectados en tu getData y setData
nombre = models.CharField(max_length=255)
fecha_inicio = models.DateField(null=True, blank=True)
fecha_modificacion = models.DateField(null=True, blank=True)
descripcion = models.TextField(null=True, blank=True)
activo = models.BooleanField(default=True)
# Campo usado en tu JOIN de setData
categoria_id = models.IntegerField(null=True, blank=True)
class Meta:
# ¡CRÍTICO! Esto le dice a Django que la tabla se llame exactamente
# como la has escrito en tu SQL manual
db_table = 'promociones'
def __str__(self):
return self.nombre