## User account information
type User {
## Unique identifier
id: string
## User's display name
name: string
## User's email address
email: string
## User's age (optional)
age: int?
## Whether the user is currently active
isActive: bool
## Account creation timestamp
createdAt: string
}
## User status enumeration
enum Status {
Active,
Inactive,
Pending,
Suspended
}
## Admin user with extra permissions
type Admin extends User {
## List of permission strings
permissions: list<string>
## Admin's role
role: Status
}
## Identifiable interface
interface Identifiable {
id: string
fn getId() -> string
}
## Maximum number of users allowed
const MAX_USERS: int = 1000
## Application name
const APP_NAME: string = "SyncLangs"
## Fetch a user by their ID
async fn getUser(id: string) -> User
## Calculate user statistics
fn getUserStats(users: list<User>) -> map<string, int>