think/packages/domains/src/models/comment.ts

21 lines
402 B
TypeScript
Raw Normal View History

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