Flask SQLAlchemy AmbiguousForeignKeysError Could not determine join condition between
parent_id = Column(
INTEGER(unsigned=True),
ForeignKey('File.id'),
default=1,
)
change to
parent_id = Column(
INTEGER(unsigned=True),
ForeignKey('file.id'),
default=1,
)