[MySQL, Django]ManyToManyField를 쓰는 이유
👇 전반적인 예시 모델 class User(models.Model): email = models.EmailField(max_length=100) password = models.CharField(max_length=500) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) class Meta: db_table = 'users' class Coupon(models.Model): name = models.CharField(max_length=100) discount_price = models.DecimalField(max_digits=10, decimal_places=2, nu..
프레임워크+라이브러리/Django
2021. 3. 30. 20:40