我正在尝试开发一个在线库存系统。我有下表:
CREATE TABLE `product` (
`ProductId`
`SubCategoryTypeId`
`MerchantId`
`ProductName`
`MRP`
`Quantity`
`ProductCode`
`ProductSKUCode`
`BarCode`
`Description_short`
`Description_long`
`ThumbnailImage`
`ProductImage`
`OurPrice`
`MinBargainPrice`
`Brand`
`AirCost`
`SurfaceCost`
`ShippingAirTime`
`ShippingSurfaceTime`
`ColorCode`
`DiscountPercent`
`IsApproved`
`IsActive`
`HasSize`
`isOnlineProduct`
`isOfflineProduct`
`ShippingCategory`
`ProductExpiryDays`
`RelatedVideo`
`TechnicalSpecification`
`CreatedDateTime`
`ModifiedDateTime`
`CreatedBy`
`ModifiedBy`
`IsCod`
`HasOffer`
`OfferText`
`IsNewArrival`
`HasColor`
`NoOfRecommendation`
`IsPremium` tinyint(1)
`IsImported`
PRIMARY KEY (`ProductId`),
KEY `Product_Category_Rel` (`SubCategoryTypeId`),
KEY `Product_Merchant_Rel` (`MerchantId`)
) ENGINE=InnoDB AUTO_INCREMENT=2093 DEFAULT CHARSET=utf8 COMMENT='This table contains Product data.';
使用此表,我可以添加大部分产品,但如何优化此表以便也可以添加书籍。我在添加书籍时遇到问题,因为它有作者、出版商等。任何人都可以建议我该怎么做以便我也可以添加书籍吗?