mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 17:31:34 -05:00
Changed the user_to_service mapping table into a model called ServiceUser. When looking at users who have permission for a folder we are only interested in users for a particular service, not all users, so we can use the ServiceUser model to access folder permissions. Added a user_folder_permissions table which contains the service_id, user_id and template_folder_id. There are links between user_folder_permissions and TemplateFolder, and between user_folder_permissions and ServiceUser.
Generic single-database configuration.
flask db migrate to generate migration script.
flask db upgrade to upgrade db with script.
flask db downgrade to rollback db changes.
flask db current to show current script.