import { z } from 'zod'
import type { InternalReference } from '~/models/internal-reference'

const InternalReferenceSchema = z.object({
  'unit_id': z.number({ required_error: 'Kode harus diisi' }).min(1, 'Kode minimum 1 karakter'),
  'doctor_id': z.number({ required_error: 'Kode harus diisi' }).min(1, 'Kode minimum 1 karakter'),
})

type InternalReferenceFormData = z.infer<typeof InternalReferenceSchema> & Partial<InternalReference>

export { InternalReferenceSchema }
export type { InternalReferenceFormData }
