119 lines
3.6 KiB
PHP
119 lines
3.6 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class AzmayeshFieldSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
DB::table('azmayesh_fields')->insert([
|
|
[
|
|
'id' => 1,
|
|
'name' => 'طول',
|
|
'unit' => 'cm',
|
|
'type' => 'input',
|
|
'option' => null,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
],
|
|
[
|
|
'id' => 2,
|
|
'name' => 'عرض',
|
|
'unit' => 'cm',
|
|
'type' => 'input',
|
|
'option' => null,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
],
|
|
[
|
|
'id' => 3,
|
|
'name' => 'تاریخ آزمایش',
|
|
'unit' => '-',
|
|
'type' => 'date',
|
|
'option' => null,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
],
|
|
[
|
|
'id' => 4,
|
|
'name' => 'وضعیت سینی',
|
|
'unit' => '-',
|
|
'type' => 'select',
|
|
'option' => json_encode(['طولی', 'عرضی']),
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
],
|
|
[
|
|
'id' => 5,
|
|
'name' => 'ضخامت',
|
|
'unit' => 'cm',
|
|
'type' => 'input',
|
|
'option' => null,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
],
|
|
[
|
|
'id' => 6,
|
|
'name' => 'نوع لایه',
|
|
'unit' => '-',
|
|
'type' => 'select',
|
|
'option' => json_encode(['اساس']),
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
],
|
|
[
|
|
'id' => 7,
|
|
'name' => 'مشخصات تراکم نسبی',
|
|
'unit' => 'percent',
|
|
'type' => 'input',
|
|
'option' => null,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
],
|
|
[
|
|
'id' => 8,
|
|
'name' => 'نیروی تصحیح شده',
|
|
'unit' => 'kg',
|
|
'type' => 'input',
|
|
'option' => null,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
],
|
|
[
|
|
'id' => 9,
|
|
'name' => 'مقاومت فشاری آزمونه',
|
|
'unit' => 'kg/cm2',
|
|
'type' => 'input',
|
|
'option' => null,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
],
|
|
[
|
|
'id' => 10,
|
|
'name' => 'مقاومت فشاری آزمونه استوانه ای متناظر',
|
|
'unit' => 'kg/cm2',
|
|
'type' => 'input',
|
|
'option' => null,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
],
|
|
[
|
|
'id' => 11,
|
|
'name' => 'مقاومت فشاری آزمونه استوانه ای متناظر',
|
|
'unit' => 'kg/cm2',
|
|
'type' => 'input',
|
|
'option' => null,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
],
|
|
]);
|
|
}
|
|
}
|