@vibe-flats/booking-engine-common-server 1.0.62 → 1.0.63
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.
|
@@ -33,6 +33,7 @@ const schema = new mongoose_1.default.Schema({
|
|
|
33
33
|
summary: { type: String },
|
|
34
34
|
description: { type: String },
|
|
35
35
|
slug: { type: String },
|
|
36
|
+
sortOrder: { type: Number, default: 99 },
|
|
36
37
|
meta: {
|
|
37
38
|
type: new mongoose_1.default.Schema({
|
|
38
39
|
title: { type: String },
|
|
@@ -56,7 +57,6 @@ const schema = new mongoose_1.default.Schema({
|
|
|
56
57
|
timestamps: true
|
|
57
58
|
});
|
|
58
59
|
schema.index({ publicId: 1 });
|
|
59
|
-
schema.index({ slug: 1 }, { unique: true });
|
|
60
60
|
schema.index({ externalName: 1 });
|
|
61
61
|
const CityModel = (connection) => {
|
|
62
62
|
return connection.model('City', schema);
|
|
@@ -122,7 +122,6 @@ const schema = new mongoose_1.default.Schema({
|
|
|
122
122
|
schema.index({ publicId: 1 });
|
|
123
123
|
schema.index({ code: 1 });
|
|
124
124
|
schema.index({ hubspotId: 1 });
|
|
125
|
-
schema.index({ slug: 1 }, { unique: true });
|
|
126
125
|
const UnitModel = (connection) => {
|
|
127
126
|
return connection.model('Unit', schema);
|
|
128
127
|
};
|