Files
simrsx-fe/app/models/unit-position.ts
Khafid Prayoga 1dc42be406 feat(unit-position): implement crud operations and update ui components
- Add new handler, service, and schema files for unit-position
- Update list configuration and entry form components
- Modify page title and integrate employee relation
- Implement CRUD operations with proper validation
2025-10-30 12:14:32 +07:00

24 lines
433 B
TypeScript

import { type Base, genBase } from './_base'
import type { Employee } from './employee'
export interface UnitPosition extends Base {
unit_id: number
code: string
name: string
headStatus?: boolean
employee_id?: number
employee?: Employee | null
}
export function genUnitPosition(): UnitPosition {
return {
...genBase(),
unit_id: 0,
code: '',
name: '',
headStatus: false,
employee_id: 0,
}
}