This repository was archived by the owner on Jun 24, 2020. It is now read-only.

Description
Take a look at https://github.com/reactiflux/archive-bot/tree/master/migrations We're looking to store the following info:
Users
| id |
username |
real_name |
avatar |
| slack id |
zach |
Zach Silveira |
http:// |
Messages
Each channel will be based off the messages channel using postgres' partitioning
| id |
channel_id |
user_id |
attachments |
text |
ts |
subtype |
hidden |
| 1 |
slack channel id |
slack user id from user's table |
json field with attachment info |
message text |
slack's timestamp |
message |
false |
Channels
Info about each channel
| id |
channel_id |
name |
description |
is_archived |
| 1 |
slack channel id |
general |
discuss react |
false |
How's this look so far? What do we need to add / change? @benigeri @tappleby