27 lines
738 B
TypeScript
27 lines
738 B
TypeScript
import { AnnotationProtectionType } from "@app/core/common/enum/annotation-protection-type.enum";
|
|
import { User } from "@app/core/model/user/user";
|
|
import { BaseEntity, BaseEntityPersist } from "@common/base/base-entity.model";
|
|
import { Guid } from "@common/types/guid";
|
|
|
|
export interface Annotation extends BaseEntity {
|
|
entityId: Guid;
|
|
entityType: string;
|
|
anchor?: string;
|
|
payload: string;
|
|
timeStamp: Date;
|
|
author: User;
|
|
threadId: Guid;
|
|
parent: Annotation;
|
|
protection: AnnotationProtectionType;
|
|
}
|
|
|
|
export interface AnnotationPersist extends BaseEntityPersist {
|
|
subjectId: Guid;
|
|
entityId: Guid;
|
|
entityType: string;
|
|
anchor: string;
|
|
payload: string;
|
|
threadId?: Guid;
|
|
parentId?: Guid;
|
|
protection: AnnotationProtectionType;
|
|
} |