mjhouse / bowtie

The bowtie social media website
GNU General Public License v3.0
0 stars 0 forks source link

Reverse the usage/behavior of Objects/Models #25

Closed mjhouse closed 4 years ago

mjhouse commented 4 years ago

Currently, every record in the database has two structs associated with it because of how the diesel ORM handles things. I refer to these as 'Objects' - the structs that are used everywhere in the codebase (e.g. 'Post', 'Comment' etc.) and models - the structs that are only used as a query result (e.g. 'PostModel', 'CommentModel' etc.)

This is exactly backwards of what it should be.

mjhouse commented 4 years ago

Resolved by 761cda8038a735133cb99c52cdee7a3c40cd1131