import { Document, Types } from "mongoose";

export interface ISmartcarAccount extends Document {
  userId: Types.ObjectId;
  smartcarUserId: string;
  accessToken: string;
  refreshToken: string;
  tokenExpiresAt: Date | null;
  /** Updated when a full vehicle sync from Smartcar completes (Connect tokens; separate from IAM app token). */
  lastVehicleSyncAt: Date | null;
  status: boolean;
  createdAt: Date;
  updatedAt: Date;
}
