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/arcaea/orm.py

20 lines
413 B
Python
Raw Normal View History

2022-01-20 12:13:03 +00:00
from sqlalchemy import Column, String
2022-06-13 04:49:22 +00:00
from database.orm import Session
from database.orm_base import Base
table_prefix = 'module_arcaea_'
2022-06-13 04:49:22 +00:00
db = Session
session = db.session
engine = db.engine
class ArcBindInfo(Base):
__tablename__ = table_prefix + 'ArcBindInfo'
targetId = Column(String(512), primary_key=True)
username = Column(String(512))
friendcode = Column(String(512))
2022-06-13 04:49:22 +00:00
Session.create()