-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
export const mysql = { | ||
host: {mysql.host}, | ||
port: {mysql.port}, | ||
username: {mysql.username}, | ||
password: {mysql.password}, | ||
database: {mysql.database}, | ||
prefix: {mysql.prefix}, | ||
}; | ||
|
||
export const redis = { | ||
host: {redis.host}, | ||
port: {redis.port}, | ||
password: {redis.password}, | ||
}; | ||
|
||
export const upload = { | ||
storagePath: {upload.storagePath}, | ||
maxSize: {upload.maxSize}, | ||
allowedTypes: {upload.allowedTypes}, | ||
}; | ||
|
||
export const cookie = { | ||
prefix: {cookie.prefix}, | ||
domain: {cookie.domain}, | ||
path: {cookie.path}, | ||
}; | ||
|
||
export const password = { | ||
salt: {password.salt}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
export const mysql = { | ||
host: '127.0.0.1', | ||
port: '3306', | ||
username: 'root', | ||
password: 'root123456', | ||
database: 'nuecmstest', | ||
prefix: 'nc_', | ||
}; | ||
|
||
export const redis = { | ||
host: '127.0.0.1', | ||
port: '6379', | ||
password: '', | ||
}; | ||
|
||
export const upload = { | ||
storagePath: '/upload', | ||
maxSize: 10485760, | ||
allowedTypes: ['image/jpeg', 'image/png'], | ||
}; | ||
|
||
export const cookie = { | ||
prefix: 'ns', | ||
domain: '', | ||
path: '/', | ||
}; | ||
|
||
export const password = { | ||
salt: '103929ef', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
CREATE TABLE IF NOT EXISTS users ( | ||
id INT AUTO_INCREMENT PRIMARY KEY, | ||
username VARCHAR(255) NOT NULL, | ||
email VARCHAR(255) NOT NULL, | ||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP | ||
); | ||
|
||
INSERT INTO users (username, email) VALUES | ||
('john_doe', 'john@example.com'), | ||
('jane_smith', 'jane@example.com'); | ||
|
||
CREATE TABLE IF NOT EXISTS products ( | ||
id INT AUTO_INCREMENT PRIMARY KEY, | ||
name VARCHAR(255) NOT NULL, | ||
price DECIMAL(10, 2) NOT NULL, | ||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP | ||
); | ||
|
||
INSERT INTO products (name, price) VALUES | ||
('Product A', 19.99), | ||
('Product B', 29.99), | ||
('Product C', 39.99); | ||
|