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
340
なれる!データベース設計者
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
250
開発者生産性指標の可視化 / pepabo-four-keys
udzura
3
1.8k
Talk of RBS
udzura
0
480
Re: みなさん最近どうですか? / FGN tech meetup in 2021
udzura
0
820
Dockerとやわらかい仮想化 - ProSec-IT/SECKUN 2021 edition -
udzura
2
760
Device access filtering in cgroup v2
udzura
1
970
"Story of Rucy" on RubyKaigi takeout 2021
udzura
0
870
Other Decks in Education
See All in Education
アジャイルの知見から新卒研修作り、そして組織作り
pokotyamu
0
130
1111
cbtlibrary
0
250
学習指導要領と解説に基づく学習内容の構造化の試み / Course of study Commentary LOD JAET 2025
masao
0
110
俺と地方勉強会 - KomeKaigi・地方勉強会への期待 -
pharaohkj
1
1.6k
1202
cbtlibrary
0
190
Use Cases and Course Review - Lecture 8 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
1.3k
Web Search and SEO - Lecture 10 - Web Technologies (1019888BNR)
signer
PRO
2
3k
国際卓越研究大学計画|Science Tokyo(東京科学大学)
sciencetokyo
PRO
0
43k
滑空スポーツ講習会2025(実技講習)EMFT学科講習資料/JSA EMFT 2025
jsaseminar
0
150
核軍備撤廃に向けた次の大きな一歩─核兵器を先には使わないと核保有国が約束すること
hide2kano
0
200
AWS re_Invent に全力で参加したくて筋トレを頑張っている話
amarelo_n24
1
110
Going over the Edge
jonoalderson
0
260
Featured
See All Featured
How STYLIGHT went responsive
nonsquared
100
6k
Navigating Team Friction
lara
191
16k
Utilizing Notion as your number one productivity tool
mfonobong
2
190
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Into the Great Unknown - MozCon
thekraken
40
2.2k
Leo the Paperboy
mayatellez
0
1.3k
The Power of CSS Pseudo Elements
geoffreycrofte
80
6.1k
Reflections from 52 weeks, 52 projects
jeffersonlam
355
21k
The Language of Interfaces
destraynor
162
26k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
43
Transcript
できる! 「データベース設計」 データベースを制するものは Webアプリを制す?
レッスン1 • 「お買い物サイト」を考えてみよう • どんな「モノ」が登場しますか? – お客様? – 商品? –
注文内容?
レッスン2 • 「注文伝票」には どんな「項目」がありますか? • Excelのようなもので考えてみましょう – 注文者 – 日時
– 商品名 – 個数...
レッスン3 • さきほどの「注文伝票」を 「無駄なく」整理してみましょう • 整理して、先ほどの「登場人物」と 対応づけてみましょう
無駄なく整理 • このことをデータベースの言葉で 正規化 • と言います。最も基本的な操作です。
レッスン4 • さっき整理した「モデル」たちを 図にしてみよう • モデルたちの「関係」を図にします • 「ER図」と呼んだりします
関係とは? • 1:1 – ユーザー --- 所属会社 • 1:多(1:N) –
ユーザー --< 注文履歴 • 多:多(N:N) – ユーザー >-< フレンド
レッスン5 • さっき整理整頓した「モデル」を Railsのモデルにしてみましょう • (やっとコードが書けますね...!!!)
まとめ • データベースは、Webアプリケーションづくりの 心臓 • です! • 練習をすれば誰でも身に付くものなので、 いろいろなものを「データベース設計」 してみましょう。
参考資料 • 「らくらくERDレッスン」 (翔泳社)