This interface defines the structure of a User object.
import { UserEmail } from './user-email';
import { UserPhone } from './user-phone';
import { SocialConnection } from './social-connection';

export interface User {
    id?: string;
    email?: string;
    username?: string;
    first_name?: string;
    last_name?: string;
    created_at?: string;
    updated_at?: string;
    is_active?: boolean;
    emails?: UserEmail[];
    phones?: UserPhone[];
    social_connections?: SocialConnection[];
}

Properties

  • id (string, optional): The unique identifier of the user.
  • email (string, optional): The user’s primary email address.
  • username (string, optional): The user’s username.
  • first_name (string, optional): The user’s first name.
  • last_name (string, optional): The user’s last name.
  • created_at (string, optional): The timestamp when the user account was created.
  • updated_at (string, optional): The timestamp when the user account was last updated.
  • is_active (boolean, optional): Indicates if the user account is active.
  • emails (UserEmail[], optional): A list of email addresses associated with the user.
  • phones (UserPhone[], optional): A list of phone numbers associated with the user.
  • social_connections (SocialConnection[], optional): A list of social connections associated with the user.