Files
vulncheck/app/models/setting.py
T
vulncheck 6969d0c62e Initial release v1.0.0
VulnCheck - Open Source Vulnerability Management for Wazuh

Features:
- Vulnerability management with Wazuh integration
- AI-powered CVE analysis (OpenAI, Anthropic, Google, DeepSeek, Ollama, Infomaniak)
- SLA policy enforcement with automated email alerts
- Automated patch verification via Wazuh Syscollector
- Role-based access control (Admin, Editor, Readonly)
- PDF/CSV reporting for compliance workflows
- Full audit trail

https://gitea.isuit.ch/vulncheck/vulncheck
2026-02-08 10:15:20 +01:00

20 lines
613 B
Python

"""
Settings Model for storing system configurations
"""
from sqlalchemy import Column, Integer, String, Text
from app.models.base import Base, TimestampMixin
class Setting(Base, TimestampMixin):
"""
Key-Value storage for system settings
"""
__tablename__ = "settings"
id = Column(Integer, primary_key=True, index=True)
key = Column(String, unique=True, index=True, nullable=False)
value = Column(Text, nullable=True) # JSON or simple string
description = Column(String, nullable=True)
def __repr__(self):
return f"<Setting(key='{self.key}', value='{self.value}')>"