photoprism/internal/entity/fixtures.go
Michael Mayer 693108fd53 Sharing: Refactor UserShare entity #98 #782
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-10-04 00:54:39 +02:00

35 lines
841 B
Go

package entity
// CreateTestFixtures inserts all known entities into the database for testing.
func CreateTestFixtures() {
if err := Admin.SetPassword("photoprism"); err != nil {
log.Error(err)
}
CreateLabelFixtures()
CreateCameraFixtures()
CreateCountryFixtures()
CreatePhotoFixtures()
CreateAlbumFixtures()
CreateAccountFixtures()
CreateLinkFixtures()
CreatePhotoAlbumFixtures()
CreateFolderFixtures()
CreateFileFixtures()
CreateKeywordFixtures()
CreatePhotoKeywordFixtures()
CreateCategoryFixtures()
CreateCellFixtures()
CreatePlaceFixtures()
CreateFileShareFixtures()
CreateFileSyncFixtures()
CreateLensFixtures()
CreateSubjectFixtures()
CreateMarkerFixtures()
CreateFaceFixtures()
CreateUserFixtures()
CreateSessionFixtures()
CreateReactionFixtures()
CreatePasswordFixtures()
CreateUserShareFixtures()
}