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
340
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
なれる!データベース設計者
RG More! で見せた紙芝居
KONDO Uchio
August 10, 2013
More Decks by KONDO Uchio
See All by KONDO Uchio
大規模レガシーテストを 倒すための CI基盤の作り方 / #CICD2023
udzura
5
2.6k
Ruby x BPF in Action / RubyKaigi 2022
udzura
0
310
Narrative of Ruby & Rust
udzura
0
270
開発者生産性指標の可視化 / pepabo-four-keys
udzura
3
1.8k
Talk of RBS
udzura
0
500
Re: みなさん最近どうですか? / FGN tech meetup in 2021
udzura
0
860
Dockerとやわらかい仮想化 - ProSec-IT/SECKUN 2021 edition -
udzura
2
810
Device access filtering in cgroup v2
udzura
1
1k
"Story of Rucy" on RubyKaigi takeout 2021
udzura
0
920
Other Decks in Education
See All in Education
Interaction - Lecture 10 - Information Visualisation (4019538FNR)
signer
PRO
0
2.6k
生成AI時代のエンジニア育成について考えてみた
akasan
0
140
The Lotus and the Frog
vyadav
0
110
勾配ブースティングと決定木の話 / gradient boosting and decision trees
kaityo256
PRO
6
1.3k
Lectura 1 (PIT : Python Basico)
robintux
0
350
吉祥寺.pmは1つじゃない — 複数イベント並走運営の12年 —
magnolia
0
1.3k
Πλουτοκρατία: Η Τυραννία του Μαμμωνά και η Μεταανθρώπινη Δουλεία
amethyst1
0
260
Course Review - Lecture 13 - Information Visualisation (4019538FNR)
signer
PRO
1
2.6k
Catecismo 26 #2 - Do Credo; Introdução ao 1º artigo
cm_manaus
0
110
0318
cbtlibrary
0
160
事業紹介資料(トレーナー養成講座)
kentaro1981
0
430
Padlet opetuksessa
matleenalaakso
12
15k
Featured
See All Featured
ラッコキーワード サービス紹介資料
rakko
1
3.5M
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
770
Tell your own story through comics
letsgokoyo
1
940
Become a Pro
speakerdeck
PRO
31
6k
Crafting Experiences
bethany
1
170
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
570
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.7k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
550
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.8k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
380
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
320
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Transcript
できる! 「データベース設計」 データベースを制するものは Webアプリを制す?
レッスン1 • 「お買い物サイト」を考えてみよう • どんな「モノ」が登場しますか? – お客様? – 商品? –
注文内容?
レッスン2 • 「注文伝票」には どんな「項目」がありますか? • Excelのようなもので考えてみましょう – 注文者 – 日時
– 商品名 – 個数...
レッスン3 • さきほどの「注文伝票」を 「無駄なく」整理してみましょう • 整理して、先ほどの「登場人物」と 対応づけてみましょう
無駄なく整理 • このことをデータベースの言葉で 正規化 • と言います。最も基本的な操作です。
レッスン4 • さっき整理した「モデル」たちを 図にしてみよう • モデルたちの「関係」を図にします • 「ER図」と呼んだりします
関係とは? • 1:1 – ユーザー --- 所属会社 • 1:多(1:N) –
ユーザー --< 注文履歴 • 多:多(N:N) – ユーザー >-< フレンド
レッスン5 • さっき整理整頓した「モデル」を Railsのモデルにしてみましょう • (やっとコードが書けますね...!!!)
まとめ • データベースは、Webアプリケーションづくりの 心臓 • です! • 練習をすれば誰でも身に付くものなので、 いろいろなものを「データベース設計」 してみましょう。
参考資料 • 「らくらくERDレッスン」 (翔泳社)