lexica-dialog-repository
Version:
65 lines • 1.43 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const defaultUser = 'SYSTEM';
exports.defaultUser = defaultUser;
var SortDirection;
(function (SortDirection) {
SortDirection["ASC"] = "asc";
SortDirection["DESC"] = "desc";
})(SortDirection || (SortDirection = {}));
exports.SortDirection = SortDirection;
const uniSchema = {
uni: {
index: true,
required: true,
type: String,
},
};
exports.uniSchema = uniSchema;
const userActionSchema = {
createdAt: {
default: Date.now,
index: true,
required: true,
type: Date,
},
createdBy: {
default: defaultUser,
index: true,
required: true,
type: String,
},
updatedAt: {
default: Date.now,
index: true,
required: true,
type: Date,
},
updatedBy: {
default: defaultUser,
index: true,
required: true,
type: String,
},
};
exports.userActionSchema = userActionSchema;
const softDeleteSchema = {
deleted: {
default: false,
index: true,
required: true,
type: Boolean,
},
deletedAt: {
index: true,
required: false,
type: Date,
},
deletedBy: {
index: true,
required: false,
type: String,
},
};
exports.softDeleteSchema = softDeleteSchema;
//# sourceMappingURL=Shared.js.map