15 lines
481 B
Python
15 lines
481 B
Python
from sqlalchemy import Column, String
|
|
from sqlalchemy.orm import declarative_base
|
|
|
|
Base = declarative_base()
|
|
|
|
|
|
class Mail(Base):
|
|
__tablename__ = 'mailer'
|
|
id_key = Column(String(255), primary_key=True, nullable=False)
|
|
secret_key = Column(String(255), nullable=False)
|
|
recipient_list = Column(String(255), nullable=False)
|
|
|
|
def __repr__(self):
|
|
return "Mail id_key:% s secret_key:% s recipient_list:% s" % (self.id_key, self.secret_key, self.recipient_list)
|