The hinge is a separate module in the SCAD so it can be used in other print flat designs. I'm sure it could use some improvement but it works for this application.
Here's the design on Youmagine.
Here's what the hinge looks like close up. It folds up and locks into place.