linagora / tmail-backend

GNU Affero General Public License v3.0
30 stars 17 forks source link

Cassandra implementation for PublicAssetRepository #1040

Closed quantranhong1999 closed 1 month ago

quantranhong1999 commented 1 month ago

Why

We need Cassandra's implementation for PublicAssetRepository.

Requires

How

PK username TEXT
CK assetId UUID
C blobId TEXT
C contentType TEXT
C identityIds Frozen Set<TEXT>

Do we really need contentType though? If yes, likely we need to add contentType to the PublicAsset object.

DoD

Pass contract tests.

Arsnael commented 1 month ago

contentType likely needed?

Missing size

quantranhong1999 commented 1 month ago

https://github.com/linagora/tmail-backend/pull/1058