mirror of
https://github.com/jakobkordez/ham-reserve.git
synced 2025-08-07 13:47:43 +00:00
WIP
This commit is contained in:
@ -41,6 +41,18 @@ export class User {
|
||||
set: (value: string) => bcrypt.hashSync(value, 10),
|
||||
})
|
||||
auth: string;
|
||||
|
||||
@Prop({
|
||||
required: true,
|
||||
default: Date.now,
|
||||
})
|
||||
createdAt: Date;
|
||||
|
||||
@Prop({
|
||||
required: true,
|
||||
default: false,
|
||||
})
|
||||
isDeleted: boolean;
|
||||
}
|
||||
|
||||
export const UserSchema = SchemaFactory.createForClass(User);
|
||||
|
Reference in New Issue
Block a user