Create/delete workspace tokens when workspace is created/started/stopped/terminated
MR: Pending
Description
When a workspace is created/started, a new workspace_tokens is created.
When a workspace is stopped/terminated, the associated record in workspace_tokens will be deleted.
Acceptance criteria
-
workspace_tokensshould be created when a new workspace is created or when a stopped workspace is started. -
workspace_tokensshould be cascade deleted if the workspace is stopped/terminated. -
All these changes will be based on the desired_stateof the workspace.
Implementation plan
TODO: Fill out or delete (optional)
[Provide a high-level plan for implementation of this issue, including relevant technical and/or design details.]
Edited by Vishal Tak