Skip to content

Commit

Permalink
docs: update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger13579 committed Apr 24, 2024
1 parent 2515b3e commit 7a860c2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/models/user.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import { Schema, model } from 'mongoose';

interface IUser {
name: string;
account: string;
googleId: string;
pwd: string;
name: string;
gender: string;
avatarPath: string;
email: string;
phone: string;
birth: string;
address: string;
date: Date;
}

Expand All @@ -17,6 +24,6 @@ const schema = new Schema<IUser>({
},
});

const UserModel = model<IUser>('User', schema);
const UserModel = model<IUser>('User', schema, 'uuser');

export default UserModel;

0 comments on commit 7a860c2

Please sign in to comment.