Files
SpiceManagementSystem/database/migrations/0001_01_01_192105_packings.php
T
2026-09-11 01:17:47 +02:00

31 lines
670 B
PHP

<?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()
{
Schema::create('packings', function (Blueprint $table) {
$table->id(); // Primärschlüssel
$table->string('name'); // Name der Verpackung
$table->decimal('size', 10, 2); // Größe in Gramm
$table->timestamps(); // created_at und updated_at
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
//
}
};