30 lines
706 B
PHP
30 lines
706 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class AiModelApiProviderSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
$data = [
|
|
[
|
|
['ai_model_id' => 2, 'api_provider_id' => 1],
|
|
['ai_model_id' => 5, 'api_provider_id' => 1],
|
|
['ai_model_id' => 6, 'api_provider_id' => 1],
|
|
['ai_model_id' => 7, 'api_provider_id' => 3],
|
|
['ai_model_id' => 8, 'api_provider_id' => 1],
|
|
]
|
|
];
|
|
|
|
foreach ($data as $row) {
|
|
DB::table('ai_model_api_provider')->insert($row);
|
|
}
|
|
}
|
|
} |