Skip to content

Commit

Permalink
Property refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Jan 5, 2021
1 parent adb899f commit 38dd963
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion thehive/app/org/thp/thehive/models/Audit.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,15 @@ import org.thp.scalligraph.{BuildEdgeEntity, BuildVertexEntity, EntityId}
@BuildEdgeEntity[Audit, User]
case class AuditUser()

@DefineIndex(IndexType.basic, "requestId", "mainAction")
@BuildVertexEntity
@DefineIndex(IndexType.basic, "requestId", "mainAction")
@DefineIndex(IndexType.standard, "requestId")
@DefineIndex(IndexType.standard, "action")
@DefineIndex(IndexType.standard, "mainAction")
@DefineIndex(IndexType.standard, "objectId")
@DefineIndex(IndexType.standard, "objectType")
@DefineIndex(IndexType.standard, "_createdAt")
@DefineIndex(IndexType.standard, "_updatedAt")
case class Audit(
requestId: String,
action: String,
Expand Down

0 comments on commit 38dd963

Please sign in to comment.