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

33 lines
377 B
JavaScript
Executable file

import { ORM } from 'redux-orm';
import {
Action,
Board,
Card,
Label,
List,
Notification,
Project,
ProjectMembership,
Task,
User,
} from './models';
const orm = new ORM({
stateSelector: ({ db }) => db,
});
orm.register(
User,
Project,
ProjectMembership,
Board,
List,
Label,
Card,
Task,
Action,
Notification,
);
export default orm;