mirror of
https://github.com/plankanban/planka.git
synced 2025-07-28 09:39:43 +02:00
37 lines
447 B
JavaScript
Executable file
37 lines
447 B
JavaScript
Executable file
import { ORM } from 'redux-orm';
|
|
|
|
import {
|
|
Activity,
|
|
Attachment,
|
|
Board,
|
|
BoardMembership,
|
|
Card,
|
|
Label,
|
|
List,
|
|
Notification,
|
|
Project,
|
|
ProjectManager,
|
|
Task,
|
|
User,
|
|
} from './models';
|
|
|
|
const orm = new ORM({
|
|
stateSelector: (state) => state.orm,
|
|
});
|
|
|
|
orm.register(
|
|
User,
|
|
Project,
|
|
ProjectManager,
|
|
Board,
|
|
BoardMembership,
|
|
Label,
|
|
List,
|
|
Card,
|
|
Task,
|
|
Attachment,
|
|
Activity,
|
|
Notification,
|
|
);
|
|
|
|
export default orm;
|