40 lines
1.0 KiB
Plaintext
40 lines
1.0 KiB
Plaintext
-- SPDX-FileCopyrightText: 2022 Gregor Kleen <gregor.kleen@ifi.lmu.de>
|
|
--
|
|
-- SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
FileContentEntry
|
|
hash FileContentReference
|
|
ix Word64
|
|
chunkHash FileContentChunkReference
|
|
UniqueFileContentEntry hash ix
|
|
deriving Generic
|
|
|
|
FileContentChunk
|
|
hash FileContentChunkReference
|
|
content ByteString
|
|
contentBased Bool default=false -- For Migration
|
|
Primary hash
|
|
deriving Generic
|
|
|
|
FileContentChunkUnreferenced
|
|
hash FileContentChunkId
|
|
since UTCTime
|
|
UniqueFileContentChunkUnreferenced hash
|
|
deriving Generic
|
|
|
|
SessionFile
|
|
content FileContentReference Maybe
|
|
touched UTCTime
|
|
deriving Generic
|
|
|
|
FileLock
|
|
content FileContentReference
|
|
instance InstanceId
|
|
time UTCTime
|
|
deriving Generic
|
|
|
|
FileChunkLock
|
|
hash FileContentChunkReference
|
|
instance InstanceId
|
|
time UTCTime
|
|
deriving Generic |