Add Calculationpresets and Calculator modules with CRUD functionality, migrations, and UI components.

This commit is contained in:
2026-01-24 13:23:03 +01:00
parent fd61f14ffe
commit 0356063015
14 changed files with 560 additions and 2 deletions
@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('calculatorpresets', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('description')->nullable();
$table->decimal('price_kwh', 10, 2);
$table->decimal('factor_printer', 10, 2);
$table->decimal('factor_maintenance', 10, 2);
$table->decimal('factor_price', 10, 2);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('calculatorpresets');
}
};