shipCompany实体字段长度增加,添加name上的fulltext类型的索引

This commit is contained in:
lxy 2025-01-14 15:10:10 +08:00
parent 98adc30b27
commit 3a67de24f0
1 changed files with 17 additions and 3 deletions

View File

@ -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: '物流公司',