mirror of
https://github.com/Febbweiss/CloudBudget.git
synced 2026-03-05 06:45:39 +00:00
Feature: returns a list of entries when creating, editing or deleting an entry
This commit is contained in:
@@ -16,5 +16,8 @@ var EntrySchema = new Schema({
|
||||
created_at: {type: Date, default: Date.now}
|
||||
});
|
||||
|
||||
EntrySchema.index({account_id: 1, date: -1, type: 1});
|
||||
EntrySchema.index({account_id: 1, date: -1, category: 1, sub_category: 1});
|
||||
|
||||
var Entry = mongoose.model('Entry', EntrySchema);
|
||||
module.exports = Entry;
|
||||
Reference in New Issue
Block a user