UNPKG

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

Version:

The DynamoDB storage operations Webiny Page Builder API.

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