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:
No files matched your search
@@ -1,4 +1,5 @@
|
|||||||
import { type Base, genBase } from './_base'
|
import { type Base, genBase } from './_base'
|
||||||
|
import type { Employee } from './employee'
|
||||||
|
|
||||||
export interface InstallationPosition extends Base {
|
export interface InstallationPosition extends Base {
|
||||||
installation_id: number
|
installation_id: number
|
||||||
@@ -6,6 +7,8 @@ export interface InstallationPosition extends Base {
|
|||||||
name: string
|
name: string
|
||||||
headStatus?: boolean
|
headStatus?: boolean
|
||||||
employee_id?: number
|
employee_id?: number
|
||||||
|
|
||||||
|
employee?: Employee | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export function genInstallationPosition(): InstallationPosition {
|
export function genInstallationPosition(): InstallationPosition {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { type Base, genBase } from './_base'
|
import { type Base, genBase } from './_base'
|
||||||
|
import type { Employee } from './employee'
|
||||||
|
|
||||||
export interface SpecialistPosition extends Base {
|
export interface SpecialistPosition extends Base {
|
||||||
specialist_id: number
|
specialist_id: number
|
||||||
@@ -6,6 +7,7 @@ export interface SpecialistPosition extends Base {
|
|||||||
name: string
|
name: string
|
||||||
headStatus?: boolean
|
headStatus?: boolean
|
||||||
employee_id?: number
|
employee_id?: number
|
||||||
|
employee?: Employee | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export function genSpecialistPosition(): SpecialistPosition {
|
export function genSpecialistPosition(): SpecialistPosition {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { type Base, genBase } from './_base'
|
import { type Base, genBase } from './_base'
|
||||||
|
import type { Employee } from './employee'
|
||||||
|
|
||||||
export interface SubSpecialistPosition extends Base {
|
export interface SubSpecialistPosition extends Base {
|
||||||
subspecialist_id: number
|
subspecialist_id: number
|
||||||
@@ -6,6 +7,8 @@ export interface SubSpecialistPosition extends Base {
|
|||||||
name: string
|
name: string
|
||||||
headStatus?: boolean
|
headStatus?: boolean
|
||||||
employee_id?: number
|
employee_id?: number
|
||||||
|
|
||||||
|
employee?: Employee | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export function genSubSpecialistPosition(): SubSpecialistPosition {
|
export function genSubSpecialistPosition(): SubSpecialistPosition {
|
||||||
|
|||||||
Reference in New Issue
Block a user