forked from tsai/budibase
6 changed files with 131 additions and 62 deletions
@ -0,0 +1,39 @@ |
|||||
|
exports.table = { |
||||
|
value: { |
||||
|
_id: "ta_5b1649e42a5b41dea4ef7742a36a7a70", |
||||
|
name: "People", |
||||
|
schema: { |
||||
|
name: { |
||||
|
type: "string", |
||||
|
name: "name", |
||||
|
}, |
||||
|
age: { |
||||
|
type: "number", |
||||
|
name: "age", |
||||
|
}, |
||||
|
relationship: { |
||||
|
type: "link", |
||||
|
name: "relationship", |
||||
|
tableId: "ta_...", |
||||
|
fieldName: "relatedColumn", |
||||
|
relationshipType: "many-to-many", |
||||
|
}, |
||||
|
}, |
||||
|
}, |
||||
|
} |
||||
|
|
||||
|
exports.row = { |
||||
|
value: { |
||||
|
_id: "ro_ta_5b1649e42a5b41dea4ef7742a36a7a70_e6dc7e38cf1343b2b56760265201cda4", |
||||
|
type: "row", |
||||
|
tableId: "ta_5b1649e42a5b41dea4ef7742a36a7a70", |
||||
|
name: "Mike", |
||||
|
age: 30, |
||||
|
relationship: [ |
||||
|
{ |
||||
|
primaryDisplay: "Joe", |
||||
|
_id: "ro_ta_...", |
||||
|
}, |
||||
|
], |
||||
|
}, |
||||
|
} |
||||
@ -0,0 +1,10 @@ |
|||||
|
exports.tableId = { |
||||
|
in: "path", |
||||
|
name: "tableId", |
||||
|
required: true, |
||||
|
description: |
||||
|
"The ID of the table which contains the rows which are being searched for.", |
||||
|
schema: { |
||||
|
type: "string", |
||||
|
}, |
||||
|
} |
||||
Loading…
Reference in new issue