oak-domain/lib/base-app-domain/UserRelation/Storage.js

37 lines
808 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.desc = void 0;
var action_1 = require("../../actions/action");
exports.desc = {
attributes: {
userId: {
notNull: true,
type: "ref",
ref: "user"
},
relationId: {
notNull: true,
type: "ref",
ref: "relation"
}
},
actionType: "crud",
actions: action_1.genericActions,
indexes: [
{
name: 'index_user_relation',
attributes: [
{
name: "userId"
},
{
name: "relationId"
},
],
config: {
unique: true
}
}
]
};