日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

商品审核网页界面_商品模块数据库表解析(二)

發布時間:2024/9/19 数据库 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 商品审核网页界面_商品模块数据库表解析(二) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

接上一篇文章,本文主要對編輯商品、商品評價及回復、商品操作記錄這三塊功能的表進行解析,采用數據庫表與功能對照的形式。

SpringBoot實戰電商項目mall(25k+star)地址:https://github.com/macrozheng/mall

編輯商品

相關表結構

商品表

商品信息主要包括四部分:商品的基本信息、商品的促銷信息、商品的屬性信息、商品的關聯,商品表是整個商品的基本信息部分。create table pms_product (id bigint not null auto_increment,brand_id bigint comment '品牌id',product_category_id bigint comment '品牌分類id',feight_template_id bigint comment '運費模版id',product_attribute_category_id bigint comment '品牌屬性分類id',name varchar(64) not null comment '商品名稱',pic varchar(255) comment '圖片',product_sn varchar(64) not null comment '貨號',delete_status int(1) comment '刪除狀態:0->未刪除;1->已刪除',publish_status int(1) comment '上架狀態:0->下架;1->上架',new_status int(1) comment '新品狀態:0->不是新品;1->新品',recommand_status int(1) comment '推薦狀態;0->不推薦;1->推薦',verify_status int(1) comment '審核狀態:0->未審核;1->審核通過',sort int comment '排序',sale int comment '銷量',price decimal(10,2) comment '價格',promotion_price decimal(10,2) comment '促銷價格',gift_growth int default 0 comment '贈送的成長值',gift_point int default 0 comment '贈送的積分',use_point_limit int comment '限制使用的積分數',sub_title varchar(255) comment '副標題',description text comment '商品描述',original_price decimal(10,2) comment '市場價',stock int comment '庫存',low_stock int comment '庫存預警值',unit varchar(16) comment '單位',weight decimal(10,2) comment '商品重量,默認為克',preview_status int(1) comment '是否為預告商品:0->不是;1->是',service_ids varchar(64) comment '以逗號分割的產品服務:1->無憂退貨;2->快速退款;3->免費包郵',keywords varchar(255) comment '關鍵字',note varchar(255) comment '備注',album_pics varchar(255) comment '畫冊圖片,連產品圖片限制為5張,以逗號分割',detail_title varchar(255) comment '詳情標題',detail_desc text comment '詳情描述',detail_html text comment '產品詳情網頁內容',detail_mobile_html text comment '移動端網頁詳情',promotion_start_time datetime comment '促銷開始時間',promotion_end_time datetime comment '促銷結束時間',promotion_per_limit int comment '活動限購數量',promotion_type int(1) comment '促銷類型:0->沒有促銷使用原價;1->使用促銷價;2->使用會員價;3->使用階梯價格;4->使用滿減價格;5->限時購',product_category_name varchar(255) comment '產品分類名稱',brand_name varchar(255) comment '品牌名稱',primary key (id) );

商品SKU表

SKU(Stock Keeping Unit)是指庫存量單位,SPU(Standard Product Unit)是指標準產品單位。舉個例子:iphone xs是一個SPU,而iphone xs 公開版 64G 銀色是一個SKU。create table pms_sku_stock (id bigint not null auto_increment,product_id bigint comment '商品id',sku_code varchar(64) not null comment 'sku編碼',price decimal(10,2) comment '價格',stock int default 0 comment '庫存',low_stock int comment '預警庫存',sp1 varchar(64) comment '規格屬性1',sp2 varchar(64) comment '規格屬性2',sp3 varchar(64) comment '規格屬性3',pic varchar(255) comment '展示圖片',sale int comment '銷量',promotion_price decimal(10,2) comment '單品促銷價格',lock_stock int default 0 comment '鎖定庫存',primary key (id) );

商品階梯價格表

商品優惠相關表,購買同商品滿足一定數量后,可以使用打折價格進行購買。如:買兩件商品可以打八折。create table pms_product_ladder (id bigint not null auto_increment,product_id bigint comment '商品id',count int comment '滿足的商品數量',discount decimal(10,2) comment '折扣',price decimal(10,2) comment '折后價格',primary key (id) );

商品滿減表

商品優惠相關表,購買同商品滿足一定金額后,可以減免一定金額。如:買滿1000減100元。create table pms_product_full_reduction (id bigint not null auto_increment,product_id bigint comment '商品id',full_price decimal(10,2) comment '商品滿足金額',reduce_price decimal(10,2) comment '商品減少金額',primary key (id) );

商品會員價格表

根據不同會員等級,可以以不同的會員價格購買。此處設計有缺陷,可以做成不同會員等級可以減免多少元或者按多少折扣進行購買。create table pms_member_price (id bigint not null auto_increment,product_id bigint comment '商品id',member_level_id bigint comment '會員等級id',member_price decimal(10,2) comment '會員價格',member_level_name varchar(100) comment '會員等級名稱',primary key (id) );

管理端展現

填寫商品信息

填寫商品促銷

特惠促銷

會員價格

階梯價格

滿減價格

填寫商品屬性

選擇商品關聯

移動端展現

商品介紹

圖文詳情

相關專題

商品評價及回復

相關表結構

商品評價表

create table pms_comment (id bigint not null auto_increment,product_id bigint comment '商品id',member_nick_name varchar(255) comment '會員昵稱',product_name varchar(255) comment '商品名稱',star int(3) comment '評價星數:0->5',member_ip varchar(64) comment '評價的ip',create_time datetime comment '創建時間',show_status int(1) comment '是否顯示',product_attribute varchar(255) comment '購買時的商品屬性',collect_couont int comment '收藏數',read_count int comment '閱讀數',content text comment '內容',pics varchar(1000) comment '上傳圖片地址,以逗號隔開',member_icon varchar(255) comment '評論用戶頭像',replay_count int comment '回復數',primary key (id) );

產品評價回復表

create table pms_comment_replay (id bigint not null auto_increment,comment_id bigint comment '評論id',member_nick_name varchar(255) comment '會員昵稱',member_icon varchar(255) comment '會員頭像',content varchar(1000) comment '內容',create_time datetime comment '創建時間',type int(1) comment '評論人員類型;0->會員;1->管理員',primary key (id) );

移動端展現

商品評價列表

商品評價詳情

商品回復列表

商品審核及操作記錄

相關表結構

商品審核記錄表

用于記錄商品審核記錄create table pms_product_vertify_record (id bigint not null auto_increment,product_id bigint comment '商品id',create_time datetime comment '創建時間',vertify_man varchar(64) comment '審核人',status int(1) comment '審核后的狀態:0->未通過;2->已通過',detail varchar(255) comment '反饋詳情',primary key (id) );

商品操作記錄表

用于記錄商品操作記錄create table pms_product_operate_log (id bigint not null auto_increment,product_id bigint comment '商品id',price_old decimal(10,2) comment '改變前價格',price_new decimal(10,2) comment '改變后價格',sale_price_old decimal(10,2) comment '改變前優惠價',sale_price_new decimal(10,2) comment '改變后優惠價',gift_point_old int comment '改變前積分',gift_point_new int comment '改變后積分',use_point_limit_old int comment '改變前積分使用限制',use_point_limit_new int comment '改變后積分使用限制',operate_man varchar(64) comment '操作人',create_time datetime comment '創建時間',primary key (id) );本文 GitHub https://github.com/macrozheng/mall-learning已經收錄,歡迎大家Star!

總結

以上是生活随笔為你收集整理的商品审核网页界面_商品模块数据库表解析(二)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。