ikinci temizlik tamamlandı

This commit is contained in:
Ümit Tunç
2026-04-28 21:15:09 +03:00
parent f80443aec0
commit 37e7296527
8313 changed files with 2400677 additions and 0 deletions
@@ -0,0 +1,46 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class MechanicalJointTypesSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
$types = [
[
'title' => 'Flange Joint',
'short_name_en' => 'FJ',
],
[
'title' => 'Female Threaded Joint',
'short_name_en' => 'FTDH',
],
[
'title' => 'Male Threaded Joint',
'short_name_en' => 'MTHD',
],
[
'title' => 'Bolted Joint',
'short_name_en' => 'BJ',
],
];
foreach ($types as $type) {
DB::table('joint_types')->updateOrInsert(
['short_name_en' => $type['short_name_en']],
array_merge($type, [
'is_welded' => 0,
'has_ndt' => 0,
'is_mechanical' => 1,
])
);
}
}
}