summaryrefslogtreecommitdiff
path: root/config/models
diff options
context:
space:
mode:
Diffstat (limited to 'config/models')
-rw-r--r--config/models19
1 files changed, 19 insertions, 0 deletions
diff --git a/config/models b/config/models
new file mode 100644
index 0000000..172af23
--- /dev/null
+++ b/config/models
@@ -0,0 +1,19 @@
+User
+ ident Text
+ isAdmin Bool default=False
+ UniqueUser ident
+ deriving Show Eq
+TimeEntry
+ user UserId
+ category TimeCategoryId
+ day Day
+ hours Double
+ timestamp UTCTime
+ deriving Show Eq
+TimeCategory
+ name Text
+ disabled Bool
+ UniqueTimeCategory name
+ deriving Show Eq
+
+ -- By default this file is used in Model.hs (which is imported by Foundation.hs)