mirror of
https://github.com/plankanban/planka.git
synced 2025-07-22 14:49:43 +02:00
Add covers for cards
This commit is contained in:
parent
f743f4ea8b
commit
3dffed90c6
26 changed files with 315 additions and 98 deletions
|
@ -1,4 +1,4 @@
|
|||
import { Model, attr, fk, many } from 'redux-orm';
|
||||
import { Model, attr, fk, many, oneToOne } from 'redux-orm';
|
||||
|
||||
import ActionTypes from '../constants/ActionTypes';
|
||||
import Config from '../constants/Config';
|
||||
|
@ -32,6 +32,11 @@ export default class extends Model {
|
|||
as: 'board',
|
||||
relatedName: 'cards',
|
||||
}),
|
||||
coverAttachmentId: oneToOne({
|
||||
to: 'Attachment',
|
||||
as: 'coverAttachment',
|
||||
relatedName: 'coveredCard',
|
||||
}),
|
||||
users: many('User', 'cards'),
|
||||
labels: many('Label', 'cards'),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue