https://github.com/treetips/treetips-db-definition-example
DB定義指針
https://github.com/treetips/treetips-db-definition-example
db-design gitbook java mysql
Last synced: 3 months ago
JSON representation
DB定義指針
- Host: GitHub
- URL: https://github.com/treetips/treetips-db-definition-example
- Owner: treetips
- Created: 2019-04-03T03:43:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-03T05:31:37.000Z (over 7 years ago)
- Last Synced: 2025-06-08T01:42:51.033Z (about 1 year ago)
- Topics: db-design, gitbook, java, mysql
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DB定義指針
DB定義をする際に発生する以下の問題を解消するため、本書をまとめています。
- テーブル名・カラム名がバラバラ
- テーブル名・カラム名から内容が推測できない
- テーブル・カラムの命名のルールが解らない
- 2択にならないフラグがある
- 日付系カラムが全部datetimeになっている
- 大文字・小文字を区別して検索できない
- 意図しないデータが将来的に混入するかもしれない
## ローカル環境構築
```sh
# git cloneする
git clone https://github.com/treetips/treetips-db-definition-example.git
# node_modulesをインストールする
cd treetips-db-definition-example
npm i
# gitbookを起動する
npm start
```
## productionデプロイ
```sh
# gitbookをビルドしてhtmlを出力する
npm build
```
htmlを出力し、AmzonS3等にアップロードします。