consistency

master
Aevann 2024-06-06 15:33:51 +03:00
parent d06d923e97
commit 6d378fc331
3 changed files with 5 additions and 5 deletions

View File

@ -32,7 +32,7 @@ class Badge(Base):
__tablename__ = "badges" __tablename__ = "badges"
user_id = Column(Integer, ForeignKey('users.id'), primary_key=True) user_id = Column(Integer, ForeignKey("users.id"), primary_key=True)
badge_id = Column(Integer, ForeignKey('badge_defs.id'), primary_key=True) badge_id = Column(Integer, ForeignKey('badge_defs.id'), primary_key=True)
description = Column(String) description = Column(String)
url = Column(String) url = Column(String)

View File

@ -15,7 +15,7 @@ class HatDef(Base):
id = Column(Integer, primary_key=True) id = Column(Integer, primary_key=True)
name = Column(String) name = Column(String)
description = Column(String) description = Column(String)
author_id = Column(Integer, ForeignKey('users.id')) author_id = Column(Integer, ForeignKey("users.id"))
price = Column(Integer) price = Column(Integer)
submitter_id = Column(Integer, ForeignKey("users.id")) submitter_id = Column(Integer, ForeignKey("users.id"))
created_utc = Column(Integer) created_utc = Column(Integer)
@ -48,7 +48,7 @@ class HatDef(Base):
class Hat(Base): class Hat(Base):
__tablename__ = "hats" __tablename__ = "hats"
user_id = Column(Integer, ForeignKey('users.id'), primary_key=True) user_id = Column(Integer, ForeignKey("users.id"), primary_key=True)
hat_id = Column(Integer, ForeignKey('hat_defs.id'), primary_key=True) hat_id = Column(Integer, ForeignKey('hat_defs.id'), primary_key=True)
equipped = Column(Boolean, default=False) equipped = Column(Boolean, default=False)
created_utc = Column(Integer) created_utc = Column(Integer)

View File

@ -11,8 +11,8 @@ from files.helpers.sorting_and_time import make_age_string
class ViewerRelationship(Base): class ViewerRelationship(Base):
__tablename__ = "viewers" __tablename__ = "viewers"
user_id = Column(Integer, ForeignKey('users.id'), primary_key=True) user_id = Column(Integer, ForeignKey("users.id"), primary_key=True)
viewer_id = Column(Integer, ForeignKey('users.id'), primary_key=True) viewer_id = Column(Integer, ForeignKey("users.id"), primary_key=True)
last_view_utc = Column(Integer) last_view_utc = Column(Integer)
created_utc = Column(Integer) created_utc = Column(Integer)