Skip to content

Commit

Permalink
Feature 188 (#57)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Bidaya0 authored Nov 20, 2021
1 parent fa77c5a commit 067d73a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dongtai/models/vulnerablity.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from dongtai.models.agent import IastAgent
from dongtai.models.vul_level import IastVulLevel
from dongtai.utils.settings import get_managed
from dongtai.models.strategy import IastStrategyModel
from dongtai.models.hook_type import HookType
class IastVulnerabilityStatus(models.Model):
name = models.CharField(max_length=100, blank=True, default='')
Expand Down Expand Up @@ -36,6 +37,10 @@ class IastVulnerabilityModel(models.Model):
client_ip = models.CharField(max_length=255, blank=True, null=True)
param_name = models.CharField(max_length=255, blank=True, null=True)
method_pool_id = models.IntegerField(max_length=11, blank=True, null=True)
strategy = models.ForeignKey(IastStrategyModel,
on_delete=models.DO_NOTHING,
db_constraint=False,
db_column='strategy_id')
hook_type = models.ForeignKey(HookType,
on_delete=models.DO_NOTHING,
db_constraint=False,
Expand Down

0 comments on commit 067d73a

Please sign in to comment.