Skip to content

Commit fd168d3

Browse files
committed
refactor: 重构文件目录
1 parent a7dd881 commit fd168d3

File tree

764 files changed

+87
-31
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

764 files changed

+87
-31
lines changed

README.md

Lines changed: 37 additions & 31 deletions

infra/.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.sql

infra/.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"editor.formatOnSave": true
3+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

infra/database/mysql/template.sql

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
-- ----------------------------
2+
-- root/root@mysql
3+
-- ----------------------------
4+
-- 创建 test 数据库
5+
DROP DATABASE IF EXISTS cs_test;
6+
CREATE DATABASE cs_test;
7+
8+
-- 配置使用 Test 数据库
9+
use cs_test;
10+
SET NAMES utf8;
11+
SET FOREIGN_KEY_CHECKS = 0;
12+
13+
-- ----------------------------
14+
-- Table structure for `user`
15+
-- ----------------------------
16+
DROP TABLE IF EXISTS `user`;
17+
CREATE TABLE `user` (
18+
`_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '_ID,内部自增编号',
19+
`uuid` varchar(40) DEFAULT NULL,
20+
`name` varchar(32) DEFAULT NULL,
21+
`password` varchar(64) DEFAULT NULL,
22+
`salt` varchar(64) DEFAULT NULL,
23+
`created_at` datetime DEFAULT NULL,
24+
`updated_at` datetime DEFAULT NULL,
25+
`deleted_at` datetime DEFAULT NULL,
26+
PRIMARY KEY (`_id`),
27+
KEY `uuid` (`uuid`)
28+
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4;
29+
30+
-- ----------------------------
31+
-- Table structure for `product`
32+
-- ----------------------------
33+
DROP TABLE IF EXISTS `product`;
34+
CREATE TABLE `product` (
35+
`_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '_ID,内部自增编号',
36+
`code` varchar(6) DEFAULT NULL,
37+
`name` varchar(15) DEFAULT NULL,
38+
`price` DECIMAL(4,2) DEFAULT NULL,
39+
`created_at` datetime DEFAULT NULL,
40+
`updated_at` datetime DEFAULT NULL,
41+
`deleted_at` datetime DEFAULT NULL,
42+
PRIMARY KEY (`_id`),
43+
KEY `code` (`code`)
44+
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4;
45+
46+
SET FOREIGN_KEY_CHECKS = 1;
File renamed without changes.

0 commit comments

Comments
 (0)