argos/dmp-frontend/src/app/core/model/lock/lock.model.ts

22 lines
486 B
TypeScript
Raw Normal View History

2023-12-08 17:05:48 +01:00
import { LockTargetType } from '@app/core/common/enum/lock-target-type';
2023-12-29 16:04:16 +01:00
import { Guid } from '@common/types/guid';
2023-12-08 17:05:48 +01:00
import { User } from '../user/user';
2024-01-19 13:28:31 +01:00
import { BaseEntityPersist } from '@common/base/base-entity.model';
2023-12-29 16:04:16 +01:00
export interface Lock {
2023-12-08 17:05:48 +01:00
id: Guid;
target: Guid;
targetType: LockTargetType;
2023-12-29 16:04:16 +01:00
lockedBy: User;
2023-12-08 17:05:48 +01:00
lockedAt: Date;
touchedAt: Date;
hash: String;
}
// Persist
2024-01-19 13:28:31 +01:00
export interface LockPersist extends BaseEntityPersist {
2023-12-08 17:05:48 +01:00
target: Guid;
targetType: LockTargetType;
}