11 lines
348 B
TypeScript
11 lines
348 B
TypeScript
import { String, Geo } from 'oak-domain/lib/types/DataType';
|
|
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
|
export interface Schema extends EntityShape {
|
|
name: String<32>;
|
|
level: 'province' | 'city' | 'district' | 'street' | 'country';
|
|
depth: 0 | 1 | 2 | 3 | 4;
|
|
parent?: Schema;
|
|
code: String<12>;
|
|
center: Geo;
|
|
}
|