mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-28 03:11:40 -05:00
> So that we can default services to their appropriate text allowance, > we need to find out what sector they're in. So let's start collecting > that from teams as they create new services. In order to work out what a team’s allowance should be, we need to know what part of government they’re from. We’re going to do this logic in the admin app and then `POST` the allowance to the API. So all we need to do with the information that the users give us is store it against the service, so we have a record. Doesn’t need any logic doing as a result of it, doesn’t need foreign keying to the organisations table, etc.
Generic single-database configuration. python application.py db migrate to generate migration script. python application.py db upgrade to upgrade db with script. python application.py db downgrade to rollback db changes. python application.py db current to show current script.