mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 01:51:07 +03:30
43 lines
1.2 KiB
PHP
43 lines
1.2 KiB
PHP
<?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->bigIncrements('id');
|
|
$table->string('name');
|
|
$table->string('email')->nullable();
|
|
$table->string('cell_number');
|
|
$table->enum('gender', ['Male','FeMale'])->default('Male');
|
|
$table->enum('verified', ['Verified','NotVerified'])->default('NotVerified');
|
|
$table->enum('status', ['Active','Suspended'])->default('Active');
|
|
$table->unsignedBigInteger('medical_center_id');
|
|
$table->foreign('medical_center_id')->references('id')->on('medical_centers');
|
|
$table->string('password');
|
|
$table->string('address')->nullable();
|
|
$table->rememberToken();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('users');
|
|
}
|
|
}
|