summaryrefslogtreecommitdiff
path: root/shopdb/_staff.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/_staff.py
parent0a526a560a44581047970a6f1057ca1d283499d9 (diff)
coloring
Diffstat (limited to 'shopdb/_staff.py')
-rw-r--r--shopdb/_staff.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/shopdb/_staff.py b/shopdb/_staff.py
new file mode 100644
index 0000000..27e1944
--- /dev/null
+++ b/shopdb/_staff.py
@@ -0,0 +1,14 @@
+__all__ = ["Staff"]
+
+
+from sqlalchemy import Column, Integer, String
+from ._base import Base, engine
+
+
+class Staff(Base):
+ __tablename__ = 'staff'
+ id = Column(Integer, primary_key=True)
+ name = Column(String)
+
+ def __repr__(self):
+ return "<Staff(name='%s')>" % (self.name)