- Update Unit interface to allow null installation - Include specialist.Unit and specialist.Unit.Installation in API includes - Add Unit and Installation fields to subspecialist detail view - Simplify list configuration headers and update keys for specialist name
19 lines
375 B
TypeScript
19 lines
375 B
TypeScript
import { type Base, genBase } from './_base'
|
|
import { type Installation } from '~/models/installation'
|
|
export interface Unit extends Base {
|
|
code: string
|
|
name: string
|
|
installation_id?: number | string | null
|
|
|
|
installation?: Installation | null
|
|
}
|
|
|
|
export function genUnit(): Unit {
|
|
return {
|
|
...genBase(),
|
|
code: '',
|
|
name: '',
|
|
installation_id: 0,
|
|
}
|
|
}
|