sneed
This commit is contained in:
parent
242fb8414e
commit
fe8c633f30
949 changed files with 200 additions and 200 deletions
15
drama/classes/alts.py
Normal file
15
drama/classes/alts.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
from sqlalchemy import *
|
||||
from drama.__main__ import Base
|
||||
|
||||
|
||||
class Alt(Base):
|
||||
__tablename__ = "alts"
|
||||
|
||||
id = Column(Integer, primary_key=True)
|
||||
user1 = Column(Integer, ForeignKey("users.id"))
|
||||
user2 = Column(Integer, ForeignKey("users.id"))
|
||||
is_manual = Column(Boolean, default=False)
|
||||
|
||||
def __repr__(self):
|
||||
|
||||
return f"<Alt(id={self.id})>"
|
Loading…
Add table
Add a link
Reference in a new issue