summaryrefslogtreecommitdiff
path: root/bs5/universal/native/shared/Note.re
diff options
context:
space:
mode:
Diffstat (limited to 'bs5/universal/native/shared/Note.re')
-rw-r--r--bs5/universal/native/shared/Note.re16
1 files changed, 16 insertions, 0 deletions
diff --git a/bs5/universal/native/shared/Note.re b/bs5/universal/native/shared/Note.re
new file mode 100644
index 0000000..53b598c
--- /dev/null
+++ b/bs5/universal/native/shared/Note.re
@@ -0,0 +1,16 @@
+open Melange_json.Primitives;
+
+[@deriving json]
+type t = {
+ id: int,
+ title: string,
+ content: string,
+ updated_at: float,
+};
+
+let pp = note => {
+ Dream.log("%s", "Note");
+ Dream.log(" title: %s", note.title);
+ Dream.log(" content: %s", note.content);
+ Dream.log(" updated_at: %f", note.updated_at);
+};