31 lines
732 B
PHP
31 lines
732 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(): void
|
|
{
|
|
Schema::create('prices', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->decimal('price', 17, 2)->nullable();
|
|
$table->decimal('setup_fee', 17, 2)->nullable();
|
|
$table->string('currency_code', 3);
|
|
$table->foreignIdFor(\App\Models\Plan::class)->nullable();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('prices');
|
|
}
|
|
};
|