Implemented Dynamic Items for data to be sent to polled systems based on data in db, like stats/nodelists

This commit is contained in:
2023-12-03 18:18:05 +11:00
parent 8f3d77b04d
commit 1890b66dc7
10 changed files with 366 additions and 4 deletions

View File

@@ -0,0 +1,40 @@
<?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('dynamics',function (Blueprint $table) {
$table->id();
$table->timestamps();
$table->string('name')->unqiue();
$table->enum('frequency',['ONCE','DAILY','WEEKLY','MONTHLY'])->unsigned();
$table->date('start_date');
$table->time('start_time');
$table->datetime('next_at');
$table->string('model');
$table->json('arguments')->nullable();
$table->boolean('active')->nullable();
$table->bigInteger('address_id');
$table->foreign('address_id')->references('id')->on('addresses');
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('dynamics');
}
};