29 lines
808 B
PHP
29 lines
808 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
public function up()
|
|
{
|
|
Schema::create('subscriptions', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('name');
|
|
$table->text('description');
|
|
$table->decimal('price', 10, 2);
|
|
$table->integer('duration_days');
|
|
$table->json('features');
|
|
$table->integer('min_score');
|
|
$table->integer('verification_interval_minutes');
|
|
$table->boolean('is_active')->default(true);
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('subscriptions');
|
|
}
|
|
};
|