You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
815 B
JavaScript
47 lines
815 B
JavaScript
module.exports = [{
|
|
mapId: 'imageMap',
|
|
idProperty: 'uuid',
|
|
properties: [
|
|
'featured',
|
|
'large_file',
|
|
'thumb_file',
|
|
'mime_type',
|
|
'date_uploaded'
|
|
],
|
|
associations: [
|
|
{name: 'uploader', mapId: 'userMap', columnPrefix: 'user_'}
|
|
]
|
|
},{
|
|
mapId: 'itemMap',
|
|
idProperty: 'uuid',
|
|
properties: [
|
|
'name',
|
|
'description',
|
|
'urlslug',
|
|
'price_cents',
|
|
'published',
|
|
'number_in_stock'
|
|
],
|
|
collections: [
|
|
{name: 'images', mapId: 'imageMap', columnPrefix: 'image_'}
|
|
]
|
|
},{
|
|
mapId: 'bareImageMap',
|
|
idProperty: 'uuid',
|
|
properties: [
|
|
'mime_type',
|
|
'file'
|
|
]
|
|
},{
|
|
mapId: 'categoryMap',
|
|
idProperty: 'uuid',
|
|
properties: [
|
|
'name',
|
|
'description',
|
|
'urlslug'
|
|
],
|
|
collections: [
|
|
{name: 'items', mapId: 'itemMap', columnPrefix: 'item_'}
|
|
]
|
|
}]
|