summaryrefslogtreecommitdiff
path: root/shopdb/_customer.py
diff options
context:
space:
mode:
Diffstat (limited to 'shopdb/_customer.py')
-rw-r--r--shopdb/_customer.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/shopdb/_customer.py b/shopdb/_customer.py
new file mode 100644
index 0000000..05447b5
--- /dev/null
+++ b/shopdb/_customer.py
@@ -0,0 +1,16 @@
+__all__ = ["Customer"]
+
+
+from sqlalchemy import Column, Integer, String, Table
+from ._base import Base, engine
+
+
+class Customer(Base):
+ __tablename__ = 'customers'
+ id = Column(Integer, primary_key=True)
+ name = Column(String)
+ email = Column(String)
+ room = Column(String)
+
+ def __repr__(self):
+ return "<Customer(name='%s')>" % (self.name)