export type UserRole = 'engineer' | 'viewer'

export interface User {
  id: string
  email: string
  name: string
  role: UserRole
  is_super_admin: boolean
  is_active: boolean
  must_change_password: boolean
  account_id: string | null
  account_role: 'owner' | 'engineer' | 'viewer' | null
  created_at: string
  last_login: string | null
  phone: string | null
  job_title: string | null
  timezone: string
  avatar_url: string | null
  email_verified_at: string | null
}

export interface UserCreate {
  email: string
  password: string
  name: string
  role?: UserRole
  invite_code?: string
}

export interface UserLogin {
  email: string
  password: string
}

export interface UserUpdate {
  name?: string
  email?: string
  current_password?: string
  phone?: string | null
  job_title?: string | null
  timezone?: string
}
