Portal/rsconcept/frontend/src/features/users/models/user.ts

27 lines
565 B
TypeScript
Raw Normal View History

2024-06-07 20:17:03 +03:00
/**
* Module: Models for Users.
*/
/**
* Represents user detailed information.
* Some information should only be accessible to authorized users
*/
export interface IUser {
2025-02-17 15:11:32 +03:00
id: number;
2024-06-07 20:17:03 +03:00
username: string;
is_staff: boolean;
email: string;
first_name: string;
last_name: string;
}
/**
* Represents user profile for viewing and editing {@link IUser}.
*/
export interface IUserProfile extends Omit<IUser, 'is_staff'> {}
/**
* Represents user reference information.
*/
export interface IUserInfo extends Omit<IUserProfile, 'email' | 'username'> {}