import { z } from 'zod';

export interface MerchantState {
  ENABLED: 1;
  DISABLED: 2;
}

export const MERCHANT_STATE: MerchantState = {
  ENABLED: 1,
  DISABLED: 2,
} as const;

export type MerchantStateType = typeof MERCHANT_STATE[keyof typeof MERCHANT_STATE];

export interface MerchantLoginStats {
  loginNum: number;
  loginTime: number;
  loginIp: string | null;
  lastLoginTime: number;
  lastLoginIp: string | null;
}

export interface MerchantSecurity {
  rsaPublicKey: string | null;
  aesKey: string | null;
}