Sindbad~EG File Manager
from sqlalchemy import create_engine, MetaData, Table, insert, select,update,delete,text
from sqlalchemy.sql import and_, or_
from core import app
from flask import session
import json
from .. import engine,engine_conf_db
# engine = create_engine(app.config['DATABASE_URI'])
# engine = create_engine(app.config['DATABASE_URI'],pool_size=5000,pool_pre_ping=True,pool_recycle=3600)
# engine_conf_db = create_engine(app.config['DATABASE_URI_CONF'],pool_pre_ping=True,pool_recycle=3600)
class SeniorMemberRegModel():
def __init__(self):
try:
self.meta = MetaData()
self.users = Table("users", self.meta, autoload=True, autoload_with=engine)
self.states = Table("states", self.meta, autoload=True, autoload_with=engine)
self.conference = Table("conference", self.meta, autoload=True, autoload_with=engine)
self.user_payment = Table("user_payment", self.meta, autoload=True, autoload_with=engine)
self.user_types = Table("user_types", self.meta, autoload=True, autoload_with=engine)
# self.registration_type = Table("user_type", self.meta, autoload=True, autoload_with=engine)
self.logs = Table("logs", self.meta, autoload=True, autoload_with=engine)
self.delegates = Table("delegates", self.meta, autoload=True, autoload_with=engine)
# self.bo_users = Table("bo_users", self.meta, autoload=True, autoload_with=engine)
self.delegates_addons = Table("delegates_addons", self.meta, autoload=True, autoload_with=engine)
self.m_payment_type = Table("m_payment_type", self.meta, autoload=True, autoload_with=engine)
self.delegate_attachments = Table("delegate_attachments", self.meta, autoload=True, autoload_with=engine)
self.society_applications = Table("society_applications", self.meta, autoload=True, autoload_with=engine)
self.delegate_user_logs = Table("delegate_user_logs", self.meta, autoload=True, autoload_with=engine)
self.payment_logs = Table("payment_logs", self.meta, autoload=True, autoload_with=engine)
self.users_logs = Table("users_logs", self.meta, autoload=True, autoload_with=engine_conf_db)
self.mandrill_mail_logs = Table("mandrill_mail_logs", self.meta, autoload=True, autoload_with=engine_conf_db)
self.mandrill_otp_mail_logs = Table("mandrill_otp_mail_logs", self.meta, autoload=True, autoload_with=engine_conf_db)
except Exception as e:
print("table not found",e)
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists