refactor(db): Store thread body in the posts table

This is a simplification over the previous approach. The OP of a
thread is just a normal post like any other in this model, which
allows some code simplifications (and future query convenience).
This commit is contained in:
Vincent Ambo 2018-04-14 16:33:45 +02:00
parent a90d1cc1a4
commit 8c30ef92f6
5 changed files with 36 additions and 23 deletions

View file

@ -13,7 +13,6 @@ table! {
threads (id) {
id -> Int4,
title -> Varchar,
body -> Text,
posted -> Timestamptz,
author_name -> Varchar,
author_email -> Varchar,