A service should be created that allows inserting new rows and updating existing rows in the mediamoderation_scan table. This service should have a descriptive name and could be called MediaModerationDatabaseManager.
This service will be used by T350863: Create maintenance script to import all existing images to mediamoderation_scan table and T350323: Write an empty row to scan table on file upload for insertion of new rows, and the processing maintenance script to update the rows with the status of the scans on images.
Acceptance criteria
- A service is created that allows inserting and updating rows in the mediamoderation_scan table
- This service be fully tested to ensure reliability