invite url

This commit is contained in:
archer
2023-08-20 20:35:48 +08:00
parent c20fba11ba
commit 7a231c6501
20 changed files with 345 additions and 43 deletions

View File

@@ -19,7 +19,7 @@ const PromotionRecordSchema = new Schema({
type: {
type: String,
required: true,
enum: ['invite', 'shareModel', 'withdraw']
enum: ['invite', 'register']
},
amount: {
type: Number,

View File

@@ -26,7 +26,6 @@ const UserSchema = new Schema({
default: '/icon/human.png'
},
balance: {
// 平台余额,不可提现
type: Number,
default: 2 * PRICE_SCALE
},
@@ -35,6 +34,10 @@ const UserSchema = new Schema({
type: Schema.Types.ObjectId,
ref: 'user'
},
promotionRate: {
type: Number,
default: 15
},
limit: {
exportKbTime: {
// Every half hour