Future 3 years ago
parent
commit
7067a57939

+ 7 - 7
src/main/resources/DataBase.sql

@@ -21,14 +21,14 @@ create table if not exists user_cart
 (
     user_Cart_Id bigint not null primary key,
     password varchar(16) not null,
-    permission int not null default 0,
+    permission int not null default 0
 );
 
 create table if not exists user_collect
 (
     user_collect_Id bigint not null primary key,
     password varchar(16) not null,
-    permission int not null default 0,
+    permission int not null default 0
 );
 
 
@@ -44,7 +44,7 @@ create table if not exists store
     postion varchar(100) not null,
     name varchar(50) not null,
     star int
-)
+);
 
 create table if not exists goods
 (
@@ -52,20 +52,20 @@ create table if not exists goods
     postion varchar(100) not null,
     name varchar(50) not null,
     star int
-)
+);
 
 create table if not exists selectionGroup
 (
     selection_group_id bigint not null primary key,
-    name varchar(50) not null,
-)
+    name varchar(50) not null
+);
 
 create table if not exists selection
 (
     selection_id bigint not null primary key,
     name varchar(50) not null,
     price float(13,2)
-)
+);
 
 
 /*  node*/

+ 1 - 1
src/main/resources/db.properties

@@ -1,4 +1,4 @@
 jdbc.driver=com.mysql.jdbc.Driver
-jdbc.url=jdbc:mysql://localhost:3306/dsnodetree
+jdbc.url=jdbc:mysql://localhost:3306/ShoppingWebsite
 jdbc.username=root
 jdbc.password=123456

+ 7 - 7
target/classes/DataBase.sql

@@ -21,14 +21,14 @@ create table if not exists user_cart
 (
     user_Cart_Id bigint not null primary key,
     password varchar(16) not null,
-    permission int not null default 0,
+    permission int not null default 0
 );
 
 create table if not exists user_collect
 (
     user_collect_Id bigint not null primary key,
     password varchar(16) not null,
-    permission int not null default 0,
+    permission int not null default 0
 );
 
 
@@ -44,7 +44,7 @@ create table if not exists store
     postion varchar(100) not null,
     name varchar(50) not null,
     star int
-)
+);
 
 create table if not exists goods
 (
@@ -52,20 +52,20 @@ create table if not exists goods
     postion varchar(100) not null,
     name varchar(50) not null,
     star int
-)
+);
 
 create table if not exists selectionGroup
 (
     selection_group_id bigint not null primary key,
-    name varchar(50) not null,
-)
+    name varchar(50) not null
+);
 
 create table if not exists selection
 (
     selection_id bigint not null primary key,
     name varchar(50) not null,
     price float(13,2)
-)
+);
 
 
 /*  node*/

+ 1 - 1
target/classes/db.properties

@@ -1,4 +1,4 @@
 jdbc.driver=com.mysql.jdbc.Driver
-jdbc.url=jdbc:mysql://localhost:3306/dsnodetree
+jdbc.url=jdbc:mysql://localhost:3306/ShoppingWebsite
 jdbc.username=root
 jdbc.password=123456