mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-29 09:44:47 +00:00
invite url
This commit is contained in:
@@ -19,7 +19,7 @@ const PromotionRecordSchema = new Schema({
|
||||
type: {
|
||||
type: String,
|
||||
required: true,
|
||||
enum: ['invite', 'shareModel', 'withdraw']
|
||||
enum: ['invite', 'register']
|
||||
},
|
||||
amount: {
|
||||
type: Number,
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user