Invoice upload by robot

This commit is contained in:
2026-02-14 00:04:00 +01:00
parent 4f4dff2edd
commit 2b458eccd7
15 changed files with 278 additions and 6 deletions

View File

@@ -0,0 +1,35 @@
<?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('cron_task_types', function (Blueprint $table) {
$table->string('slug')->primary();
});
Schema::create('cron_tasks', function (Blueprint $table) {
$table->id();
$table->string('name')->unique();
$table->string('execution_type');
$table->time('schedule_time')->nullable();
$table->timestamp('last_run')->nullable();
$table->timestamps();
$table->foreign('execution_type')->references('slug')->on('cron_task_types')->cascadeOnDelete()->cascadeOnUpdate();
});
}
public function down(): void
{
Schema::dropIfExists('cron_tasks');
Schema::dropIfExists('cron_task_types');
}
};