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