krgm.so-manager-dev.com/database/seeders/ShjBatchLogTestSeeder.php

41 lines
1.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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";
}
}