import type { Account } from '../accounts/types' import type { User } from '../users/types' export type AuthHistoryEvent = 'auth' | 'password_change' | 'logout' export type AuthHistory = { id: string event: AuthHistoryEvent userId: string accountId: string branch: string originIP: string originUA: string createdAt: string updatedAt: string // relationships account?: Account user?: User } export type AuthHistoryRelationships = 'account' | 'user'