Commit graph

5 commits

Author SHA1 Message Date
Paul van Tilburg 5e24738bba Turn all models into GraphQL(Input)Objects 2019-07-09 12:23:58 +02:00
Paul van Tilburg f8bff689e6 Add relation resolving methods to all models 2019-07-09 12:23:31 +02:00
Paul van Tilburg 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
Paul van Tilburg 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
Paul van Tilburg 4a8b3a48e1 Add first version of the diesel schema and models 2019-06-10 10:24:50 +02:00