Archived
1
0
Fork 0
This repository has been archived on 2024-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
akari-bot/modules/phigros/orm.py

20 lines
417 B
Python
Raw Normal View History

from sqlalchemy import Column, String
2023-04-26 17:25:03 +00:00
from database.orm import Session
from database.orm_base import Base
table_prefix = 'module_phigros_'
db = Session
session = db.session
engine = db.engine
class PgrBindInfo(Base):
__tablename__ = table_prefix + 'PgrBindInfo'
2023-09-01 14:38:32 +00:00
target_id = Column(String(512), primary_key=True)
2023-04-26 17:25:03 +00:00
sessiontoken = Column(String(512))
2023-04-29 08:19:10 +00:00
username = Column(String(512))
2023-04-26 17:25:03 +00:00
Session.create()