oak-general-business/es/oak-app-domain/Area/Storage.js

43 lines
941 B
JavaScript

import { readOnlyActions as actions } from "oak-domain/lib/actions/action";
export const desc = {
attributes: {
name: {
notNull: true,
type: "varchar",
params: {
length: 32
}
},
level: {
notNull: true,
type: "enum",
enumeration: ["province", "city", "district", "street", "country"]
},
depth: {
notNull: true,
type: "int",
params: {
width: 4
}
},
parentId: {
type: "ref",
ref: "area"
},
code: {
notNull: true,
type: "varchar",
params: {
length: 12
}
},
center: {
notNull: true,
type: "geometry"
}
},
static: true,
actionType: "readOnly",
actions
};