@duvdu-v1/duvdu 1.1.216 → 1.1.218
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,9 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Favourites = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const model_names_1 = require("../types/model-names");
|
|
6
|
-
exports.Favourites = (0, mongoose_1.model)(
|
|
6
|
+
exports.Favourites = (0, mongoose_1.model)(model_names_1.MODELS.favourites, new mongoose_1.Schema({
|
|
7
7
|
project: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.projects },
|
|
8
8
|
user: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user },
|
|
9
|
-
}, { timestamps: true, collection:
|
|
10
|
-
.index({ createdAt: -1, project: 1, user: 1 })
|
|
9
|
+
}, { timestamps: true, collection: model_names_1.MODELS.favourites })
|
|
11
10
|
.index({ project: 1, user: 1 }, { unique: true }));
|
|
@@ -98,6 +98,10 @@ export interface ITeamContract {
|
|
|
98
98
|
createdAt: Date;
|
|
99
99
|
paymentAmount: number;
|
|
100
100
|
totalCheckoutAt: Date;
|
|
101
|
+
submitFiles: {
|
|
102
|
+
link: string;
|
|
103
|
+
notes: string;
|
|
104
|
+
};
|
|
101
105
|
}
|
|
102
106
|
export declare const TeamContract: import("mongoose").Model<ITeamContract, {}, {}, {}, import("mongoose").Document<unknown, {}, ITeamContract> & ITeamContract & {
|
|
103
107
|
_id: Types.ObjectId;
|
|
@@ -94,4 +94,5 @@ exports.TeamContract = (0, mongoose_1.model)(model_names_1.MODELS.teamContract,
|
|
|
94
94
|
paymentAmount: { type: Number, default: 0 },
|
|
95
95
|
attachments: [String],
|
|
96
96
|
totalCheckoutAt: Date,
|
|
97
|
+
submitFiles: { link: { type: String, default: null }, notes: { type: String, default: null } },
|
|
97
98
|
}, { timestamps: true, collection: model_names_1.MODELS.teamContract }));
|