Commit Graph

16 Commits

Author SHA1 Message Date
fe13723323 Move GraphQL-related model code to a separate module 2019-07-10 20:58:37 +02:00
63fc7a0721 Some documentation tweaks 2019-07-10 20:58:33 +02:00
c3a6b5f572 Get rid of all non-GraphQL handlers
Also move the GraphQL handlers to the parent handlers model.
2019-07-10 20:54:46 +02:00
26c86fe03e Add GraphQL handlers and add GraphQL schema
Remove all REST and JSON related handlers and error catchers.
2019-07-09 12:24:52 +02:00
5e24738bba Turn all models into GraphQL(Input)Objects 2019-07-09 12:23:58 +02:00
f8bff689e6 Add relation resolving methods to all models 2019-07-09 12:23:31 +02:00
368a3ff10e Add some ORM/Diesel helper macros 2019-07-09 12:21:12 +02:00
0b7471467e Switch FLOAT types to DOUBLE in the database
SQLite has no NUMERIC(8,3) type, which it should acutally be.
Switch to DOUBLE, because FLOAT maps to f32 which is not supported
by GraphQL.
2019-07-09 12:18:54 +02:00
33c9520d5d Automatically run database migrations on start 2019-07-09 12:17:28 +02:00
ef4507e25e Add a database pool through a fairing 2019-07-08 20:36:59 +02:00
5e7e4c658e Add error catchers 2019-06-10 10:24:53 +02:00
1559936d4b Add new (insertable) models and associations to models
Also make models updateable (by deriving `AsChangeset`), debuggable
(by deriving `Debug`) and identifiable (by deriving `Identifiable`).

Note that the `CompanyInfo` is not updateable as a new revision
should be created.  Leaving this derive out ensure we cannot
accidentally update it.
2019-06-10 10:24:53 +02:00
4a8b3a48e1 Add first version of the diesel schema and models 2019-06-10 10:24:50 +02:00
420a366b38 Add stub handlers for the complete application
No handler is implemented!
2019-06-10 10:23:33 +02:00
48164aea40 Add support for serving static files from ./static 2019-06-10 10:23:31 +02:00
228aa5ab11 Import initial version into Git 2019-06-10 10:16:31 +02:00