Skip to content

Commit

Permalink
Cria model Receita
Browse files Browse the repository at this point in the history
  • Loading branch information
brnocesar committed Nov 7, 2020
1 parent b175afd commit 7fa5a09
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion apps/receitas/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
from django.db import models
from datetime import datetime

# Create your models here.
class Receita(models.Model):
nome = models.CharField(max_length=200)
ingredientes = models.TextField()
modo_preparo = models.TextField()
tempo_preparo = models.IntegerField()
rendimento = models.CharField(max_length=100)
categoria = models.CharField(max_length=100)
data_criacao = models.DateTimeField(default=datetime.now, blank=True)

0 comments on commit 7fa5a09

Please sign in to comment.