diff --git a/database/migrations/2025_03_07_133658_create_plugins_table.php b/database/migrations/2025_03_07_133658_create_plugins_table.php new file mode 100644 index 0000000..7361b7b --- /dev/null +++ b/database/migrations/2025_03_07_133658_create_plugins_table.php @@ -0,0 +1,38 @@ +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'); + } +};