oak-pay-business/lib/oak-app-domain/ShipCompany/Storage.js

45 lines
973 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.desc = void 0;
const action_1 = require("oak-domain/lib/actions/action");
exports.desc = {
attributes: {
name: {
notNull: true,
type: "varchar",
params: {
length: 64
}
},
abbr: {
notNull: true,
type: "varchar",
params: {
length: 32
}
},
wechatMpName: {
type: "varchar",
params: {
length: 32
}
}
},
actionType: "crud",
actions: action_1.genericActions,
indexes: [
{
name: 'index_name',
attributes: [
{
name: 'name',
},
],
config: {
type: 'fulltext',
parser: 'ngram',
},
}
]
};