42 lines
1.0 KiB
PHP
42 lines
1.0 KiB
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.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function up()
|
||
|
{
|
||
|
Schema::create('packages', function (Blueprint $table) {
|
||
|
$table->bigIncrements('id');
|
||
|
$table->string('name');
|
||
|
$table->text('description');
|
||
|
$table->integer('no_of_active_forms')->default(0);
|
||
|
$table->boolean('is_form_downloadable');
|
||
|
$table->string('price_interval');
|
||
|
$table->integer('interval');
|
||
|
$table->decimal('price', 20, 4);
|
||
|
$table->integer('sort_order')->default(0);
|
||
|
$table->boolean('is_active');
|
||
|
$table->softDeletes();
|
||
|
$table->timestamps();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
Schema::dropIfExists('packages');
|
||
|
}
|
||
|
};
|