feat:添加登录功能
This commit is contained in:
@@ -8,7 +8,7 @@ const budgetSchema = new mongoose.Schema(
|
||||
period: { type: String, enum: ['monthly', 'weekly'], default: 'monthly' },
|
||||
threshold: { type: Number, min: 0, max: 1, default: 0.8 },
|
||||
usage: { type: Number, min: 0, default: 0 },
|
||||
userId: { type: mongoose.Schema.Types.ObjectId, ref: 'User', required: false }
|
||||
userId: { type: mongoose.Schema.Types.ObjectId, ref: 'User', required: true }
|
||||
},
|
||||
{ timestamps: true }
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user