from django.db import models
from django.contrib.postgres.fields import ArrayField


class Product(models.Model):
    name = models.CharField(max_length=50)


class ProductX(models.Model):
    product = models.ForeignKey(Product, on_delete=models.CASCADE)
    style = models.CharField(max_length=50)
    price = models.DecimalField(max_digits=5, decimal_places=2)
    sizes = ArrayField(models.DecimalField(max_digits=3, decimal_places=1))
    image = models.ImageField(upload_to='shop/images')


class ProductXDetailImage(models.Model):
    image = models.ImageField(upload_to='shop/images')
    productX = models.ForeignKey(ProductX, on_delete=models.CASCADE)

0a87f8894a0083e73fb5c4510221cf83f2f40c98
<mask token>


class ProductX(models.Model):
    product = models.ForeignKey(Product, on_delete=models.CASCADE)
    style = models.CharField(max_length=50)
    price = models.DecimalField(max_digits=5, decimal_places=2)
    sizes = ArrayField(models.DecimalField(max_digits=3, decimal_places=1))
    image = models.ImageField(upload_to='shop/images')


class ProductXDetailImage(models.Model):
    image = models.ImageField(upload_to='shop/images')
    productX = models.ForeignKey(ProductX, on_delete=models.CASCADE)

<mask token>


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


class ProductX(models.Model):
    product = models.ForeignKey(Product, on_delete=models.CASCADE)
    style = models.CharField(max_length=50)
    price = models.DecimalField(max_digits=5, decimal_places=2)
    sizes = ArrayField(models.DecimalField(max_digits=3, decimal_places=1))
    image = models.ImageField(upload_to='shop/images')


class ProductXDetailImage(models.Model):
    image = models.ImageField(upload_to='shop/images')
    productX = models.ForeignKey(ProductX, on_delete=models.CASCADE)

<mask token>


class Product(models.Model):
    name = models.CharField(max_length=50)


class ProductX(models.Model):
    product = models.ForeignKey(Product, on_delete=models.CASCADE)
    style = models.CharField(max_length=50)
    price = models.DecimalField(max_digits=5, decimal_places=2)
    sizes = ArrayField(models.DecimalField(max_digits=3, decimal_places=1))
    image = models.ImageField(upload_to='shop/images')


class ProductXDetailImage(models.Model):
    image = models.ImageField(upload_to='shop/images')
    productX = models.ForeignKey(ProductX, on_delete=models.CASCADE)

from django.db import models
from django.contrib.postgres.fields import ArrayField


class Product(models.Model):
    name = models.CharField(max_length=50)


class ProductX(models.Model):
    product = models.ForeignKey(Product, on_delete=models.CASCADE)
    style = models.CharField(max_length=50)
    price = models.DecimalField(max_digits=5, decimal_places=2)
    sizes = ArrayField(models.DecimalField(max_digits=3, decimal_places=1))
    image = models.ImageField(upload_to='shop/images')


class ProductXDetailImage(models.Model):
    image = models.ImageField(upload_to='shop/images')
    productX = models.ForeignKey(ProductX, on_delete=models.CASCADE)
