Commit 3eb9d58df9532e7954d4e031d0d9f6f62967a16a
1 parent
48aacafc
Exists in
2.8
and in
6 other branches
Atualiza models
Showing
2 changed files
with
60 additions
and
1 deletions
Show diff stats
app/Models/LegacyIndividual.php
... | ... | @@ -29,7 +29,58 @@ class LegacyIndividual extends EloquentBaseModel implements Transformable |
29 | 29 | * @var array |
30 | 30 | */ |
31 | 31 | protected $fillable = [ |
32 | - 'idpes', 'data_cad', 'operacao', 'origem_gravacao', | |
32 | + 'idpes', | |
33 | + 'data_nasc', | |
34 | + 'sexo', | |
35 | + 'idpes_mae', | |
36 | + 'idpes_pai', | |
37 | + 'idpes_responsavel', | |
38 | + 'idesco', | |
39 | + 'ideciv', | |
40 | + 'idpes_con', | |
41 | + 'data_uniao', | |
42 | + 'data_obito', | |
43 | + 'nacionalidade', | |
44 | + 'idpais_estrangeiro', | |
45 | + 'data_chegada_brasil', | |
46 | + 'idmun_nascimento', | |
47 | + 'ultima_empresa', | |
48 | + 'idocup', | |
49 | + 'nome_mae', | |
50 | + 'nome_pai', | |
51 | + 'nome_conjuge', | |
52 | + 'nome_responsavel', | |
53 | + 'justificativa_provisorio', | |
54 | + 'idpes_rev', | |
55 | + 'data_rev', | |
56 | + 'origem_gravacao', | |
57 | + 'idpes_cad', | |
58 | + 'data_cad', | |
59 | + 'operacao', | |
60 | + 'ref_cod_sistema', | |
61 | + 'cpf', | |
62 | + 'ref_cod_religiao', | |
63 | + 'nis_pis_pasep', | |
64 | + 'sus', | |
65 | + 'ocupacao', | |
66 | + 'empresa', | |
67 | + 'pessoa_contato', | |
68 | + 'renda_mensal', | |
69 | + 'data_admissao', | |
70 | + 'ddd_telefone_empresa', | |
71 | + 'telefone_empresa', | |
72 | + 'falecido', | |
73 | + 'ativo', | |
74 | + 'ref_usuario_exc', | |
75 | + 'data_exclusao', | |
76 | + 'zona_localizacao_censo', | |
77 | + 'tipo_trabalho', | |
78 | + 'local_trabalho', | |
79 | + 'horario_inicial_trabalho', | |
80 | + 'horario_final_trabalho', | |
81 | + 'nome_social', | |
82 | + 'pais_residencia', | |
83 | + 'localizacao_diferenciada', | |
33 | 84 | ]; |
34 | 85 | |
35 | 86 | /** | ... | ... |
app/Models/LegacyStudent.php
... | ... | @@ -44,6 +44,14 @@ class LegacyStudent extends Model |
44 | 44 | /** |
45 | 45 | * @return BelongsTo |
46 | 46 | */ |
47 | + public function individual() | |
48 | + { | |
49 | + return $this->belongsTo(LegacyIndividual::class, 'ref_idpes'); | |
50 | + } | |
51 | + | |
52 | + /** | |
53 | + * @return BelongsTo | |
54 | + */ | |
47 | 55 | public function person() |
48 | 56 | { |
49 | 57 | return $this->belongsTo(LegacyPerson::class, 'ref_idpes'); | ... | ... |