mirror of
https://github.com/ApfelTeeSaft/Reload-Backend.git
synced 2026-08-26 19:33:26 +00:00
16 lines
441 B
JavaScript
16 lines
441 B
JavaScript
const mongoose = require("mongoose");
|
|
|
|
const FriendsSchema = new mongoose.Schema(
|
|
{
|
|
created: { type: Date, required: true },
|
|
accountId: { type: String, required: true, unique: true },
|
|
list: { type: Object, default: { accepted: [], incoming: [], outgoing: [], blocked: [] } }
|
|
},
|
|
{
|
|
collection: "friends"
|
|
}
|
|
)
|
|
|
|
const model = mongoose.model('FriendsSchema', FriendsSchema);
|
|
|
|
module.exports = model; |