1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 20:59:44 +02:00
planka/client/src/orm.js

61 lines
909 B
JavaScript
Raw Normal View History

/*!
* Copyright (c) 2024 PLANKA Software GmbH
* Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md
*/
2019-08-31 04:07:25 +05:00
import { ORM } from 'redux-orm';
import {
2022-08-04 13:31:14 +02:00
Activity,
2020-04-21 05:04:34 +05:00
Attachment,
BackgroundImage,
BaseCustomFieldGroup,
2019-08-31 04:07:25 +05:00
Board,
BoardMembership,
2019-08-31 04:07:25 +05:00
Card,
Comment,
CustomField,
CustomFieldGroup,
CustomFieldValue,
2019-08-31 04:07:25 +05:00
Label,
List,
Notification,
NotificationService,
2019-08-31 04:07:25 +05:00
Project,
ProjectManager,
2019-08-31 04:07:25 +05:00
Task,
TaskList,
2019-08-31 04:07:25 +05:00
User,
Webhook,
2019-08-31 04:07:25 +05:00
} from './models';
const orm = new ORM({
2020-03-25 00:15:47 +05:00
stateSelector: (state) => state.orm,
});
2019-08-31 04:07:25 +05:00
orm.register(
Webhook,
2019-08-31 04:07:25 +05:00
User,
Project,
ProjectManager,
BackgroundImage,
BaseCustomFieldGroup,
2019-08-31 04:07:25 +05:00
Board,
BoardMembership,
2019-08-31 04:07:25 +05:00
Label,
List,
2019-08-31 04:07:25 +05:00
Card,
TaskList,
2019-08-31 04:07:25 +05:00
Task,
2020-04-21 05:04:34 +05:00
Attachment,
CustomFieldGroup,
CustomField,
CustomFieldValue,
Comment,
2022-08-04 13:31:14 +02:00
Activity,
2019-08-31 04:07:25 +05:00
Notification,
NotificationService,
2019-08-31 04:07:25 +05:00
);
export default orm;