Files
Scheduler/database/migrations/2025_08_30_101757_create_bots_table.php
2025-08-30 16:11:06 +02:00

33 lines
763 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('bots', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('class');
$table->json('config')->nullable();
$table->string('schedule')->default('* * * * *');
$table->boolean('enabled')->default(true);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('bots');
}
};