export type CredentialType = 'PASSWORD' | 'API_KEY' | 'COOKIE' | 'TOKEN';

export interface CredentialVault {
  id?: number;
  tenantId: string;
  shopId?: string;
  platform: string;
  credentialType: CredentialType;
  accountName: string; // 账号名或 Key 名称
  encryptedData: string; // 加密后的密文
  iv: string; // 初始化向量 (Base64)
  tag: string; // 认证标签 (Base64)
  expiresAt?: Date;
  metadata?: Record<string, any>;
  createdAt?: Date;
  updatedAt?: Date;
}
