一、demo基本业务功能介绍

  只是demo,无完整功能,不断重构系统,以搭建 高可扩展性、高性能、大数据、高并发、分布式的系统架构

  客户管理、商品管理、购物车、订单管理、库存管理

二、基本数据字典

  说明:现在只构建一个最基本的数据字典,后面可以根据需要,进行调整

  客户管理:uuid、customerId、pwd、showName、trueName、registerTime

  商品管理:uuid、name、imgPath、description

  购物车:uuid、customerUuid、goodsUuid、buyNum

  订单管理——主订单:uuid、customerUuid、orderTime、totalMoney、saveMoney 、state

  订单管理——子订单:uuid、orderUuid、goodsUuid、orderNum、price、money、saveMoney

  库存管理:uuid、goodsUuid、storeNum

CREATE DATABASE arch1 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;


drop table if exists tbl_customer;
create table tbl_customer
(
   uuid                    int not null auto_increment,
   customerId              varchar(20),
   pwd                     varchar(20),
   showName                varchar(100),
   trueName                varchar(100),
   registerTime            varchar(100),
   primary key (uuid)
) charset=utf8 ENGINE=InnoDB;

drop table if exists tbl_goods;
create table tbl_goods
(
   uuid                    int not null auto_increment,
   name                    varchar(200),
   imgPath                 varchar(500),
   description             varchar(2000),
   primary key (uuid)
) charset=utf8 ENGINE=InnoDB;

drop table if exists tbl_cart;
create table tbl_cart
(
   uuid                    int not null auto_increment,
   customerUuid            int,
   goodsUuid               int,
   buyNum                  int,
   primary key (uuid)
) charset=utf8 ENGINE=InnoDB;

drop table if exists tbl_order;
create table tbl_order
(
   uuid                    int not null auto_increment,
   customerUuid            int,
   orderTime               varchar(100),
   totalMoney              float,
   saveMoney               float,
   state                   smallint,
   primary key (uuid)
) charset=utf8 ENGINE=InnoDB;

drop table if exists tbl_orderDetail;
create table tbl_orderDetail
(
   uuid                    int not null auto_increment,
   orderUuid               int,
   goodsUuid               int,
   orderNum                int,
   price                   float,
   money                   float,
   saveMoney               float,
   primary key (uuid)
) charset=utf8 ENGINE=InnoDB;

drop table if exists tbl_store;
create table tbl_store
(
   uuid                    int not null auto_increment,
   goodsUuid               int,
   storeNum                int,
   primary key (uuid)
) charset=utf8 ENGINE=InnoDB;

drop table if exists tbl_file;
create table tbl_file
(
   uuid                    int not null auto_increment,
   fileName                varchar(1000),
   remotePaths             varchar(1000),
   primary key (uuid)
) charset=utf8 ENGINE=InnoDB;
View Code

相关文章:

  • 2021-05-15
  • 2022-12-23
  • 2021-10-05
  • 2021-04-27
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
猜你喜欢
  • 2022-12-23
  • 2021-08-21
  • 2021-10-10
  • 2022-12-23
  • 2021-05-28
  • 2022-12-23
  • 2021-05-05
相关资源
相似解决方案