mcps and skills
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
<?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('mcp_servers', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->string('slug')->unique();
|
||||
$table->text('description');
|
||||
$table->string('url');
|
||||
$table->string('docs_url')->nullable();
|
||||
$table->string('logo_url')->nullable();
|
||||
$table->string('category');
|
||||
$table->text('install_command')->nullable();
|
||||
$table->text('config_example')->nullable();
|
||||
$table->string('transport')->nullable();
|
||||
$table->string('language')->nullable();
|
||||
$table->json('capabilities')->nullable();
|
||||
$table->json('tags')->nullable();
|
||||
$table->unsignedInteger('views')->default(0);
|
||||
$table->unsignedInteger('clicks')->default(0);
|
||||
$table->boolean('featured')->default(false);
|
||||
$table->boolean('approved')->default(false);
|
||||
$table->foreignId('user_id')->nullable()->constrained()->nullOnDelete();
|
||||
$table->timestamps();
|
||||
|
||||
$table->index(['category']);
|
||||
$table->index(['approved', 'featured']);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('mcp_servers');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,46 @@
|
||||
<?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('skills', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->string('slug')->unique();
|
||||
$table->text('description');
|
||||
$table->string('url');
|
||||
$table->string('docs_url')->nullable();
|
||||
$table->string('logo_url')->nullable();
|
||||
$table->string('category');
|
||||
$table->text('install_instructions')->nullable();
|
||||
$table->text('example_prompt')->nullable();
|
||||
$table->string('requirements')->nullable();
|
||||
$table->json('tags')->nullable();
|
||||
$table->unsignedInteger('views')->default(0);
|
||||
$table->unsignedInteger('clicks')->default(0);
|
||||
$table->boolean('featured')->default(false);
|
||||
$table->boolean('approved')->default(false);
|
||||
$table->foreignId('user_id')->nullable()->constrained()->nullOnDelete();
|
||||
$table->timestamps();
|
||||
|
||||
$table->index(['category']);
|
||||
$table->index(['approved', 'featured']);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('skills');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user