mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-11 08:18:37 +01:00
new selfhosted version
This commit is contained in:
@@ -3,12 +3,14 @@ import { model, Schema, Types } from 'mongoose';
|
||||
export type TRegister = {
|
||||
email: string,
|
||||
password: string,
|
||||
code: string,
|
||||
created_at: Date
|
||||
}
|
||||
|
||||
const RegisterSchema = new Schema<TRegister>({
|
||||
email: { type: String },
|
||||
password: { type: String },
|
||||
code: { type: String },
|
||||
created_at: { type: Date, default: () => Date.now() }
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user