-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from analytics-ufcg/224-add-riscos
224 - Adiciona previsões no AL_DB (provisório)
- Loading branch information
Showing
6 changed files
with
174 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
DROP TABLE IF EXISTS previsao; | ||
|
||
CREATE TABLE IF NOT EXISTS "previsao" ( | ||
"id_contrato" VARCHAR(50), | ||
"cd_u_gestora" INTEGER, | ||
"nu_licitacao" VARCHAR(10), | ||
"nu_contrato" VARCHAR(9), | ||
"dt_ano" SMALLINT, | ||
"data_inicio" DATE, | ||
"nu_cpfcnpj" VARCHAR(14), | ||
"tp_licitacao" SMALLINT, | ||
"vl_total_contrato" DECIMAL, | ||
"n_licitacoes_part" INTEGER, | ||
"n_licitacoes_venceu" INTEGER, | ||
"montante_lic_venceu" DECIMAL, | ||
"perc_vitoria" DECIMAL, | ||
"media_n_licitacoes_part" DECIMAL, | ||
"media_n_licitacoes_venceu" DECIMAL, | ||
"n_propostas" INTEGER, | ||
"media_n_propostas" DECIMAL, | ||
"total_ganho" DECIMAL, | ||
"status_tramita" SMALLINT, | ||
"razao_contrato_por_vl_recebido" DECIMAL, | ||
"media_num_contratos" DECIMAL, | ||
"num_contratos" DECIMAL, | ||
"vig_pred" VARCHAR(1), | ||
"vig_prob_0" DECIMAL, | ||
"vig_prob_1" DECIMAL, | ||
FOREIGN KEY("id_contrato") REFERENCES contrato("id_contrato") ON DELETE CASCADE ON UPDATE CASCADE | ||
|
||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
* | ||
# exceto o .gitignore | ||
!.gitignore | ||
!previsoes.csv |
Oops, something went wrong.