2022-11-14 10:37:09 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
|
2023-01-30 16:14:07 +00:00
|
|
|
return new class extends Migration
|
|
|
|
{
|
2022-11-14 10:37:09 +00:00
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2023-01-14 10:02:27 +00:00
|
|
|
public function up(): void
|
2022-11-14 10:37:09 +00:00
|
|
|
{
|
|
|
|
Schema::create('admins', function (Blueprint $table) {
|
|
|
|
$table->id();
|
2023-02-02 12:11:41 +00:00
|
|
|
$table->string('name')->nullable();
|
2022-11-14 10:37:09 +00:00
|
|
|
$table->string('email')->unique();
|
|
|
|
$table->string('password');
|
|
|
|
$table->rememberToken();
|
|
|
|
$table->timestamps();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2023-01-14 10:02:27 +00:00
|
|
|
public function down(): void
|
2022-11-14 10:37:09 +00:00
|
|
|
{
|
|
|
|
Schema::dropIfExists('admins');
|
|
|
|
}
|
|
|
|
};
|