fradrive/models/audit.model

24 lines
902 B
Plaintext

-- SPDX-FileCopyrightText: 2022-23 Gregor Kleen <gregor.kleen@ifi.lmu.de>,Steffen Jost <s.jost@fraport.de>
--
-- SPDX-License-Identifier: AGPL-3.0-or-later
-- Table recording all significant changes of database-state for auditing purposes
TransactionLog
time UTCTime
instance InstanceId
initiator UserId Maybe -- User associated with performing this action
remote IP Maybe -- Remote party that triggered this action via HTTP
info Value -- JSON-encoded `Transaction`
deriving Eq Read Show Generic
InterfaceLog
time UTCTime
instance InstanceId
initiator UserId Maybe -- User associated with performing this interface access
remote IP Maybe -- Remote party that triggered this action via HTTP
interface Text
subtype Text
info Text
write Bool -- True implies a write to FRADrive
UniqueInterfaceSubtypeWrite interface subtype write
deriving Eq Read Show Generic