// MongoDB User Model Schema
export interface User {
  _id?: string;
  name: string;
  email: string;
  password: string; // Hashed
  phone?: string;
  role: string; // "admin", "customer"
  address?: {
    street?: string;
    city?: string;
    state?: string;
    zip?: string;
    country?: string;
  };
  preferences?: {
    newsletter?: boolean;
    currency?: string;
    language?: string;
  };
  createdAt?: Date;
  updatedAt?: Date;
}

