Creates an instance of the Plan class.
The plan data including ID, user ID, description, type, status, max failure retry, action, hooks, and timestamps.
The action to be executed as part of the plan.
The timestamp (in milliseconds) when the plan was created.
A description of the plan.
A list of hooks associated with the plan.
The unique identifier for the plan.
The maximum number of failure retries for tasks in the plan.
Optionalparent_The parent plan ID, if this plan is a sub-plan. Optional.
The period of time (e.g., "daily", "weekly") for which the plan repeats.
The status of the plan (e.g., CREATED, RUNNING, COMPLETED).
The type of the plan (e.g., recurring, one-time).
The timestamp (in milliseconds) when the plan was last updated.
The ID of the user who created the plan.
Represents a plan in the system. A plan contains multiple tasks and hooks, and tracks its status and retries.