From 427cc3ce93986a1ec9f4b336d0bcae621fb37662 Mon Sep 17 00:00:00 2001 From: Pedro Barbosa <78980796+pedrobarbosaocb@users.noreply.github.com> Date: Thu, 28 Sep 2023 19:37:28 -0300 Subject: [PATCH 01/10] build: adicionando models para database --- project/app/models.py | 65 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 64 insertions(+), 1 deletion(-) diff --git a/project/app/models.py b/project/app/models.py index 71a83623..5d43c017 100644 --- a/project/app/models.py +++ b/project/app/models.py @@ -1,3 +1,66 @@ from django.db import models -# Create your models here. +class Mapeamento(models.Model): + CODIGO = models.CharField(max_length=200) + CODIGO = models.CharField(max_length=200) + NOME = models.CharField(max_length=200) + SALDO = models.CharField(max_length=200) + DATA_ASSINATURA = models.CharField(max_length=200) + DATA_VIGENCIA = models.CharField(max_length=200) + DATA_ENCERRAMENTO = models.CharField(max_length=200) + TIPO_CONTRATO = models.CharField(max_length=200) + INSTITUICAO_EXECUTORA = models.CharField(max_length=200) + PROCESSO = models.CharField(max_length=200) + SUBPROCESSO = models.CharField(max_length=200) + COD_PROPOSTA = models.CharField(max_length=200) + PROPOSTA = models.CharField(max_length=200) + OBJETIVOS = models.CharField(max_length=200) + VALOR_APROVADO = models.CharField(max_length=200) + NOME_TP_CONTROLE_SALDO = models.CharField(max_length=200) + GRUPO_GESTORES = models.CharField(max_length=200) + GESTOR_RESP = models.CharField(max_length=200) + COORDENADOR = models.CharField(max_length=200) + PROCEDIMENTO_COMPRA = models.CharField(max_length=200) + TAB_FRETE = models.CharField(max_length=200) + TAB_DIARIAS = models.CharField(max_length=200) + CUSTO_OP = models.CharField(max_length=200) + NOME_FINANCIADOR = models.CharField(max_length=200) + DEPARTAMENTO = models.CharField(max_length=200) + SITUACAO = models.CharField(max_length=200) + BANCO = models.CharField(max_length=200) + AGENCIA_BANCARIA = models.CharField(max_length=200) + CONTA_BANCARIA = models.CharField(max_length=200) + CENTRO_CUSTO = models.CharField(max_length=200) + CONTA_CAIXA = models.CharField(max_length=200) + CATEGORIA_PROJETO = models.CharField(max_length=200) + COD_CONVENIO_CONTA = models.CharField(max_length=200) + COD_STATUS = models.CharField(max_length=200) + IND_SUB_PROJETO = models.CharField(max_length=200) + TIPO_CUSTO_OP = models.CharField(max_length=200) + PROJETO_MAE = models.CharField(max_length=200) + ID_COORDENADOR = models.CharField(max_length=200) + ID_FINANCIADOR = models.CharField(max_length=200) + ID_INSTITUICAO = models.CharField(max_length=200) + ID_DEPARTAMENTO = models.CharField(max_length=200) + NOME_INSTITUICAO = models.CharField(max_length=200) + ID_INSTITUICAO_EXECUTORA = models.CharField(max_length=200) + ID_TIPO = models.CharField(max_length=200) + +class Template(models.Model): + nome_template = models.CharField(max_length=200) + endereco_template = models.CharField(max_length=200) + mapeamento = models.ForeignKey(Mapeamento, on_delete=models.CASCADE) + +class Report(models.Model): + titulo = models.CharField(max_length=200) + descricao = models.CharField(max_length=200) + tipo_erro = models.CharField(max_length=200) + id_projeto = models.CharField(max_length=200) + nome_usuario = models.CharField(max_length=200) + +class Export(models.Model): + data_export = models.DateTimeField(auto_now_add=True) + formato = models.CharField(max_length=200) + nome_template = models.CharField(max_length=200) + nome_usuario = models.CharField(max_length=200) + id_projeto = models.CharField(max_length=200) From 9e79ca1629a454b9d4752ceef0392918420e5607 Mon Sep 17 00:00:00 2001 From: Pedro Barbosa <78980796+pedrobarbosaocb@users.noreply.github.com> Date: Thu, 28 Sep 2023 19:55:07 -0300 Subject: [PATCH 02/10] fix: models.py --- project/app/models.py | 1 - 1 file changed, 1 deletion(-) diff --git a/project/app/models.py b/project/app/models.py index 5d43c017..2928bdaf 100644 --- a/project/app/models.py +++ b/project/app/models.py @@ -1,7 +1,6 @@ from django.db import models class Mapeamento(models.Model): - CODIGO = models.CharField(max_length=200) CODIGO = models.CharField(max_length=200) NOME = models.CharField(max_length=200) SALDO = models.CharField(max_length=200) From e719aca3fe461e5e5efb0bb96eb64493c662a821 Mon Sep 17 00:00:00 2001 From: Pedro Barbosa <78980796+pedrobarbosaocb@users.noreply.github.com> Date: Fri, 29 Sep 2023 15:30:39 -0300 Subject: [PATCH 03/10] fix: corrigindo tipagem dos dados --- project/app/models.py | 86 +++++++++++++++++++++---------------------- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/project/app/models.py b/project/app/models.py index 2928bdaf..eaf6c356 100644 --- a/project/app/models.py +++ b/project/app/models.py @@ -1,49 +1,49 @@ from django.db import models class Mapeamento(models.Model): - CODIGO = models.CharField(max_length=200) - NOME = models.CharField(max_length=200) - SALDO = models.CharField(max_length=200) - DATA_ASSINATURA = models.CharField(max_length=200) - DATA_VIGENCIA = models.CharField(max_length=200) - DATA_ENCERRAMENTO = models.CharField(max_length=200) - TIPO_CONTRATO = models.CharField(max_length=200) - INSTITUICAO_EXECUTORA = models.CharField(max_length=200) - PROCESSO = models.CharField(max_length=200) - SUBPROCESSO = models.CharField(max_length=200) - COD_PROPOSTA = models.CharField(max_length=200) - PROPOSTA = models.CharField(max_length=200) - OBJETIVOS = models.CharField(max_length=200) - VALOR_APROVADO = models.CharField(max_length=200) - NOME_TP_CONTROLE_SALDO = models.CharField(max_length=200) - GRUPO_GESTORES = models.CharField(max_length=200) - GESTOR_RESP = models.CharField(max_length=200) - COORDENADOR = models.CharField(max_length=200) - PROCEDIMENTO_COMPRA = models.CharField(max_length=200) - TAB_FRETE = models.CharField(max_length=200) - TAB_DIARIAS = models.CharField(max_length=200) - CUSTO_OP = models.CharField(max_length=200) - NOME_FINANCIADOR = models.CharField(max_length=200) - DEPARTAMENTO = models.CharField(max_length=200) - SITUACAO = models.CharField(max_length=200) - BANCO = models.CharField(max_length=200) - AGENCIA_BANCARIA = models.CharField(max_length=200) - CONTA_BANCARIA = models.CharField(max_length=200) - CENTRO_CUSTO = models.CharField(max_length=200) - CONTA_CAIXA = models.CharField(max_length=200) - CATEGORIA_PROJETO = models.CharField(max_length=200) - COD_CONVENIO_CONTA = models.CharField(max_length=200) - COD_STATUS = models.CharField(max_length=200) - IND_SUB_PROJETO = models.CharField(max_length=200) - TIPO_CUSTO_OP = models.CharField(max_length=200) - PROJETO_MAE = models.CharField(max_length=200) - ID_COORDENADOR = models.CharField(max_length=200) - ID_FINANCIADOR = models.CharField(max_length=200) - ID_INSTITUICAO = models.CharField(max_length=200) - ID_DEPARTAMENTO = models.CharField(max_length=200) - NOME_INSTITUICAO = models.CharField(max_length=200) - ID_INSTITUICAO_EXECUTORA = models.CharField(max_length=200) - ID_TIPO = models.CharField(max_length=200) + CODIGO = models.IntegerField(db_type=models.DB_TYPE_NUMBER) + NOME = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + SALDO = models.DecimalField(max_digits=10, decimal_places=2, db_type=models.DB_TYPE_NUMBER) + DATA_ASSINATURA = models.DateField(db_type=models.DB_TYPE_DATE) + DATA_VIGENCIA = models.DateField(db_type=models.DB_TYPE_DATE) + DATA_ENCERRAMENTO = models.DateField(db_type=models.DB_TYPE_DATE) + TIPO_CONTRATO = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + INSTITUICAO_EXECUTORA = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + PROCESSO = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + SUBPROCESSO = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + COD_PROPOSTA = models.IntegerField(db_type=models.DB_TYPE_NUMBER) + PROPOSTA = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + OBJETIVOS = models.TextField(db_type=models.DB_TYPE_CLOB) + VALOR_APROVADO = models.DecimalField(max_digits=10, decimal_places=2, db_type=models.DB_TYPE_NUMBER) + NOME_TP_CONTROLE_SALDO = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + GRUPO_GESTORES = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + GESTOR_RESP = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + COORDENADOR = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + PROCEDIMENTO_COMPRA = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + TAB_FRETE = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + TAB_DIARIAS = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + CUSTO_OP = models.DecimalField(max_digits=10, decimal_places=2, db_type=models.DB_TYPE_NUMBER) + NOME_FINANCIADOR = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + DEPARTAMENTO = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + SITUACAO = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + BANCO = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + AGENCIA_BANCARIA = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + CONTA_BANCARIA = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + CENTRO_CUSTO = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + CONTA_CAIXA = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + CATEGORIA_PROJETO = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + COD_CONVENIO_CONTA = models.IntegerField(db_type=models.DB_TYPE_NUMBER) + COD_STATUS = models.IntegerField(db_type=models.DB_TYPE_NUMBER) + IND_SUB_PROJETO = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + TIPO_CUSTO_OP = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + PROJETO_MAE = models.IntegerField(db_type=models.DB_TYPE_NUMBER) + ID_COORDENADOR = models.IntegerField(db_type=models.DB_TYPE_NUMBER) + ID_FINANCIADOR = models.IntegerField(db_type=models.DB_TYPE_NUMBER) + ID_INSTITUICAO = models.IntegerField(db_type=models.DB_TYPE_NUMBER) + ID_DEPARTAMENTO = models.IntegerField(db_type=models.DB_TYPE_NUMBER) + NOME_INSTITUICAO = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) + ID_INSTITUICAO_EXECUTORA = models.IntegerField(db_type=models.DB_TYPE_NUMBER) + ID_TIPO = models.IntegerField(db_type=models.DB_TYPE_NUMBER) class Template(models.Model): nome_template = models.CharField(max_length=200) From dac4cbcdf569f827106ca303481d24c78e4e4e63 Mon Sep 17 00:00:00 2001 From: Pedro Barbosa <78980796+pedrobarbosaocb@users.noreply.github.com> Date: Sat, 30 Sep 2023 08:47:15 -0300 Subject: [PATCH 04/10] fix: corrigindo tipo de dados --- project/app/models.py | 87 ++++++++++++++++++++++--------------------- 1 file changed, 44 insertions(+), 43 deletions(-) diff --git a/project/app/models.py b/project/app/models.py index eaf6c356..ee0ec364 100644 --- a/project/app/models.py +++ b/project/app/models.py @@ -1,49 +1,50 @@ from django.db import models class Mapeamento(models.Model): - CODIGO = models.IntegerField(db_type=models.DB_TYPE_NUMBER) - NOME = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - SALDO = models.DecimalField(max_digits=10, decimal_places=2, db_type=models.DB_TYPE_NUMBER) - DATA_ASSINATURA = models.DateField(db_type=models.DB_TYPE_DATE) - DATA_VIGENCIA = models.DateField(db_type=models.DB_TYPE_DATE) - DATA_ENCERRAMENTO = models.DateField(db_type=models.DB_TYPE_DATE) - TIPO_CONTRATO = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - INSTITUICAO_EXECUTORA = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - PROCESSO = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - SUBPROCESSO = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - COD_PROPOSTA = models.IntegerField(db_type=models.DB_TYPE_NUMBER) - PROPOSTA = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - OBJETIVOS = models.TextField(db_type=models.DB_TYPE_CLOB) - VALOR_APROVADO = models.DecimalField(max_digits=10, decimal_places=2, db_type=models.DB_TYPE_NUMBER) - NOME_TP_CONTROLE_SALDO = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - GRUPO_GESTORES = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - GESTOR_RESP = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - COORDENADOR = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - PROCEDIMENTO_COMPRA = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - TAB_FRETE = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - TAB_DIARIAS = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - CUSTO_OP = models.DecimalField(max_digits=10, decimal_places=2, db_type=models.DB_TYPE_NUMBER) - NOME_FINANCIADOR = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - DEPARTAMENTO = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - SITUACAO = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - BANCO = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - AGENCIA_BANCARIA = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - CONTA_BANCARIA = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - CENTRO_CUSTO = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - CONTA_CAIXA = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - CATEGORIA_PROJETO = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - COD_CONVENIO_CONTA = models.IntegerField(db_type=models.DB_TYPE_NUMBER) - COD_STATUS = models.IntegerField(db_type=models.DB_TYPE_NUMBER) - IND_SUB_PROJETO = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - TIPO_CUSTO_OP = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - PROJETO_MAE = models.IntegerField(db_type=models.DB_TYPE_NUMBER) - ID_COORDENADOR = models.IntegerField(db_type=models.DB_TYPE_NUMBER) - ID_FINANCIADOR = models.IntegerField(db_type=models.DB_TYPE_NUMBER) - ID_INSTITUICAO = models.IntegerField(db_type=models.DB_TYPE_NUMBER) - ID_DEPARTAMENTO = models.IntegerField(db_type=models.DB_TYPE_NUMBER) - NOME_INSTITUICAO = models.CharField(max_length=200, db_type=models.DB_TYPE_VARCHAR) - ID_INSTITUICAO_EXECUTORA = models.IntegerField(db_type=models.DB_TYPE_NUMBER) - ID_TIPO = models.IntegerField(db_type=models.DB_TYPE_NUMBER) + class Mapeamento(models.Model): + CODIGO = models.IntegerField() + NOME = models.CharField(max_length=200) + SALDO = models.DecimalField(max_digits=10, decimal_places=2) + DATA_ASSINATURA = models.DateField() + DATA_VIGENCIA = models.DateField() + DATA_ENCERRAMENTO = models.DateField() + TIPO_CONTRATO = models.CharField(max_length=200) + INSTITUICAO_EXECUTORA = models.CharField(max_length=200) + PROCESSO = models.CharField(max_length=200) + SUBPROCESSO = models.CharField(max_length=200) + COD_PROPOSTA = models.IntegerField() + PROPOSTA = models.CharField(max_length=200) + OBJETIVOS = models.TextField() + VALOR_APROVADO = models.DecimalField(max_digits=10, decimal_places=2) + NOME_TP_CONTROLE_SALDO = models.CharField(max_length=200) + GRUPO_GESTORES = models.CharField(max_length=200) + GESTOR_RESP = models.CharField(max_length=200) + COORDENADOR = models.CharField(max_length=200) + PROCEDIMENTO_COMPRA = models.CharField(max_length=200) + TAB_FRETE = models.CharField(max_length=200) + TAB_DIARIAS = models.CharField(max_length=200) + CUSTO_OP = models.DecimalField(max_digits=10, decimal_places=2) + NOME_FINANCIADOR = models.CharField(max_length=200) + DEPARTAMENTO = models.CharField(max_length=200) + SITUACAO = models.CharField(max_length=200) + BANCO = models.CharField(max_length=200) + AGENCIA_BANCARIA = models.CharField(max_length=200) + CONTA_BANCARIA = models.CharField(max_length=200) + CENTRO_CUSTO = models.CharField(max_length=200) + CONTA_CAIXA = models.CharField(max_length=200) + CATEGORIA_PROJETO = models.CharField(max_length=200) + COD_CONVENIO_CONTA = models.IntegerField() + COD_STATUS = models.IntegerField() + IND_SUB_PROJETO = models.CharField(max_length=200) + TIPO_CUSTO_OP = models.CharField(max_length=200) + PROJETO_MAE = models.IntegerField() + ID_COORDENADOR = models.IntegerField() + ID_FINANCIADOR = models.IntegerField() + ID_INSTITUICAO = models.IntegerField() + ID_DEPARTAMENTO = models.IntegerField() + NOME_INSTITUICAO = models.CharField(max_length=200) + ID_INSTITUICAO_EXECUTORA = models.IntegerField() + ID_TIPO = models.IntegerField() class Template(models.Model): nome_template = models.CharField(max_length=200) From da0141be717a771a0ffad0b31ef2fdd2ebc5ab8f Mon Sep 17 00:00:00 2001 From: Pedro Barbosa <78980796+pedrobarbosaocb@users.noreply.github.com> Date: Sat, 30 Sep 2023 08:48:04 -0300 Subject: [PATCH 05/10] fix: removendo linha incorreta --- project/app/models.py | 1 - 1 file changed, 1 deletion(-) diff --git a/project/app/models.py b/project/app/models.py index ee0ec364..867c410e 100644 --- a/project/app/models.py +++ b/project/app/models.py @@ -1,7 +1,6 @@ from django.db import models class Mapeamento(models.Model): - class Mapeamento(models.Model): CODIGO = models.IntegerField() NOME = models.CharField(max_length=200) SALDO = models.DecimalField(max_digits=10, decimal_places=2) From 2778e5e3323cb45b69a5566428a15d4715cc2b5f Mon Sep 17 00:00:00 2001 From: Pedro Barbosa <78980796+pedrobarbosaocb@users.noreply.github.com> Date: Sat, 30 Sep 2023 08:54:30 -0300 Subject: [PATCH 06/10] Update models.py --- project/app/models.py | 86 +++++++++++++++++++++---------------------- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/project/app/models.py b/project/app/models.py index 867c410e..db606e17 100644 --- a/project/app/models.py +++ b/project/app/models.py @@ -1,49 +1,49 @@ from django.db import models class Mapeamento(models.Model): - CODIGO = models.IntegerField() - NOME = models.CharField(max_length=200) - SALDO = models.DecimalField(max_digits=10, decimal_places=2) - DATA_ASSINATURA = models.DateField() - DATA_VIGENCIA = models.DateField() - DATA_ENCERRAMENTO = models.DateField() - TIPO_CONTRATO = models.CharField(max_length=200) - INSTITUICAO_EXECUTORA = models.CharField(max_length=200) - PROCESSO = models.CharField(max_length=200) - SUBPROCESSO = models.CharField(max_length=200) - COD_PROPOSTA = models.IntegerField() - PROPOSTA = models.CharField(max_length=200) - OBJETIVOS = models.TextField() - VALOR_APROVADO = models.DecimalField(max_digits=10, decimal_places=2) - NOME_TP_CONTROLE_SALDO = models.CharField(max_length=200) - GRUPO_GESTORES = models.CharField(max_length=200) - GESTOR_RESP = models.CharField(max_length=200) - COORDENADOR = models.CharField(max_length=200) - PROCEDIMENTO_COMPRA = models.CharField(max_length=200) - TAB_FRETE = models.CharField(max_length=200) - TAB_DIARIAS = models.CharField(max_length=200) - CUSTO_OP = models.DecimalField(max_digits=10, decimal_places=2) - NOME_FINANCIADOR = models.CharField(max_length=200) - DEPARTAMENTO = models.CharField(max_length=200) - SITUACAO = models.CharField(max_length=200) - BANCO = models.CharField(max_length=200) - AGENCIA_BANCARIA = models.CharField(max_length=200) - CONTA_BANCARIA = models.CharField(max_length=200) - CENTRO_CUSTO = models.CharField(max_length=200) - CONTA_CAIXA = models.CharField(max_length=200) - CATEGORIA_PROJETO = models.CharField(max_length=200) - COD_CONVENIO_CONTA = models.IntegerField() - COD_STATUS = models.IntegerField() - IND_SUB_PROJETO = models.CharField(max_length=200) - TIPO_CUSTO_OP = models.CharField(max_length=200) - PROJETO_MAE = models.IntegerField() - ID_COORDENADOR = models.IntegerField() - ID_FINANCIADOR = models.IntegerField() - ID_INSTITUICAO = models.IntegerField() - ID_DEPARTAMENTO = models.IntegerField() - NOME_INSTITUICAO = models.CharField(max_length=200) - ID_INSTITUICAO_EXECUTORA = models.IntegerField() - ID_TIPO = models.IntegerField() + CODIGO = models.CharField(max_length=70) + NOME = models.CharField(max_length=70) + SALDO = models.CharField(max_length=70) + DATA_ASSINATURA = models.CharField(max_length=70) + DATA_VIGENCIA = models.CharField(max_length=70) + DATA_ENCERRAMENTO = models.CharField(max_length=70) + TIPO_CONTRATO = models.CharField(max_length=70) + INSTITUICAO_EXECUTORA = models.CharField(max_length=70) + PROCESSO = models.CharField(max_length=70) + SUBPROCESSO = models.CharField(max_length=70) + COD_PROPOSTA = models.CharField(max_length=70) + PROPOSTA = models.CharField(max_length=70) + OBJETIVOS = models.CharField(max_length=70) + VALOR_APROVADO = models.CharField(max_length=70) + NOME_TP_CONTROLE_SALDO = models.CharField(max_length=70) + GRUPO_GESTORES = models.CharField(max_length=70) + GESTOR_RESP = models.CharField(max_length=70) + COORDENADOR = models.CharField(max_length=70) + PROCEDIMENTO_COMPRA = models.CharField(max_length=70) + TAB_FRETE = models.CharField(max_length=70) + TAB_DIARIAS = models.CharField(max_length=70) + CUSTO_OP = models.CharField(max_length=70) + NOME_FINANCIADOR = models.CharField(max_length=70) + DEPARTAMENTO = models.CharField(max_length=70) + SITUACAO = models.CharField(max_length=70) + BANCO = models.CharField(max_length=70) + AGENCIA_BANCARIA = models.CharField(max_length=70) + CONTA_BANCARIA = models.CharField(max_length=70) + CENTRO_CUSTO = models.CharField(max_length=70) + CONTA_CAIXA = models.CharField(max_length=70) + CATEGORIA_PROJETO = models.CharField(max_length=70) + COD_CONVENIO_CONTA = models.CharField(max_length=70) + COD_STATUS = models.CharField(max_length=70) + IND_SUB_PROJETO = models.CharField(max_length=70) + TIPO_CUSTO_OP = models.CharField(max_length=70) + PROJETO_MAE = models.CharField(max_length=70) + ID_COORDENADOR = models.CharField(max_length=70) + ID_FINANCIADOR = models.CharField(max_length=70) + ID_INSTITUICAO = models.CharField(max_length=70) + ID_DEPARTAMENTO = models.CharField(max_length=70) + NOME_INSTITUICAO = models.CharField(max_length=70) + ID_INSTITUICAO_EXECUTORA = models.CharField(max_length=70) + ID_TIPO = models.CharField(max_length=70) class Template(models.Model): nome_template = models.CharField(max_length=200) From 9a7ea973f7ce7b1472000a4f37b78fff2dbd5263 Mon Sep 17 00:00:00 2001 From: Hemanoel Date: Sat, 7 Oct 2023 01:23:33 +0000 Subject: [PATCH 07/10] update: atualizando itens das models apos teste com banco --- .../app/__pycache__/__init__.cpython-38.pyc | Bin 0 -> 164 bytes project/app/__pycache__/admin.cpython-38.pyc | Bin 0 -> 205 bytes project/app/__pycache__/apps.cpython-38.pyc | Bin 0 -> 424 bytes project/app/__pycache__/models.cpython-38.pyc | Bin 0 -> 2494 bytes project/app/__pycache__/urls.cpython-38.pyc | Bin 0 -> 472 bytes project/app/__pycache__/views.cpython-38.pyc | Bin 0 -> 1879 bytes project/app/migrations/0001_initial.py | 95 ++++++++ ...ia_mapeamento_agencia_bancaria_and_more.py | 213 ++++++++++++++++++ .../__pycache__/0001_initial.cpython-38.pyc | Bin 0 -> 2617 bytes ...o_agencia_bancaria_and_more.cpython-38.pyc | Bin 0 -> 2689 bytes .../__pycache__/__init__.cpython-38.pyc | Bin 0 -> 175 bytes project/app/models.py | 86 +++---- .../__pycache__/__init__.cpython-38.pyc | Bin 0 -> 168 bytes .../__pycache__/settings.cpython-38.pyc | Bin 0 -> 2236 bytes .../project/__pycache__/urls.cpython-38.pyc | Bin 0 -> 345 bytes project/project/populando_banco.py | 50 ++++ project/project/settings.py | 14 +- 17 files changed, 412 insertions(+), 46 deletions(-) create mode 100644 project/app/__pycache__/__init__.cpython-38.pyc create mode 100644 project/app/__pycache__/admin.cpython-38.pyc create mode 100644 project/app/__pycache__/apps.cpython-38.pyc create mode 100644 project/app/__pycache__/models.cpython-38.pyc create mode 100644 project/app/__pycache__/urls.cpython-38.pyc create mode 100644 project/app/__pycache__/views.cpython-38.pyc create mode 100644 project/app/migrations/0001_initial.py create mode 100644 project/app/migrations/0002_rename_agencia_bancaria_mapeamento_agencia_bancaria_and_more.py create mode 100644 project/app/migrations/__pycache__/0001_initial.cpython-38.pyc create mode 100644 project/app/migrations/__pycache__/0002_rename_agencia_bancaria_mapeamento_agencia_bancaria_and_more.cpython-38.pyc create mode 100644 project/app/migrations/__pycache__/__init__.cpython-38.pyc create mode 100644 project/project/__pycache__/__init__.cpython-38.pyc create mode 100644 project/project/__pycache__/settings.cpython-38.pyc create mode 100644 project/project/__pycache__/urls.cpython-38.pyc create mode 100644 project/project/populando_banco.py diff --git a/project/app/__pycache__/__init__.cpython-38.pyc b/project/app/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..81e045f19081334e240a35716823d4c4f18124be GIT binary patch literal 164 zcmWIL<>g`kg40e4sUZ3>h(HF6K#l_t7qb9~6oz01O-8?!3`HPe1o6vLKO;XkRlhW; zG_Ryo-zBv;yClCrKe4nVKR2-?HCf-lG(I4+AT=j5FV!tG4=hwrl%JKFT%w;?P@o?l epP83g5+AQuPg`kg40e4srEqnF^Gc(44TX@fuanW zjJH@5Q*tx&{4|-O_)@YG^V0M6lJoOQiZYXmKnAR2C}IXuVB(jXenx(7s(xuwXEyR-~?35*9Xu+5%;(kPu52%k5oDiW8eU9$>j_`xd@8BFtOwO3pjR=4N*R13@=j@h21mc~6K>j9j z4)HxpIzLp!65jMC)?S%vRjijGawwdfF{wKtKt@cKN5FFdQ67V!TjFg*sn=83sA_Fe zSfr%^)GnPC>xr+;tUwKoP}a_qPScgLQYA{+^rfUiuY*01^4TlB&m04;l-IRXM3<|U zABWs0+xDne3%@tnqbV`-3t!bfyGHj^8=D16scKwiXXo;+u&9d)XGPV9?AB~>S!Xm$ uP?y@5cKEP17of{y-bUt0)Ew|SvhHs!)92I3FJ6=%i( literal 0 HcmV?d00001 diff --git a/project/app/__pycache__/models.cpython-38.pyc b/project/app/__pycache__/models.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..01e2940dc6828d016380b755602f7db742a8c68e GIT binary patch literal 2494 zcmcJROK;pZ5XYt6m3F0l_!Yb9JAHTC#_L0K3knBzoB~CRpmBqM7lJF&Yq?rcB`McE zx7U1-9Q!T$8FcN*_nvy{jI?V{8V3jpbPW+dj;JB$&*9KN42Q7?zqQ|QslWQ3_a}Df zuLGT3cgW_130f@&LPXn40*u$Po>D3HwJRctD?OVVGdH2Nfstr zrZdetxt=Q)SdmH1R-|x(3v1I{xY7tVtPN-BOyx-`*jn8MR>m|dVnde}nkPDUMmWtj z)7-k$m1!b0SLZ4zod!R>!stX z)R}-KZsB^lE1D@aMA|HUG&3bEWTq@ks4VL@#DNRePqa2t<>0`uje2^S){26gc>xQI zoS5=sqnu)WM41Yc3d?#)2@bg~*lIoTF(`vlpre6Qg)nX*M9)Il0>Wm&6ozQFDjL-| zcF`Lfp-kecKS*Fx4XB56;3DyDBGPkEIuTCIG<=2nfEb#sqgXKJOyy~#xL`5bKs#4j zwvy(+<@EA{#nvnX=r0`cxlnABqOU7auuo&dKG{leF8K@LHgeD*H(&gO?0y&CV46Jl z4AkMK`TN1-1a@*#PRrbtlYM1>bh?-b$d@^Uo=kS`@JDH(vNTr*n2uno14!IN6vd<| zrrX6Y2J0t2_6amSfABy2)pNX5xG(RIuVLcXDBN9zWjd1WXDt@X4jk^F>K&ijdQ4RMYosOWqHHE(4)a=?@oi?m{tPPwoZB`*5vx&_OY%b3xNrNqTaTlI{ zYk~H|akq-(smNz~TTYuBCU}Vd-c5(9uq1bVOY@&59{X_5)FYl literal 0 HcmV?d00001 diff --git a/project/app/__pycache__/views.cpython-38.pyc b/project/app/__pycache__/views.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2cc9dadd6bde7751da0132e5e25c9b598e0255b7 GIT binary patch literal 1879 zcmb7EOLH4V5T2QR>S_5AC{k1~1QK+SIKYV%MFBCKOe&6xWG||2?A1l5X* zeDxpTWO4JAzu+T(fZ8i3{z6W4&q_%gd||h?r>Cd4yXWi2VXIXq@cjABuGni6@;7eY zd@R^}4WIfA2q&DzB%uMN$g`LwR$v+4itWS+9K+kdyMbqTC-#$CP&2$6*ONxjFuVtL znnBa>KIpfCmf>r0JJ|>}fUon$83{VP$y>0xqQ={N-QlwnSE-mdtW!7ex>#<06Gz_%>xf5rjC6A`U^-wCIH|G zlRKIg0N;Wgpp0Eu+*;B($P8}-&sMwxyfy1+yI|Vk?m466Cz3v}iFQxw@{E$XP08#| zVNbldQ(5I+;Y4&{xuE%s{0=@iX#HwGguN`)h#5N4F8VIuNvfa_4@S4;SPcXGAd6)z$M*|X#p zoRt0=aJd27m$ct)mu@2TIO7s4wzMDpc<`jOMncO5?4^yu+QSz^G1XC)mj2pn>19U~ zNU|#3<0#e;mUA3QrOU=p3QVmD)mGuDkUkjcdZmX2BjB1XvJ>O^PLJ``k@fbn7fvo8jZqN#|ZRP05m5lv-=0rkV_w0|0j z=c+gTrS#Xx;%(GNKnShVI%`sR8KWI|U3!mgF&own+oC>`cR}k~MLHnB&s5|wF#o3_ zp$4H2xO2|tR$<9~?G&W27EqDe<*um(Z*H$@&@XJP!Bu_K_GJ^i&FZG%OmVyhuggqM zC8m7lo7?NGpT7^=R~3-uyQYM8qxAG@2~C&v%GR~=>3Z@O{9&>$-$CwOBzW7>tNJ{w z66nYe@Z@#!FkkXxB$%>_Ai~lGf^xM3cj0D6ilWnJU;>R!JQj)dRz=M8R|?biNm#Qtdzzu zwM}xX`{2!j`!^X_kBz}FR7=EGh1#lUGU_XZdS7OaNSe*kyLWAPPcRNV$*nhzUr N{WAYOzvI)o`!Dlly&C`k literal 0 HcmV?d00001 diff --git a/project/app/migrations/0001_initial.py b/project/app/migrations/0001_initial.py new file mode 100644 index 00000000..37a41f51 --- /dev/null +++ b/project/app/migrations/0001_initial.py @@ -0,0 +1,95 @@ +# Generated by Django 4.2.5 on 2023-10-06 17:38 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Export', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('data_export', models.DateTimeField(auto_now_add=True)), + ('formato', models.CharField(max_length=200)), + ('nome_template', models.CharField(max_length=200)), + ('nome_usuario', models.CharField(max_length=200)), + ('id_projeto', models.CharField(max_length=200)), + ], + ), + migrations.CreateModel( + name='Mapeamento', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('CODIGO', models.CharField(max_length=70)), + ('NOME', models.CharField(max_length=70)), + ('SALDO', models.CharField(max_length=70)), + ('DATA_ASSINATURA', models.CharField(max_length=70)), + ('DATA_VIGENCIA', models.CharField(max_length=70)), + ('DATA_ENCERRAMENTO', models.CharField(max_length=70)), + ('TIPO_CONTRATO', models.CharField(max_length=70)), + ('INSTITUICAO_EXECUTORA', models.CharField(max_length=70)), + ('PROCESSO', models.CharField(max_length=70)), + ('SUBPROCESSO', models.CharField(max_length=70)), + ('COD_PROPOSTA', models.CharField(max_length=70)), + ('PROPOSTA', models.CharField(max_length=70)), + ('OBJETIVOS', models.CharField(max_length=70)), + ('VALOR_APROVADO', models.CharField(max_length=70)), + ('NOME_TP_CONTROLE_SALDO', models.CharField(max_length=70)), + ('GRUPO_GESTORES', models.CharField(max_length=70)), + ('GESTOR_RESP', models.CharField(max_length=70)), + ('COORDENADOR', models.CharField(max_length=70)), + ('PROCEDIMENTO_COMPRA', models.CharField(max_length=70)), + ('TAB_FRETE', models.CharField(max_length=70)), + ('TAB_DIARIAS', models.CharField(max_length=70)), + ('CUSTO_OP', models.CharField(max_length=70)), + ('NOME_FINANCIADOR', models.CharField(max_length=70)), + ('DEPARTAMENTO', models.CharField(max_length=70)), + ('SITUACAO', models.CharField(max_length=70)), + ('BANCO', models.CharField(max_length=70)), + ('AGENCIA_BANCARIA', models.CharField(max_length=70)), + ('CONTA_BANCARIA', models.CharField(max_length=70)), + ('CENTRO_CUSTO', models.CharField(max_length=70)), + ('CONTA_CAIXA', models.CharField(max_length=70)), + ('CATEGORIA_PROJETO', models.CharField(max_length=70)), + ('COD_CONVENIO_CONTA', models.CharField(max_length=70)), + ('COD_STATUS', models.CharField(max_length=70)), + ('IND_SUB_PROJETO', models.CharField(max_length=70)), + ('TIPO_CUSTO_OP', models.CharField(max_length=70)), + ('PROJETO_MAE', models.CharField(max_length=70)), + ('ID_COORDENADOR', models.CharField(max_length=70)), + ('ID_FINANCIADOR', models.CharField(max_length=70)), + ('ID_INSTITUICAO', models.CharField(max_length=70)), + ('ID_DEPARTAMENTO', models.CharField(max_length=70)), + ('NOME_INSTITUICAO', models.CharField(max_length=70)), + ('ID_INSTITUICAO_EXECUTORA', models.CharField(max_length=70)), + ('ID_TIPO', models.CharField(max_length=70)), + ], + ), + migrations.CreateModel( + name='Report', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('titulo', models.CharField(max_length=200)), + ('descricao', models.CharField(max_length=200)), + ('tipo_erro', models.CharField(max_length=200)), + ('id_projeto', models.CharField(max_length=200)), + ('nome_usuario', models.CharField(max_length=200)), + ], + ), + migrations.CreateModel( + name='Template', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('nome_template', models.CharField(max_length=200)), + ('endereco_template', models.CharField(max_length=200)), + ('mapeamento', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.mapeamento')), + ], + ), + ] diff --git a/project/app/migrations/0002_rename_agencia_bancaria_mapeamento_agencia_bancaria_and_more.py b/project/app/migrations/0002_rename_agencia_bancaria_mapeamento_agencia_bancaria_and_more.py new file mode 100644 index 00000000..d727ce52 --- /dev/null +++ b/project/app/migrations/0002_rename_agencia_bancaria_mapeamento_agencia_bancaria_and_more.py @@ -0,0 +1,213 @@ +# Generated by Django 4.2.5 on 2023-10-07 01:15 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('app', '0001_initial'), + ] + + operations = [ + migrations.RenameField( + model_name='mapeamento', + old_name='AGENCIA_BANCARIA', + new_name='agencia_bancaria', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='BANCO', + new_name='banco', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='CATEGORIA_PROJETO', + new_name='categoria_projeto', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='CENTRO_CUSTO', + new_name='centro_custo', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='CODIGO', + new_name='codigo', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='CONTA_BANCARIA', + new_name='conta_bancaria', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='CONTA_CAIXA', + new_name='conta_caixa', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='COORDENADOR', + new_name='coordenador', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='CUSTO_OP', + new_name='custo_op', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='DATA_ASSINATURA', + new_name='data_assinatura', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='DATA_ENCERRAMENTO', + new_name='data_encerramento', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='DATA_VIGENCIA', + new_name='data_vigencia', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='DEPARTAMENTO', + new_name='departamento', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='GESTOR_RESP', + new_name='gestor_resp', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='GRUPO_GESTORES', + new_name='grupo_gestores', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='ID_COORDENADOR', + new_name='id_coordenador', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='ID_DEPARTAMENTO', + new_name='id_departamento', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='ID_FINANCIADOR', + new_name='id_financiador', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='ID_INSTITUICAO', + new_name='id_instituicao', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='ID_INSTITUICAO_EXECUTORA', + new_name='id_instituicao_executora', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='ID_TIPO', + new_name='id_tipo', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='IND_SUB_PROJETO', + new_name='ind_sub_projeto', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='INSTITUICAO_EXECUTORA', + new_name='instituicao_executora', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='NOME', + new_name='nome', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='NOME_FINANCIADOR', + new_name='nome_financiador', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='NOME_INSTITUICAO', + new_name='nome_instituicao', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='NOME_TP_CONTROLE_SALDO', + new_name='nome_tp_controle_saldo', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='OBJETIVOS', + new_name='objetivos', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='PROCEDIMENTO_COMPRA', + new_name='procedimento_compra', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='PROCESSO', + new_name='processo', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='PROJETO_MAE', + new_name='projeto_mae', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='PROPOSTA', + new_name='proposta', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='SALDO', + new_name='saldo', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='SITUACAO', + new_name='situacao', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='SUBPROCESSO', + new_name='subprocesso', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='TAB_DIARIAS', + new_name='tab_diarias', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='TAB_FRETE', + new_name='tab_frete', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='TIPO_CONTRATO', + new_name='tipo_contrato', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='TIPO_CUSTO_OP', + new_name='tipo_custo_op', + ), + migrations.RenameField( + model_name='mapeamento', + old_name='VALOR_APROVADO', + new_name='valor_aprovado', + ), + ] diff --git a/project/app/migrations/__pycache__/0001_initial.cpython-38.pyc b/project/app/migrations/__pycache__/0001_initial.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5cbd38d2d927e585dbec654cdf9ef0ca44493711 GIT binary patch literal 2617 zcmb`JOOx9~5P&6Fem{0Mn}mdCcw-3mCJ>$>WGu@rL2S7sd27p1HKp~;I&y4DNHQe3 z!gc=wcdnfH3H$&~bLEu3kfJDhBzxDB$`QFF_ct@@?&;|s&A48#NO0wP*XVLzlK$qf zeW?I<;f`DIAQF)m(o&wtOJ$x7|D2oTiDFC5{1bRbYAUR< z^k$Kpc!3|Y!ZILq5f7)lZ~M9la2M|Q_nahAX(AJ8q7ZqKn@JOu=H~^XkQ^<}OGJjB zO7f&|s-7sM2yJC(DV@qdWuOYFkZMXbf$9P^wrN%%JEux&W%s#O_R`T8)_V5^x+u^k zfi4U5f6%0=*>A%L2V3(5nKyCeSs3UKi*Mf!-A8ErH$^=pBLH73e*IngYEq z&<6rt7wAKQS^~8NIuPiFKsN>YNT81ex+Tyj0(~mbX99gL&=&%IDbVe0nq5E3ysw^{ zd3Vy$n~eTipt}MI8BK(2-^y?FTq|OwbOgN`P?gr^^?7mLnD3A-(NC2VWu|h^XX<2^ z^q|`NtUTD1xx)(j!!U>vrg)^s6r@VF z$CTB6q|tE@Q|!A-%BsXoTuf74O?j=t4}QWfA*^^3L`ydbp8N^h2J}{z?nAtw{w%rA z>VB}KIHAjM0p?gO#Z|m=BQIbTkKiy0<}?XlcT!VJg%gi1NX#k&H>6zZt*iyVZJZ5u=6j4j0KX~Ut>*N2*c*j|bt>z0KE`p_|1-7!Wc z*36+}A;3$<&~^-GY-q^D`jM`U9TW7FMwY4Rwr#SiJ?@-A4Lrd>Bhz-WL77xGJKyMz zacJ7Caft4j7Dh1Y5P^%Axxd&MWhTvgI?h~g^sO;C(${S;sN1ZXNf_i2t7@icb@d@A zu-JZTzH6lZgPOqz94tGigL{_l=&Z`cu7NBA*{r0EK_NCrY&SLBgUIkua7DGQK0=nW z4n)a@X(O06%XeUi$#zi|HO!G~V+|fAbj~#mLTEwsxDDL9~xQ25v%Yvh@CUG*^V&;dE7aBVZAh)2~^jL@BrzoVQ^jNLE*eTH_ls2 z3Cg=zm~Ix1?IBmhSGHEa2t7PaSiz!c`4kc_SuFxqCN!Q#-qZy#@xlPpC<<7~+2r>g z^$CsWG&oOrsD@1v%H+HQ(cv1r-8?=y*$- zVOhKHMwwXY1rhaT{79E{z`~LD=RS4r~x~+CI32M_x!5o)6~zv?<*Hrb!z@(>_0+v=0sr zZs7GaTj8UKAApK*$G^g(q^OFjs=SWhb!KCc4of4r5XZGId)NE22?+_$5MD8atP=Gh<#lD3y$%0cEKCU_eEbj>_Lx4$4sVjLq6_8s^c0-a=xI2w(FJ%$ql<7!qi5kcjh=@WGwGGrAmr?jM*&YlzFDCW62y!} zGzjZ*2Fs^Nd{aEt)My85YKX**zUf;-hk~)O>)f||2R8zqiK(P$EKcN+pvYm5?AQaQFSZi`)7RT2`{jp>i^-B5AYOPu-tKT30Km8|a@SX8XzDpze lN;cq#M^kwn4s*rj?@zT=JaO7htlueQdsppms?^!4`~`HK0S5p8 literal 0 HcmV?d00001 diff --git a/project/app/migrations/__pycache__/__init__.cpython-38.pyc b/project/app/migrations/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e2743d4792532ea7255e94cf6fa182f3bcb0a5ee GIT binary patch literal 175 zcmWIL<>g`kg40e4sUZ3>h(HF6K#l_t7qb9~6oz01O-8?!3`HPe1o10GKO;XkRlhW; zG_Ryo-zBv;yClCrKe4nVKR2-?HCf-lG(I4+AT=j5FV!tG4=hwrl%JKFT%w;?P@tci pnO>Awl9``ZtREkrnU`4-AFo$Xd5gm)H$SB`C)EyQ+h-tV001<3Ec^ff literal 0 HcmV?d00001 diff --git a/project/app/models.py b/project/app/models.py index db606e17..341b07d0 100644 --- a/project/app/models.py +++ b/project/app/models.py @@ -1,49 +1,49 @@ from django.db import models class Mapeamento(models.Model): - CODIGO = models.CharField(max_length=70) - NOME = models.CharField(max_length=70) - SALDO = models.CharField(max_length=70) - DATA_ASSINATURA = models.CharField(max_length=70) - DATA_VIGENCIA = models.CharField(max_length=70) - DATA_ENCERRAMENTO = models.CharField(max_length=70) - TIPO_CONTRATO = models.CharField(max_length=70) - INSTITUICAO_EXECUTORA = models.CharField(max_length=70) - PROCESSO = models.CharField(max_length=70) - SUBPROCESSO = models.CharField(max_length=70) - COD_PROPOSTA = models.CharField(max_length=70) - PROPOSTA = models.CharField(max_length=70) - OBJETIVOS = models.CharField(max_length=70) - VALOR_APROVADO = models.CharField(max_length=70) - NOME_TP_CONTROLE_SALDO = models.CharField(max_length=70) - GRUPO_GESTORES = models.CharField(max_length=70) - GESTOR_RESP = models.CharField(max_length=70) - COORDENADOR = models.CharField(max_length=70) - PROCEDIMENTO_COMPRA = models.CharField(max_length=70) - TAB_FRETE = models.CharField(max_length=70) - TAB_DIARIAS = models.CharField(max_length=70) - CUSTO_OP = models.CharField(max_length=70) - NOME_FINANCIADOR = models.CharField(max_length=70) - DEPARTAMENTO = models.CharField(max_length=70) - SITUACAO = models.CharField(max_length=70) - BANCO = models.CharField(max_length=70) - AGENCIA_BANCARIA = models.CharField(max_length=70) - CONTA_BANCARIA = models.CharField(max_length=70) - CENTRO_CUSTO = models.CharField(max_length=70) - CONTA_CAIXA = models.CharField(max_length=70) - CATEGORIA_PROJETO = models.CharField(max_length=70) - COD_CONVENIO_CONTA = models.CharField(max_length=70) - COD_STATUS = models.CharField(max_length=70) - IND_SUB_PROJETO = models.CharField(max_length=70) - TIPO_CUSTO_OP = models.CharField(max_length=70) - PROJETO_MAE = models.CharField(max_length=70) - ID_COORDENADOR = models.CharField(max_length=70) - ID_FINANCIADOR = models.CharField(max_length=70) - ID_INSTITUICAO = models.CharField(max_length=70) - ID_DEPARTAMENTO = models.CharField(max_length=70) - NOME_INSTITUICAO = models.CharField(max_length=70) - ID_INSTITUICAO_EXECUTORA = models.CharField(max_length=70) - ID_TIPO = models.CharField(max_length=70) + codigo = models.CharField(max_length=70) + nome = models.CharField(max_length=70) + saldo = models.CharField(max_length=70) + data_assinatura = models.CharField(max_length=70) + data_vigencia = models.CharField(max_length=70) + data_encerramento = models.CharField(max_length=70) + tipo_contrato = models.CharField(max_length=70) + instituicao_executora = models.CharField(max_length=70) + processo = models.CharField(max_length=70) + subprocesso = models.CharField(max_length=70) + cod_proposta = models.CharField(max_length=70) + proposta = models.CharField(max_length=70) + objetivos = models.CharField(max_length=70) + valor_aprovado = models.CharField(max_length=70) + nome_tp_controle_saldo = models.CharField(max_length=70) + grupo_gestores = models.CharField(max_length=70) + gestor_resp = models.CharField(max_length=70) + coordenador = models.CharField(max_length=70) + procedimento_compra = models.CharField(max_length=70) + tab_frete = models.CharField(max_length=70) + tab_diarias = models.CharField(max_length=70) + custo_op = models.CharField(max_length=70) + nome_financiador = models.CharField(max_length=70) + departamento = models.CharField(max_length=70) + situacao = models.CharField(max_length=70) + banco = models.CharField(max_length=70) + agencia_bancaria = models.CharField(max_length=70) + conta_bancaria = models.CharField(max_length=70) + centro_custo = models.CharField(max_length=70) + conta_caixa = models.CharField(max_length=70) + categoria_projeto = models.CharField(max_length=70) + cod_convenio_conta = models.CharField(max_length=70) + cod_status = models.CharField(max_length=70) + ind_sub_projeto = models.CharField(max_length=70) + tipo_custo_op = models.CharField(max_length=70) + projeto_mae = models.CharField(max_length=70) + id_coordenador = models.CharField(max_length=70) + id_financiador = models.CharField(max_length=70) + id_instituicao = models.CharField(max_length=70) + id_departamento = models.CharField(max_length=70) + nome_instituicao = models.CharField(max_length=70) + id_instituicao_executora = models.CharField(max_length=70) + id_tipo = models.CharField(max_length=70) class Template(models.Model): nome_template = models.CharField(max_length=200) diff --git a/project/project/__pycache__/__init__.cpython-38.pyc b/project/project/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5ab4e9c7a6955159d0fab4e83a13c14057ba1b45 GIT binary patch literal 168 zcmWIL<>g`kg40e4sUZ3>h(HF6K#l_t7qb9~6oz01O-8?!3`HPe1o6vPKO;XkRlhW; zG_Ryo-zBv;yClCrKe4nVKR2-?HCf-lG(I4+AT=j5FV!tG4=hwrl%JKFT%r%7kcHob_tJ;NU~#Z$Bw@iwfn=n631bNsAqgo+!xCg*xtB6B zumY>F2B#nkr(qp2%W%e6fwR2?NN^6$!v)xYi#>@7aOs`Y6O2{3Y^=dIa0R}F@8BwY z4?n<>EpVtC zotejmK|i`Yhm1vt8w3YK!lDavL`E2+o_n0&Ai?UP#HD$OzzS%0m)eB!1#38r@)HJ! z0@!5V@`*eOlm-W~7DtSS+LRVOoYyz;K%SA;#<&@&+;Jma&v86gE{=Zx!^-?!xrpE; zCHph1Pv(5FFn_atD0s)z(JqGUxif~G>+bk+fv;@Q%+Ezg14vG^Om^>krM*XHw$c(R#I^b5hqRo;Q(H>$ zg<3ChsZ?ocJgqdF=IE4aH1$fOu0Dp&KDr1Xcjzz->%eEF4dJ9 z!nUTic)F=*+D@Z|u0C&QI_`r;OZQiCIYiIrVviFd4=u*_Js-?BmQ7*gvD`+xN)V5H z7!Zv*)VAVzdO7Cs{OH+9HPxs~ozSTgw-@w}J#>gqyT>&w z4ugEh=L>DU7^P4@30Q$Iv!gv@B*&N8vN;|Qo5@?Wr(mthl-Q8F%u_>Lxi;S&9O90010%hqXlmR$Jfo?_ma3aC)K`45q;9ph`KnT_Hg?pK z8JAAuYn8gDBMK4Na2n6lDy33Y-BDU9UuiWOy4h}3i;a4jFX?KnSygmZd#zLYCfRU6OBdPyxS?W%5~6AiOm zQLCjt6Mi0(HUgh&g}&#ILf8r2AS{#!+Y7v5VLBCsyN}E!9TJC1Fim`64C%1Mn#ER{#J2 literal 0 HcmV?d00001 diff --git a/project/project/__pycache__/urls.cpython-38.pyc b/project/project/__pycache__/urls.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6d4bb4ce09cccc9d4ede64abe1b4cd5a772cec8d GIT binary patch literal 345 zcmYk0ze)r#5XO^i?soC+#7D5*=3--ah=>R_B8bg4vbP!TvTpv6O$x8QN3rr*e1o)B zzJi4~ITReoH!~j}zscibaYV4*uTJ3=`$t~>7suri-?&1NMACt1+EAKjHZWZ@h2{;X z1h_1qkbF<~4Ce{Ze$r3(Y{QyTP9I2Jejb#58` zFz%*@jJT_-bS(SUZ0xeLCU~{>3@K^$Yv!;o(DC`BiH|BEF1u-lirfI+jBmuxawyB! zt=L)(BCeweQC!3L9IO*<3|6-RI&pUXbgvu?%D{~>2g`ZeLl?wf&j*(7B~>eJWgOsw PB6zG&=JbTm>HPZ#kosQq literal 0 HcmV?d00001 diff --git a/project/project/populando_banco.py b/project/project/populando_banco.py new file mode 100644 index 00000000..05c75224 --- /dev/null +++ b/project/project/populando_banco.py @@ -0,0 +1,50 @@ +from app.models import Mapeamento + +# fundep +mapa = Mapeamento( + CODIGO = "", + NOME = "'Receita x Despesa';'Título do Projeto: ';A3", + SALDO = "", + DATA_ASSINATURA = "", + DATA_VIGENCIA = "", + DATA_ENCERRAMENTO = "", + TIPO_CONTRATO = "", + INSTITUICAO_EXECUTORA = "", + PROCESSO = "", + SUBPROCESSO = "", + COD_PROPOSTA = "", + PROPOSTA = "", + OBJETIVOS = "", + VALOR_APROVADO = "", + NOME_TP_CONTROLE_SALDO = "", + GRUPO_GESTORES = "", + GESTOR_RESP = "", + COORDENADOR = "", + PROCEDIMENTO_COMPRA = "", + TAB_FRETE = "", + TAB_DIARIAS = "", + CUSTO_OP = "", + NOME_FINANCIADOR = "", + DEPARTAMENTO = "", + SITUACAO = "", + BANCO = "", + AGENCIA_BANCARIA = "", + CONTA_BANCARIA = "", + CENTRO_CUSTO = "", + CONTA_CAIXA = "", + CATEGORIA_PROJETO = "", + COD_CONVENIO_CONTA = "", + COD_STATUS = "", + IND_SUB_PROJETO = "", + TIPO_CUSTO_OP = "", + PROJETO_MAE = "", + ID_COORDENADOR = "", + ID_FINANCIADOR = "", + ID_INSTITUICAO = "", + ID_DEPARTAMENTO = "", + NOME_INSTITUICAO = "", + ID_INSTITUICAO_EXECUTORA = "", + ID_TIPO = "" +) + +mapa.save() \ No newline at end of file diff --git a/project/project/settings.py b/project/project/settings.py index e6d07cc2..a65cbd22 100644 --- a/project/project/settings.py +++ b/project/project/settings.py @@ -65,9 +65,17 @@ DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': BASE_DIR / 'db.sqlite3', - } + 'ENGINE': 'django.db.backends.postgresql', + 'NAME': 'automatec', + 'USER': 'automauser', + 'PASSWORD': '', + 'HOST': 'localhost', + 'PORT': '', + }, + # 'default': { + # 'ENGINE': 'django.db.backends.sqlite3', + # 'NAME': BASE_DIR / 'db.sqlite3', + # } } # DATABASES = { From bbd99c1b8e0e8d251ca3bf12329a6809afdbc201 Mon Sep 17 00:00:00 2001 From: Hemanoel Date: Mon, 9 Oct 2023 14:27:03 +0000 Subject: [PATCH 08/10] update: atualizando models --- project/app/models.py | 112 +++++++++++++++++++++--------------------- 1 file changed, 56 insertions(+), 56 deletions(-) diff --git a/project/app/models.py b/project/app/models.py index 341b07d0..2aa3aaa1 100644 --- a/project/app/models.py +++ b/project/app/models.py @@ -1,65 +1,65 @@ from django.db import models class Mapeamento(models.Model): - codigo = models.CharField(max_length=70) - nome = models.CharField(max_length=70) - saldo = models.CharField(max_length=70) - data_assinatura = models.CharField(max_length=70) - data_vigencia = models.CharField(max_length=70) - data_encerramento = models.CharField(max_length=70) - tipo_contrato = models.CharField(max_length=70) - instituicao_executora = models.CharField(max_length=70) - processo = models.CharField(max_length=70) - subprocesso = models.CharField(max_length=70) - cod_proposta = models.CharField(max_length=70) - proposta = models.CharField(max_length=70) - objetivos = models.CharField(max_length=70) - valor_aprovado = models.CharField(max_length=70) - nome_tp_controle_saldo = models.CharField(max_length=70) - grupo_gestores = models.CharField(max_length=70) - gestor_resp = models.CharField(max_length=70) - coordenador = models.CharField(max_length=70) - procedimento_compra = models.CharField(max_length=70) - tab_frete = models.CharField(max_length=70) - tab_diarias = models.CharField(max_length=70) - custo_op = models.CharField(max_length=70) - nome_financiador = models.CharField(max_length=70) - departamento = models.CharField(max_length=70) - situacao = models.CharField(max_length=70) - banco = models.CharField(max_length=70) - agencia_bancaria = models.CharField(max_length=70) - conta_bancaria = models.CharField(max_length=70) - centro_custo = models.CharField(max_length=70) - conta_caixa = models.CharField(max_length=70) - categoria_projeto = models.CharField(max_length=70) - cod_convenio_conta = models.CharField(max_length=70) - cod_status = models.CharField(max_length=70) - ind_sub_projeto = models.CharField(max_length=70) - tipo_custo_op = models.CharField(max_length=70) - projeto_mae = models.CharField(max_length=70) - id_coordenador = models.CharField(max_length=70) - id_financiador = models.CharField(max_length=70) - id_instituicao = models.CharField(max_length=70) - id_departamento = models.CharField(max_length=70) - nome_instituicao = models.CharField(max_length=70) - id_instituicao_executora = models.CharField(max_length=70) - id_tipo = models.CharField(max_length=70) + codigo = models.CharField(max_length=70) + nome = models.CharField(max_length=70) + saldo = models.CharField(max_length=70) + data_assinatura = models.CharField(max_length=70) + data_vigencia = models.CharField(max_length=70) + data_encerramento = models.CharField(max_length=70) + tipo_contrato = models.CharField(max_length=70) + instituicao_executora = models.CharField(max_length=70) + processo = models.CharField(max_length=70) + subprocesso = models.CharField(max_length=70) + cod_proposta = models.CharField(max_length=70) + proposta = models.CharField(max_length=70) + objetivos = models.CharField(max_length=70) + valor_aprovado = models.CharField(max_length=70) + nome_tp_controle_saldo = models.CharField(max_length=70) + grupo_gestores = models.CharField(max_length=70) + gestor_resp = models.CharField(max_length=70) + coordenador = models.CharField(max_length=70) + procedimento_compra = models.CharField(max_length=70) + tab_frete = models.CharField(max_length=70) + tab_diarias = models.CharField(max_length=70) + custo_op = models.CharField(max_length=70) + nome_financiador = models.CharField(max_length=70) + departamento = models.CharField(max_length=70) + situacao = models.CharField(max_length=70) + banco = models.CharField(max_length=70) + agencia_bancaria = models.CharField(max_length=70) + conta_bancaria = models.CharField(max_length=70) + centro_custo = models.CharField(max_length=70) + conta_caixa = models.CharField(max_length=70) + categoria_projeto = models.CharField(max_length=70) + cod_convenio_conta = models.CharField(max_length=70) + cod_status = models.CharField(max_length=70) + ind_sub_projeto = models.CharField(max_length=70) + tipo_custo_op = models.CharField(max_length=70) + projeto_mae = models.CharField(max_length=70) + id_coordenador = models.CharField(max_length=70) + id_financiador = models.CharField(max_length=70) + id_instituicao = models.CharField(max_length=70) + id_departamento = models.CharField(max_length=70) + nome_instituicao = models.CharField(max_length=70) + id_instituicao_executora = models.CharField(max_length=70) + id_tipo = models.CharField(max_length=70) class Template(models.Model): - nome_template = models.CharField(max_length=200) - endereco_template = models.CharField(max_length=200) - mapeamento = models.ForeignKey(Mapeamento, on_delete=models.CASCADE) + nome_template = models.CharField(max_length=200) + endereco_template = models.CharField(max_length=200) + mapeamento = models.ForeignKey(Mapeamento, on_delete=models.CASCADE) class Report(models.Model): - titulo = models.CharField(max_length=200) - descricao = models.CharField(max_length=200) - tipo_erro = models.CharField(max_length=200) - id_projeto = models.CharField(max_length=200) - nome_usuario = models.CharField(max_length=200) + titulo = models.CharField(max_length=200) + descricao = models.CharField(max_length=200) + tipo_erro = models.CharField(max_length=200) + id_projeto = models.CharField(max_length=200) + nome_usuario = models.CharField(max_length=200) class Export(models.Model): - data_export = models.DateTimeField(auto_now_add=True) - formato = models.CharField(max_length=200) - nome_template = models.CharField(max_length=200) - nome_usuario = models.CharField(max_length=200) - id_projeto = models.CharField(max_length=200) + data_export = models.DateTimeField(auto_now_add=True) + formato = models.CharField(max_length=200) + nome_template = models.CharField(max_length=200) + nome_usuario = models.CharField(max_length=200) + id_projeto = models.CharField(max_length=200) From b41760fee0de3a11f7d06e7588d57973dc863c38 Mon Sep 17 00:00:00 2001 From: Pedro Barbosa <78980796+pedrobarbosaocb@users.noreply.github.com> Date: Thu, 19 Oct 2023 12:58:57 -0300 Subject: [PATCH 09/10] Update models.py --- project/app/models.py | 86 +++++++++++++++++++++---------------------- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/project/app/models.py b/project/app/models.py index 2aa3aaa1..f237ea8a 100644 --- a/project/app/models.py +++ b/project/app/models.py @@ -1,49 +1,49 @@ from django.db import models class Mapeamento(models.Model): - codigo = models.CharField(max_length=70) - nome = models.CharField(max_length=70) - saldo = models.CharField(max_length=70) - data_assinatura = models.CharField(max_length=70) - data_vigencia = models.CharField(max_length=70) - data_encerramento = models.CharField(max_length=70) - tipo_contrato = models.CharField(max_length=70) - instituicao_executora = models.CharField(max_length=70) - processo = models.CharField(max_length=70) - subprocesso = models.CharField(max_length=70) - cod_proposta = models.CharField(max_length=70) - proposta = models.CharField(max_length=70) - objetivos = models.CharField(max_length=70) - valor_aprovado = models.CharField(max_length=70) - nome_tp_controle_saldo = models.CharField(max_length=70) - grupo_gestores = models.CharField(max_length=70) - gestor_resp = models.CharField(max_length=70) - coordenador = models.CharField(max_length=70) - procedimento_compra = models.CharField(max_length=70) - tab_frete = models.CharField(max_length=70) - tab_diarias = models.CharField(max_length=70) - custo_op = models.CharField(max_length=70) - nome_financiador = models.CharField(max_length=70) - departamento = models.CharField(max_length=70) - situacao = models.CharField(max_length=70) - banco = models.CharField(max_length=70) - agencia_bancaria = models.CharField(max_length=70) - conta_bancaria = models.CharField(max_length=70) - centro_custo = models.CharField(max_length=70) - conta_caixa = models.CharField(max_length=70) - categoria_projeto = models.CharField(max_length=70) - cod_convenio_conta = models.CharField(max_length=70) - cod_status = models.CharField(max_length=70) - ind_sub_projeto = models.CharField(max_length=70) - tipo_custo_op = models.CharField(max_length=70) - projeto_mae = models.CharField(max_length=70) - id_coordenador = models.CharField(max_length=70) - id_financiador = models.CharField(max_length=70) - id_instituicao = models.CharField(max_length=70) - id_departamento = models.CharField(max_length=70) - nome_instituicao = models.CharField(max_length=70) - id_instituicao_executora = models.CharField(max_length=70) - id_tipo = models.CharField(max_length=70) + codigo = models.CharField(max_length=200) + nome = models.CharField(max_length=200) + saldo = models.CharField(max_length=200) + data_assinatura = models.CharField(max_length=200) + data_vigencia = models.CharField(max_length=200) + data_encerramento = models.CharField(max_length=200) + tipo_contrato = models.CharField(max_length=200) + instituicao_executora = models.CharField(max_length=200) + processo = models.CharField(max_length=200) + subprocesso = models.CharField(max_length=200) + cod_proposta = models.CharField(max_length=200) + proposta = models.CharField(max_length=200) + objetivos = models.CharField(max_length=200) + valor_aprovado = models.CharField(max_length=200) + nome_tp_controle_saldo = models.CharField(max_length=200) + grupo_gestores = models.CharField(max_length=200) + gestor_resp = models.CharField(max_length=200) + coordenador = models.CharField(max_length=200) + procedimento_compra = models.CharField(max_length=200) + tab_frete = models.CharField(max_length=200) + tab_diarias = models.CharField(max_length=200) + custo_op = models.CharField(max_length=200) + nome_financiador = models.CharField(max_length=200) + departamento = models.CharField(max_length=200) + situacao = models.CharField(max_length=200) + banco = models.CharField(max_length=200) + agencia_bancaria = models.CharField(max_length=200) + conta_bancaria = models.CharField(max_length=200) + centro_custo = models.CharField(max_length=200) + conta_caixa = models.CharField(max_length=200) + categoria_projeto = models.CharField(max_length=200) + cod_convenio_conta = models.CharField(max_length=200) + cod_status = models.CharField(max_length=200) + ind_sub_projeto = models.CharField(max_length=200) + tipo_custo_op = models.CharField(max_length=200) + projeto_mae = models.CharField(max_length=200) + id_coordenador = models.CharField(max_length=200) + id_financiador = models.CharField(max_length=200) + id_instituicao = models.CharField(max_length=200) + id_departamento = models.CharField(max_length=200) + nome_instituicao = models.CharField(max_length=200) + id_instituicao_executora = models.CharField(max_length=200) + id_tipo = models.CharField(max_length=200) class Template(models.Model): nome_template = models.CharField(max_length=200) From 671ba491ce9c0a662d78520da2038f2a2a052b26 Mon Sep 17 00:00:00 2001 From: Pedro Barbosa <78980796+pedrobarbosaocb@users.noreply.github.com> Date: Thu, 19 Oct 2023 13:13:53 -0300 Subject: [PATCH 10/10] Update models.py --- project/app/models.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/project/app/models.py b/project/app/models.py index f237ea8a..85a456a5 100644 --- a/project/app/models.py +++ b/project/app/models.py @@ -1,6 +1,7 @@ from django.db import models class Mapeamento(models.Model): + id_mapeamento = models.IntegerField(primary_key=True) codigo = models.CharField(max_length=200) nome = models.CharField(max_length=200) saldo = models.CharField(max_length=200) @@ -53,8 +54,14 @@ class Template(models.Model): class Report(models.Model): titulo = models.CharField(max_length=200) descricao = models.CharField(max_length=200) - tipo_erro = models.CharField(max_length=200) - id_projeto = models.CharField(max_length=200) + + TIPO_ERRO_CHOICES = ( + ('erro1', 'Falta de informação no projeto'), + ('erro2', 'Campo preenchido incorretamente'), + # Adicione mais opções conforme necessário + ) + tipo_erro = models.CharField(max_length=20, choices=TIPO_ERRO_CHOICES) + id_projeto = models.CharField(max_length=50) nome_usuario = models.CharField(max_length=200) class Export(models.Model): @@ -62,4 +69,4 @@ class Export(models.Model): formato = models.CharField(max_length=200) nome_template = models.CharField(max_length=200) nome_usuario = models.CharField(max_length=200) - id_projeto = models.CharField(max_length=200) + id_projeto = models.CharField(max_length=50)