41 lines
1.1 KiB
PHP
41 lines
1.1 KiB
PHP
<?php
|
||
|
||
namespace Database\Seeders;
|
||
|
||
use Illuminate\Database\Seeder;
|
||
use Illuminate\Support\Facades\DB;
|
||
|
||
/**
|
||
* SHJ-8バッチログテストシーダー
|
||
* テスト用のデバイスデータを作成
|
||
*/
|
||
class ShjBatchLogTestSeeder extends Seeder
|
||
{
|
||
/**
|
||
* シーダーを実行
|
||
*
|
||
* @return void
|
||
*/
|
||
public function run()
|
||
{
|
||
// テスト用デバイスデータを挿入
|
||
DB::table('device')->insert([
|
||
[
|
||
'device_id' => 9999,
|
||
'created_at' => now(),
|
||
'updated_at' => now(),
|
||
'park_id' => 1,
|
||
'device_type' => 'test_printer',
|
||
'device_subject' => 'テスト用プリンター',
|
||
'device_identifier' => 'TEST_PRINTER_001',
|
||
'device_work' => '印刷処理',
|
||
'device_workstart' => '2025-01-01',
|
||
'device_replace' => '2030-01-01',
|
||
'device_remarks' => 'SHJ-8テスト用デバイス',
|
||
'operator_id' => 1
|
||
]
|
||
]);
|
||
|
||
echo "SHJ-8テスト用デバイス(ID: 9999)を作成しました。\n";
|
||
}
|
||
} |