b073fb60d1
Add optional Employee type to specialist, installation and subspecialist position interfaces to support employee relation in the data model.
23 lines
462 B
TypeScript
23 lines
462 B
TypeScript
import { type Base, genBase } from './_base'
|
|
import type { Employee } from './employee'
|
|
|
|
export interface SpecialistPosition extends Base {
|
|
specialist_id: number
|
|
code: string
|
|
name: string
|
|
headStatus?: boolean
|
|
employee_id?: number
|
|
employee?: Employee | null
|
|
}
|
|
|
|
export function genSpecialistPosition(): SpecialistPosition {
|
|
return {
|
|
...genBase(),
|
|
specialist_id: 0,
|
|
code: '',
|
|
name: '',
|
|
headStatus: false,
|
|
employee_id: 0,
|
|
}
|
|
}
|