it should be fine with one table, and then you can...
# squarelibraries
a
it should be fine with one table, and then you can create an index on the parent id so selecting based of the parent id would be very quick