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:
parent
a90d1cc1a4
commit
8c30ef92f6
5 changed files with 36 additions and 23 deletions
|
|
@ -13,7 +13,6 @@ table! {
|
|||
threads (id) {
|
||||
id -> Int4,
|
||||
title -> Varchar,
|
||||
body -> Text,
|
||||
posted -> Timestamptz,
|
||||
author_name -> Varchar,
|
||||
author_email -> Varchar,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue