import { DeviceProfile } from '../entities/device-profile.entity';

export const DEVICE_PROFILE_REPOSITORY = 'DEVICE_PROFILE_REPOSITORY';

export interface IDeviceProfileRepository {
  /**
   * 批量 upsert 设备档案
   * INSERT ... ON CONFLICT (install_id) DO UPDATE
   * 每次事件上报时更新 last_seen_at / app_version / event_count
   */
  upsertBatch(profiles: DeviceProfile[]): Promise<void>;
}
