diff --git a/user.py b/user.py index 706a3bc..5c49f9c 100644 --- a/user.py +++ b/user.py @@ -22,4 +22,6 @@ usuario_id = Column(Integer, ForeignKey('users.id'), nullable=False) criado_em = Column(DateTime(timezone=True), server_default=func.now(), nullable=False) -usuario = relationship('User', back_populates='documentos') \ No newline at end of file +usuario = relationship('User', back_populates='documentos') + +documentos = relationship('Documento', back_populates='usuario')