yeti-platform / yeti

Your Everyday Threat Intelligence
https://yeti-platform.io/
Apache License 2.0
1.74k stars 287 forks source link

Link to count #1130

Closed udgover closed 2 months ago

udgover commented 2 months ago

This PR adds count attribute to Relationship model. It is used to track how many time a link has been created between two objects.

In the model, the count is set to one by default to reflect database migration. Indeed, since count didn't exit in previous version, this fields would be set to zero which is non-sense since at least one relation exists.

sebdraven commented 2 months ago

Thanks !