first commit
This commit is contained in:
BIN
app/modules/efos/__pycache__/models.cpython-311.pyc
Normal file
BIN
app/modules/efos/__pycache__/models.cpython-311.pyc
Normal file
Binary file not shown.
33
app/modules/efos/models.py
Normal file
33
app/modules/efos/models.py
Normal 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)
|
||||
0
app/modules/efos/repository.py
Normal file
0
app/modules/efos/repository.py
Normal file
0
app/modules/efos/route.py
Normal file
0
app/modules/efos/route.py
Normal file
0
app/modules/efos/schema.py
Normal file
0
app/modules/efos/schema.py
Normal file
Reference in New Issue
Block a user