Move db models to db folder

This commit is contained in:
Alex Holliday committed 2024-10-01 10:01:25 +08:00
1 parent 34389d4878
commit 6c598b976f
29 files changed
+31 -30

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
const mongoose = require("mongoose");
const TeamSchema = mongoose.Schema(
{
email: {
type: String,
required: true,
unique: true,
},
},
{
timestamps: true,
}
);
module.exports = mongoose.model("Team", TeamSchema);