31 lines
670 B
PHP
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
|
|
{
|
|
//
|
|
}
|
|
};
|