ldc-crm/database/migrations/2020_11_27_122842_create_services.php
Jérémy Munsch 2e99623428 Normalize
- add phpcs
  - fix php standards
  - fix Laravel standards
  - normalize tables names
2021-03-01 06:57:45 +01:00

36 lines
833 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
// phpcs:ignore PSR1.Classes.ClassDeclaration.MissingNamespace
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');
}
}