Here's a design I was thinking for a forum I'm making right now. Do you think this design will work efficiently. Should I create more posts tables to allow faster querying, or is one fine?
Forums:
id(int)(primary), name(varchar)(unique), createdeleteboard (int-refers to some security table issuing moderator officer status etc.)
Boards:
id(int)(primary), forumid(int)(index), name(varchar)(unique), desc(varchar)(unique), created(bigint-seconds since epoch), viewsecurity(int), deletethreadsecurity(int), createthreadsecurity(int), stickythreadsecurity(int)
Threads:
id (int)(primary), boardid(int)(index), title(varchar)(unique), authorid(int)(index), created(bigint), views(int), stickied(int)(0 or 1 value), viewsecurity(int), replysecurity(int), deletepostsecurity(int)
Posts:
id(int), forumid(int)(index), text(mediumtext), authorid(int)(index), created(bigint)