oak-db/test/entities/Platform.ts

25 lines
791 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { String, Int, Datetime, Image, Boolean, Text } from 'oak-domain/lib/types/DataType';
import { EntityShape } from 'oak-domain/lib/types/Entity';
import { EntityDesc } from 'oak-domain/lib/types/EntityDesc';
export interface Schema extends EntityShape {
name: String<32>;
description?: Text;
entity?: String<32>; // System是抽象对象应用上级与之一对一的对象可以使用双向指针以方便编程
entityId?: String<64>;
};
export const entityDesc: EntityDesc<Schema> = {
locales: {
zh_CN: {
name: '平台',
attr: {
name: '名称',
description: '描述',
entity: '关联对象',
entityId: '关联对象id',
},
},
}
};