Add cloud_id column to environment model

When an environment is created, we'll need to create something in the
CSP and keep track of the ID of the created thing.
This commit is contained in:
Patrick Smith
2019-01-04 14:42:14 -05:00
parent 5988f20dff
commit 2dba02e03c
2 changed files with 30 additions and 0 deletions

View File

@@ -15,6 +15,8 @@ class Environment(Base, mixins.TimestampsMixin, mixins.AuditableMixin):
project_id = Column(ForeignKey("projects.id"), nullable=False)
project = relationship("Project")
cloud_id = Column(String)
@property
def users(self):
return [r.user for r in self.roles]