UNPKG

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

Version:

The DynamoDB storage operations Webiny Page Builder API.

57 lines (55 loc) 1.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createBlockCategoryEntity = void 0; var _toolbox = require("@webiny/db-dynamodb/toolbox"); const createBlockCategoryEntity = params => { const { entityName, attributes, table } = params; return new _toolbox.Entity({ name: entityName, table, attributes: { PK: { partitionKey: true }, SK: { sortKey: true }, TYPE: { type: "string" }, name: { type: "string" }, slug: { type: "string" }, icon: { type: "string" }, description: { type: "string" }, createdOn: { type: "string" }, createdBy: { type: "map" }, tenant: { type: "string" }, locale: { type: "string" }, ...(attributes || {}) } }); }; exports.createBlockCategoryEntity = createBlockCategoryEntity; //# sourceMappingURL=blockCategoryEntity.js.map