oak-pay-business/lib/oak-app-domain/WithdrawAccount/Storage.js

83 lines
1.7 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.desc = void 0;
const Action_1 = require("./Action");
exports.desc = {
attributes: {
org: {
type: "varchar",
params: {
length: 128
}
},
name: {
notNull: true,
type: "varchar",
params: {
length: 64
}
},
code: {
notNull: true,
type: "varchar",
params: {
length: 64
}
},
ofSystemId: {
notNull: true,
type: "ref",
ref: "system"
},
data: {
type: "object"
},
channelId: {
notNull: true,
type: "ref",
ref: "withdrawChannel"
},
entity: {
notNull: true,
type: "varchar",
params: {
length: 32
},
ref: ["system", "user"]
},
entityId: {
notNull: true,
type: "varchar",
params: {
length: 64
}
},
isDefault: {
notNull: true,
type: "boolean"
},
enabled: {
notNull: true,
type: "boolean"
}
},
actionType: "crud",
actions: Action_1.actions,
indexes: [
{
name: 'code_channel_uniqe',
attributes: [
{
name: 'code',
},
{
name: "channelId",
}
],
config: {
unique: true,
},
}
]
};