Files
MyX/database/migrations/2024_08_10_153417_create_accounts_table.php
2024-08-10 17:10:59 +02:00

32 lines
718 B
PHP

<?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('accounts', function (Blueprint $table) {
$table->id();
$table->boolean('enable')->default(true);
$table->string('name');
$table->string('password');
$table->mediumText('cookies')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('accounts');
}
};