From be8b011c9c4c44f8de99d5cf19ebd1dae5b7dfe9 Mon Sep 17 00:00:00 2001 From: Blaise Thompson Date: Tue, 12 Nov 2019 08:32:41 -0600 Subject: coloring --- shopdb/_staff.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 shopdb/_staff.py (limited to 'shopdb/_staff.py') 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 "" % (self.name) -- cgit v1.2.3