<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chyka</author_name>
  <author_url>https://blog.hatena.ne.jp/chyka/</author_url>
  <blog_title>Sing it out</blog_title>
  <blog_url>https://chyka.hatenablog.jp/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>SQLAlchemy</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>以下のサンプルでは、 各クラスについてidやテーブル名を定義するのが面倒なのでベースクラスを用意する。 from sqlalchemy.ext.declarative import declarative_base, declared_attr Base = declarative_base() class BaseModel(Base): # 継承してね __abstract__ = True # idはすべてのクラスで使うので id = Column(Integer, primary_key=True) # 例えば、__tablename__ = &quot;user&quot; と同じ @declared_…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchyka.hatenablog.jp%2Fentry%2F2016%2F01%2F18%2F012110&quot; title=&quot;SQLAlchemyでリレーション - Sing it out&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>2016-01-18 01:21:10</published>
  <title>SQLAlchemyでリレーション</title>
  <type>rich</type>
  <url>https://chyka.hatenablog.jp/entry/2016/01/18/012110</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
