fix: clean up hotel and its typings
This commit is contained in:
11
server/routers/hotels/schemas/hotel/specialNeedGroups.ts
Normal file
11
server/routers/hotels/schemas/hotel/specialNeedGroups.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { z } from "zod"
|
||||
|
||||
const specialNeedSchema = z.object({
|
||||
details: z.string(),
|
||||
name: z.string(),
|
||||
})
|
||||
|
||||
export const specialNeedGroupSchema = z.object({
|
||||
name: z.string(),
|
||||
specialNeeds: z.array(specialNeedSchema),
|
||||
})
|
||||
Reference in New Issue
Block a user