Dental v1 done

This commit is contained in:
2025-05-21 16:54:25 +05:30
parent b46824ff98
commit 4d9678a0ea
26 changed files with 81 additions and 47 deletions

View File

@@ -4,7 +4,7 @@ import { storage } from "../storage";
import {
AppointmentUncheckedCreateInputObjectSchema,
PatientUncheckedCreateInputObjectSchema,
} from "@repo/db/shared/schemas";
} from "@repo/db/usedSchemas";
import { z } from "zod";
const router = Router();

View File

@@ -2,7 +2,7 @@ import express, { Request, Response, NextFunction } from 'express';
import jwt from 'jsonwebtoken';
import bcrypt from 'bcrypt';
import { storage } from '../storage';
import { UserUncheckedCreateInputObjectSchema } from '@repo/db/shared/schemas';
import { UserUncheckedCreateInputObjectSchema } from '@repo/db/usedSchemas';
import { z } from 'zod';
type SelectUser = z.infer<typeof UserUncheckedCreateInputObjectSchema>;

View File

@@ -4,7 +4,7 @@ import { storage } from "../storage";
import {
AppointmentUncheckedCreateInputObjectSchema,
PatientUncheckedCreateInputObjectSchema,
} from "@repo/db/shared/schemas";
} from "@repo/db/usedSchemas";
import { z } from "zod";
const router = Router();

View File

@@ -2,7 +2,7 @@ import { Router } from "express";
import type { Request, Response } from "express";
import { storage } from "../storage";
import { z } from "zod";
import { StaffUncheckedCreateInputObjectSchema } from "@repo/db/shared/schemas";
import { StaffUncheckedCreateInputObjectSchema } from "@repo/db/usedSchemas";
type Staff = z.infer<typeof StaffUncheckedCreateInputObjectSchema>;

View File

@@ -2,7 +2,7 @@ import { Router } from "express";
import type { Request, Response } from "express";
import { storage } from "../storage";
import { z } from "zod";
import { UserUncheckedCreateInputObjectSchema } from "@repo/db/shared/schemas";
import { UserUncheckedCreateInputObjectSchema } from "@repo/db/usedSchemas";
const router = Router();

View File

@@ -4,7 +4,7 @@ import {
PatientUncheckedCreateInputObjectSchema,
UserUncheckedCreateInputObjectSchema,
StaffUncheckedCreateInputObjectSchema,
} from "@repo/db/shared/schemas";
} from "@repo/db/usedSchemas";
import { z } from "zod";
//creating types out of schema auto generated.