30 lines
1.3 KiB
PHP
30 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace Modules\DocumentManagement\Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Modules\DocumentManagement\Models\DocumentCategory;
|
|
|
|
class DocumentCategorySeeder extends Seeder
|
|
{
|
|
public function run(): void
|
|
{
|
|
$categories = [
|
|
['name' => 'Architectural', 'description' => 'Architectural drawings, floor plans, and elevation specs.'],
|
|
['name' => 'Structural', 'description' => 'Structural engineering drawings, rebar schedules, and foundation plans.'],
|
|
['name' => 'MEP', 'description' => 'Mechanical, Electrical, and Plumbing engineering documentation.'],
|
|
['name' => 'Permits', 'description' => 'Building permits, occupancy certificates, and government clearances.'],
|
|
['name' => 'Contracts', 'description' => 'Client agreements, contractor subcontracts, and change orders.'],
|
|
['name' => 'Safety & Compliance', 'description' => 'OSHA safety reports, site inspection logs, and environmental audits.'],
|
|
['name' => 'Financial & Invoices', 'description' => 'Billings, payment certificates, and purchase receipts.'],
|
|
];
|
|
|
|
foreach ($categories as $cat) {
|
|
DocumentCategory::firstOrCreate(
|
|
['name' => $cat['name']],
|
|
['description' => $cat['description']]
|
|
);
|
|
}
|
|
}
|
|
}
|