This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateTransportePacienteJornada extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('transporte_paciente_jornada', function (Blueprint $table) {
|
||||
$table->id();
|
||||
|
||||
/**
|
||||
* Informações da jornada
|
||||
*/
|
||||
$table->dateTime('data_inicial');
|
||||
$table->dateTime('data_final');
|
||||
|
||||
/**
|
||||
* FK's
|
||||
*/
|
||||
$table->foreignId('veiculo_id')->constrained('transporte_paciente_veiculo');
|
||||
$table->foreignId('geral_dia_semana_id')->constrained('geral_dia_semana');
|
||||
|
||||
MigrationUtil::addCommonFields($table);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('transporte_paciente_jornada');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user