export interface ChatMessage { id: string; userId: string; body: string; createdAt: Date; updatedAt?: Date; authorUsername: string; authorAvatarMime?: string; /** Id of the message this one replies to, if any. Retained even when the * target is later deleted (the preview fields below then go undefined). */ replyToId?: string; /** Author/snippet of the replied-to message, for a subtle inline reference. * Absent when there's no reply, or the target has since been deleted. */ replyToAuthor?: string; replyToBody?: string; }