mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-11-25 17:50:54 +09:00
35 lines
888 B
PHP
Executable File
35 lines
888 B
PHP
Executable File
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*/
|
|
public function up(): void
|
|
{
|
|
Schema::create('users', function (Blueprint $table) {
|
|
$table->increments('id');
|
|
$table->string('username')->unique();
|
|
$table->string('email');
|
|
$table->string('avatar')->nullable();
|
|
$table->string('password')->nullable();
|
|
$table->string('autologin')->nullable()->index();
|
|
$table->boolean('public_front')->default(false);
|
|
$table->rememberToken();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('users');
|
|
}
|
|
};
|