{"description":"\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u3001 \u5404\u30af\u30e9\u30b9\u306b\u3064\u3044\u3066id\u3084\u30c6\u30fc\u30d6\u30eb\u540d\u3092\u5b9a\u7fa9\u3059\u308b\u306e\u304c\u9762\u5012\u306a\u306e\u3067\u30d9\u30fc\u30b9\u30af\u30e9\u30b9\u3092\u7528\u610f\u3059\u308b\u3002 from sqlalchemy.ext.declarative import declarative_base, declared_attr Base = declarative_base() class BaseModel(Base): # \u7d99\u627f\u3057\u3066\u306d __abstract__ = True # id\u306f\u3059\u3079\u3066\u306e\u30af\u30e9\u30b9\u3067\u4f7f\u3046\u306e\u3067 id = Column(Integer, primary_key=True) # \u4f8b\u3048\u3070\u3001__tablename__ = \"user\" \u3068\u540c\u3058 @declared_\u2026","author_url":"https://blog.hatena.ne.jp/chyka/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchyka.hatenablog.jp%2Fentry%2F2016%2F01%2F18%2F012110\" title=\"SQLAlchemy\u3067\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3 - Sing it out\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","height":"190","published":"2016-01-18 01:21:10","title":"SQLAlchemy\u3067\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3","provider_url":"https://hatena.blog","image_url":null,"blog_title":"Sing it out","version":"1.0","author_name":"chyka","type":"rich","width":"100%","categories":["Python","SQLAlchemy","\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"blog_url":"https://chyka.hatenablog.jp/","url":"https://chyka.hatenablog.jp/entry/2016/01/18/012110"}