UNPKG

@webiny/api-tenancy-so-ddb

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