0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

データベース(DB)設計のメモ

0
Last updated at Posted at 2020-01-02

ERDのモデル例を見れるサイトのリンク

google画像検索

キーワード: website database design examples
https://www.google.com/search?sxsrf=ACYBGNRlOq_4PwjFipAtMWIwt-BN0jFIDQ:1578393794369&q=website+database+design+examples&tbm=isch&source=univ&sa=X&ved=2ahUKEwjdi7eLp_HmAhUZPnAKHfkXCaIQsAR6BAgKEAE&biw=1920&bih=1097#imgrc=GVxkn9Ua-8RSHM:

VisualParadigm.com

youtubeの動画を観て5分でER図つくった。超楽ちん!

https://www.youtube.com/watch?v=UI6lqHOVHic&list=PLUoebdZqEHTwbYD8oo6Wr81Xb7uCAh_oz
IMG_20200102_172102.jpg

ダイアグラムのテンプレート

https://www.lucidchart.com/pages/templates
5b99a7c6-ee3a-44b9-99e5-4dc7242e01bb.png

エンティティの出し方

1. まず核となるものから考える。学校で例えると生徒とか先生とか講義とか。
2. あとは芋づる式に想起していけばよい。
3. これといったやり方はないので手を動かす。

リレーションの結び方

3人称単数で考えて、理にかなうか考えるだけ。これも正解はないので適当に決めたら良い。下記に例を挙げてみる。

一人の生徒からみてクラスは1つ

○ Aくんは3年B組だ
☓ Aくんは3年B組とC組だ

1つのクラスには複数の生徒がいる

○ 3年B組にはAくん、Bくん、Cくん...Nくんがいる
☓ 3年B組とC組にはAくんがいる

簡単だね!!もうなんでもつくれるよね?
Dontウォーリーだね!これで僕もあなたも週1ペースでぱっぱっと開発できちゃいそうだね!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?