19 lines
369 B
TypeScript
19 lines
369 B
TypeScript
import { type Base, genBase } from "./_base"
|
|
import type { Subspecialist } from "./subspecialist"
|
|
|
|
export interface Specialist extends Base {
|
|
code: string
|
|
name: string
|
|
unit_id?: number | string | null
|
|
subspecialists?: Subspecialist[]
|
|
}
|
|
|
|
export function genSpecialist(): Specialist {
|
|
return {
|
|
...genBase(),
|
|
code: '',
|
|
name: '',
|
|
unit_id: 0
|
|
}
|
|
}
|