shipCompany实体字段长度增加,添加name上的fulltext类型的索引
This commit is contained in:
parent
98adc30b27
commit
3a67de24f0
|
|
@ -9,13 +9,27 @@ import { EntityShape } from 'oak-domain/lib/types/Entity';
|
|||
import { EntityDesc } from 'oak-domain/lib/types';
|
||||
|
||||
export interface Schema extends EntityShape {
|
||||
name: String<32>;
|
||||
abbr: String<16>;
|
||||
wechatMpName?: String<4>;
|
||||
name: String<64>;
|
||||
abbr: String<32>;
|
||||
wechatMpName?: String<32>;
|
||||
};
|
||||
|
||||
|
||||
export const entityDesc: EntityDesc<Schema> = {
|
||||
indexes: [
|
||||
{
|
||||
name: 'index_name',
|
||||
attributes: [
|
||||
{
|
||||
name: 'name',
|
||||
},
|
||||
],
|
||||
config: {
|
||||
type: 'fulltext',
|
||||
parser: 'ngram',
|
||||
},
|
||||
},
|
||||
],
|
||||
locales: {
|
||||
zh_CN: {
|
||||
name: '物流公司',
|
||||
|
|
|
|||
Loading…
Reference in New Issue