@webiny/api-tenancy-so-ddb
Version:
Security storage operations.
42 lines (40 loc) • 756 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createDomainEntity = void 0;
var _toolbox = require("@webiny/db-dynamodb/toolbox");
const createDomainEntity = ({
entityName,
table
}) => {
return new _toolbox.Entity({
table,
name: entityName,
attributes: {
PK: {
partitionKey: true
},
SK: {
sortKey: true
},
GSI1_PK: {
type: "string"
},
GSI1_SK: {
type: "string"
},
tenant: {
type: "string"
},
fqdn: {
type: "string"
},
webinyVersion: {
type: "string"
}
}
});
};
exports.createDomainEntity = createDomainEntity;
//# sourceMappingURL=domainEntity.js.map