Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
なれる!データベース設計者
Search
KONDO Uchio
August 10, 2013
Education
1
310
なれる!データベース設計者
RG More! で見せた紙芝居
KONDO Uchio
August 10, 2013
Tweet
Share
More Decks by KONDO Uchio
See All by KONDO Uchio
大規模レガシーテストを 倒すための CI基盤の作り方 / #CICD2023
udzura
5
2.1k
Ruby x BPF in Action / RubyKaigi 2022
udzura
0
130
Narrative of Ruby & Rust
udzura
0
140
開発者生産性指標の可視化 / pepabo-four-keys
udzura
3
1.4k
Talk of RBS
udzura
0
310
Re: みなさん最近どうですか? / FGN tech meetup in 2021
udzura
0
640
Dockerとやわらかい仮想化 - ProSec-IT/SECKUN 2021 edition -
udzura
2
580
Device access filtering in cgroup v2
udzura
1
670
"Story of Rucy" on RubyKaigi takeout 2021
udzura
0
570
Other Decks in Education
See All in Education
STEAM教育の枠組で行うプログラミング学習
asial_edu
0
210
Pre-enrollment Information for UTokyo International Students
utokyoissr2360
0
4.8k
生成AIを活用できる大学教職員になる-基本と実践-
gmoriki
0
300
Родина моя Беларусь в лицах
programmer_sch2np
0
160
Copilotとして理解する生成AI利用の基本
gmoriki
0
140
自由の森学園学校紹介資料
jiyunomori
0
1.6k
人生の転機からチャンスを掴む「シュロスバーグの4Sモデル」/4s-models
yuko_yokouchi
2
720
D&I推進レポート〜テクノロジー分野のジェンダーギャップとその取り組みについて〜
codeforeveryone
1
900
論文の読み方 / How to survey
kaityo256
PRO
175
120k
LTをすべき100の理由
eltociear
1
280
Earthquake and Disaster Prevention Information for UTokyo International Students
utokyoissr2360
0
630
Interactive Tabletops and Surfaces - Lecture 7 - Next Generation User Interfaces (4018166FNR)
signer
PRO
1
1.2k
Featured
See All Featured
How to Ace a Technical Interview
jacobian
272
22k
Happy Clients
brianwarren
92
6.4k
We Have a Design System, Now What?
morganepeng
43
6.8k
Facilitating Awesome Meetings
lara
42
5.6k
The Brand Is Dead. Long Live the Brand.
mthomps
49
29k
The Power of CSS Pseudo Elements
geoffreycrofte
60
5k
Side Projects
sachag
451
41k
The Invisible Side of Design
smashingmag
294
49k
In The Pink: A Labor of Love
frogandcode
138
21k
Gamification - CAS2011
davidbonilla
76
4.6k
What's new in Ruby 2.0
geeforr
337
31k
Bash Introduction
62gerente
604
210k
Transcript
できる! 「データベース設計」 データベースを制するものは Webアプリを制す?
レッスン1 • 「お買い物サイト」を考えてみよう • どんな「モノ」が登場しますか? – お客様? – 商品? –
注文内容?
レッスン2 • 「注文伝票」には どんな「項目」がありますか? • Excelのようなもので考えてみましょう – 注文者 – 日時
– 商品名 – 個数...
レッスン3 • さきほどの「注文伝票」を 「無駄なく」整理してみましょう • 整理して、先ほどの「登場人物」と 対応づけてみましょう
無駄なく整理 • このことをデータベースの言葉で 正規化 • と言います。最も基本的な操作です。
レッスン4 • さっき整理した「モデル」たちを 図にしてみよう • モデルたちの「関係」を図にします • 「ER図」と呼んだりします
関係とは? • 1:1 – ユーザー --- 所属会社 • 1:多(1:N) –
ユーザー --< 注文履歴 • 多:多(N:N) – ユーザー >-< フレンド
レッスン5 • さっき整理整頓した「モデル」を Railsのモデルにしてみましょう • (やっとコードが書けますね...!!!)
まとめ • データベースは、Webアプリケーションづくりの 心臓 • です! • 練習をすれば誰でも身に付くものなので、 いろいろなものを「データベース設計」 してみましょう。
参考資料 • 「らくらくERDレッスン」 (翔泳社)