granian+precommit
This commit is contained in:
@@ -9,17 +9,17 @@ from services.db import Base
|
||||
|
||||
|
||||
class InviteStatus(Enumeration):
|
||||
PENDING = "PENDING"
|
||||
ACCEPTED = "ACCEPTED"
|
||||
REJECTED = "REJECTED"
|
||||
PENDING = 'PENDING'
|
||||
ACCEPTED = 'ACCEPTED'
|
||||
REJECTED = 'REJECTED'
|
||||
|
||||
|
||||
class Invite(Base):
|
||||
__tablename__ = "invite"
|
||||
__tablename__ = 'invite'
|
||||
|
||||
inviter_id = Column(ForeignKey("author.id"), nullable=False, index=True)
|
||||
author_id = Column(ForeignKey("author.id"), nullable=False, index=True)
|
||||
shout_id = Column(ForeignKey("shout.id"), nullable=False, index=True)
|
||||
inviter_id = Column(ForeignKey('author.id'), nullable=False, index=True)
|
||||
author_id = Column(ForeignKey('author.id'), nullable=False, index=True)
|
||||
shout_id = Column(ForeignKey('shout.id'), nullable=False, index=True)
|
||||
status = Column(String, default=InviteStatus.PENDING.value)
|
||||
|
||||
inviter = relationship(Author, foreign_keys=[inviter_id])
|
||||
|
Reference in New Issue
Block a user