2024-11-23 22:05:44 +01:00
|
|
|
import { createSelectSchema } from "drizzle-zod";
|
|
|
|
|
|
2024-12-19 16:10:22 +01:00
|
|
|
import { apps, boards, groups, invites, searchEngines, serverSettings, users } from "./schema";
|
2024-11-23 22:05:44 +01:00
|
|
|
|
|
|
|
|
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);
|