schema property
dynamic
schema
final
Implementation
static final schema = () {
RealmObjectBase.registerFactory(SyncDBCache._);
register(_toEJson, _fromEJson);
return const SchemaObject(ObjectType.realmObject, SyncDBCache, 'dbcache', [
SchemaProperty(
'id',
RealmPropertyType.string,
mapTo: '_id',
primaryKey: true,
),
SchemaProperty('uid', RealmPropertyType.string),
SchemaProperty('collection', RealmPropertyType.string),
SchemaProperty('entityId', RealmPropertyType.string),
SchemaProperty('diffJson', RealmPropertyType.string),
SchemaProperty('newJson', RealmPropertyType.string),
SchemaProperty('operation', RealmPropertyType.string),
SchemaProperty('createdAt', RealmPropertyType.timestamp, optional: true),
]);
}();