Files
backend/database/seeders/AzmayeshFieldSeeder.php

56 lines
1.5 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' => 'سانتی متر',
'type' => 'input',
'option' => null,
'created_at' => now(),
'updated_at' => now()
],
[
'id' => 2,
'name' => 'عرض',
'unit' => 'سانتی متر',
'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()
],
]);
}
}