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](http://www.postgresql.org/docs/9.1/static/ddl-partitioning.html) | 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
Take a look at https://github.com/reactiflux/archive-bot/tree/master/migrations We're looking to store the following info:
Users
Messages
Each channel will be based off the messages channel using postgres' partitioning
Channels
Info about each channel
How's this look so far? What do we need to add / change? @benigeri @tappleby