mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
refactoring dashboard
This commit is contained in:
14
dashboard/shared/schema/PasswordSchema.ts
Normal file
14
dashboard/shared/schema/PasswordSchema.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { model, Schema, Types } from 'mongoose';
|
||||
|
||||
export type TPassword = {
|
||||
email: string,
|
||||
password: string,
|
||||
}
|
||||
|
||||
const PasswordSchema = new Schema<TPassword>({
|
||||
email: { type: String, index: true, unique: true },
|
||||
password: { type: String },
|
||||
});
|
||||
|
||||
export const PasswordModel = model<TPassword>('passwords', PasswordSchema);
|
||||
|
||||
Reference in New Issue
Block a user