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

54 lines
1.2 KiB
JavaScript

import { genericActions as actions } from "oak-domain/lib/actions/action";
export const desc = {
attributes: {
name: {
notNull: true,
type: "varchar",
params: {
length: 32
}
},
description: {
type: "text"
},
type: {
notNull: true,
type: "enum",
enumeration: ["web", "wechatMp", "wechatPublic", "native"]
},
systemId: {
notNull: true,
type: "ref",
ref: "system"
},
config: {
notNull: true,
type: "object"
},
style: {
type: "object"
},
dangerousVersions: {
notNull: true,
type: "object"
},
warningVersions: {
notNull: true,
type: "object"
},
soaVersion: {
notNull: true,
type: "varchar",
params: {
length: 12
}
},
domainId: {
type: "ref",
ref: "domain"
}
},
actionType: "crud",
actions
};