@webiny/api-tenancy-so-ddb
Version:
Security storage operations.
36 lines (34 loc) • 656 B
JavaScript
;
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