Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature 188 #57

Merged
merged 15 commits into from
Nov 20, 2021
3 changes: 2 additions & 1 deletion dongtai/models/sensitive_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

class IastPatternType(models.Model):
name = models.CharField(blank=True,default=None,max_length=255)

id = models.IntegerField(default=0,db_column='value')
logi_id = models.BigAutoField(primary_key=True,db_column='id')
class Meta:
db_table = 'iast_pattern_type'

Expand Down
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