system commit

This commit is contained in:
2025-08-22 14:22:43 +08:00
parent bf6f910db1
commit a1537e3f9f
36 changed files with 1311 additions and 0 deletions

View File

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