users:
[
{
_id: ObjectId("..."),
username: "john_doe",
password: "...",
email: "john_doe@example.com",
},
{
_id: ObjectId("..."),
username: "jane_doe",
password: "...",
email: "jane_doe@example.com",
}
]
assets:
[
{
_id: ObjectId("..."),
user_id: ObjectId("..."),
name: "Apple Inc.",
value: 10000,
type: "stock",
},
{
_id: ObjectId("..."),
user_id: ObjectId("..."),
name: "Vanguard Total Stock Market Index Fund",
value: 20000,
type: "mutual fund",
}
]
equities:
[
{
_id: ObjectId("..."),
user_id: ObjectId("..."),
name: "Vanguard FTSE All-World ex-US Index Fund",
value: 15000,
type: "mutual fund",
},
{
_id: ObjectId("..."),
user_id: ObjectId("..."),
name: "SPDR S&P 500 ETF Trust",
value: 25000,
type: "ETF",
}
]
fixed_incomes:
[
{
_id: ObjectId("..."),
user_id: ObjectId("..."),
name: "Vanguard Total Bond Market Index Fund",
value: 30000,
type: "mutual fund",
},
{
_id: ObjectId("..."),
user_id: ObjectId("..."),
name: "iShares iBoxx $ Investment Grade Corporate Bond ETF",
value: 40000,
type: "ETF",
}
]
alternatives:
[
{
_id: ObjectId("..."),
user_id: ObjectId("..."),
name: "Bitcoin",
value: 50000,
type: "cryptocurrency",
},
{
_id: ObjectId("..."),
user_id: ObjectId("..."),
name: "Gold",
value: 60000,
type: "commodity",
}
]
incomes:
[
{
_id: ObjectId("..."),
user_id: ObjectId("..."),
amount: 10000,
date: ISODate("2022-01-01T00:00:00.000Z"),
category: "salary",
},
{
_id: ObjectId("..."),
user_id: ObjectId("..."),
amount: 5000,
date: ISODate("2022-01-15T00:00:00.000Z"),
category: "bonus",
}
]
expenses:
[
{
_id: ObjectId("..."),
user_id: ObjectId("..."),
amount: 2000,
date: ISODate("2022-01-05T00:00:00.000Z"),
category: "rent",
},
{
_id: ObjectId("..."),
user_id: ObjectId("..."),
amount: 1000,
date: ISODate("2022-01-10T00:00:00.000Z"),
category: "groceries",
}
]
savings:
[
{
_id: ObjectId("..."),
user_id: ObjectId("..."),
amount: 5000,
date: ISODate("2022-01-01T00:00:00.000Z"),
users:
[
{
_id: ObjectId("..."),
username: "john_doe",
password: "...",
email: "john_doe@example.com",
assets: [
{
name: "Apple Inc.",
value: 10000,
type: "stock",
},
{
name: "Vanguard Total Stock Market Index Fund",
value: 20000,
type: "mutual fund",
}
],
equities: [
{
name: "Vanguard FTSE All-World ex-US Index Fund",
value: 15000,
type: "mutual fund",
},
{
name: "SPDR S&P 500 ETF Trust",
value: 25000,
type: "ETF",
}
],
fixed_incomes: [
{
name: "Vanguard Total Bond Market Index Fund",
value: 30000,
type: "mutual fund",
},
{
name: "iShares iBoxx $ Investment Grade Corporate Bond ETF",
value: 40000,
type: "ETF",
}
],
alternatives: [
{
name: "Bitcoin",
value: 50000,
type: "cryptocurrency",
},
{
name: "Gold",
value: 60000,
type: "commodity",
}
],
incomes: [
{
amount: 10000,
date: ISODate("2022-01-01T00:00:00.000Z"),
category: "salary",
},
{
amount: 5000,
date: ISODate("2022-01-15T00:00:00.000Z"),
category: "bonus",
}
],
expenses: [
{
amount: 2000,
date: ISODate("2022-01-05T00:00:00.000Z"),
category: "rent",
},
{
amount: 1000,
date: ISODate("2022-01-10T00:00:00.000Z"),
category: "groceries",
}
],
savings: [
{
amount: 5000,
date: ISODate("2022-01-01T00:00:00.000Z"),
category: "savings",
}
]
},
{
_id: ObjectId("..."),
username: "jane_doe",
password: "...",
email: "jane_doe@example.com",
assets: [...],
equities: [...],
fixed_incomes: [...],
alternatives: [...],
incomes: [...],
expenses: [...],
savings: [...]
}
]