opnform/database/migrations/2021_11_04_171753_create_we...

24 lines
627 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateWebhookCallsTable extends Migration
{
public function up()
{
Schema::create('webhook_calls', function (Blueprint $table) {
$table->id();
$table->string('external_id')->nullable()->index();
$table->string('name');
$table->json('payload')->nullable();
$table->text('exception')->nullable();
$table->timestamp('processed_at')->nullable();
$table->timestamps();
});
}
}