Add team schema
This commit is contained in:
1 parent
9a3b6dc98a
commit
4b2973e308
1 file changed
+12
@@ -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