| Server IP : 3.111.61.48 / Your IP : 216.73.216.67 Web Server : Apache System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.2.31 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/vhost/ats.isankalpa.org/database/migrations/ |
Upload File : |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->increments('i_id');
$table->string('s_first_name');
$table->string('s_last_name');
$table->integer('i_user_type');
$table->string('email')->unique();
$table->string('s_phone')->nullable();
$table->timestamp('s_email_verified_at')->nullable();
$table->string('password');
$table->rememberToken();
$table->dateTime('dt_created_at');
$table->integer('i_created_by');
$table->dateTime('updated_at')->nullable();
$table->integer('i_updated_by')->nullable();
$table->enum('i_is_active',['0','1']);
$table->enum('i_is_deleted',['0','1']);
$table->index(['s_first_name', 's_last_name', 'i_user_type']);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('users');
}
}