summaryrefslogtreecommitdiff
path: root/shopdb/_group.py
diff options
context:
space:
mode:
authorBlaise Thompson <blaise@untzag.com>2019-11-12 08:32:41 -0600
committerBlaise Thompson <blaise@untzag.com>2019-11-12 08:32:41 -0600
commitbe8b011c9c4c44f8de99d5cf19ebd1dae5b7dfe9 (patch)
treebcbb5b931f6fb8649c20f435c7d8c28ea7ff99a3 /shopdb/_group.py
parent0a526a560a44581047970a6f1057ca1d283499d9 (diff)
coloring
Diffstat (limited to 'shopdb/_group.py')
-rw-r--r--shopdb/_group.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/shopdb/_group.py b/shopdb/_group.py
new file mode 100644
index 0000000..f79d446
--- /dev/null
+++ b/shopdb/_group.py
@@ -0,0 +1,15 @@
+__all__ = ["Group"]
+
+
+from sqlalchemy import Column, Integer, String
+from sqlalchemy.orm import relationship
+from ._base import Base, engine
+
+
+class Group(Base):
+ __tablename__ = 'groups'
+ id = Column(Integer, primary_key=True)
+ name = Column(String)
+
+ def __repr__(self):
+ return "<Group(name='%s')>" % (self.name)