Files
iNaturalistReactNative/src/realmModels/Vote.js
Amanda Bullington a401854475 Sync deleted observations from server (#924)
* Realm updates for cascading deletions

* Delete local observations from remote list

* Add tests for deleting local obs which were deelted on server

* Fix: don't create embedded objects explicitly
2023-11-27 15:07:23 -08:00

26 lines
433 B
JavaScript

import { Realm } from "@realm/react";
class Vote extends Realm.Object {
static VOTE_FIELDS = {
id: true,
created_at: true,
user_id: true,
vote_flag: true,
vote_scope: true
};
static schema = {
name: "Vote",
embedded: true,
properties: {
created_at: "string?",
id: "int",
user_id: "int",
vote_flag: "bool",
vote_scope: "string?"
}
};
}
export default Vote;