first commit

This commit is contained in:
2026-04-01 13:48:40 -07:00
commit 61d386a7c7
178 changed files with 3827 additions and 0 deletions

Binary file not shown.

View File

@@ -0,0 +1,33 @@
from sqlalchemy import Column, Integer, String, Date, DateTime, Float, Boolean, Text, ForeignKey, Enum as SQLEnum
from sqlalchemy.sql import func
from sqlalchemy.orm import relationship
from database import Base
import enum
#Articulo 69-B del codigo fiscal de la federacion
#69-B article of fiscal code of federation of mexican united states
class Situacion(str, enum.Enum):
DEFINITIVO ="definitivo"
DESVIRTUADO ="desvituado"
PRESUNTO ="presunto"
SENTENCIA_FAVORABLE ="sentencia_favorable"
class EFOS(Base):
__tablename__ = "efos"
id = Column(Integer, primary_key=True, nullable=False)
numero = Column(Integer, nullable=False)
rfc = Column(String(30), nullable=False)
nombre_contribuyente = Column(String(100), nullable=False)
situacion = Column(String(60), SQLEnum(Situacion, name="situacion", create_type=False), nullable=False)
publi_presuntos_sat = Column(Date, nullable=True)
publi_desvirtuados_sat = Column(Date, nullable=True)
publi_definitivos_sat = Column(Date, nullable=True)
publi_favorables_sat = Column(Date, nullable=True)
created_at = Column(DateTime(timezone=True), server_default=func.now(), nullable=False)
updated_at = Column(DateTime(timezone=True), onupdate=func.now(), nullable=False)
loaded_by = Column(Integer, nullable=False)

View File

View File

View File