CARONTE v1.0 - Plataforma de Gestão Social
This commit is contained in:
14
backend/app/models/documento.py
Normal file
14
backend/app/models/documento.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from sqlalchemy import Column, Integer, String, DateTime, ForeignKey
|
||||
from sqlalchemy.sql import func
|
||||
from app.core.database import Base
|
||||
|
||||
class Documento(Base):
|
||||
__tablename__ = "documentos"
|
||||
id = Column(Integer, primary_key=True, autoincrement=True)
|
||||
familia_id = Column(Integer, ForeignKey("familias.id"), nullable=False)
|
||||
falecido_id = Column(Integer, ForeignKey("falecidos.id"), nullable=True)
|
||||
tipo = Column(String, nullable=False) # procuracao, requerimento_fgts, peticao_pensao, alvara
|
||||
nome = Column(String, nullable=False)
|
||||
arquivo_path = Column(String, nullable=True)
|
||||
status = Column(String, default="gerado") # gerado, enviado, aprovado
|
||||
created_at = Column(DateTime, server_default=func.now())
|
||||
Reference in New Issue
Block a user