oak-general-business/lib/oak-app-domain/Relation/Storage.js

56 lines
1.2 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.desc = void 0;
const action_1 = require("oak-domain/lib/actions/action");
exports.desc = {
attributes: {
entity: {
notNull: true,
type: "varchar",
params: {
length: 32
},
ref: ["account", "session", "toDo"]
},
entityId: {
type: "varchar",
params: {
length: 64
}
},
name: {
type: "varchar",
params: {
length: 32
}
},
display: {
type: "varchar",
params: {
length: 32
}
}
},
actionType: "crud",
actions: action_1.genericActions,
indexes: [
{
name: 'index_targetEntity_entityId_name',
attributes: [
{
name: 'entity',
},
{
name: 'entityId',
},
{
name: 'name',
}
],
config: {
unique: true,
},
}
]
};