CachedNerds / lighthouse

Apache License 2.0
1 stars 1 forks source link

add diesel and users table #19

Closed xmclark closed 5 years ago

xmclark commented 5 years ago

This PR adds diesel ORM for interacting with sqlite database. It sets us up to interact with the database actor to query and command our data.

There is a directory structure that should help separate important concerns:

db
|-- handlers
|-- messages
|-- models

Handlers are functions that process messages. Messages are the messages important to the db actor. Models represent the data.

We can use sqlite for now during early development. This allows us to move a little faster.

This PR addresses some of the concerns in #16