mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
feat: add migration for Plugins
This commit is contained in:
parent
61ec772d35
commit
11f4ccb946
1 changed files with 38 additions and 0 deletions
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('plugins', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('uuid')->nullable();
|
||||
$table->foreignIdFor(User::class)->nullable();
|
||||
$table->string('name')->nullable();
|
||||
$table->text('data_payload')->nullable();
|
||||
$table->integer('data_stale_minutes')->nullable();
|
||||
$table->string('data_strategy')->nullable();
|
||||
$table->string('polling_url')->nullable();
|
||||
$table->string('polling_verb')->nullable();
|
||||
$table->string('polling_header')->nullable();
|
||||
$table->text('render_markup')->nullable();
|
||||
$table->string('render_markup_view')->nullable();
|
||||
$table->string('detail_view_route')->nullable();
|
||||
$table->string('icon_url')->nullable();
|
||||
$table->string('flux_icon_name')->nullable();
|
||||
$table->string('author_name')->nullable();
|
||||
$table->boolean('is_native')->default(false);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('plugins');
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue