from django.db import models


# Create your models here.


class Product(models.Model):
    Product_Id = models.CharField(max_length=50, unique=True)
    Product_Name = models.CharField(max_length=150)
    Category = models.CharField(max_length=20, null=False)


class Subcat(models.Model):
    Category = models.ForeignKey(Product, on_delete=models.CASCADE)
    Subcat_Name = models.CharField(max_length=50,null=False)
ed05efd7a3eb697daa1846d1b4d7069f6d39ccce
<mask token>


class Subcat(models.Model):
    Category = models.ForeignKey(Product, on_delete=models.CASCADE)
    Subcat_Name = models.CharField(max_length=50, null=False)

<mask token>


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


class Subcat(models.Model):
    Category = models.ForeignKey(Product, on_delete=models.CASCADE)
    Subcat_Name = models.CharField(max_length=50, null=False)

<mask token>


class Product(models.Model):
    Product_Id = models.CharField(max_length=50, unique=True)
    Product_Name = models.CharField(max_length=150)
    Category = models.CharField(max_length=20, null=False)


class Subcat(models.Model):
    Category = models.ForeignKey(Product, on_delete=models.CASCADE)
    Subcat_Name = models.CharField(max_length=50, null=False)

from django.db import models


class Product(models.Model):
    Product_Id = models.CharField(max_length=50, unique=True)
    Product_Name = models.CharField(max_length=150)
    Category = models.CharField(max_length=20, null=False)


class Subcat(models.Model):
    Category = models.ForeignKey(Product, on_delete=models.CASCADE)
    Subcat_Name = models.CharField(max_length=50, null=False)

from django.db import models


# Create your models here.


class Product(models.Model):
    Product_Id = models.CharField(max_length=50, unique=True)
    Product_Name = models.CharField(max_length=150)
    Category = models.CharField(max_length=20, null=False)


class Subcat(models.Model):
    Category = models.ForeignKey(Product, on_delete=models.CASCADE)
    Subcat_Name = models.CharField(max_length=50,null=False)