mirror of
https://github.com/ApfelTeeSaft/LawinServerV2.git
synced 2026-08-26 19:23:39 +00:00
16 lines
412 B
JavaScript
16 lines
412 B
JavaScript
const mongoose = require("mongoose");
|
|
|
|
const ProfilesSchema = new mongoose.Schema(
|
|
{
|
|
created: { type: Date, required: true },
|
|
accountId: { type: String, required: true, unique: true },
|
|
profiles: { type: Object, required: true }
|
|
},
|
|
{
|
|
collection: "profiles"
|
|
}
|
|
)
|
|
|
|
const model = mongoose.model('ProfilesSchema', ProfilesSchema);
|
|
|
|
module.exports = model; |