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

42 lines
869 B
JavaScript

import { genericActions as actions } from "oak-domain/lib/actions/action";
export const 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,
indexes: [
{
name: 'index_name',
attributes: [
{
name: 'name',
},
],
config: {
type: 'fulltext',
parser: 'ngram',
},
}
]
};