Update service table schema

This commit is contained in:
Duc Trung Le
2023-03-08 17:24:36 +01:00
committed by Duc Trung LE
parent d251b705e8
commit 95781880c5
4 changed files with 87 additions and 4 deletions

View File

@@ -394,6 +394,26 @@ class Service(Base):
'Role', secondary='service_role_map', back_populates='services'
)
url = Column(Unicode(2047), nullable=True)
oauth_client_allowed_scopes = Column(
JSONList, nullable=True, default=[]
) # List of string
info = Column(JSONDict, nullable=True, default={}) # Dict
display = Column(Boolean, default=True, nullable=True)
oauth_no_confirm = Column(Boolean, default=False, nullable=True)
command = Column(JSONList, nullable=True, default=[]) # List of string
cwd = Column(Unicode, nullable=True)
environment = Column(JSONDict, nullable=True, default={}) # Dict
user = Column(Unicode, nullable=True)
api_tokens = relationship(
"APIToken", back_populates="service", cascade="all, delete-orphan"
)