ldc-crm/database/migrations/2020_11_27_122842_create_services.php

36 lines
779 B
PHP
Raw Permalink Normal View History

2020-12-01 17:02:10 +01:00
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
2025-08-28 11:07:31 +02:00
return new class extends Migration
2020-12-01 17:02:10 +01:00
{
/**
* Run the migrations.
*
* @return void
*/
2025-08-28 11:07:31 +02:00
public function up(): void
2020-12-01 17:02:10 +01:00
{
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
*/
2025-08-28 11:07:31 +02:00
public function down(): void
2020-12-01 17:02:10 +01:00
{
Schema::dropIfExists('services');
}
2025-08-28 11:07:31 +02:00
};