view models and data structure
This commit is contained in:
parent
45fe7b34c3
commit
5faa4b7906
37 changed files with 157 additions and 516 deletions
25
src/viewmodels/admin/unit/equipment/equipment.models.ts
Normal file
25
src/viewmodels/admin/unit/equipment/equipment.models.ts
Normal file
|
@ -0,0 +1,25 @@
|
|||
import type { EquipmentTypeViewModel } from "../equipmentType/equipmentType.models";
|
||||
|
||||
export interface EquipmentViewModel {
|
||||
id: string;
|
||||
code: string;
|
||||
name: string;
|
||||
location: string;
|
||||
equipmentTypeId: string;
|
||||
equipmentType: EquipmentTypeViewModel;
|
||||
}
|
||||
|
||||
export interface CreateEquipmentViewModel {
|
||||
code: string;
|
||||
name: string;
|
||||
location: string;
|
||||
equipmentTypeId: string;
|
||||
}
|
||||
|
||||
export interface UpdateEquipmentViewModel {
|
||||
id: string;
|
||||
code: string;
|
||||
name: string;
|
||||
location: string;
|
||||
equipmentTypeId: string;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue