UNPKG

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

Version:

[![](https://img.shields.io/npm/dw/@webiny/api-form-builder-so-ddb.svg)](https://www.npmjs.com/package/@webiny/api-form-builder-so-ddb) [![](https://img.shields.io/npm/v/@webiny/api-form-builder-so-ddb.svg)](https://www.npmjs.com/package/@webiny/api-form

36 lines (34 loc) 674 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=system.js.map