$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
なれる!データベース設計者
Search
KONDO Uchio
August 10, 2013
Education
1
330
なれる!データベース設計者
RG More! で見せた紙芝居
KONDO Uchio
August 10, 2013
Tweet
Share
More Decks by KONDO Uchio
See All by KONDO Uchio
大規模レガシーテストを 倒すための CI基盤の作り方 / #CICD2023
udzura
5
2.5k
Ruby x BPF in Action / RubyKaigi 2022
udzura
0
270
Narrative of Ruby & Rust
udzura
0
240
開発者生産性指標の可視化 / pepabo-four-keys
udzura
3
1.7k
Talk of RBS
udzura
0
470
Re: みなさん最近どうですか? / FGN tech meetup in 2021
udzura
0
820
Dockerとやわらかい仮想化 - ProSec-IT/SECKUN 2021 edition -
udzura
2
750
Device access filtering in cgroup v2
udzura
1
950
"Story of Rucy" on RubyKaigi takeout 2021
udzura
0
870
Other Decks in Education
See All in Education
Library Prefects 2025-2026
cbtlibrary
0
140
令和エンジニアの学習法 〜 生成AIを使って挫折を回避する 〜
moriga_yuduru
0
120
AIは若者の成長機会を奪うのか?
frievea
0
130
Adobe Express
matleenalaakso
1
8.1k
JavaScript - Lecture 6 - Web Technologies (1019888BNR)
signer
PRO
0
3.1k
CSS3 and Responsive Web Design - Lecture 5 - Web Technologies (1019888BNR)
signer
PRO
1
3k
バケットポリシーの記述を誤りマネコンからS3バケットを操作できなくなりそうになった話
amarelo_n24
1
140
相互コミュニケーションの難しさ
masakiokuda
0
310
ロータリー国際大会について~国際大会に参加しよう~:古賀 真由美 会員(2720 Japan O.K. ロータリーEクラブ・(有)誠邦産業 取締役)
2720japanoke
1
720
Introdución ás redes
irocho
0
500
Entrepreneurship minor course at HSE 2025
karlov
0
140
3Dプリンタでロボット作るよ#5_ロボット向け3Dプリンタ材料
shiba_8ro
0
120
Featured
See All Featured
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.5k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Mobile First: as difficult as doing things right
swwweet
225
10k
The World Runs on Bad Software
bkeepers
PRO
72
12k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
380
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
196
69k
Git: the NoSQL Database
bkeepers
PRO
432
66k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
Transcript
できる! 「データベース設計」 データベースを制するものは Webアプリを制す?
レッスン1 • 「お買い物サイト」を考えてみよう • どんな「モノ」が登場しますか? – お客様? – 商品? –
注文内容?
レッスン2 • 「注文伝票」には どんな「項目」がありますか? • Excelのようなもので考えてみましょう – 注文者 – 日時
– 商品名 – 個数...
レッスン3 • さきほどの「注文伝票」を 「無駄なく」整理してみましょう • 整理して、先ほどの「登場人物」と 対応づけてみましょう
無駄なく整理 • このことをデータベースの言葉で 正規化 • と言います。最も基本的な操作です。
レッスン4 • さっき整理した「モデル」たちを 図にしてみよう • モデルたちの「関係」を図にします • 「ER図」と呼んだりします
関係とは? • 1:1 – ユーザー --- 所属会社 • 1:多(1:N) –
ユーザー --< 注文履歴 • 多:多(N:N) – ユーザー >-< フレンド
レッスン5 • さっき整理整頓した「モデル」を Railsのモデルにしてみましょう • (やっとコードが書けますね...!!!)
まとめ • データベースは、Webアプリケーションづくりの 心臓 • です! • 練習をすれば誰でも身に付くものなので、 いろいろなものを「データベース設計」 してみましょう。
参考資料 • 「らくらくERDレッスン」 (翔泳社)