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';
|
|
|
|
|
2019-09-25 02:26:31 +05:00
|
|
|
const orm = new ORM({
|
2020-03-25 00:15:47 +05:00
|
|
|
stateSelector: (state) => state.orm,
|
2019-09-25 02:26:31 +05:00
|
|
|
});
|
2019-08-31 04:07:25 +05:00
|
|
|
|
|
|
|
orm.register(
|
|
|
|
User,
|
|
|
|
Project,
|
|
|
|
ProjectMembership,
|
|
|
|
Board,
|
|
|
|
Label,
|
2020-08-04 01:32:46 +05:00
|
|
|
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;
|