1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-28 09:39:43 +02:00
planka/client/src/orm.js
2022-08-04 13:31:14 +02:00

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;