mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
17 lines
389 B
TypeScript
17 lines
389 B
TypeScript
import { model, Schema, Types } from 'mongoose';
|
|
|
|
export type TRegister = {
|
|
email: string,
|
|
password: string,
|
|
created_at: Date
|
|
}
|
|
|
|
const RegisterSchema = new Schema<TRegister>({
|
|
email: { type: String },
|
|
password: { type: String },
|
|
created_at: { type: Date, default: () => Date.now() }
|
|
});
|
|
|
|
export const RegisterModel = model<TRegister>('registers', RegisterSchema);
|
|
|