think/packages/domains/lib/models/comment.d.ts

17 lines
407 B
TypeScript
Raw Normal View History

2022-03-11 13:57:55 +08:00
import { IUser } from "./user";
import { IDocument } from "./document";
export interface IComment {
id: string;
parentCommentId?: IComment["id"];
documentId: IDocument["id"];
createUserId: IUser["id"];
createUser: IUser;
replyUserId?: IUser["id"];
replyUser?: IUser;
html: string;
userAgent: string;
createdAt: Date;
updatedAt: Date;
children?: IComment[];
}