Skip to content

Commit

Permalink
fix: add is_manged field at Workspace model (#199)
Browse files Browse the repository at this point in the history
Signed-off-by: ImMin5 <[email protected]>
  • Loading branch information
ImMin5 committed Apr 3, 2024
1 parent e377101 commit 0eca0e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/spaceone/identity/model/workspace/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class Workspace(MongoModel):
state = StringField(max_length=20, default="ENABLED")
tags = DictField(default=None)
created_by = StringField(max_length=255)
reference_id = StringField(max_length=255, default=None, null=True)
is_managed = BooleanField(default=False)
domain_id = StringField(max_length=40)
created_at = DateTimeField(auto_now_add=True)
deleted_at = DateTimeField(default=None, null=True)
Expand All @@ -21,6 +23,7 @@ class Workspace(MongoModel):
"workspace_id",
"name",
"state",
"is_managed",
],
"ordering": ["name"],
"indexes": ["name", "domain_id"],
Expand Down

0 comments on commit 0eca0e7

Please sign in to comment.