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

37 lines
833 B
PHP
Raw 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;
// phpcs:ignore PSR1.Classes.ClassDeclaration.MissingNamespace
2020-12-01 17:02:10 +01:00
class CreateServices extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
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()
{
Schema::dropIfExists('services');
}
}