File: /var/www/api_matriculas/database/migrations/2014_08_24_162240_create_profiles_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('profiles', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('code', 50)->nullable();
$table->string('profile', 255);
$table->string('description', 255)->nullable();
$table->boolean('show_user')->default(true);
$table->boolean('status')->default(true);
$table->timestamps();
$table->unsignedBigInteger('user_created')->nullable();
$table->unsignedBigInteger('user_updated')->nullable();
$table->unsignedBigInteger('user_deleted')->nullable();
$table->boolean('deleted')->default(false);
$table->timestamp('deleted_at')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('profiles');
}
};