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

24 lines
435 B
TypeScript

import { LockTargetType } from '@app/core/common/enum/lock-target-type';
import { Guid } from '@common/types/guid';
import { User } from '../user/user';
export interface Lock {
id: Guid;
target: Guid;
targetType: LockTargetType;
lockedBy: User;
lockedAt: Date;
touchedAt: Date;
hash: String;
}
// Persist
export interface LockPersist {
id: Guid;
target: Guid;
targetType: LockTargetType;
lockedBy: User;
hash: String;
}