Skip to content

Commit

Permalink
Update models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobarbosaocb authored Oct 19, 2023
1 parent b41760f commit 671ba49
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions project/app/models.py
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -53,13 +54,19 @@ 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):
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)
id_projeto = models.CharField(max_length=50)

0 comments on commit 671ba49

Please sign in to comment.