UNPKG

@webiny/api-page-builder-so-ddb

Version:

The DynamoDB storage operations Webiny Page Builder API.

36 lines (34 loc) 680 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createSystemEntity = void 0; var _toolbox = require("@webiny/db-dynamodb/toolbox"); const createSystemEntity = params => { const { entityName, attributes, table } = params; return new _toolbox.Entity({ name: entityName, table, attributes: { PK: { partitionKey: true }, SK: { sortKey: true }, version: { type: "string" }, tenant: { type: "string" }, ...(attributes || {}) } }); }; exports.createSystemEntity = createSystemEntity; //# sourceMappingURL=systemEntity.js.map