Initial commit

This commit is contained in:
2025-03-16 01:51:35 +03:00
commit d3a0958e46
65 changed files with 12929 additions and 0 deletions

View File

@@ -0,0 +1,78 @@
<?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(),
],
]
);
}
}