diff options
Diffstat (limited to 'models/users/user.schema.ts')
-rw-r--r-- | models/users/user.schema.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/users/user.schema.ts b/models/users/user.schema.ts index c846f81..5292add 100644 --- a/models/users/user.schema.ts +++ b/models/users/user.schema.ts @@ -1,12 +1,12 @@ import { Document, Schema } from "mongoose" -export interface User extends Document { +export interface UserSchema extends Document { name: string; avatarUrl?: string; age?: number; } -export const UserSchema = new Schema({ +export const userSchema = new Schema({ name: String, avatarUrl: { type: String, |