Update application_roles table for provisioning.

Adds cloud_id and claimed_until columns to the application_roles table
so that rows can be locked when they're being processed and updated with
relevant Azure information when processing is finished. Since the
claimed_until column is now common to a few different models, I've also
moved it to a mixin.
This commit is contained in:
dandds
2020-02-01 10:48:38 -05:00
parent f79af3ad62
commit 4511630787
7 changed files with 57 additions and 11 deletions

View File

@@ -0,0 +1,5 @@
from sqlalchemy import Column, TIMESTAMP
class ClaimableMixin(object):
claimed_until = Column(TIMESTAMP(timezone=True))