Files
planka/client/src/orm.js

61 lines
909 B
JavaScript
Executable File

/*!
* Copyright (c) 2024 PLANKA Software GmbH
* Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md
*/
import { ORM } from 'redux-orm';
import {
Activity,
Attachment,
BackgroundImage,
BaseCustomFieldGroup,
Board,
BoardMembership,
Card,
Comment,
CustomField,
CustomFieldGroup,
CustomFieldValue,
Label,
List,
Notification,
NotificationService,
Project,
ProjectManager,
Task,
TaskList,
User,
Webhook,
} from './models';
const orm = new ORM({
stateSelector: (state) => state.orm,
});
orm.register(
Webhook,
User,
Project,
ProjectManager,
BackgroundImage,
BaseCustomFieldGroup,
Board,
BoardMembership,
Label,
List,
Card,
TaskList,
Task,
Attachment,
CustomFieldGroup,
CustomField,
CustomFieldValue,
Comment,
Activity,
Notification,
NotificationService,
);
export default orm;