chore: update document approval workflow and bug fixes
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\ProjectManagement\Database\Seeders;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Modules\ProjectManagement\Models\Project;
|
||||
|
||||
class ProjectManagementDatabaseSeeder extends Seeder
|
||||
{
|
||||
public function run(): void
|
||||
{
|
||||
// Create a sample project
|
||||
$project = Project::create([
|
||||
'name' => 'GSB Tower Construction',
|
||||
'code' => 'PRJ-2026-001',
|
||||
'description' => 'Main tower construction project for GSB headquarters.',
|
||||
'location' => 'Manila, Philippines',
|
||||
'status' => 'planning',
|
||||
'contract_value' => 50000000.00,
|
||||
'start_date' => '2026-04-01',
|
||||
'target_end_date' => '2027-12-31',
|
||||
]);
|
||||
|
||||
// Assign admin as PM
|
||||
$admin = User::where('email', 'admin@gsb-cons.com')->first();
|
||||
if ($admin) {
|
||||
$project->personnel()->attach($admin->id, ['role' => 'pm']);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user