oak-pay-business/es/oak-app-domain/ActionAuth/Storage.js

38 lines
795 B
JavaScript

import { genericActions as actions } from "oak-domain/lib/actions/action";
export const desc = {
attributes: {
relationId: {
type: "ref",
ref: "relation"
},
pathId: {
notNull: true,
type: "ref",
ref: "path"
},
deActions: {
notNull: true,
type: "object"
}
},
static: true,
actionType: "crud",
actions,
indexes: [
{
name: 'index_relation_path',
attributes: [
{
name: "relationId",
},
{
name: "pathId",
}
],
config: {
unique: true,
},
}
]
};