42 lines
869 B
JavaScript
42 lines
869 B
JavaScript
import { actions } from "./Action";
|
|
export const desc = {
|
|
attributes: {
|
|
title: {
|
|
notNull: true,
|
|
type: "text"
|
|
},
|
|
description: {
|
|
type: "text"
|
|
},
|
|
targetEntity: {
|
|
notNull: true,
|
|
type: "varchar",
|
|
params: {
|
|
length: 32
|
|
}
|
|
},
|
|
targetFilter: {
|
|
notNull: true,
|
|
type: "object"
|
|
},
|
|
action: {
|
|
notNull: true,
|
|
type: "varchar",
|
|
params: {
|
|
length: 32
|
|
}
|
|
},
|
|
redirectTo: {
|
|
notNull: true,
|
|
type: "object"
|
|
},
|
|
iState: {
|
|
type: "enum",
|
|
enumeration: ["active", "done"]
|
|
}
|
|
},
|
|
actionType: "crud",
|
|
actions,
|
|
relation: ['collaborator']
|
|
};
|