Skip to content

Commit

Permalink
DiscordUserActivity - add user_id index
Browse files Browse the repository at this point in the history
  • Loading branch information
robwaz committed Oct 9, 2024
1 parent 4b48cb6 commit 1f5c3ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dojo_plugin/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ class SSHKeys(db.Model):
class DiscordUserActivity(db.Model):
__tablename__ = "discord_user_activity"
id = db.Column(db.Integer, primary_key=True)
user_id = db.Column(db.BigInteger)
user_id = db.Column(db.BigInteger, index=True)
source_user_id = db.Column(db.BigInteger)
timestamp = db.Column(db.DateTime, default=datetime.datetime.utcnow)
type = db.Column(db.String(80), index=True)
Expand Down

0 comments on commit 1f5c3ae

Please sign in to comment.