Added *.egg to .gitignore.
[zzz-floof.git] / floof / model / art.py
index 8cfcd5a..517fea0 100644 (file)
@@ -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)