taravel/database/migrations/2024_04_01_create_api_providers_table.php
2024-11-13 16:26:27 +08:00

25 lines
639 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up()
{
Schema::create('api_providers', function (Blueprint $table) {
$table->string('provider_id')->primary();
$table->string('name');
$table->string('api_key');
$table->string('endpoint');
$table->boolean('active')->default(false);
$table->timestamps();
});
}
public function down()
{
Schema::dropIfExists('api_providers');
}
};