feat: sync backend with frontend - add all UserEquity fields (brandIcon, brandIconImage, brandColor, platformType, hasUsedBenefit, benefit sub-fields, etc.) and new routes
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
const mongoose = require('mongoose');
|
||||
|
||||
const versionLogSchema = new mongoose.Schema({
|
||||
version: {
|
||||
type: String,
|
||||
required: true,
|
||||
trim: true
|
||||
},
|
||||
versionName: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
releaseDate: {
|
||||
type: Date,
|
||||
default: Date.now
|
||||
},
|
||||
features: [{
|
||||
type: String
|
||||
}],
|
||||
fixes: [{
|
||||
type: String
|
||||
}],
|
||||
improvements: [{
|
||||
type: String
|
||||
}],
|
||||
isPublished: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
sortOrder: {
|
||||
type: Number,
|
||||
default: 0
|
||||
}
|
||||
}, {
|
||||
timestamps: true
|
||||
});
|
||||
|
||||
versionLogSchema.index({ version: 1 });
|
||||
versionLogSchema.index({ isPublished: 1, sortOrder: -1 });
|
||||
|
||||
module.exports = mongoose.model('VersionLog', versionLogSchema);
|
||||
Reference in New Issue
Block a user