wearable
This commit is contained in:
parent
716823f536
commit
553eeb7bfb
21 changed files with 1318 additions and 0 deletions
29
src/viewmodels/admin/unit/wearable/wearable.models.ts
Normal file
29
src/viewmodels/admin/unit/wearable/wearable.models.ts
Normal file
|
@ -0,0 +1,29 @@
|
|||
import type { MemberViewModel } from "../../club/member/member.models";
|
||||
import type { WearableTypeViewModel } from "../wearableType/wearableType.models";
|
||||
|
||||
export interface WearableViewModel {
|
||||
id: string;
|
||||
code: string;
|
||||
name: string;
|
||||
location?: string;
|
||||
wearerId?: string;
|
||||
wearer: MemberViewModel;
|
||||
wearableTypeId: string;
|
||||
wearableType: WearableTypeViewModel;
|
||||
}
|
||||
|
||||
export interface CreateWearableViewModel {
|
||||
code: string;
|
||||
name: string;
|
||||
wearerId?: string;
|
||||
location?: string;
|
||||
wearableTypeId: string;
|
||||
}
|
||||
|
||||
export interface UpdateWearableViewModel {
|
||||
id: string;
|
||||
code: string;
|
||||
name: string;
|
||||
location?: string;
|
||||
wearerId?: string;
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
export interface WearableTypeViewModel {
|
||||
id: string;
|
||||
type: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
export interface CreateWearableTypeViewModel {
|
||||
type: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
export interface UpdateWearableTypeViewModel {
|
||||
id: string;
|
||||
type: string;
|
||||
description: string;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue