ldc-crm/database/migrations/2020_11_27_122842_create_services.php
2025-09-08 14:59:53 +02:00

35 lines
779 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('services', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->foreignId('brand_id')->constrained('brands');
$table->string('api_token');
$table->timestamp('api_token_date');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('services');
}
};