mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
GET mastertasks, GET mastertasks/{id} endpointy
This commit is contained in:
1 parent
dfac41f30a
commit
ba6b9e20a5
16 files changed
+210
-12
No files matched your search
@@ -33,6 +33,7 @@ class MasterTaskFactory extends Factory
|
||||
'project_id' => $project->id,
|
||||
'team_id' => $team->id,
|
||||
'title' => 'Master task ' . fake()->words(2, true),
|
||||
'description' => fake()->paragraphs(3, true),
|
||||
'estimated_time' => fake()->numberBetween(20,100),
|
||||
'tracked_time' => fake()->numberBetween(4,20),
|
||||
'deadline' => fake()->date(),
|
||||
|
||||
@@ -19,10 +19,10 @@ class SubTaskFactory extends Factory
|
||||
*/
|
||||
public function definition()
|
||||
{
|
||||
$client = \App\Models\Client::all()->random();
|
||||
$user = \App\Models\User::all()->random();
|
||||
|
||||
return [
|
||||
'user_id' => $client->id,
|
||||
'user_id' => $user->id,
|
||||
'estimated_time' => fake()->numberBetween(1,16),
|
||||
'tracked_time' => fake()->numberBetween(4,20),
|
||||
'is_finished' => 0,
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('master_tasks', function (Blueprint $table) {
|
||||
$table->longText('description')->after('title');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('master_task', function (Blueprint $table) {
|
||||
//
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user