Files
roxane/database/migrations/2025_10_20_111359_create_packages_table.php

34 lines
822 B
PHP
Raw Normal View History

2025-10-22 17:09:48 +02:00
<?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('packages', function (Blueprint $table) {
$table->id();
$table->string('identifier')->unique();
$table->string('name');
$table->string('description')->nullable();
2025-10-24 14:09:54 +02:00
$table->decimal('price', 10)->default(0);
2025-10-22 17:09:48 +02:00
$table->boolean('is_active')->default(true);
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('packages');
}
};