From 987132a67498fbfd6f919af315f38c426eba5c5d Mon Sep 17 00:00:00 2001 From: Tim Glasgow Date: Sun, 24 Jul 2022 14:43:44 -0500 Subject: [PATCH] entity objects --- squarenotsquare/realm/entities/Score.js | 9 +++++++++ squarenotsquare/realm/entities/System.js | 9 +++++++++ squarenotsquare/realm/entities/User.js | 8 ++++++++ 3 files changed, 26 insertions(+) diff --git a/squarenotsquare/realm/entities/Score.js b/squarenotsquare/realm/entities/Score.js index e69de29..2ecfa73 100644 --- a/squarenotsquare/realm/entities/Score.js +++ b/squarenotsquare/realm/entities/Score.js @@ -0,0 +1,9 @@ +export const System = { + name: 'Score', + primaryKey: 'id', + properties: { + id: 'string', + user: 'string', + value: 'string' + } +}; \ No newline at end of file diff --git a/squarenotsquare/realm/entities/System.js b/squarenotsquare/realm/entities/System.js index e69de29..03d0f45 100644 --- a/squarenotsquare/realm/entities/System.js +++ b/squarenotsquare/realm/entities/System.js @@ -0,0 +1,9 @@ +export const System = { + name: 'System', + primaryKey: 'id', + properties: { + id: 'string', + key: 'string', + value: 'string' + } +}; \ No newline at end of file diff --git a/squarenotsquare/realm/entities/User.js b/squarenotsquare/realm/entities/User.js index e69de29..5f1aaf1 100644 --- a/squarenotsquare/realm/entities/User.js +++ b/squarenotsquare/realm/entities/User.js @@ -0,0 +1,8 @@ +export const User = { + name: 'User', + primaryKey: 'id', + properties: { + id: 'string', + name: 'string' + } +} \ No newline at end of file