from sqlalchemy import Column, ForeignKey, Integer, String
from sqlalchemy.orm import relationship

from models.base import Base
from models.user import User
from models.store import Store

class Product(Base):
	__tablename__ = "product"
	__table_args__ = {'sqlite_autoincrement': True}

	id = Column(Integer, primary_key=True)
	name = Column(String(250), nullable=False)
	category = Column(String(80), nullable=False)
	description = Column(String(250))
	price = Column(String(10))
	store_id = Column(Integer, ForeignKey('store.id'))
	store = relationship(Store)
	user_id = Column(Integer, ForeignKey('user.id'))
	user = relationship(User)

	@property
	def serialize(self):
		"""Return product type object data in easily serializeable format"""
		return {
			'id': self.id, 
			'name': self.name, 
			'category': self.category, 
			'description': self.description, 
			'price': self.price, 
			'store': self.store_id, 
			'user': self.user_id, 
		}

from sqlalchemy import Column, ForeignKey, Integer, String
from sqlalchemy.orm import relationship

from models.base import Base
from models.user import User
from models.store import Store

class Product(Base):
	__tablename__ = "product"
	__table_args__ = {'sqlite_autoincrement': True}

	id = Column(Integer, primary_key=True)
	name = Column(String(250), nullable=False)
	category = Column(String(80), nullable=False)
	description = Column(String(2000))
	price = Column(String(10))
	store_id = Column(Integer, ForeignKey('store.id'))
	store = relationship(Store)
	user_id = Column(Integer, ForeignKey('user.id'))
	user = relationship(User)

	@property
	def serialize(self):
		"""Return product type object data in easily serializeable format"""
		return {
			'id': self.id, 
			'name': self.name, 
			'category': self.category, 
			'description': self.description, 
			'price': self.price, 
			'store': self.store_id, 
			'user': self.user_id, 
		}

Correct the character limit for descriptions
bug: Correct the character limit for descriptions
