Skip to content

Commit

Permalink
Added collections to designer sample (meta)data.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoluteur committed Dec 18, 2019
1 parent f87a273 commit 7aa361e
Showing 1 changed file with 102 additions and 0 deletions.
102 changes: 102 additions & 0 deletions data/designer/object-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,49 @@ module.exports = [
"comments"
]
}
],
"collections": [
{
"id": "wine_tasting",
"title": 'Degustations',
"table": "wine_tasting",
"column": "wine_id",
"object": "winetasting",
"order": "desc",
"fields": [
{
"id": "drink_date",
"column": "drink_date",
"type": "date",
"label": "Date",
"required": true
},
{
"id": "robe",
"column": "robe",
"type": "text",
"label": "Robe"
},
{
"id": "nose",
"column": "nose",
"type": "text",
"label": "Nose"
},
{
"id": "taste",
"column": "taste",
"type": "text",
"label": "Taste"
},
{
"id": "notes",
"column": "notes",
"type": "textmultiline",
"label": "Note"
}
]
}
]
},
{
Expand Down Expand Up @@ -315,6 +358,40 @@ module.exports = [
"cover"
]
}
],
"collections": [
{
"id": "music_track",
"label": "Tracks",
"icon": "music.png",
"table": "music_track",
"column": "album_id",
"orderBy": "name",
"object": "track",
"fields": [
{
"id": "name",
"type": "text",
"label": "Track",
"column": "name",
"inMany": true,
},
{
"id": "genre",
"type": "lov",
"label": "Genre",
"column": "genre_id",
"lovTable": "music_genre",
},
{
"id": "length",
"type": "text",
"label": "Length",
"column": "length",
"inMany": true
},
]
}
]
},
{
Expand Down Expand Up @@ -349,6 +426,31 @@ module.exports = [
"photo"
]
}
],
"collections": [
{
"id": "music_album",
"label": "Albums",
"icon": "cd.png",
"table": "music_album",
"object": "album",
"column": "artist_id",
"orderBy": "title",
"fields": [
{
"id": "title",
"type": "text",
"label": "Title",
"column": "title",
},
{
"id": "cover",
"column": "cover",
"type": "image",
"label": "Cover",
}
]
}
]
},
{
Expand Down

0 comments on commit 7aa361e

Please sign in to comment.