79 lines
2.7 KiB
PHP
79 lines
2.7 KiB
PHP
<?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(),
|
||
],
|
||
]
|
||
);
|
||
}
|
||
}
|