diff options
Diffstat (limited to 'src/model/User.ts')
| -rw-r--r-- | src/model/User.ts | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/model/User.ts b/src/model/User.ts deleted file mode 100644 index 169549a..0000000 --- a/src/model/User.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Schema, model, models } from "mongoose"; - -const UserSchema = new Schema({ - name: { type: String, required: true }, - email: { type: String, required: true, unique: true }, - password: { type: String, required: true }, - profileImage: { - url: { type: String }, - key: { type: String }, - uploadedAt: { type: Date } - } -}, { - timestamps: true -}); - -const User = models.User || model("User", UserSchema); - -export default User;
\ No newline at end of file |
