Files
calculator/database/seeders/IngredientsSeeder.php
2025-03-16 01:51:35 +03:00

79 lines
2.7 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\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\DB;
class IngredientsSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
DB::table('ingredients')->insert(
[
[
'name' => 'Мука ЕВРО',
'code' => 'ingredientFlour',
'batch_weight' => 70,
'ratio' => '52.045',
'created_at' => Carbon::now(),
],
[
'name' => 'Смола SG5',
'code' => 'ingredientResin',
'batch_weight' => 25,
'ratio' => 18.587,
'created_at' => Carbon::now(),
],
[
'name' => 'Мел М60Г',
'code' => 'ingridientChalk',
'batch_weight' => 36,
'ratio' => 26.766,
'created_at' => Carbon::now(),
],
[
'name' => 'Стабилизатор 39/1',
'code' => 'ingridientStabilizer',
'batch_weight' => 1.4,
'ratio' => 1.041,
'created_at' => Carbon::now(),
],
[
'name' => 'Краска 60Г/1',
'code' => 'ingridientPaint',
'batch_weight' => 0.9,
'ratio' => 0.669,
'created_at' => Carbon::now(),
],
[
'name' => 'Воск 365',
'code' => 'ingridientWax',
'batch_weight' => 0.2,
'ratio' => 0.149,
'created_at' => Carbon::now(),
],
[
'name' => 'Модификатор YF-100',
'code' => 'ingridientModifierYf',
'batch_weight' => 0.3,
'ratio' => 0.223,
'created_at' => Carbon::now(),
],
[
'name' => 'Модификатор CPE-135 A',
'code' => 'ingridientModifierCpe',
'batch_weight' => 0.7,
'ratio' => 0.52,
'created_at' => Carbon::now(),
],
]
);
}
}