Files
simrsx-fe/app/models/specialist.ts
T
Khafid Prayoga a4f8e1a64f feat(specialist): add specialist detail page with position management
- Add specialist detail page with unit relation
- Implement position management including CRUD operations
- Update specialist model to include unit relation
- Add list and detail components for specialist positions
- Create entry form for specialist positions
- Implement pagination and search for positions
- Add confirmation dialogs for delete operations
2025-10-31 11:18:00 +07:00

20 lines
339 B
TypeScript

import { type Base, genBase } from './_base'
import type { Unit } from './unit'
export interface Specialist extends Base {
code: string
name: string
unit_id?: number | string | null
unit?: Unit | null
}
export function genSpecialist(): Specialist {
return {
...genBase(),
code: '',
name: '',
unit_id: 0,
}
}