feat: add comment field to CommentSchema for new comment functionality

This commit is contained in:
Jerald-Golden-B 2025-05-22 16:05:19 +05:30
parent ae7f33c485
commit 919f0fc9aa
2 changed files with 2 additions and 0 deletions

View File

@ -79,6 +79,7 @@ function CommentsGroup() {
commentId: MathUtils.generateUUID(), commentId: MathUtils.generateUUID(),
creatorId: userId, creatorId: userId,
createdAt: new Date().toISOString(), createdAt: new Date().toISOString(),
comment: '',
lastUpdatedAt: new Date().toISOString(), lastUpdatedAt: new Date().toISOString(),
position: position.toArray(), position: position.toArray(),
rotation: [0, 0, 0], rotation: [0, 0, 0],

View File

@ -3,6 +3,7 @@ interface CommentSchema {
commentId: string; commentId: string;
creatorId: string; creatorId: string;
createdAt: string; createdAt: string;
comment: string;
lastUpdatedAt: string; lastUpdatedAt: string;
position: [number, number, number]; position: [number, number, number];
rotation: [number, number, number]; rotation: [number, number, number];