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.
29 lines
600 B
JavaScript
29 lines
600 B
JavaScript
5 years ago
|
module.exports = [{
|
||
|
mapId: 'orderMap',
|
||
|
idProperty: 'uuid',
|
||
|
properties: [
|
||
|
'number',
|
||
|
'start_time'
|
||
|
],
|
||
|
associations: [
|
||
|
{name: 'user', mapId: 'userMap', columnPrefix: 'user_'}
|
||
|
],
|
||
|
collections: [
|
||
|
{name: 'transactions', mapId: 'transactionMap', columnPrefix: 'transaction_'}
|
||
|
]
|
||
|
},{
|
||
|
mapId: 'transactionMap',
|
||
|
idProperty: 'uuid',
|
||
|
properties: [
|
||
|
'start_time',
|
||
|
'completion_time',
|
||
|
'payment_state',
|
||
|
'item_total_price',
|
||
|
'coupon_effective_discount',
|
||
|
'shipping_price'
|
||
|
],
|
||
|
associations: [
|
||
|
{name: 'cart', mapId: 'cartMap', columnPrefix: 'cart_'}
|
||
|
]
|
||
|
}]
|