Aknaproff/database/migrations/2019_09_13_082524_create_packages_table.php

42 lines
1.0 KiB
PHP
Raw Normal View History

2023-09-21 12:45:08 +00: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.
*
* @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');
}
};