Relations, with primary keys underlined:
Users(username, nickname, contact, signupDate)
Hosts(username)
Channels(cname, description, creator, createTime)
Subscribes(username, cname, subscribeTime)
Messages(messID, messageBody, poster, channel, postTime, replyToMessID)
SubscribeHistory(username, subscribeTime, cname, unsubscribeTime)
Where there are the following foreign keys: