<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ypooo</author_name>
  <author_url>https://blog.hatena.ne.jp/ypooo/</author_url>
  <blog_title>ypooo’s diary</blog_title>
  <blog_url>https://ypooo.hatenablog.com/</blog_url>
  <categories>
    <anon>Elixir</anon>
    <anon>関数型</anon>
    <anon>Reddit</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>ypooo.hatenablog.com 第2章 データベース設計とマイグレーション（前編） 2-1 テーブル設計の考え方 データベースの設計はアプリの土台です。後から変更するとコード全体に影響が出るため、実装前にしっかり考えます。 このアプリでは以下の7つのテーブルを使います。 テーブル 役割 users ユーザーアカウント・Karma subreddits コミュニティ subreddit_members ユーザーとコミュニティの参加関係 posts 投稿（テキスト・リンク） comments コメント・返信 votes 投票（投稿とコメント両方に対応） reports 報告 テーブルの依…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fypooo.hatenablog.com%2Fentry%2F2026%2F05%2F04%2F060312&quot; title=&quot;Reddit クローンで学ぶ Elixir / Phoenix 第2章　 - ypooo’s diary&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-05-04 06:03:12</published>
  <title>Reddit クローンで学ぶ Elixir / Phoenix 第2章　</title>
  <type>rich</type>
  <url>https://ypooo.hatenablog.com/entry/2026/05/04/060312</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
