ldc-crm/database/migrations/2020_11_27_122842_create_services.php
Romain Bonhomme 328e38ce38 Init
2020-12-01 17:02:10 +01:00

35 lines
770 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
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');
}
}