<?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 第3章 Ecto スキーマ（前編） 3-1 Ecto スキーマとは マイグレーションで作ったテーブルはまだ「データベースの中の表」にすぎません。Elixir のコードからテーブルを操作するには、テーブルと Elixir の構造体を対応させる必要があります。その対応を定義するのが Ecto スキーマです。 Ecto スキーマには3つの役割があります。 役割① テーブルと構造体の対応 schema &quot;users&quot; do field :username, :string field :email, :string end これを書くと、DB の users …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fypooo.hatenablog.com%2Fentry%2F2026%2F05%2F05%2F112943&quot; title=&quot;Reddit クローンで学ぶ Elixir / Phoenix 第3章 - 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-05 11:29:43</published>
  <title>Reddit クローンで学ぶ Elixir / Phoenix 第3章</title>
  <type>rich</type>
  <url>https://ypooo.hatenablog.com/entry/2026/05/05/112943</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
