Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
pad-upe
Commits
b207934a
Commit
b207934a
authored
Mar 20, 2022
by
Abraão Barbosa
Browse files
add models e migrations do pad e ref_planejamento_ch
parent
738ddd4b
Changes
6
Hide whitespace changes
Inline
Side-by-side
app/Models/PAD.php
0 → 100644
View file @
b207934a
<?php
namespace
App\Models
;
use
Illuminate\Database\Eloquent\Factories\HasFactory
;
use
Illuminate\Database\Eloquent\Model
;
class
PAD
extends
Model
{
use
HasFactory
;
}
app/Models/RefPlanejamentoCh.php
0 → 100644
View file @
b207934a
<?php
namespace
App\Models
;
use
Illuminate\Database\Eloquent\Factories\HasFactory
;
use
Illuminate\Database\Eloquent\Model
;
class
RefPlanejamentoCh
extends
Model
{
use
HasFactory
;
}
database/migrations/2022_03_12_020002_update_user_table.php
View file @
b207934a
...
@@ -17,9 +17,6 @@ class UpdateUserTable extends Migration
...
@@ -17,9 +17,6 @@ class UpdateUserTable extends Migration
$table
->
integer
(
'type'
)
->
default
(
0
)
->
change
();
$table
->
integer
(
'type'
)
->
default
(
0
)
->
change
();
$table
->
string
(
'document'
)
->
default
(
""
)
->
change
();
$table
->
string
(
'document'
)
->
default
(
""
)
->
change
();
$table
->
integer
(
'status'
)
->
default
(
1
)
->
change
();
$table
->
integer
(
'status'
)
->
default
(
1
)
->
change
();
$table
->
string
(
'unidade'
)
->
default
(
""
)
->
change
();
$table
->
integer
(
'curso_id'
)
->
default
(
0
)
->
change
();
});
});
}
}
...
...
database/migrations/2022_03_20_233337_create_p_a_d_s_table.php
0 → 100644
View file @
b207934a
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
CreatePADSTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'p_a_d_s'
,
function
(
Blueprint
$table
)
{
$table
->
id
();
$table
->
timestamps
();
$table
->
integer
(
'ano'
);
$table
->
integer
(
'semestre'
);
$table
->
integer
(
'carga_horaria'
);
$table
->
string
(
'categoria'
,
20
);
$table
->
boolean
(
'afastamento_total'
)
->
default
(
false
);
$table
->
boolean
(
'afastamento_parcial'
)
->
default
(
false
);
$table
->
boolean
(
'exerce_funcao_admin'
)
->
default
(
false
);
$table
->
boolean
(
'exerce_funcao_sindical'
)
->
default
(
false
);
$table
->
string
(
'licenca_de_acor_legais'
,
50
)
->
default
(
null
);
$table
->
string
(
'outras_observacoes'
,
200
)
->
nullable
(
true
);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'p_a_d_s'
);
}
}
database/migrations/2022_03_20_233345_create_ref_planejamento_ches_table.php
0 → 100644
View file @
b207934a
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
CreateRefPlanejamentoChesTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'ref_planejamento_ches'
,
function
(
Blueprint
$table
)
{
$table
->
id
();
$table
->
timestamps
();
$table
->
string
(
"descricao_atividade"
,
50
);
$table
->
float
(
"ch_semanal"
,
5
,
2
);
$table
->
float
(
"ch_maxima"
,
5
,
2
);
$table
->
foreignId
(
'p_a_d_s_id'
)
->
constrained
()
->
onUpdate
(
'cascade'
)
->
onDelete
(
'cascade'
);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'ref_planejamento_ches'
);
}
}
routes/web.php
View file @
b207934a
...
@@ -37,6 +37,33 @@ Route::get('/unidade/edit/{id}', [UnidadeController::class, 'edit'])->name('unid
...
@@ -37,6 +37,33 @@ Route::get('/unidade/edit/{id}', [UnidadeController::class, 'edit'])->name('unid
Route
::
post
(
'/unidade/update/{id}'
,
[
UnidadeController
::
class
,
'update'
])
->
name
(
'unidade_update'
);
Route
::
post
(
'/unidade/update/{id}'
,
[
UnidadeController
::
class
,
'update'
])
->
name
(
'unidade_update'
);
Route
::
delete
(
'/unidade/delete/{id}'
,
[
UnidadeController
::
class
,
'destroy'
])
->
name
(
'unidade_delete'
);
Route
::
delete
(
'/unidade/delete/{id}'
,
[
UnidadeController
::
class
,
'destroy'
])
->
name
(
'unidade_delete'
);
Route
::
get
(
'/ensino/index'
,
[
EnsinoController
::
class
,
'index'
])
->
name
(
'ensino_index'
);
Route
::
get
(
'/ensino/create'
,
[
EnsinoController
::
class
,
'create'
])
->
name
(
'ensino_create'
);
Route
::
post
(
'/ensino/store'
,
[
EnsinoController
::
class
,
'store'
])
->
name
(
'ensino_store'
);
Route
::
get
(
'/ensino/edit/{id}'
,
[
EnsinoController
::
class
,
'edit'
])
->
name
(
'ensino_edit'
);
Route
::
post
(
'/ensino/update/{id}'
,
[
EnsinoController
::
class
,
'update'
])
->
name
(
'ensino_update'
);
Route
::
delete
(
'/ensino/delete/{id}'
,
[
EnsinoController
::
class
,
'destroy'
])
->
name
(
'ensino_delete'
);
Route
::
get
(
'/extensao/index'
,
[
ExtensaoController
::
class
,
'index'
])
->
name
(
'extensao_index'
);
Route
::
get
(
'/extensao/create'
,
[
ExtensaoController
::
class
,
'create'
])
->
name
(
'extensao_create'
);
Route
::
post
(
'/extensao/store'
,
[
ExtensaoController
::
class
,
'store'
])
->
name
(
'extensao_store'
);
Route
::
get
(
'/extensao/edit/{id}'
,
[
ExtensaoController
::
class
,
'edit'
])
->
name
(
'extensao_edit'
);
Route
::
post
(
'/extensao/update/{id}'
,
[
ExtensaoController
::
class
,
'update'
])
->
name
(
'extensao_update'
);
Route
::
delete
(
'/extensao/delete/{id}'
,
[
ExtensaoController
::
class
,
'destroy'
])
->
name
(
'extensao_delete'
);
Route
::
get
(
'/gestao/index'
,
[
GestaoController
::
class
,
'index'
])
->
name
(
'gestao_index'
);
Route
::
get
(
'/gestao/create'
,
[
GestaoController
::
class
,
'create'
])
->
name
(
'gestao_create'
);
Route
::
post
(
'/gestao/store'
,
[
GestaoController
::
class
,
'store'
])
->
name
(
'gestao_store'
);
Route
::
get
(
'/gestao/edit/{id}'
,
[
GestaoController
::
class
,
'edit'
])
->
name
(
'gestao_edit'
);
Route
::
post
(
'/gestao/update/{id}'
,
[
GestaoController
::
class
,
'update'
])
->
name
(
'gestao_update'
);
Route
::
delete
(
'/gestao/delete/{id}'
,
[
GestaoController
::
class
,
'destroy'
])
->
name
(
'gestao_delete'
);
Route
::
get
(
'/pesquisa/index'
,
[
PesquisaController
::
class
,
'index'
])
->
name
(
'pesquisa_index'
);
Route
::
get
(
'/pesquisa/create'
,
[
PesquisaController
::
class
,
'create'
])
->
name
(
'pesquisa_create'
);
Route
::
post
(
'/pesquisa/store'
,
[
PesquisaController
::
class
,
'store'
])
->
name
(
'pesquisa_store'
);
Route
::
get
(
'/pesquisa/edit/{id}'
,
[
PesquisaController
::
class
,
'edit'
])
->
name
(
'pesquisa_edit'
);
Route
::
post
(
'/pesquisa/update/{id}'
,
[
PesquisaController
::
class
,
'update'
])
->
name
(
'pesquisa_update'
);
Route
::
delete
(
'/pesquisa/delete/{id}'
,
[
PesquisaController
::
class
,
'destroy'
])
->
name
(
'pesquisa_delete'
);
Route
::
get
(
'/curso/index'
,
[
CursoController
::
class
,
'index'
])
->
name
(
'curso_index'
);
Route
::
get
(
'/curso/index'
,
[
CursoController
::
class
,
'index'
])
->
name
(
'curso_index'
);
Route
::
get
(
'/curso/create'
,
[
CursoController
::
class
,
'create'
])
->
name
(
'curso_create'
);
Route
::
get
(
'/curso/create'
,
[
CursoController
::
class
,
'create'
])
->
name
(
'curso_create'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment