# API Documentation ## User Model ### `createUser(data)` Creates a new user with auto-generated ID and timestamp. **Parameters:** - `data` — Object with `email` and `name` fields **Returns:** `User` object **Throws:** `Error` if email is invalid ### `serializeUser(user)` Serializes a user to JSON string. ## Validation Utilities - `validateEmail(email)` — Validates email format - `validateNotEmpty(value)` — Checks string is not empty - `validateMinLength(value, min)` — Checks minimum string length