bradcypert / porios

Connecting people through podcasts.

Home Page:http://www.porios.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Normalize Messages/Threads table

bradcypert opened this issue · comments

commented

Need to normalize the Messesages and Threads table into a 2nd degree.

Probably call the new table Thread Users.

New Tables should probably look like this...

ThreadUsers

Col Type Default
id primary, auto generated none
thread reference, thread none
user reference, users none

Threads

Col Type Default
id primary, auto generated none

Messages

Col Type Default
id primary, auto generated none
thread reference, threads none
sent reference, users none
message text none
time_sent timestamp current_time