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_tokens should be created when a new workspace is created or when a stopped workspace is started.
  • workspace_tokens should be cascade deleted if the workspace is stopped/terminated.
  • All these changes will be based on the desired_state of 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