You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

13 lines
457 B

from django.db import models
from general.models import *
class FoodStock(models.Model):
type = models.ForeignKey(FoodType, on_delete= models.CASCADE)
amount = models.IntegerField(default=1)
unit = models.CharField(max_length=15,default='')
percentage = models.IntegerField(default=100)
date = models.DateTimeField(auto_now_add=True)
owner_id = models.CharField(max_length=40)
is_active = models.BooleanField(default=True)