add: remove secret strings

This commit is contained in:
h z
2025-05-23 19:44:49 +01:00
commit f96707629f
32 changed files with 597 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
from odmantic import Model
from db_models.embedded_models.Codebase import Codebase
class BinaryLibrary(Model):
codebase: Codebase
path: str
abstract: str

View File

@@ -0,0 +1,9 @@
from odmantic import Model
from db_models.embedded_models.Codebase import Codebase
class BinaryTool(Model):
codebase: Codebase
path: str
abstract: str

16
src/db_models/CodeFile.py Normal file
View File

@@ -0,0 +1,16 @@
from odmantic import Model
from typing import List
from db_models.embedded_models.CodeSegment import CodeSegment
from db_models.embedded_models.Codebase import Codebase
class CodeFile(Model):
codebase: Codebase
type: str
path: str
md5: str
abstract: str
segments: List[CodeSegment]
scanned: bool

View File

@@ -0,0 +1,13 @@
from odmantic import Model
from db_models.embedded_models.Codebase import Codebase
class ConfigFile(Model):
codebase: Codebase
type: str
path: str
md5: str
abstract: str
scanned: bool

View File

@@ -0,0 +1,11 @@
from odmantic import Model
from db_models.embedded_models.Codebase import Codebase
class Directory(Model):
codebase: Codebase
path: str
md5: str
abstract: str
scanned: bool

9
src/db_models/Hotspot.py Normal file
View File

@@ -0,0 +1,9 @@
from odmantic import Model
from typing import List
from db_models.embedded_models.Codebase import Codebase
class Hotspot(Model):
codebase: Codebase
topic: str
links: List[int]

View File

@@ -0,0 +1,9 @@
from odmantic import Model
from db_models.embedded_models.Codebase import Codebase
class IgnoreFile(Model):
codebase: Codebase
path: str
md5: str

View File

View File

@@ -0,0 +1,8 @@
from odmantic import EmbeddedModel
from typing import List
class CodeSegment(EmbeddedModel):
line_start: int
line_end: int
abstract: str
links: List[str]

View File

@@ -0,0 +1,9 @@
from odmantic import EmbeddedModel
class Codebase(EmbeddedModel):
name: str
version: str
branch: str
path: str
repo: str