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

37 lines
829 B
JavaScript

import { genericActions as actions } from "oak-domain/lib/actions/action";
export const desc = {
attributes: {
systemId: {
notNull: true,
type: "ref",
ref: "system"
},
origin: {
notNull: true,
type: "enum",
enumeration: ["ali", "tencent", "ctyun", "qiniu"]
},
templateName: {
notNull: true,
type: "text"
},
templateCode: {
notNull: true,
type: "varchar",
params: {
length: 64
}
},
templateContent: {
notNull: true,
type: "text"
},
syncAt: {
notNull: true,
type: "datetime"
}
},
actionType: "crud",
actions
};