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
submeta
Commits
c20b4ce7
Commit
c20b4ce7
authored
Jan 30, 2022
by
Guilherme Silva
Browse files
Ajuste na criação de tabela de notificação
parent
f898e441
Changes
1
Hide whitespace changes
Inline
Side-by-side
database/migrations/2022_01_24_222743_create_notificacaos_table.php
View file @
c20b4ce7
...
...
@@ -19,9 +19,8 @@ class CreateNotificacaosTable extends Migration
$table
->
integer
(
'remetente_id'
);
$table
->
integer
(
'destinatario_id'
);
$table
->
integer
(
'trabalho_id'
);
$table
->
integer
(
'perfil_id'
)
->
nullable
();
$table
->
boolean
(
'lido'
);
$table
->
integer
(
'tipo'
);
//1 para pediu acesso, 2 para recebeu acesso, 3 para objetivo, 4 atividade, 5 sugestao
$table
->
integer
(
'tipo'
);
$table
->
foreign
(
'remetente_id'
)
->
references
(
'id'
)
->
on
(
'users'
);
$table
->
foreign
(
'trabalho_id'
)
->
references
(
'id'
)
->
on
(
'trabalhos'
);
...
...
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