Commit graph

14 commits

Author SHA1 Message Date
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
5d6a26a3ed Ignore the databases and .env 2019-07-08 20:39:06 +02:00
ef4507e25e Add a database pool through a fairing 2019-07-08 20:36:59 +02:00
66cb47d619 Bump rocket depends to 0.4.2 (for Rust ≥ 1.36) 2019-07-08 20:03:13 +02:00
4082a45d5d Add a README and LICENSE file 2019-06-15 11:44:33 +02:00
d88f970107 Add GitLab CI 2019-06-10 12:29:42 +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
1f44ff1e37 Initial commit 2019-06-08 13:58:20 +02:00