<filename>ingredients/models.py
from django.db import models

class Category(models.Model):
	name = models.CharField(max_length=100)

	def __str__(self) -> str:
		return self.name

class Ingredient(models.Model):
	name = models.CharField(max_length=100)
	notes = models.TextField()
	category = models.ForeignKey(Category, related_name="ingredients", on_delete=models.CASCADE)

	def __str__(self) -> str:
		return self.name