23 lines
700 B
Python
23 lines
700 B
Python
from sqlalchemy import Column, String, Integer, DateTime, func
|
|
from sqlalchemy.orm import declarative_base
|
|
|
|
|
|
Base = declarative_base()
|
|
|
|
ERROR_TYPE_CAPTCHA = 1
|
|
TOO_MANY_REQUEST_ERROR = 2
|
|
|
|
|
|
class ContactInErrorPojo(Base):
|
|
__tablename__ = "contacts_in_error"
|
|
id = Column(Integer, primary_key=True, autoincrement=True)
|
|
mail: str = Column(String)
|
|
phone: str = Column(String)
|
|
passport: str = Column(String)
|
|
last_name: str = Column(String)
|
|
first_name: str = Column(String)
|
|
ccid: str = Column(String)
|
|
position: int = Column(Integer)
|
|
error_type = Column(Integer)
|
|
update_at = Column(DateTime, onupdate=func.now())
|
|
create_at = Column(DateTime, default=func.now()) |