feat: product pricing plans

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Doar Mihai
2026-10-17 16:02:27 +03:00
co-authored by Claude Sonnet 5.5
parent a3894d2f37
commit 768c814762
10 changed files with 229 additions and 1 deletions
@@ -0,0 +1,27 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::create('pricing_plans', function (Blueprint $table) {
$table->id();
$table->foreignId('product_id')->constrained()->cascadeOnDelete();
$table->string('name', 100);
$table->decimal('price', 8, 2);
$table->string('period');
$table->string('description')->nullable();
$table->unsignedInteger('position')->default(0);
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('pricing_plans');
}
};