mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-04-20 23:10:53 -04:00
* 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
26 lines
433 B
JavaScript
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;
|