UNPKG

won-dto

Version:

Won DTO For WonCore

17 lines 1.11 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InternalTransactionHook = exports.internalTransactionSchema = void 0; const mongoose_1 = require("mongoose"); const baseModel_1 = require("../base/baseModel"); const internalTransaction_enum_1 = require("./internalTransaction.enum"); exports.internalTransactionSchema = new mongoose_1.Schema({ value: { type: Number }, event: { type: String, enum: internalTransaction_enum_1.InternalTransactionEvents }, status: { type: String, enum: internalTransaction_enum_1.InternalTransactionStatus, default: internalTransaction_enum_1.InternalTransactionStatus.DONE }, customerAddress: { type: String }, customerId: { type: mongoose_1.Schema.Types.ObjectId, ref: "Customer" }, fromClaimerId: { type: mongoose_1.Schema.Types.ObjectId, ref: "Customer" }, }, { timestamps: true }); // internalTransactionSchema.index({ name: "text" }, { weights: { name: 2 } }); exports.InternalTransactionHook = new baseModel_1.ModelHook(exports.internalTransactionSchema); //# sourceMappingURL=internalTransaction.schema.js.map