i am interested in designing a simple discussion forum where users can post a thread,comment on the thread and reply to a particular comment.
I am finding it very difficult to come up with schema/database model to implement the comment and reply functionality
Schema for Users and threads
{
name : "Krishnakanth",
username : "krish", (-)
password : "rbswew424",
age : 21,
hometown : "abc",
}
*Threads*
{
name : "someName",
threadId : "someID",(-)
username : "someName,
timeOfCreation : "time in some standard format" (--)
}
- (-) => Partition Key*
- (--) => Sort Key*
- kindly help to come up with a schema design to implement the comment and reply functionality*
if you are from a non Dynamo db background just post the JSON format for the comment and reply functionality..!
Thanks in advance.