108536490: Initial effort to implement log in

Add endpoint for post to /sign-in
Initialise role data
This commit is contained in:
Rebecca Law
2015-11-27 09:47:29 +00:00
parent 4d2b9c7fc2
commit 7f96ef5a25
17 changed files with 183 additions and 56 deletions

View File

@@ -0,0 +1,16 @@
# revision identifiers, used by Alembic.
revision = '20_initialise_data'
down_revision = None
from alembic import op
def upgrade():
op.bulk_insert('roles',
[
{'role': 'plaform_admin'},
{'role': 'service_user'}
])
def downgrade():
op.drop_table('users')
op.drop_table('roles')