2020-02-03 10:24:25 +01:00
|
|
|
window["##BUDIBASE_APPDEFINITION##"] = {
|
|
|
|
hierarchy: {
|
|
|
|
name: "root",
|
|
|
|
type: "root",
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
name: "customer",
|
|
|
|
type: "record",
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "name",
|
|
|
|
type: "string",
|
|
|
|
typeOptions: {
|
|
|
|
maxLength: 1000,
|
|
|
|
values: null,
|
|
|
|
allowDeclaredValuesOnly: false,
|
|
|
|
},
|
|
|
|
label: "name",
|
|
|
|
getInitialValue: "default",
|
|
|
|
getUndefinedValue: "default",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
name: "invoiceyooo",
|
|
|
|
type: "record",
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "amount",
|
|
|
|
type: "number",
|
|
|
|
typeOptions: {
|
|
|
|
minValue: 99999999999,
|
|
|
|
maxValue: 99999999999,
|
|
|
|
decimalPlaces: 2,
|
|
|
|
},
|
|
|
|
label: "amount",
|
|
|
|
getInitialValue: "default",
|
|
|
|
getUndefinedValue: "default",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
children: [],
|
|
|
|
validationRules: [],
|
|
|
|
nodeId: 2,
|
|
|
|
indexes: [],
|
|
|
|
allidsShardFactor: 1,
|
|
|
|
collectionName: "invoices",
|
|
|
|
isSingle: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
validationRules: [],
|
|
|
|
nodeId: 1,
|
|
|
|
indexes: [
|
|
|
|
{
|
|
|
|
name: "customer_invoices",
|
|
|
|
type: "index",
|
|
|
|
map: "return {...record};",
|
|
|
|
filter: "",
|
|
|
|
indexType: "ancestor",
|
|
|
|
getShardName: "",
|
|
|
|
getSortKey: "record.id",
|
|
|
|
aggregateGroups: [],
|
2020-04-14 11:25:37 +02:00
|
|
|
allowedModelNodeIds: [2],
|
2020-02-03 10:24:25 +01:00
|
|
|
nodeId: 5,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
allidsShardFactor: 64,
|
|
|
|
collectionName: "customers",
|
|
|
|
isSingle: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
pathMaps: [],
|
|
|
|
indexes: [
|
|
|
|
{
|
|
|
|
name: "Yeo index",
|
|
|
|
type: "index",
|
|
|
|
map: "return {...record};",
|
|
|
|
filter: "",
|
|
|
|
indexType: "ancestor",
|
|
|
|
getShardName: "",
|
|
|
|
getSortKey: "record.id",
|
|
|
|
aggregateGroups: [],
|
2020-04-14 11:25:37 +02:00
|
|
|
allowedModelNodeIds: [1],
|
2020-02-03 10:24:25 +01:00
|
|
|
nodeId: 4,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "everyones_invoices",
|
|
|
|
type: "index",
|
|
|
|
map: "return {...record};",
|
|
|
|
filter: "",
|
|
|
|
indexType: "ancestor",
|
|
|
|
getShardName: "",
|
|
|
|
getSortKey: "record.id",
|
|
|
|
aggregateGroups: [],
|
2020-04-14 11:25:37 +02:00
|
|
|
allowedModelNodeIds: [2],
|
2020-02-03 10:24:25 +01:00
|
|
|
nodeId: 6,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
nodeId: 0,
|
|
|
|
},
|
|
|
|
componentLibraries: ["budibase-standard-components"],
|
|
|
|
props: {},
|
|
|
|
}
|