171f3c840d
1. Sync BotArcAPIv5 changes 2. Add support for ArcaeaLimitedAPI by Lowiro - ArcaeaLimitedAPI is now preferred, and use BotArcAPI when an error occurs or unofficial option is specified 3. ~arcaea bind & ~cytoid bind command
20 lines
543 B
Python
20 lines
543 B
Python
from sqlalchemy import Column, String, Text, TIMESTAMP, text
|
|
from sqlalchemy.dialects.mysql import LONGTEXT
|
|
from sqlalchemy.ext.declarative import declarative_base
|
|
|
|
from database.orm import DBSession
|
|
|
|
Base = declarative_base()
|
|
table_prefix = 'module_cytoid_'
|
|
db = DBSession()
|
|
session = db.session
|
|
engine = db.engine
|
|
|
|
|
|
class CytoidBindInfo(Base):
|
|
__tablename__ = table_prefix + 'CytoidBindInfo'
|
|
targetId = Column(String(512), primary_key=True)
|
|
username = Column(String(512))
|
|
|
|
|
|
Base.metadata.create_all(bind=engine, checkfirst=True)
|