Skip to content

Commit 067d73a

Browse files
authored
Feature 188 (#57)
* change version to 1.1.0 * change version to 1.1.0 * add hook_type -> strategy field * change version * sensetive-info * change related name to fix confilct * change related name to fix confilct * change related name to fix confilct * attr fix * add db_column "value" as id , logi_id -> db_column "id" * strategy in vul
1 parent fa77c5a commit 067d73a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dongtai/models/vulnerablity.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from dongtai.models.agent import IastAgent
44
from dongtai.models.vul_level import IastVulLevel
55
from dongtai.utils.settings import get_managed
6+
from dongtai.models.strategy import IastStrategyModel
67
from dongtai.models.hook_type import HookType
78
class IastVulnerabilityStatus(models.Model):
89
name = models.CharField(max_length=100, blank=True, default='')
@@ -36,6 +37,10 @@ class IastVulnerabilityModel(models.Model):
3637
client_ip = models.CharField(max_length=255, blank=True, null=True)
3738
param_name = models.CharField(max_length=255, blank=True, null=True)
3839
method_pool_id = models.IntegerField(max_length=11, blank=True, null=True)
40+
strategy = models.ForeignKey(IastStrategyModel,
41+
on_delete=models.DO_NOTHING,
42+
db_constraint=False,
43+
db_column='strategy_id')
3944
hook_type = models.ForeignKey(HookType,
4045
on_delete=models.DO_NOTHING,
4146
db_constraint=False,

0 commit comments

Comments
 (0)