2019-01-15 14:18:04 +00:00
|
|
|
import { Database } from '@nozbe/watermelondb'
|
|
|
|
import LokiJSAdapter from '@nozbe/watermelondb/adapters/lokijs'
|
|
|
|
|
|
|
|
import schema from './model/schema'
|
2019-01-15 18:32:55 +00:00
|
|
|
import LpEvent from './model/lpEvents'
|
2019-01-17 19:18:09 +00:00
|
|
|
import Profiles from './model/profiles'
|
2019-01-15 14:18:04 +00:00
|
|
|
|
|
|
|
const adapter = new LokiJSAdapter({
|
|
|
|
schema,
|
|
|
|
})
|
|
|
|
|
|
|
|
const database = new Database({
|
|
|
|
adapter,
|
|
|
|
modelClasses: [
|
2019-01-17 19:18:09 +00:00
|
|
|
LpEvent,
|
|
|
|
Profiles
|
2019-01-15 14:18:04 +00:00
|
|
|
],
|
|
|
|
actionsEnabled: true,
|
|
|
|
})
|
2019-01-15 18:32:55 +00:00
|
|
|
|
|
|
|
export default database
|