X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/68a31d533aba7490c3f1f812075e8ab6eb9265d0..a6320cb2f534be334727ab46019748182782a83f:/floof/model/art.py diff --git a/floof/model/art.py b/floof/model/art.py index 8cfcd5a..517fea0 100644 --- a/floof/model/art.py +++ b/floof/model/art.py @@ -1,12 +1,11 @@ -from sqlalchemy import Column, ForeignKey -from sqlalchemy.orm import relation -from sqlalchemy.types import Integer, Unicode +# +# floof/floof/model/art.py +# +# Copyright (c) 2009 Scribblr +# -from floof.model import meta +from elixir import Entity, Field, Integer, Unicode -__all__ = ['Art'] +class Art(Entity): + title = Field(Unicode(120)) -class Art(meta.TableBase): - __tablename__ = 'art' - id = Column(Integer, primary_key=True) - title = Column(Unicode(length=120), nullable=False)