feat(interfaces): add IUserUpdate interface
This commit introduces a new interface named IUserUpdate. This interface consists of optional properties like id, username, firstname, lastname, dob and gdpr. These properties are used for validating user's data during update operation. Issue: #18 Signed-off-by: Mathis <yidhra@tuta.io>
This commit is contained in:
parent
2fb6cd6e83
commit
3d5ea6ac30
8
src/interfaces/services/IUserUpdate.ts
Normal file
8
src/interfaces/services/IUserUpdate.ts
Normal file
@ -0,0 +1,8 @@
|
||||
export interface IUserUpdate {
|
||||
id?: string;
|
||||
username?: string;
|
||||
firstname?: string;
|
||||
lastname?: string;
|
||||
dob?: Date;
|
||||
gdpr?: Date;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user