商品审核网页界面_商品模块数据库表解析(二)
生活随笔
收集整理的這篇文章主要介紹了
商品审核网页界面_商品模块数据库表解析(二)
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
接上一篇文章,本文主要對編輯商品、商品評價及回復(fù)、商品操作記錄這三塊功能的表進(jìn)行解析,采用數(shù)據(jù)庫表與功能對照的形式。
SpringBoot實(shí)戰(zhàn)電商項(xiàng)目mall(25k+star)地址:https://github.com/macrozheng/mall
編輯商品
相關(guān)表結(jié)構(gòu)
商品表
商品信息主要包括四部分:商品的基本信息、商品的促銷信息、商品的屬性信息、商品的關(guān)聯(lián),商品表是整個商品的基本信息部分。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 '運(yùn)費(fèi)模版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 '刪除狀態(tài):0->未刪除;1->已刪除',publish_status int(1) comment '上架狀態(tài):0->下架;1->上架',new_status int(1) comment '新品狀態(tài):0->不是新品;1->新品',recommand_status int(1) comment '推薦狀態(tài);0->不推薦;1->推薦',verify_status int(1) comment '審核狀態(tài):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 '限制使用的積分?jǐn)?shù)',sub_title varchar(255) comment '副標(biāo)題',description text comment '商品描述',original_price decimal(10,2) comment '市場價',stock int comment '庫存',low_stock int comment '庫存預(yù)警值',unit varchar(16) comment '單位',weight decimal(10,2) comment '商品重量,默認(rèn)為克',preview_status int(1) comment '是否為預(yù)告商品:0->不是;1->是',service_ids varchar(64) comment '以逗號分割的產(chǎn)品服務(wù):1->無憂退貨;2->快速退款;3->免費(fèi)包郵',keywords varchar(255) comment '關(guān)鍵字',note varchar(255) comment '備注',album_pics varchar(255) comment '畫冊圖片,連產(chǎn)品圖片限制為5張,以逗號分割',detail_title varchar(255) comment '詳情標(biāo)題',detail_desc text comment '詳情描述',detail_html text comment '產(chǎn)品詳情網(wǎng)頁內(nèi)容',detail_mobile_html text comment '移動端網(wǎng)頁詳情',promotion_start_time datetime comment '促銷開始時間',promotion_end_time datetime comment '促銷結(jié)束時間',promotion_per_limit int comment '活動限購數(shù)量',promotion_type int(1) comment '促銷類型:0->沒有促銷使用原價;1->使用促銷價;2->使用會員價;3->使用階梯價格;4->使用滿減價格;5->限時購',product_category_name varchar(255) comment '產(chǎn)品分類名稱',brand_name varchar(255) comment '品牌名稱',primary key (id) );商品SKU表
SKU(Stock Keeping Unit)是指庫存量單位,SPU(Standard Product Unit)是指標(biāo)準(zhǔn)產(chǎn)品單位。舉個例子: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 '預(yù)警庫存',sp1 varchar(64) comment '規(guī)格屬性1',sp2 varchar(64) comment '規(guī)格屬性2',sp3 varchar(64) comment '規(guī)格屬性3',pic varchar(255) comment '展示圖片',sale int comment '銷量',promotion_price decimal(10,2) comment '單品促銷價格',lock_stock int default 0 comment '鎖定庫存',primary key (id) );商品階梯價格表
商品優(yōu)惠相關(guān)表,購買同商品滿足一定數(shù)量后,可以使用打折價格進(jìn)行購買。如:買兩件商品可以打八折。create table pms_product_ladder (id bigint not null auto_increment,product_id bigint comment '商品id',count int comment '滿足的商品數(shù)量',discount decimal(10,2) comment '折扣',price decimal(10,2) comment '折后價格',primary key (id) );商品滿減表
商品優(yōu)惠相關(guān)表,購買同商品滿足一定金額后,可以減免一定金額。如:買滿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) );商品會員價格表
根據(jù)不同會員等級,可以以不同的會員價格購買。此處設(shè)計(jì)有缺陷,可以做成不同會員等級可以減免多少元或者按多少折扣進(jìn)行購買。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) );管理端展現(xiàn)
填寫商品信息
填寫商品促銷
特惠促銷
會員價格
階梯價格
滿減價格
填寫商品屬性
選擇商品關(guān)聯(lián)
移動端展現(xiàn)
商品介紹
圖文詳情
相關(guān)專題
商品評價及回復(fù)
相關(guān)表結(jié)構(gòu)
商品評價表
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 '評價星數(shù):0->5',member_ip varchar(64) comment '評價的ip',create_time datetime comment '創(chuàng)建時間',show_status int(1) comment '是否顯示',product_attribute varchar(255) comment '購買時的商品屬性',collect_couont int comment '收藏?cái)?shù)',read_count int comment '閱讀數(shù)',content text comment '內(nèi)容',pics varchar(1000) comment '上傳圖片地址,以逗號隔開',member_icon varchar(255) comment '評論用戶頭像',replay_count int comment '回復(fù)數(shù)',primary key (id) );產(chǎn)品評價回復(fù)表
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 '內(nèi)容',create_time datetime comment '創(chuàng)建時間',type int(1) comment '評論人員類型;0->會員;1->管理員',primary key (id) );移動端展現(xiàn)
商品評價列表
商品評價詳情
商品回復(fù)列表
商品審核及操作記錄
相關(guān)表結(jié)構(gòu)
商品審核記錄表
用于記錄商品審核記錄create table pms_product_vertify_record (id bigint not null auto_increment,product_id bigint comment '商品id',create_time datetime comment '創(chuàng)建時間',vertify_man varchar(64) comment '審核人',status int(1) comment '審核后的狀態(tài):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 '改變前優(yōu)惠價',sale_price_new decimal(10,2) comment '改變后優(yōu)惠價',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 '創(chuàng)建時間',primary key (id) );本文 GitHub https://github.com/macrozheng/mall-learning已經(jīng)收錄,歡迎大家Star!總結(jié)
以上是生活随笔為你收集整理的商品审核网页界面_商品模块数据库表解析(二)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 为什么jsp写script代码报错_JS
- 下一篇: 什么是dns(如何判断DNS是否有故障?