feat(models): add employee relation to position interfaces
Add optional Employee type to specialist, installation and subspecialist position interfaces to support employee relation in the data model.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { type Base, genBase } from './_base'
|
||||
import type { Employee } from './employee'
|
||||
|
||||
export interface InstallationPosition extends Base {
|
||||
installation_id: number
|
||||
@@ -6,6 +7,8 @@ export interface InstallationPosition extends Base {
|
||||
name: string
|
||||
headStatus?: boolean
|
||||
employee_id?: number
|
||||
|
||||
employee?: Employee | null
|
||||
}
|
||||
|
||||
export function genInstallationPosition(): InstallationPosition {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { type Base, genBase } from './_base'
|
||||
import type { Employee } from './employee'
|
||||
|
||||
export interface SpecialistPosition extends Base {
|
||||
specialist_id: number
|
||||
@@ -6,6 +7,7 @@ export interface SpecialistPosition extends Base {
|
||||
name: string
|
||||
headStatus?: boolean
|
||||
employee_id?: number
|
||||
employee?: Employee | null
|
||||
}
|
||||
|
||||
export function genSpecialistPosition(): SpecialistPosition {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { type Base, genBase } from './_base'
|
||||
import type { Employee } from './employee'
|
||||
|
||||
export interface SubSpecialistPosition extends Base {
|
||||
subspecialist_id: number
|
||||
@@ -6,6 +7,8 @@ export interface SubSpecialistPosition extends Base {
|
||||
name: string
|
||||
headStatus?: boolean
|
||||
employee_id?: number
|
||||
|
||||
employee?: Employee | null
|
||||
}
|
||||
|
||||
export function genSubSpecialistPosition(): SubSpecialistPosition {
|
||||
|
||||
Reference in New Issue
Block a user