from django.db import models


# 생리대:성분 = 1:N 관계
class Pad(models.Model):
    id = models.BigAutoField(primary_key=True)
    manufacturer = models.CharField(max_length=20)
    name = models.CharField(max_length=50)
    image = models.CharField(max_length=300)

    def __str__(self):
        return self.name

    class Meta:
        db_table = 'pad'

# class Ingredient_info(models.Model):
#     pad_name = models.ForeignKey(Pad, on_delete=models.CASCADE)
#     igd_koName = models.CharField(max_length=20)
#     igd_enName = models.CharField(max_length=20)
#     igd_detection = models.FloatField()
#     igd_sideEffect = models.TextField()
#
#     def __str__(self):
#         return self.igd_koName
#
#     class Meta:
#         db_table = 'ingredient_information'


252fa1a3ae24c42081973d5b9047736bda3458fc
<mask token>

<mask token>


class Pad(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def __str__(self):
        return self.name


    class Meta:
        db_table = 'pad'

<mask token>


class Pad(models.Model):
    id = models.BigAutoField(primary_key=True)
    manufacturer = models.CharField(max_length=20)
    name = models.CharField(max_length=50)
    image = models.CharField(max_length=300)

    def __str__(self):
        return self.name


    class Meta:
        db_table = 'pad'

from django.db import models


class Pad(models.Model):
    id = models.BigAutoField(primary_key=True)
    manufacturer = models.CharField(max_length=20)
    name = models.CharField(max_length=50)
    image = models.CharField(max_length=300)

    def __str__(self):
        return self.name


    class Meta:
        db_table = 'pad'

from django.db import models


# 생리대:성분 = 1:N 관계
class Pad(models.Model):
    id = models.BigAutoField(primary_key=True)
    manufacturer = models.CharField(max_length=20)
    name = models.CharField(max_length=50)
    image = models.CharField(max_length=300)

    def __str__(self):
        return self.name

    class Meta:
        db_table = 'pad'

# class Ingredient_info(models.Model):
#     pad_name = models.ForeignKey(Pad, on_delete=models.CASCADE)
#     igd_koName = models.CharField(max_length=20)
#     igd_enName = models.CharField(max_length=20)
#     igd_detection = models.FloatField()
#     igd_sideEffect = models.TextField()
#
#     def __str__(self):
#         return self.igd_koName
#
#     class Meta:
#         db_table = 'ingredient_information'

