样式优化,markdown优化

This commit is contained in:
2025-08-22 17:14:38 +08:00
parent a1537e3f9f
commit b3d63e4181
11 changed files with 163 additions and 36 deletions

View File

@@ -3,6 +3,7 @@ import { Schema, model, Document } from 'mongoose';
export interface IUser extends Document {
email: string;
passwordHash: string;
name?: string;
createdAt: Date;
updatedAt: Date;
}
@@ -10,6 +11,7 @@ export interface IUser extends Document {
const UserSchema = new Schema<IUser>({
email: { type: String, required: true, unique: true, index: true },
passwordHash: { type: String, required: true }
, name: { type: String }
}, { timestamps: true });
export const User = model<IUser>('User', UserSchema);