import * as plugins from '../loint-reception.plugins.js';
import { type IRole } from './loint-reception.role.js';

export interface IUser {
  id: string;
  data: {
    name: string;
    username: string;
    email: string;

    /**
     * mobile number used for verification
     */
    mobileNumber?: string;
    /**
     * only used during initial password setting
     */
    password?: string;
    /**
     * used for validation of passwords
     */
    passwordHash?: string;
    status: 'new' | 'active' | 'deleted' | 'suspended';
    /**
     * a quick ref for which organizations might have roles for this user
     * speeds up lookup
     */
    connectedOrgs: string[];
  };
}
