oak-general-business/es/oak-app-domain/SessionMessage/Storage.js

46 lines
996 B
JavaScript

import { genericActions as actions } from "oak-domain/lib/actions/action";
export const desc = {
attributes: {
applicationId: {
notNull: true,
type: "ref",
ref: "application"
},
sessionId: {
notNull: true,
type: "ref",
ref: "session"
},
userId: {
type: "ref",
ref: "user"
},
wechatUserId: {
type: "ref",
ref: "wechatUser"
},
createTime: {
type: "datetime"
},
type: {
notNull: true,
type: "enum",
enumeration: ["text", "image", "audio", "video", "news"]
},
text: {
type: "text"
},
news: {
type: "varchar",
params: {
length: 128
}
},
aaoe: {
type: "boolean"
}
},
actionType: "crud",
actions
};