from django.db import models


# Create your models here.



class Data_Ingredient(models.Model):
    """"Class used to Store Ingredients of the recipes found in the crawling process"""

    Ingredient = models.CharField(max_length=1000)
    Recipe = models.CharField(max_length=500)
    Group = models.CharField(max_length=500, default='Ingredientes')

    def __str__(self):
        return self.Ingredient


class Data_Way_Cooking(models.Model):
    """Class used to Store steps of the recipes found in the crawling process"""
    Description = models.CharField(max_length=500)
    Recipe = models.CharField(max_length=500)
    Group = models.CharField(max_length=500, default='Modo de Fazer')

    def __str__(self):
        return self.Description


class Ingredient_Spec(models.Model):
    """Class used to manipulate Ingredients found and change data to data mining and found patterns of ingredients"""
    Word = models.CharField(max_length=500)
    Count = models.IntegerField()
    Type = models.CharField(max_length=1)


class Ignore_Words(models.Model):
    """Model to store words to ignore from Ingredient Spec"""
    Word = models.CharField(max_length=500)

from django.db import models


class Data_Ingredient(models.Model):
    """"Class used to Store Ingredients of the recipes found in the crawling process"""

    Ingredient = models.CharField(max_length=1000)
    Recipe = models.CharField(max_length=500)
    Group = models.CharField(max_length=500, default='Ingredientes')

    def __str__(self):
        return self.Ingredient


class Data_Way_Cooking(models.Model):
    """Class used to Store steps of the recipes found in the crawling process"""
    Description = models.CharField(max_length=500)
    Recipe = models.CharField(max_length=500)
    Group = models.CharField(max_length=500, default='Modo de Fazer')

    def __str__(self):
        return self.Description


class Ingredient_Spec(models.Model):
    """Class used to manipulate Ingredients found and change data to data mining and found patterns of ingredients"""
    Word = models.CharField(max_length=500)
    Count = models.IntegerField()
    Type = models.CharField(max_length=1)


class Ignore_Words(models.Model):
    """Model to store words to ignore from Ingredient Spec"""
    Word = models.CharField(max_length=500)

Remove not needed comment line
Remove not needed comment line

  from django.db import models
- 
- 
- # Create your models here.
- 
  
  
  class Data_Ingredient(models.Model):
      """"Class used to Store Ingredients of the recipes found in the crawling process"""
  
      Ingredient = models.CharField(max_length=1000)
      Recipe = models.CharField(max_length=500)
      Group = models.CharField(max_length=500, default='Ingredientes')
  
      def __str__(self):
          return self.Ingredient
  
  
  class Data_Way_Cooking(models.Model):
      """Class used to Store steps of the recipes found in the crawling process"""
      Description = models.CharField(max_length=500)
      Recipe = models.CharField(max_length=500)
      Group = models.CharField(max_length=500, default='Modo de Fazer')
  
      def __str__(self):
          return self.Description
  
  
  class Ingredient_Spec(models.Model):
      """Class used to manipulate Ingredients found and change data to data mining and found patterns of ingredients"""
      Word = models.CharField(max_length=500)
      Count = models.IntegerField()
      Type = models.CharField(max_length=1)
  
  
  class Ignore_Words(models.Model):
      """Model to store words to ignore from Ingredient Spec"""
      Word = models.CharField(max_length=500)
  
Remove not needed comment line
## Code Before:
from django.db import models


# Create your models here.



class Data_Ingredient(models.Model):
    """"Class used to Store Ingredients of the recipes found in the crawling process"""

    Ingredient = models.CharField(max_length=1000)
    Recipe = models.CharField(max_length=500)
    Group = models.CharField(max_length=500, default='Ingredientes')

    def __str__(self):
        return self.Ingredient


class Data_Way_Cooking(models.Model):
    """Class used to Store steps of the recipes found in the crawling process"""
    Description = models.CharField(max_length=500)
    Recipe = models.CharField(max_length=500)
    Group = models.CharField(max_length=500, default='Modo de Fazer')

    def __str__(self):
        return self.Description


class Ingredient_Spec(models.Model):
    """Class used to manipulate Ingredients found and change data to data mining and found patterns of ingredients"""
    Word = models.CharField(max_length=500)
    Count = models.IntegerField()
    Type = models.CharField(max_length=1)


class Ignore_Words(models.Model):
    """Model to store words to ignore from Ingredient Spec"""
    Word = models.CharField(max_length=500)

## Instruction:
Remove not needed comment line
## Code After:
from django.db import models


class Data_Ingredient(models.Model):
    """"Class used to Store Ingredients of the recipes found in the crawling process"""

    Ingredient = models.CharField(max_length=1000)
    Recipe = models.CharField(max_length=500)
    Group = models.CharField(max_length=500, default='Ingredientes')

    def __str__(self):
        return self.Ingredient


class Data_Way_Cooking(models.Model):
    """Class used to Store steps of the recipes found in the crawling process"""
    Description = models.CharField(max_length=500)
    Recipe = models.CharField(max_length=500)
    Group = models.CharField(max_length=500, default='Modo de Fazer')

    def __str__(self):
        return self.Description


class Ingredient_Spec(models.Model):
    """Class used to manipulate Ingredients found and change data to data mining and found patterns of ingredients"""
    Word = models.CharField(max_length=500)
    Count = models.IntegerField()
    Type = models.CharField(max_length=1)


class Ignore_Words(models.Model):
    """Model to store words to ignore from Ingredient Spec"""
    Word = models.CharField(max_length=500)
