@duvdu-v1/duvdu 1.1.293 → 1.1.294
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.
|
@@ -46,6 +46,7 @@ export interface IcopyrightsBooking {
|
|
|
46
46
|
};
|
|
47
47
|
state: BookingState;
|
|
48
48
|
paymentSession: string;
|
|
49
|
+
ticketNumber: string;
|
|
49
50
|
}
|
|
50
51
|
export declare const CopyrightsBooking: import("mongoose").Model<IcopyrightsBooking, {}, {}, {}, import("mongoose").Document<unknown, {}, IcopyrightsBooking> & IcopyrightsBooking & {
|
|
51
52
|
_id: Types.ObjectId;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CopyrightsBooking = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
|
+
const all_contracts_model_1 = require("./all-contracts.model");
|
|
5
6
|
const booking_states_1 = require("../types/booking-states");
|
|
6
7
|
const model_names_1 = require("../types/model-names");
|
|
7
8
|
exports.CopyrightsBooking = (0, mongoose_1.model)(model_names_1.MODELS.copyrightsBooking, new mongoose_1.Schema({
|
|
@@ -10,6 +11,7 @@ exports.CopyrightsBooking = (0, mongoose_1.model)(model_names_1.MODELS.copyright
|
|
|
10
11
|
project: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user, required: true },
|
|
11
12
|
jobDetails: { type: String, default: null },
|
|
12
13
|
deadline: { type: Date, required: true },
|
|
14
|
+
ticketNumber: { type: String, default: all_contracts_model_1.generateTicketNumber, unique: true, sparse: true },
|
|
13
15
|
totalPrice: { type: Number, required: true },
|
|
14
16
|
address: { type: String, default: null },
|
|
15
17
|
location: { lat: { type: String, required: true }, lng: { type: String, required: true } },
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CopyRights = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
|
+
const all_contracts_model_1 = require("./all-contracts.model");
|
|
5
6
|
const cycles_1 = require("../types/cycles");
|
|
6
7
|
const model_names_1 = require("../types/model-names");
|
|
7
8
|
exports.CopyRights = (0, mongoose_1.model)(model_names_1.MODELS.copyrights, new mongoose_1.Schema({
|
|
8
9
|
user: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user },
|
|
9
10
|
category: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.category },
|
|
10
11
|
price: { type: Number, default: 0 },
|
|
12
|
+
ticketNumber: { type: String, default: all_contracts_model_1.generateTicketNumber, unique: true, sparse: true },
|
|
11
13
|
duration: { value: Number, unit: String },
|
|
12
14
|
address: { type: String, default: null },
|
|
13
15
|
searchKeywords: [String],
|