80 lines
1.6 KiB
JavaScript
80 lines
1.6 KiB
JavaScript
import { actions } from "./Action";
|
|
export const 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,
|
|
indexes: [
|
|
{
|
|
name: 'code_channel_uniqe',
|
|
attributes: [
|
|
{
|
|
name: 'code',
|
|
},
|
|
{
|
|
name: "channelId",
|
|
}
|
|
],
|
|
config: {
|
|
unique: true,
|
|
},
|
|
}
|
|
]
|
|
};
|