flowstate/types/user.ts
Chneemann 86d1c8859d
All checks were successful
Deploy Flowstate to VPS / deploy (push) Successful in 49s
feat(member): integrate dynamic member list with server-side data and utility helpers
2026-08-18 12:01:57 +02:00

31 lines
824 B
TypeScript

/**
* @file 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 "@/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[];