mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
60 lines
909 B
JavaScript
Executable file
60 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;
|