18 lines
494 B
JavaScript
18 lines
494 B
JavaScript
// model/schema.js
|
|
import { appSchema } from '@nozbe/watermelondb'
|
|
import {eventSchema} from "./models/event";
|
|
import {eventTaskSchema} from "./models/event_task";
|
|
import {taskSchema} from "./models/task";
|
|
import {notificationSchema} from "./models/notification";
|
|
import {subtaskSchema} from "./models/subtask";
|
|
|
|
export default appSchema({
|
|
version: 1,
|
|
tables: [
|
|
eventSchema,
|
|
eventTaskSchema,
|
|
taskSchema,
|
|
notificationSchema,
|
|
subtaskSchema
|
|
]
|
|
}) |