diff --git a/be/app/Http/Resources/SubTaskResource.php b/be/app/Http/Resources/SubTaskResource.php index fbd83b1..7b6bd9a 100644 --- a/be/app/Http/Resources/SubTaskResource.php +++ b/be/app/Http/Resources/SubTaskResource.php @@ -28,6 +28,7 @@ class SubTaskResource extends JsonResource 'employee_id' => $this->user->id, 'duration' => $this->estimated_time, 'spent_time' => $this->tracked_time, + 'deadline' => $this->deadline, 'is_finished' => $this->is_finished, 'timeblocks' => TimeblockResource::collection($this->timeblocks), 'timesheets' => TimesheetResource::collection($this->timesheets), diff --git a/be/database/migrations/2023_06_06_082226_add_deadline_to_subtasks_table.php b/be/database/migrations/2023_06_06_082226_add_deadline_to_subtasks_table.php new file mode 100644 index 0000000..0c8b8b5 --- /dev/null +++ b/be/database/migrations/2023_06_06_082226_add_deadline_to_subtasks_table.php @@ -0,0 +1,32 @@ +timestamp('deadline')->after('tracked_time')->default(NULL); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('subtasks', function (Blueprint $table) { + // + }); + } +};