diff --git a/app/repositories/addition/scores_foreign.py b/app/repositories/addition/scores_foreign.py new file mode 100644 index 00000000..6690146d --- /dev/null +++ b/app/repositories/addition/scores_foreign.py @@ -0,0 +1,13 @@ +from app.state.services import orm_base +from sqlalchemy import Column, Integer, String, Boolean, DateTime, text + +class ScoresForeign(orm_base): + __tablename__ = "scores_foreign" + + id = Column(Integer, primary_key=True) + server = Column(String(32), nullable=False) + original_score_id = Column(Integer, nullable=False) + original_player_id = Column(Integer, nullable=False) + recipient_id = Column(Integer, nullable=False) + has_replay = Column(Boolean, nullable=False) + receipt_time = Column(DateTime, nullable=False, server_default=text("now()")) \ No newline at end of file diff --git a/app/repositories/addition/scores_suspicion.py b/app/repositories/addition/scores_suspicion.py new file mode 100644 index 00000000..247e1364 --- /dev/null +++ b/app/repositories/addition/scores_suspicion.py @@ -0,0 +1,11 @@ +from app.state.services import orm_base +from sqlalchemy import Column, Integer, String, Boolean, DateTime, JSON, text + +class ScoresSuspicion(orm_base): + __tablename__ = "scores_suspicion" + + score_id = Column(Integer, primary_key=True) + suspicion_reason = Column(String(128), nullable=False) + ignored = Column(Boolean, nullable=False, default=False) + circleguard_detail = Column(JSON, nullable=True) + datetime = Column(DateTime, nullable=False, server_default=text("now()")) \ No newline at end of file diff --git a/app/repositories/addition/username_history.py b/app/repositories/addition/username_history.py new file mode 100644 index 00000000..94e48115 --- /dev/null +++ b/app/repositories/addition/username_history.py @@ -0,0 +1,9 @@ +from app.state.services import orm_base +from sqlalchemy import Column, Integer, String, DateTime, text + +class UsernameHistory(orm_base): + __tablename__ = "username_history" + + user_id = Column(Integer, primary_key=True) + change_date = Column(DateTime, primary_key=True, nullable=False, server_default=text("now()")) + username = Column(String(32), nullable=False) \ No newline at end of file