diff --git a/app/Models/WorkflowTimestamp.php b/app/Models/WorkflowTimestamp.php new file mode 100644 index 00000000..bb189afb --- /dev/null +++ b/app/Models/WorkflowTimestamp.php @@ -0,0 +1,47 @@ + 'datetime', + ]; + + /** + * Get the user that owns the workflow timestamp. + */ + public function user() + { + return $this->belongsTo(User::class, 'userId'); + } +} diff --git a/database/migrations/2024_07_21_222302_create_workflow_timestamps_table.php b/database/migrations/2024_07_21_222302_create_workflow_timestamps_table.php new file mode 100644 index 00000000..5a166ffd --- /dev/null +++ b/database/migrations/2024_07_21_222302_create_workflow_timestamps_table.php @@ -0,0 +1,35 @@ +id(); + $table->string('node'); + $table->integer('seconds'); + $table->unsignedBigInteger('userId'); + $table->string('session_id'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('workflow_timestamps'); + } +} diff --git a/resources/assets/vue/components/general/sections/AdminWorkFlowSectionComponent.vue b/resources/assets/vue/components/general/sections/AdminWorkFlowSectionComponent.vue index 3190ed5e..1d88a6ea 100644 --- a/resources/assets/vue/components/general/sections/AdminWorkFlowSectionComponent.vue +++ b/resources/assets/vue/components/general/sections/AdminWorkFlowSectionComponent.vue @@ -1,120 +1,119 @@