Also improves migrations and updates the db schema docs. Signed-off-by: Michael Mayer <michael@photoprism.app>
Work in progress. Performed refactoring along the way.