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:
Developer
2026-05-13 20:08:48 +08:00
parent 519f4c2def
commit 9c52975b5a
17 changed files with 1613 additions and 1 deletions
+41
View File
@@ -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);