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

36 lines
411 B
JavaScript
Raw Normal View History

2019-08-31 04:07:25 +05:00
import { ORM } from 'redux-orm';
import {
Action,
2020-04-21 05:04:34 +05:00
Attachment,
2019-08-31 04:07:25 +05:00
Board,
Card,
Label,
List,
Notification,
Project,
ProjectMembership,
Task,
User,
} 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(
User,
Project,
ProjectMembership,
Board,
Label,
List,
2019-08-31 04:07:25 +05:00
Card,
Task,
2020-04-21 05:04:34 +05:00
Attachment,
2019-08-31 04:07:25 +05:00
Action,
Notification,
);
export default orm;