Discover Packages
github.com/thomasduchatelle/dphoto
pkg
awssupport
appdynamodb
package
Version:
v1.5.39
Opens a new window with list of versions in this module.
Published: May 6, 2024
License: AGPL-3.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
README
¶
DynamoDB Schema
Each adapter extends core DB schema with extra supported type to consolidate in a single table all elements of the
application.
For readability purpose, the big picture is documented in this file.
Schema
Entries
PK
SK
Description
Module
{OWNER}#ALBUM
ALBUM#{FOLDER_NAME}
Album metadata
catalogdynamo
{OWNER}#MEDIA#{id}
#METADATA
Media metadata
catalogdynamo
{OWNER}#MEDIA#{id}
LOCATION#
Media location if the archive
archivedynamo
USER#{EMAIL}
SCOPE#{TYPE}#{OWNER}#{RESOURCE ID}
Scopes allowed for a user (ownership, shared, ...)
aclscopedynamodb
USER#{EMAIL}
IDENTITY#
Details about the user (name, picture, ...)
aclidentitydynamodb
REFRESH#{TOKEN}
#REFRESH_SPEC
Refresh token
aclrefreshdynamodb
Expand ▾
Collapse ▴
Documentation
¶
CreateTableIfNecessary creates the table if it doesn't exist ; or update it.
MediaPrimaryKeyPK is the PK of a media, used to regroup media related information together
UserPk is the PK of a user, used to regroup user related information together
TablePk are the primary and sort keys of the table
Source Files
¶
Click to show internal directories.
Click to hide internal directories.