CasperSecurity
<?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('features', function (Blueprint $table) {
$table->id();
$table->foreignId('module_id')->nullable();
$table->string('feature_name')->unique();
$table->string('feature_create')->nullable();
$table->string('feature_read')->nullable();
$table->string('feature_update')->nullable();
$table->string('feature_delete')->nullable();
$table->tinyInteger('status')->default('1');
$table->string('created_by')->nullable();
$table->string('modified_by')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('features');
}
};