a4f8e1a64f
- 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
20 lines
339 B
TypeScript
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,
|
|
}
|
|
}
|