feat: Simplify proposals events and add warehouse events

This commit is contained in:
Josepablo C
2025-03-20 00:39:15 -06:00
parent 5ba802498f
commit 1d3c9bd443
9 changed files with 207 additions and 76 deletions

View File

@@ -1,14 +1,28 @@
// MongoDB Playground
// Use Ctrl+Space inside a snippet or a string literal to trigger completions.
// The current database to use.
use('enrutaviaporte');
// Create a new document in the collection.
db.getCollection('notifications').insertOne({
"owner" : ObjectId("65eeadb8ed616b897ca4c4cd"),
"title":"Notification title",
"description":"Notification description",
"tag":"category",
"deleted":false
});
/* global use, db */
// MongoDB Playground
// Use Ctrl+Space inside a snippet or a string literal to trigger completions.
// The current database to use.
use('enrutaviaporte');
// Search for documents in the current collection.
db.getCollection('loads')
.find(
{
_id : ObjectId('66c151a1299e3cfe8fa4a1dc')
},
{
/*
* Projection
* _id: 0, // exclude _id
* fieldA: 1 // include field
*/
}
)
.sort({
/*
* fieldA: 1 // ascending
* fieldB: -1 // descending
*/
});