Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

741 B
Raw Blame
import { createSelectSchema } from "drizzle-zod";

import { userByteUnitSystemSchema } from "@homarr/validation/user";

import { apps, boards, groups, invites, searchEngines, serverSettings, users } from "./schema";

export const selectAppSchema = createSelectSchema(apps);
export const selectBoardSchema = createSelectSchema(boards);
export const selectGroupSchema = createSelectSchema(groups);
export const selectInviteSchema = createSelectSchema(invites);
export const selectSearchEnginesSchema = createSelectSchema(searchEngines);
export const selectSeverSettingsSchema = createSelectSchema(serverSettings);
export const selectUserSchema = createSelectSchema(users, {
  byteUnitSystem: userByteUnitSystemSchema.shape.byteUnitSystem,
});