flowstate/lib/types/user.ts
Chneemann a60851ac07
All checks were successful
Deploy Flowstate to VPS / deploy (push) Successful in 1m27s
refactor(lib): consolidate services, types, utils, and actions into lib folder and update import paths
2026-08-23 16:44:18 +02:00

31 lines
836 B
TypeScript

/**
* @file app/lib/types/user.ts
* @description Type definitions and constants related to user entities and UI preferences.
*/
import { type User as DbUser } from "@/db/schema";
import { UserService } from "@/lib/services/user.service";
// ==========================================
// Types
// ==========================================
export type { DbUser };
export type UserColor = (typeof AVAILABLE_COLORS)[number];
export type UserListItem = Awaited<
ReturnType<typeof UserService.findAllUsers>
>[number];
// ==========================================
// UI Configurations
// ==========================================
export const AVAILABLE_COLORS = [
"bg-indigo-500",
"bg-emerald-500",
"bg-amber-500",
"bg-rose-500",
"bg-violet-500",
"bg-sky-500",
"bg-teal-500",
] as const satisfies readonly string[];