Represents a user in the system. A user is defined by an ID, name, and the time they were created.

Constructors

Properties

Constructors

  • Creates an instance of the User class.

    Parameters

    • data: { created_at: number; id: string; name: string }

      The user data containing id, name, and created_at.

    Returns User

Properties

created_at: number

The timestamp (in milliseconds) when the user was created.

id: string

The unique identifier for the user.

name: string

The name of the user.