Commit 30fcb4cc authored by alissonalbuquerque's avatar alissonalbuquerque
Browse files

add correcoes de tabelas de ensino & pesquisa

parent a48756e6
......@@ -15,14 +15,15 @@ class CreateEnsinoOrientacoesTable extends Migration
{
Schema::create('ensino_orientacoes', function (Blueprint $table) {
$table->id();
$table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->nullable();
$table->string('cod_atividade')->notNull();
$table->string('atividade')->notNull();
$table->foreignId('curso_id')->notNull();
$table->string('curso')->notNull();
$table->tinyInteger('nivel')->notNull();
$table->tinyInteger('type_orientacao')->notNull();
$table->tinyInteger('numero_orientandos')->nullable();
$table->integer('ch_semanal')->notNull();
$table->foreignId('pad_id')->notNull();
$table->timestamps();
$table->softDeletes();
});
......
......@@ -15,8 +15,8 @@ class CreatePesquisaCoordenacaoTable extends Migration
{
Schema::create('pesquisa_coordenacao', function (Blueprint $table) {
$table->id();
$table->tinyInteger('dimensao');
$table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->nullable();
$table->string('cod_atividade')->notNull();
$table->string('titulo_projeto')->notNull();
$table->string('linha_grupo_pesquisa')->notNull();
......
......@@ -15,15 +15,14 @@ class CreatePesquisaLiderancaTable extends Migration
{
Schema::create('pesquisa_lideranca', function (Blueprint $table) {
$table->id();
$table->tinyInteger('dimensao');
$table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->nullable();
$table->string('cod_atividade')->notNull();
$table->string('grupo_pesquisa')->notNull();
$table->string('atividade')->notNull();
$table->tinyInteger('funcao')->notNull();
$table->integer('ch_semanal')->notNull();
$table->softDeletes();
$table->timestamps();
$table->timestamps();
});
}
......
......@@ -15,15 +15,15 @@ class CreatePesquisaOrientacaoTable extends Migration
{
Schema::create('pesquisa_orientacao', function (Blueprint $table) {
$table->id();
$table->tinyInteger('dimensao');
$table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->nullable();
$table->string('cod_atividade')->notNull();
$table->string('titulo_projeto')->notNull();
$table->string('nome_orientando')->notNull();
$table->tinyInteger('funcao')->notNull();
$table->integer('ch_semanal')->notNull();
$table->softDeletes();
$table->timestamps();
$table->timestamps();
});
}
......
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateEnsinoSupervisaoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('ensino_supervisao', function (Blueprint $table) {
$table->id();
$table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->nullable();
$table->string('cod_atividade')->notNull();
$table->string('atividade')->notNull();
$table->string('curso')->notNull();
$table->tinyInteger('nivel')->notNull();
$table->tinyInteger('type_supervisao')->notNull();
$table->tinyInteger('numero_orientandos')->nullable();
$table->integer('ch_semanal')->notNull();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('ensino_supervisao');
}
}
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateEnsinoAtendimentoDiscenteTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('ensino_atendimento_discente', function (Blueprint $table) {
$table->id();
$table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->nullable();
$table->string('cod_atividade')->notNull();
$table->string('componente_curricular')->notNull();
$table->string('curso')->notNull();
$table->tinyInteger('nivel')->notNull();
$table->integer('ch_semanal')->notNull();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('ensino_atendimento_discente');
}
}
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateEnsinoProjetoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('ensino_projeto', function (Blueprint $table) {
$table->id();
$table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->nullable();
$table->string('cod_atividade')->notNull();
$table->string('titulo')->notNull();
$table->string('curso')->notNull();
$table->tinyInteger('natureza')->notNull();
$table->tinyInteger('funcao')->notNull();
$table->integer('ch_semanal')->notNull();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('ensino_projeto');
}
}
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateEnsinoParticipacaoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('ensino_participacao', function (Blueprint $table) {
$table->id();
$table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->nullable();
$table->string('cod_atividade')->notNull();
$table->string('curso')->notNull();
$table->tinyInteger('nivel')->notNull();
$table->integer('ch_semanal')->notNull();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('ensino_participacao');
}
}
......@@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateEnsinoCoordenacaoTable extends Migration
class CreateEnsinoCoordenacaoRegenciaTable extends Migration
{
/**
* Run the migrations.
......@@ -13,15 +13,16 @@ class CreateEnsinoCoordenacaoTable extends Migration
*/
public function up()
{
Schema::create('ensino_coordenacao', function (Blueprint $table) {
Schema::create('ensino_coordenacao_regencia', function (Blueprint $table) {
$table->id();
$table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->nullable();
$table->string('cod_atividade')->notNull();
$table->string('componente_curricular')->notNull();
$table->foreignId('curso_id')->notNull();
$table->string('curso')->notNull();
$table->tinyInteger('nivel')->notNull();
$table->tinyInteger('modalidade')->notNull();
$table->integer('ch_semanal')->notNull();
$table->foreignId('pad_id')->notNull();
$table->timestamps();
$table->softDeletes();
});
......@@ -34,6 +35,6 @@ class CreateEnsinoCoordenacaoTable extends Migration
*/
public function down()
{
Schema::dropIfExists('ensino_coordenacao');
Schema::dropIfExists('ensino_coordenacao_regencia');
}
}
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateEnsinoMembroDocenteTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('ensino_membro_docente', function (Blueprint $table) {
$table->id();
$table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->nullable();
$table->string('cod_atividade')->notNull();
$table->string('nucleo')->notNull();
$table->string('documento')->notNull();
$table->tinyInteger('funcao')->notNull();
$table->integer('ch_semanal')->notNull();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('ensino_membro_docente');
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment