from django.db import models
from django.contrib.auth.models import User


# class file(models.Model):
#   file=models.ImageField(upload_to="media")
# Create your models here.
class Product(models.Model):
    product_name = models.CharField(max_length=200)
    product_code = models.CharField(max_length=10)
    product_price = models.CharField(max_length=10)
    product_image=models.ImageField(upload_to="product_image")
    def __str__(self):
        return self.product_name


# class customerDetail(models.Model):
#     customer_name=models.ForeignKey(User, default=1, on_delete=models.SET_DEFAULT)
#     customer_address=models.CharField(max_length=200)
#     customer_contact=models.CharField(max_length=200)
    
#     def __str__(self):
#         return self.customer_name
01a71cd4a0a1df6276d6930b6dea70feb867c9bb
<mask token>

<mask token>


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

    def __str__(self):
        return self.product_name

<mask token>


class Product(models.Model):
    product_name = models.CharField(max_length=200)
    product_code = models.CharField(max_length=10)
    product_price = models.CharField(max_length=10)
    product_image = models.ImageField(upload_to='product_image')

    def __str__(self):
        return self.product_name

from django.db import models
from django.contrib.auth.models import User


class Product(models.Model):
    product_name = models.CharField(max_length=200)
    product_code = models.CharField(max_length=10)
    product_price = models.CharField(max_length=10)
    product_image = models.ImageField(upload_to='product_image')

    def __str__(self):
        return self.product_name

from django.db import models
from django.contrib.auth.models import User


# class file(models.Model):
#   file=models.ImageField(upload_to="media")
# Create your models here.
class Product(models.Model):
    product_name = models.CharField(max_length=200)
    product_code = models.CharField(max_length=10)
    product_price = models.CharField(max_length=10)
    product_image=models.ImageField(upload_to="product_image")
    def __str__(self):
        return self.product_name


# class customerDetail(models.Model):
#     customer_name=models.ForeignKey(User, default=1, on_delete=models.SET_DEFAULT)
#     customer_address=models.CharField(max_length=200)
#     customer_contact=models.CharField(max_length=200)
    
#     def __str__(self):
#         return self.customer_name