50 lines
1.0 KiB
JavaScript
50 lines
1.0 KiB
JavaScript
import { genericActions as actions } from "oak-domain/lib/actions/action";
|
|
export const desc = {
|
|
attributes: {
|
|
applicationId: {
|
|
notNull: true,
|
|
type: "ref",
|
|
ref: "application"
|
|
},
|
|
wechatId: {
|
|
notNull: true,
|
|
type: "varchar",
|
|
params: {
|
|
length: 64
|
|
}
|
|
},
|
|
title: {
|
|
notNull: true,
|
|
type: "text"
|
|
},
|
|
primaryIndustry: {
|
|
type: "text"
|
|
},
|
|
deputyIndustry: {
|
|
type: "text"
|
|
},
|
|
content: {
|
|
type: "text"
|
|
},
|
|
example: {
|
|
type: "text"
|
|
},
|
|
param: {
|
|
type: "object"
|
|
},
|
|
syncAt: {
|
|
notNull: true,
|
|
type: "datetime"
|
|
},
|
|
keywordEnumValueList: {
|
|
type: "object"
|
|
},
|
|
type: {
|
|
type: "enum",
|
|
enumeration: ["2", "3"]
|
|
}
|
|
},
|
|
actionType: "crud",
|
|
actions
|
|
};
|