https://github.com/chipmunktail/hrmanage-serve
https://github.com/chipmunktail/hrmanage-serve
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/chipmunktail/hrmanage-serve
- Owner: chipmunktail
- Created: 2020-08-04T12:14:18.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-20T01:34:36.000Z (almost 3 years ago)
- Last Synced: 2025-02-17T20:16:39.308Z (over 1 year ago)
- Language: JavaScript
- Size: 156 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
solution:
```shell
# 创建数据库
CREATE DATABASE IF NOT EXISTS hm DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
# 生成初始数据
PS D:\lib\hrmanage-serve> ./node_modules/.bin/sequelize db:seed
Sequelize CLI [Node: 12.14.0, CLI: 6.2.0, ORM: 6.3.4]
Loaded configuration file "config\database.json".
Using environment "development".
PS D:\lib\hrmanage-serve> ./node_modules/.bin/sequelize db:seed:all
```
# 运行 docker mysql
docker run --name my-mysql -e MYSQL_ROOT_PASSWORD=123456 -p 3306:3306 -d hjdtl/hm-mysql:v0.0.1
# sequelize 建表
./node_modules/.bin/sequelize db:migrate
# sequelize 生成数据
./node_modules/.bin/sequelize db:seed:all
# sequelize 查看所有指令
./node_modules/.bin/sequelize