mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-05-18 07:28:31 -05:00
Add team schema
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
const mongoose = require("mongoose");
|
||||
|
||||
const TeamSchema = mongoose.Schema({
|
||||
userId: {
|
||||
type: mongoose.Schema.Types.ObjectId,
|
||||
ref: "User",
|
||||
immutable: true,
|
||||
},
|
||||
timestamps: true,
|
||||
});
|
||||
|
||||
module.exports = mongoose.model("Team", TeamSchema);
|
||||
Reference in New Issue
Block a user