main
py 23 lines 756 Bytes
Raw
1 from datetime import datetime
2 from typing import Optional
3
4 from sqlmodel import Field
5 from sqlmodel import SQLModel
6
7
8 class SapSiemMultipleLogins(SQLModel, table=True):
9 """
10 Represents the SAP SIEM multiple logins table.
11 Table is used to track when an IP has successfully logged in with multiple loginIDs.
12 Used in the SAP SIEM integration.
13 """
14
15 __tablename__ = "sap_siem_multiple_logins"
16 id: Optional[int] = Field(primary_key=True)
17 ip: str = Field(description="The IP involved in the case.")
18 last_case_created_timestamp: datetime = Field(
19 description="Timestamp of the last case created.",
20 )
21 associated_loginIDs: str = Field(
22 description="Comma-separated loginIDs associated with this IP.",
23 )