1
0
mirror of https://gitee.com/coder-xiaomo/flashsale synced 2025-09-10 14:01:39 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

商品模型3-修改Price数据库中小数点,并重新生成

This commit is contained in:
2022-03-03 13:14:44 +08:00
parent 8bd1474f0d
commit add4aa6996
9 changed files with 78 additions and 76 deletions

View File

@@ -11,7 +11,7 @@
Target Server Version : 50726
File Encoding : 65001
Date: 03/03/2022 12:57:18
Date: 03/03/2022 13:13:05
*/
SET NAMES utf8mb4;
@@ -24,7 +24,7 @@ DROP TABLE IF EXISTS `item_info`;
CREATE TABLE `item_info` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`price` decimal(10, 0) NOT NULL DEFAULT 0,
`price` decimal(10, 2) NOT NULL DEFAULT 0.00,
`description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`sales` int(11) NOT NULL,
`img_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,