summaryrefslogtreecommitdiff
path: root/shopdb/_customer.py
blob: 05447b54cadbff5635df4a6520439756ff6c70f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)